Re: [weewx-user] Campbell Scientific CR300 data logger

2023-04-22 Thread Craig Young
I update about every 15 seconds.  The one second was to shorten the time 
between when the data file is updated and when weewx reads it.  But I will 
look at the intake-strategies document and see what is available.


On Sunday, April 23, 2023 at 2:39:31 PM UTC+12 vince wrote:

> Start with https://github.com/weewx/weewx/wiki/intake-strategies but 
> short answer is sure.  If you can get the data in any format it is possible 
> to get it into weewx via a variety of methods.   You might also poke around 
> https://github.com/weewx/weewx/wiki#extensions-to-weewx for too many 
> examples to get into in a reply.
>
> Once/second is a bit quick however.  Does your data need to be that 
> real-time ?
>
> On Saturday, April 22, 2023 at 7:28:19 PM UTC-7 Craig Young wrote:
>
>> By any chance can weewx read from a data file?  I could write the 
>> incoming real time data to the file as a one line record and then weewx 
>> would read this, say once a second or so.
>>
>>
>> On Sunday, April 23, 2023 at 1:56:52 PM UTC+12 DR wrote:
>>
>>> Craig, I don't know of a driver for the Campbell dataloggers.
>>>
>>>
>>> I wish there were one, I have a very dependable station (CR3000) that 
>>> I'd like to interface.  Right now it is filling the native tables, and a 
>>> Weather Display driver using pakbus is pulling those values from that table 
>>> and handing them off to Weather Display, so I know 'something' could be 
>>> made to work.
>>>
>>>
>>> I am using a Texas Weather Instruments which, with the help of someone 
>>> who knows Python a lot better than me, helped to get running.  It basically 
>>> sends a send data command and then a data string gets sent from the TWI, 
>>> which the driver then parses and loads into a packet and hands off to 
>>> WeeWx.  I'm assuming that it can be adapted to other devices.
>>>
>>> I am trying to learn Python well enough to write or modify a driver and 
>>> the learning curve for this old FORTRAN and ALGOL guy is steeper than I 
>>> thought it would be, but I am getting closer.  Things like synchronization 
>>> with an incoming unrequested stream and how packets are formed and sent 
>>> seem to by my next steps.
>>>
>>> I wish I could say that within a few months I'd have a polished working 
>>> driver, but with many other demands on my free time, progress is slow.
>>>
>>> If  you've got a program on your PC that pulls in the live data stream 
>>> you are perhaps in a much better place to write a routine to emulate that 
>>> process and then look at how, for instance, the TWI driver forms a packet 
>>> to hand off to WeeWx.  
>>>
>>>
>>> I'm hoping you could use that little info to plan on how to get a 
>>> working driver that you might share with the rest of us.  My encouragement 
>>> to make it work is all I can give you otherwise, but sounds like you are 
>>> pretty close.
>>>
>>> The MQTT recommendation is something you might look at, too.   I know 
>>> little about that.  I am grateful to those who have furnished so much 
>>> already.  Dale
>>>
>>>
>>> On 4/22/2023 8:04 PM, p q wrote:
>>>
>>> I don't know the answer to the primary question. 
>>>
>>> As to recommended protocols, I'd choose MQTT.
>>>
>>> On Sat, Apr 22, 2023 at 5:53 PM Craig Young  
>>> wrote:
>>>
 Is there a driver for the CR300 data logger?  If not, I have a PC 
 connected to the data logger, collecting the live data stream which I can 
 reformat and send as either RS232 or UDP/IP packets to weewx in any 
 format.  Would need a recommendation on which protocol to use.  But 
 hopefully, there is already a driver for the CR300 or a 'generic' driver.

 Craig
 -- 
 You received this message because you are subscribed to the Google 
 Groups "weewx-user" group.
 To unsubscribe from this group and stop receiving emails from it, send 
 an email to weewx-user+...@googlegroups.com.
 To view this discussion on the web visit 
 https://groups.google.com/d/msgid/weewx-user/03d49dbf-648c-4810-bc60-237abe5ec828n%40googlegroups.com
  
 
 .

>>>
>>>
>>> -- 
>>> Peter Quinn
>>> (415)794-2264 <(415)%20794-2264>
>>> -- 
>>> You received this message because you are subscribed to the Google 
>>> Groups "weewx-user" group.
>>> To unsubscribe from this group and stop receiving emails from it, send 
>>> an email to weewx-user+...@googlegroups.com.
>>>
>>> To view this discussion on the web visit 
>>> https://groups.google.com/d/msgid/weewx-user/CAA1SM22-7QQ_GPRJHG1j%2Be5U99aKMzh3-VS0YKGU4Ob2KDSywg%40mail.gmail.com
>>>  
>>> 
>>> .
>>>
>>>

-- 
You received this message because you are subscribed to the Google Groups 
"weewx-user" group.
To unsubscribe from this group and stop receiving emails 

Re: [weewx-user] Campbell Scientific CR300 data logger

2023-04-22 Thread vince
Start with https://github.com/weewx/weewx/wiki/intake-strategies but short 
answer is sure.  If you can get the data in any format it is possible to 
get it into weewx via a variety of methods.   You might also poke 
around https://github.com/weewx/weewx/wiki#extensions-to-weewx for too many 
examples to get into in a reply.

Once/second is a bit quick however.  Does your data need to be that 
real-time ?

On Saturday, April 22, 2023 at 7:28:19 PM UTC-7 Craig Young wrote:

> By any chance can weewx read from a data file?  I could write the incoming 
> real time data to the file as a one line record and then weewx would read 
> this, say once a second or so.
>
>
> On Sunday, April 23, 2023 at 1:56:52 PM UTC+12 DR wrote:
>
>> Craig, I don't know of a driver for the Campbell dataloggers.
>>
>>
>> I wish there were one, I have a very dependable station (CR3000) that I'd 
>> like to interface.  Right now it is filling the native tables, and a 
>> Weather Display driver using pakbus is pulling those values from that table 
>> and handing them off to Weather Display, so I know 'something' could be 
>> made to work.
>>
>>
>> I am using a Texas Weather Instruments which, with the help of someone 
>> who knows Python a lot better than me, helped to get running.  It basically 
>> sends a send data command and then a data string gets sent from the TWI, 
>> which the driver then parses and loads into a packet and hands off to 
>> WeeWx.  I'm assuming that it can be adapted to other devices.
>>
>> I am trying to learn Python well enough to write or modify a driver and 
>> the learning curve for this old FORTRAN and ALGOL guy is steeper than I 
>> thought it would be, but I am getting closer.  Things like synchronization 
>> with an incoming unrequested stream and how packets are formed and sent 
>> seem to by my next steps.
>>
>> I wish I could say that within a few months I'd have a polished working 
>> driver, but with many other demands on my free time, progress is slow.
>>
>> If  you've got a program on your PC that pulls in the live data stream 
>> you are perhaps in a much better place to write a routine to emulate that 
>> process and then look at how, for instance, the TWI driver forms a packet 
>> to hand off to WeeWx.  
>>
>>
>> I'm hoping you could use that little info to plan on how to get a working 
>> driver that you might share with the rest of us.  My encouragement to make 
>> it work is all I can give you otherwise, but sounds like you are pretty 
>> close.
>>
>> The MQTT recommendation is something you might look at, too.   I know 
>> little about that.  I am grateful to those who have furnished so much 
>> already.  Dale
>>
>>
>> On 4/22/2023 8:04 PM, p q wrote:
>>
>> I don't know the answer to the primary question. 
>>
>> As to recommended protocols, I'd choose MQTT.
>>
>> On Sat, Apr 22, 2023 at 5:53 PM Craig Young  wrote:
>>
>>> Is there a driver for the CR300 data logger?  If not, I have a PC 
>>> connected to the data logger, collecting the live data stream which I can 
>>> reformat and send as either RS232 or UDP/IP packets to weewx in any 
>>> format.  Would need a recommendation on which protocol to use.  But 
>>> hopefully, there is already a driver for the CR300 or a 'generic' driver.
>>>
>>> Craig
>>> -- 
>>> You received this message because you are subscribed to the Google 
>>> Groups "weewx-user" group.
>>> To unsubscribe from this group and stop receiving emails from it, send 
>>> an email to weewx-user+...@googlegroups.com.
>>> To view this discussion on the web visit 
>>> https://groups.google.com/d/msgid/weewx-user/03d49dbf-648c-4810-bc60-237abe5ec828n%40googlegroups.com
>>>  
>>> 
>>> .
>>>
>>
>>
>> -- 
>> Peter Quinn
>> (415)794-2264 <(415)%20794-2264>
>> -- 
>> You received this message because you are subscribed to the Google Groups 
>> "weewx-user" group.
>> To unsubscribe from this group and stop receiving emails from it, send an 
>> email to weewx-user+...@googlegroups.com.
>>
>> To view this discussion on the web visit 
>> https://groups.google.com/d/msgid/weewx-user/CAA1SM22-7QQ_GPRJHG1j%2Be5U99aKMzh3-VS0YKGU4Ob2KDSywg%40mail.gmail.com
>>  
>> 
>> .
>>
>>

-- 
You received this message because you are subscribed to the Google Groups 
"weewx-user" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to weewx-user+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/weewx-user/bfa1c503-ce0b-493c-8e2b-003adab832bbn%40googlegroups.com.


Re: [weewx-user] Campbell Scientific CR300 data logger

2023-04-22 Thread Craig Young
By any chance can weewx read from a data file?  I could write the incoming 
real time data to the file as a one line record and then weewx would read 
this, say once a second or so.


On Sunday, April 23, 2023 at 1:56:52 PM UTC+12 DR wrote:

> Craig, I don't know of a driver for the Campbell dataloggers.
>
>
> I wish there were one, I have a very dependable station (CR3000) that I'd 
> like to interface.  Right now it is filling the native tables, and a 
> Weather Display driver using pakbus is pulling those values from that table 
> and handing them off to Weather Display, so I know 'something' could be 
> made to work.
>
>
> I am using a Texas Weather Instruments which, with the help of someone who 
> knows Python a lot better than me, helped to get running.  It basically 
> sends a send data command and then a data string gets sent from the TWI, 
> which the driver then parses and loads into a packet and hands off to 
> WeeWx.  I'm assuming that it can be adapted to other devices.
>
> I am trying to learn Python well enough to write or modify a driver and 
> the learning curve for this old FORTRAN and ALGOL guy is steeper than I 
> thought it would be, but I am getting closer.  Things like synchronization 
> with an incoming unrequested stream and how packets are formed and sent 
> seem to by my next steps.
>
> I wish I could say that within a few months I'd have a polished working 
> driver, but with many other demands on my free time, progress is slow.
>
> If  you've got a program on your PC that pulls in the live data stream you 
> are perhaps in a much better place to write a routine to emulate that 
> process and then look at how, for instance, the TWI driver forms a packet 
> to hand off to WeeWx.  
>
>
> I'm hoping you could use that little info to plan on how to get a working 
> driver that you might share with the rest of us.  My encouragement to make 
> it work is all I can give you otherwise, but sounds like you are pretty 
> close.
>
> The MQTT recommendation is something you might look at, too.   I know 
> little about that.  I am grateful to those who have furnished so much 
> already.  Dale
>
>
> On 4/22/2023 8:04 PM, p q wrote:
>
> I don't know the answer to the primary question. 
>
> As to recommended protocols, I'd choose MQTT.
>
> On Sat, Apr 22, 2023 at 5:53 PM Craig Young  wrote:
>
>> Is there a driver for the CR300 data logger?  If not, I have a PC 
>> connected to the data logger, collecting the live data stream which I can 
>> reformat and send as either RS232 or UDP/IP packets to weewx in any 
>> format.  Would need a recommendation on which protocol to use.  But 
>> hopefully, there is already a driver for the CR300 or a 'generic' driver.
>>
>> Craig
>> -- 
>> You received this message because you are subscribed to the Google Groups 
>> "weewx-user" group.
>> To unsubscribe from this group and stop receiving emails from it, send an 
>> email to weewx-user+...@googlegroups.com.
>> To view this discussion on the web visit 
>> https://groups.google.com/d/msgid/weewx-user/03d49dbf-648c-4810-bc60-237abe5ec828n%40googlegroups.com
>>  
>> 
>> .
>>
>
>
> -- 
> Peter Quinn
> (415)794-2264 <(415)%20794-2264>
> -- 
> You received this message because you are subscribed to the Google Groups 
> "weewx-user" group.
> To unsubscribe from this group and stop receiving emails from it, send an 
> email to weewx-user+...@googlegroups.com.
>
> To view this discussion on the web visit 
> https://groups.google.com/d/msgid/weewx-user/CAA1SM22-7QQ_GPRJHG1j%2Be5U99aKMzh3-VS0YKGU4Ob2KDSywg%40mail.gmail.com
>  
> 
> .
>
>

-- 
You received this message because you are subscribed to the Google Groups 
"weewx-user" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to weewx-user+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/weewx-user/99592c0e-762c-4b0f-83b7-cedf1465abecn%40googlegroups.com.


Re: [weewx-user] Campbell Scientific CR300 data logger

2023-04-22 Thread DR

Craig, I don't know of a driver for the Campbell dataloggers.


I wish there were one, I have a very dependable station (CR3000) that 
I'd like to interface.  Right now it is filling the native tables, and a 
Weather Display driver using pakbus is pulling those values from that 
table and handing them off to Weather Display, so I know 'something' 
could be made to work.



I am using a Texas Weather Instruments which, with the help of someone 
who knows Python a lot better than me, helped to get running.  It 
basically sends a send data command and then a data string gets sent 
from the TWI, which the driver then parses and loads into a packet and 
hands off to WeeWx.  I'm assuming that it can be adapted to other devices.


I am trying to learn Python well enough to write or modify a driver and 
the learning curve for this old FORTRAN and ALGOL guy is steeper than I 
thought it would be, but I am getting closer. Things like 
synchronization with an incoming unrequested stream and how packets are 
formed and sent seem to by my next steps.


I wish I could say that within a few months I'd have a polished working 
driver, but with many other demands on my free time, progress is slow.


If  you've got a program on your PC that pulls in the live data stream 
you are perhaps in a much better place to write a routine to emulate 
that process and then look at how, for instance, the TWI driver forms a 
packet to hand off to WeeWx.



I'm hoping you could use that little info to plan on how to get a 
working driver that you might share with the rest of us.  My 
encouragement to make it work is all I can give you otherwise, but 
sounds like you are pretty close.


The MQTT recommendation is something you might look at, too.   I know 
little about that.  I am grateful to those who have furnished so much 
already.  Dale



On 4/22/2023 8:04 PM, p q wrote:

I don't know the answer to the primary question.

As to recommended protocols, I'd choose MQTT.

On Sat, Apr 22, 2023 at 5:53 PM Craig Young  
wrote:


Is there a driver for the CR300 data logger?  If not, I have a PC
connected to the data logger, collecting the live data stream
which I can reformat and send as either RS232 or UDP/IP packets to
weewx in any format.  Would need a recommendation on which
protocol to use.  But hopefully, there is already a driver for the
CR300 or a 'generic' driver.

Craig
-- 
You received this message because you are subscribed to the Google

Groups "weewx-user" group.
To unsubscribe from this group and stop receiving emails from it,
send an email to weewx-user+unsubscr...@googlegroups.com.
To view this discussion on the web visit

https://groups.google.com/d/msgid/weewx-user/03d49dbf-648c-4810-bc60-237abe5ec828n%40googlegroups.com

.



--
Peter Quinn
(415)794-2264
--
You received this message because you are subscribed to the Google 
Groups "weewx-user" group.
To unsubscribe from this group and stop receiving emails from it, send 
an email to weewx-user+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/weewx-user/CAA1SM22-7QQ_GPRJHG1j%2Be5U99aKMzh3-VS0YKGU4Ob2KDSywg%40mail.gmail.com 
.


--
You received this message because you are subscribed to the Google Groups 
"weewx-user" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to weewx-user+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/weewx-user/b13d520f-cdfe-3b02-25ee-4df16592abb6%40gmail.com.


Re: [weewx-user] Campbell Scientific CR300 data logger

2023-04-22 Thread p q
I don't know the answer to the primary question.

As to recommended protocols, I'd choose MQTT.

On Sat, Apr 22, 2023 at 5:53 PM Craig Young 
wrote:

> Is there a driver for the CR300 data logger?  If not, I have a PC
> connected to the data logger, collecting the live data stream which I can
> reformat and send as either RS232 or UDP/IP packets to weewx in any
> format.  Would need a recommendation on which protocol to use.  But
> hopefully, there is already a driver for the CR300 or a 'generic' driver.
>
> Craig
>
> --
> You received this message because you are subscribed to the Google Groups
> "weewx-user" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to weewx-user+unsubscr...@googlegroups.com.
> To view this discussion on the web visit
> https://groups.google.com/d/msgid/weewx-user/03d49dbf-648c-4810-bc60-237abe5ec828n%40googlegroups.com
> 
> .
>


-- 
Peter Quinn
(415)794-2264

-- 
You received this message because you are subscribed to the Google Groups 
"weewx-user" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to weewx-user+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/weewx-user/CAA1SM22-7QQ_GPRJHG1j%2Be5U99aKMzh3-VS0YKGU4Ob2KDSywg%40mail.gmail.com.


[weewx-user] Campbell Scientific CR300 data logger

2023-04-22 Thread Craig Young
Is there a driver for the CR300 data logger?  If not, I have a PC connected 
to the data logger, collecting the live data stream which I can reformat 
and send as either RS232 or UDP/IP packets to weewx in any format.  Would 
need a recommendation on which protocol to use.  But hopefully, there is 
already a driver for the CR300 or a 'generic' driver.

Craig

-- 
You received this message because you are subscribed to the Google Groups 
"weewx-user" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to weewx-user+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/weewx-user/03d49dbf-648c-4810-bc60-237abe5ec828n%40googlegroups.com.