Re: [weewx-user] Recording External Temperatures

2021-01-16 Thread Mike Revitt
I tend to use Cloud Formation with a User Data script. If I can get it 
working I will share the template on here

On Saturday, January 16, 2021 at 6:04:27 PM UTC vince wrote:

> On Saturday, January 16, 2021 at 5:55:11 AM UTC-8 mi...@cougar.eu.com 
> wrote:
>
>> I used to use Virtual Box all the time but these days tend to spin up EC2 
>> hosts, but hadn't even thought of that for WeeWX testing, so definitely 
>> going to give that a go
>>
>
> Yup.  You could probably use the provisioner scripts I have in my repo as 
> a userdata script in EC2 or Lightsail.   I'd do it via Terraform but there 
> are many ways of course.
>
> Nice thing about Vagrant/VirtualBox is that once you have those two 
> packages installed and have cloned my repo, it's just "vagrant up" to 
> boot+configure a VM, and "vagrant destroy" to delete them. 
>

-- 
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/0e9cd604-46e1-43be-b0aa-b2929db23d62n%40googlegroups.com.


Re: [weewx-user] Recording External Temperatures

2021-01-16 Thread vince
On Saturday, January 16, 2021 at 5:55:11 AM UTC-8 mi...@cougar.eu.com wrote:

> I used to use Virtual Box all the time but these days tend to spin up EC2 
> hosts, but hadn't even thought of that for WeeWX testing, so definitely 
> going to give that a go
>

Yup.  You could probably use the provisioner scripts I have in my repo as a 
userdata script in EC2 or Lightsail.   I'd do it via Terraform but there 
are many ways of course.

Nice thing about Vagrant/VirtualBox is that once you have those two 
packages installed and have cloned my repo, it's just "vagrant up" to 
boot+configure a VM, and "vagrant destroy" to delete them. 

-- 
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/55522bc6-ae5a-48ed-a95d-bbbd6f1f1891n%40googlegroups.com.


Re: [weewx-user] Recording External Temperatures

2021-01-16 Thread Mike Revitt
Great idea Vince,

I used to use Virtual Box all the time but these days tend to spin up EC2 
hosts, but hadn't even thought of that for WeeWX testing, so definitely 
going to give that a go

And as I know a few have asked, I have finished documenting what I did here
https://www.cougar.eu.com/useful-guides/weewx-guides/rasberry-pi/add-ecowitt/index.html


On Friday, January 15, 2021 at 5:41:03 PM UTC vince wrote:

> On Friday, January 15, 2021 at 1:56:13 AM UTC-8 mi...@cougar.eu.com wrote:
>
>> One thing I am keen to try is using the config file to define the 
>> directory as you show above Vince, but that will have to wait till I have 
>> time to experiment on my "spare" raspberry Pi. Not trying that on my live 
>> system. So for the time being the directory is defined as a constant
>>
>>
> This is a good example of why running a virtualized weewx is great.   You 
> could spin up a quick Vagrant/VirtualBox VM using the Simulator driver and 
> add your draft extension to it.   No need for a spare pi.   Get everything 
> working and then add/update your custom code on your production (so to 
> speak) pi.
>
> My Vagrant configs for centos7/8, debian10, ubuntu1804/2004 are on GitHub 
>  if you wanted those for 
> either pre-packaged or setup.py variants.   The provisioner scripts can 
> also be used standalone to add weewx to a base os of that flavor.  Might be 
> worth a look.
>
>
>

-- 
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/32c47c25-3901-441c-8a85-9b62b5f7544fn%40googlegroups.com.


Re: [weewx-user] Recording External Temperatures

2021-01-15 Thread vince
On Friday, January 15, 2021 at 1:56:13 AM UTC-8 mi...@cougar.eu.com wrote:

> One thing I am keen to try is using the config file to define the 
> directory as you show above Vince, but that will have to wait till I have 
> time to experiment on my "spare" raspberry Pi. Not trying that on my live 
> system. So for the time being the directory is defined as a constant
>
>
This is a good example of why running a virtualized weewx is great.   You 
could spin up a quick Vagrant/VirtualBox VM using the Simulator driver and 
add your draft extension to it.   No need for a spare pi.   Get everything 
working and then add/update your custom code on your production (so to 
speak) pi.

My Vagrant configs for centos7/8, debian10, ubuntu1804/2004 are on GitHub 
 if you wanted those for 
either pre-packaged or setup.py variants.   The provisioner scripts can 
also be used standalone to add weewx to a base os of that flavor.  Might be 
worth a look.


-- 
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/8d884055-e785-45e4-8a8f-7421c2b02dcfn%40googlegroups.com.


Re: [weewx-user] Recording External Temperatures

2021-01-15 Thread Mike Revitt
This is the service that I wrote and I put it in bin/user, I plan to write 
this up when I get the. time but this 

 
will give you an idea of how I add the service.

My Ecowitt uploads to /var/www/html/ecowitt

I then read every file in the directory, deleting all but the most recent 
which I then read

I parse the file and insert the data into the database fields, and as there 
is not a extraHumid3 I used extraHumid1 instead.

Hope this helps

On Friday, January 15, 2021 at 10:25:03 AM UTC steep...@gmail.com wrote:

> Mike,
> I would be very interested to see that code you have written to insert 
> data into the database. I am currently using FilePile but always interested 
> in looking at alternative ways. 
> Ian
>
> On Fri, 15 Jan 2021 at 09:56, Mike Revitt  wrote:
>
>> Thank you both for your advice and input.
>>
>> In the end I have taken a bit of advice from both you you and some other 
>> information I found online, and in the interests of keeping things simple 
>> have managed to get my Ecowitt uploading data files to a directory on the 
>> raspberry Pi and have written a small python script that reads these and 
>> inserts them into the database, and this is run as a service very similar 
>> to the way I insert the CPU temperature
>>
>> One thing I am keen to try is using the config file to define the 
>> directory as you show above Vince, but that will have to wait till I have 
>> time to experiment on my "spare" raspberry Pi. Not trying that on my live 
>> system. So for the time being the directory is defined as a constant
>>
>>
>> On Wednesday, January 13, 2021 at 6:45:37 PM UTC vince wrote:
>>
>>> On Wednesday, January 13, 2021 at 3:09:29 AM UTC-8 mi...@cougar.eu.com 
>>> wrote:
>>>
 That sounds interesting, is there some documentation that shows how to 
 control where the data goes when running it as a service?


>>> There is - see 
>>> https://github.com/gjr80/weewx-gw1000/wiki/Available-config-options
>>>
>>> Here's the mapping I use as a driver, FWIW.   Works great.   You'd 
>>> probably want to also override the inside temp and inside humidity items to 
>>> extraTempN and extraHumidN for your scenario where you want the Ecowitt 
>>> items to add to your Davis measurements.  Maybe more items such as the 
>>> battery status as I did below.
>>>
>>> I'd lean toward disagree with Ian's suggestion to use a secondary db, as 
>>> it's not really needed, but there are lots of ways to get there.
>>>
>>> I specify the gateway ip address since it's on a different subnet than 
>>> the weewx pi.
>>>
>>> # Options for 'GW1000'
>>> [GW1000]
>>> driver = user.gw1000
>>> ip_address = 192.168.2.20
>>> port = 45000
>>> poll_interval = 20
>>>
>>> #--- the defaults map inTemp, inHumidity, outTemp, outHumidity
>>> #--- and the extraTemp1-8 and soilMostN items automagically
>>> #--- but we need to add the battery status mappings
>>> [[field_map_extensions]]
>>> # outTemp
>>> outTempBatteryStatus = wh26_batt
>>> # extraTemp1-8
>>> batteryStatus1 = wh31_ch1_batt
>>> batteryStatus2 = wh31_ch2_batt
>>> # soilMost1 = channel autoselects on first use
>>> batteryStatus8 = wh51_ch1_batt
>>>
>>>
>>>
>>> -- 
>> 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/31fa642d-b923-4acc-a8d1-8fafad463493n%40googlegroups.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/51b53da8-6550-46cd-b4ab-1a0e393b0460n%40googlegroups.com.
#!/bin/env python3
#---
# Routine Name: ecowitt.py
# Author:   Mike Revitt
# Date: 14/01/2021
#
# Revision HistoryPush Down List
# ---
# Date| Name| Description
# +-+
#

Re: [weewx-user] Recording External Temperatures

2021-01-15 Thread steeple ian
Mike,
I would be very interested to see that code you have written to insert data
into the database. I am currently using FilePile but always interested in
looking at alternative ways.
Ian

On Fri, 15 Jan 2021 at 09:56, Mike Revitt  wrote:

> Thank you both for your advice and input.
>
> In the end I have taken a bit of advice from both you you and some other
> information I found online, and in the interests of keeping things simple
> have managed to get my Ecowitt uploading data files to a directory on the
> raspberry Pi and have written a small python script that reads these and
> inserts them into the database, and this is run as a service very similar
> to the way I insert the CPU temperature
>
> One thing I am keen to try is using the config file to define the
> directory as you show above Vince, but that will have to wait till I have
> time to experiment on my "spare" raspberry Pi. Not trying that on my live
> system. So for the time being the directory is defined as a constant
>
>
> On Wednesday, January 13, 2021 at 6:45:37 PM UTC vince wrote:
>
>> On Wednesday, January 13, 2021 at 3:09:29 AM UTC-8 mi...@cougar.eu.com
>> wrote:
>>
>>> That sounds interesting, is there some documentation that shows how to
>>> control where the data goes when running it as a service?
>>>
>>>
>> There is - see
>> https://github.com/gjr80/weewx-gw1000/wiki/Available-config-options
>>
>> Here's the mapping I use as a driver, FWIW.   Works great.   You'd
>> probably want to also override the inside temp and inside humidity items to
>> extraTempN and extraHumidN for your scenario where you want the Ecowitt
>> items to add to your Davis measurements.  Maybe more items such as the
>> battery status as I did below.
>>
>> I'd lean toward disagree with Ian's suggestion to use a secondary db, as
>> it's not really needed, but there are lots of ways to get there.
>>
>> I specify the gateway ip address since it's on a different subnet than
>> the weewx pi.
>>
>> # Options for 'GW1000'
>> [GW1000]
>> driver = user.gw1000
>> ip_address = 192.168.2.20
>> port = 45000
>> poll_interval = 20
>>
>> #--- the defaults map inTemp, inHumidity, outTemp, outHumidity
>> #--- and the extraTemp1-8 and soilMostN items automagically
>> #--- but we need to add the battery status mappings
>> [[field_map_extensions]]
>> # outTemp
>> outTempBatteryStatus = wh26_batt
>> # extraTemp1-8
>> batteryStatus1 = wh31_ch1_batt
>> batteryStatus2 = wh31_ch2_batt
>> # soilMost1 = channel autoselects on first use
>> batteryStatus8 = wh51_ch1_batt
>>
>>
>>
>> --
> 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/31fa642d-b923-4acc-a8d1-8fafad463493n%40googlegroups.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/CADASSaSwfoVQ6DmzOmhEZZL9w%2Bh%3D9i9%3DuWd1zuJUqL01M198Og%40mail.gmail.com.


Re: [weewx-user] Recording External Temperatures

2021-01-15 Thread Mike Revitt
Thank you both for your advice and input.

In the end I have taken a bit of advice from both you you and some other 
information I found online, and in the interests of keeping things simple 
have managed to get my Ecowitt uploading data files to a directory on the 
raspberry Pi and have written a small python script that reads these and 
inserts them into the database, and this is run as a service very similar 
to the way I insert the CPU temperature

One thing I am keen to try is using the config file to define the directory 
as you show above Vince, but that will have to wait till I have time to 
experiment on my "spare" raspberry Pi. Not trying that on my live system. 
So for the time being the directory is defined as a constant


On Wednesday, January 13, 2021 at 6:45:37 PM UTC vince wrote:

> On Wednesday, January 13, 2021 at 3:09:29 AM UTC-8 mi...@cougar.eu.com 
> wrote:
>
>> That sounds interesting, is there some documentation that shows how to 
>> control where the data goes when running it as a service?
>>
>>
> There is - see 
> https://github.com/gjr80/weewx-gw1000/wiki/Available-config-options
>
> Here's the mapping I use as a driver, FWIW.   Works great.   You'd 
> probably want to also override the inside temp and inside humidity items to 
> extraTempN and extraHumidN for your scenario where you want the Ecowitt 
> items to add to your Davis measurements.  Maybe more items such as the 
> battery status as I did below.
>
> I'd lean toward disagree with Ian's suggestion to use a secondary db, as 
> it's not really needed, but there are lots of ways to get there.
>
> I specify the gateway ip address since it's on a different subnet than the 
> weewx pi.
>
> # Options for 'GW1000'
> [GW1000]
> driver = user.gw1000
> ip_address = 192.168.2.20
> port = 45000
> poll_interval = 20
>
> #--- the defaults map inTemp, inHumidity, outTemp, outHumidity
> #--- and the extraTemp1-8 and soilMostN items automagically
> #--- but we need to add the battery status mappings
> [[field_map_extensions]]
> # outTemp
> outTempBatteryStatus = wh26_batt
> # extraTemp1-8
> batteryStatus1 = wh31_ch1_batt
> batteryStatus2 = wh31_ch2_batt
> # soilMost1 = channel autoselects on first use
> batteryStatus8 = wh51_ch1_batt
>
>
>
>

-- 
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/31fa642d-b923-4acc-a8d1-8fafad463493n%40googlegroups.com.


Re: [weewx-user] Recording External Temperatures

2021-01-13 Thread vince
On Wednesday, January 13, 2021 at 3:09:29 AM UTC-8 mi...@cougar.eu.com 
wrote:

> That sounds interesting, is there some documentation that shows how to 
> control where the data goes when running it as a service?
>
>
There is - see 
https://github.com/gjr80/weewx-gw1000/wiki/Available-config-options

Here's the mapping I use as a driver, FWIW.   Works great.   You'd probably 
want to also override the inside temp and inside humidity items to 
extraTempN and extraHumidN for your scenario where you want the Ecowitt 
items to add to your Davis measurements.  Maybe more items such as the 
battery status as I did below.

I'd lean toward disagree with Ian's suggestion to use a secondary db, as 
it's not really needed, but there are lots of ways to get there.

I specify the gateway ip address since it's on a different subnet than the 
weewx pi.

# Options for 'GW1000'
[GW1000]
driver = user.gw1000
ip_address = 192.168.2.20
port = 45000
poll_interval = 20

#--- the defaults map inTemp, inHumidity, outTemp, outHumidity
#--- and the extraTemp1-8 and soilMostN items automagically
#--- but we need to add the battery status mappings
[[field_map_extensions]]
# outTemp
outTempBatteryStatus = wh26_batt
# extraTemp1-8
batteryStatus1 = wh31_ch1_batt
batteryStatus2 = wh31_ch2_batt
# soilMost1 = channel autoselects on first use
batteryStatus8 = wh51_ch1_batt



-- 
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/c65f3555-d6a7-436d-95b8-4b0a7d88d3ean%40googlegroups.com.


RE: [weewx-user] Recording External Temperatures

2021-01-13 Thread steepleian
Have a look at the wiki https://github.com/gjr80/weewx-gw1000/wiki which tells you how to setup as a service. Regarding data my personal suggestion would be to create an additional database for Ecowitt and bind to that. You could then pull data from each database as and when you require it, even integrate the two sets of database into one website.   Sent from Mail for Windows 10 From: Mike RevittSent: 13 January 2021 11:09To: weewx-userSubject: Re: [weewx-user] Recording External Temperatures That sounds interesting, is there some documentation that shows how to control where the data goes when running it as a service?On Wednesday, January 13, 2021 at 10:08:47 AM UTC steep...@gmail.com wrote:You can only run one driver, however weewx-gw1000 can also be run as a service. Quote from the repository: -   ‘The GW1000 driver can be operated as a traditional WeeWX driver where it is the source of loop data or it can be operated as a WeeWX service where it is used to augment loop data produced by another driver’. Sent from Mail for Windows 10 From: Mike RevittSent: 13 January 2021 09:37To: weewx-userSubject: Re: [weewx-user] Recording External Temperatures I have seen that thanks, but I already run a Vantage Vue and didn't think you could read data from 2 data sources as part of the main engineOn Wednesday, January 13, 2021 at 9:25:18 AM UTC steep...@gmail.com wrote:Have you seen this extension for the Ecowitt API? Excellent implementation that may save you a lot of time. https://github.com/gjr80/weewx-gw1000 Sent from Mail for Windows 10 From: Mike RevittSent: 13 January 2021 09:07To: weewx-userSubject: [weewx-user] Recording External Temperatures In my never ending quest to extend WeeWX, I have purchased Ann Ecowitt weather station and set it up so that it records the temperature in my Caravan. This works perfectly but records the data on the Ecowitt website. I have now managed to extend this to publish the weather stats into a directory on my Raspberry PI where WeeWX runs and intend to add another user extension to read this and upload it to extraTemp2 and if I can find a way will also record the humidity. The question is this, currently I record my Raspberry PI CPU temperature using event.record['extraTemp1'] = cpu.temperature and I guess the current time is used as the timestamp, but Ecowitt records the temperature every 60 seconds, so is there a way to add the record and give it a timestamp at the same time. Also any suggestions on where to store the humidity as this is possibly more important than the temperature Then it is a simple task of reading all files in the directory and processing them Thanks in advance-- 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/0b5e4eae-7fd1-46b7-b736-cc34867a5eddn%40googlegroups.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+...@googlegroups.com.To view this discussion on the web visit https://groups.google.com/d/msgid/weewx-user/3b22250a-54c4-4e4d-b56a-bfe9686fe18an%40googlegroups.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/ccce5402-11fa-4dd3-94d8-f96a94720aa5n%40googlegroups.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/AE5FC1E8-5D20-41A3-BC0A-C03A84C84D6A%40hxcore.ol.


Re: [weewx-user] Recording External Temperatures

2021-01-13 Thread Mike Revitt
That sounds interesting, is there some documentation that shows how to 
control where the data goes when running it as a service?

On Wednesday, January 13, 2021 at 10:08:47 AM UTC steep...@gmail.com wrote:

> You can only run one driver, however weewx-gw1000 can also be run as a 
> service. Quote from the repository: -
>
>  
>
>   ‘The GW1000 driver can be operated as a traditional WeeWX 
> driver where it is the source of loop data or it can be operated as a WeeWX 
> service where it is used to augment loop data produced by another driver’.
>
>  
>
> Sent from Mail <https://go.microsoft.com/fwlink/?LinkId=550986> for 
> Windows 10
>
>  
>
> *From: *Mike Revitt
> *Sent: *13 January 2021 09:37
> *To: *weewx-user
> *Subject: *Re: [weewx-user] Recording External Temperatures
>
>  
>
> I have seen that thanks, but I already run a Vantage Vue and didn't think 
> you could read data from 2 data sources as part of the main engine
>
> On Wednesday, January 13, 2021 at 9:25:18 AM UTC steep...@gmail.com wrote:
>
> Have you seen this extension for the Ecowitt API? Excellent implementation 
> that may save you a lot of time.
>
>  
>
> https://github.com/gjr80/weewx-gw1000
>
>  
>
> Sent from Mail <https://go.microsoft.com/fwlink/?LinkId=550986> for 
> Windows 10
>
>  
>
> *From: *Mike Revitt
> *Sent: *13 January 2021 09:07
> *To: *weewx-user
> *Subject: *[weewx-user] Recording External Temperatures
>
>  
>
> In my never ending quest to extend WeeWX, I have purchased Ann Ecowitt 
> weather station and set it up so that it records the temperature in my 
> Caravan. This works perfectly but records the data on the Ecowitt website.
>
>  
>
> I have now managed to extend this to publish the weather stats into a 
> directory on my Raspberry PI where WeeWX runs and intend to add another 
> user extension to read this and upload it to extraTemp2 and if I can find a 
> way will also record the humidity.
>
>  
>
> The question is this, currently I record my Raspberry PI CPU temperature 
> using event.record['extraTemp1'] = cpu.temperature and I guess the current 
> time is used as the timestamp, but Ecowitt records the temperature every 60 
> seconds, so is there a way to add the record and give it a timestamp at the 
> same time.
>
>  
>
> Also any suggestions on where to store the humidity as this is possibly 
> more important than the temperature
>
>  
>
> Then it is a simple task of reading all files in the directory and 
> processing them
>
>  
>
> Thanks in advance
>
> -- 
> 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/0b5e4eae-7fd1-46b7-b736-cc34867a5eddn%40googlegroups.com
>  
> <https://groups.google.com/d/msgid/weewx-user/0b5e4eae-7fd1-46b7-b736-cc34867a5eddn%40googlegroups.com?utm_medium=email_source=footer>
> .
>
>  
>
> -- 
> 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/3b22250a-54c4-4e4d-b56a-bfe9686fe18an%40googlegroups.com
>  
> <https://groups.google.com/d/msgid/weewx-user/3b22250a-54c4-4e4d-b56a-bfe9686fe18an%40googlegroups.com?utm_medium=email_source=footer>
> .
>
>  
>

-- 
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/ccce5402-11fa-4dd3-94d8-f96a94720aa5n%40googlegroups.com.


RE: [weewx-user] Recording External Temperatures

2021-01-13 Thread steepleian
You can only run one driver, however weewx-gw1000 can also be run as a service. Quote from the repository: -   ‘The GW1000 driver can be operated as a traditional WeeWX driver where it is the source of loop data or it can be operated as a WeeWX service where it is used to augment loop data produced by another driver’. Sent from Mail for Windows 10 From: Mike RevittSent: 13 January 2021 09:37To: weewx-userSubject: Re: [weewx-user] Recording External Temperatures I have seen that thanks, but I already run a Vantage Vue and didn't think you could read data from 2 data sources as part of the main engineOn Wednesday, January 13, 2021 at 9:25:18 AM UTC steep...@gmail.com wrote:Have you seen this extension for the Ecowitt API? Excellent implementation that may save you a lot of time. https://github.com/gjr80/weewx-gw1000 Sent from Mail for Windows 10 From: Mike RevittSent: 13 January 2021 09:07To: weewx-userSubject: [weewx-user] Recording External Temperatures In my never ending quest to extend WeeWX, I have purchased Ann Ecowitt weather station and set it up so that it records the temperature in my Caravan. This works perfectly but records the data on the Ecowitt website. I have now managed to extend this to publish the weather stats into a directory on my Raspberry PI where WeeWX runs and intend to add another user extension to read this and upload it to extraTemp2 and if I can find a way will also record the humidity. The question is this, currently I record my Raspberry PI CPU temperature using event.record['extraTemp1'] = cpu.temperature and I guess the current time is used as the timestamp, but Ecowitt records the temperature every 60 seconds, so is there a way to add the record and give it a timestamp at the same time. Also any suggestions on where to store the humidity as this is possibly more important than the temperature Then it is a simple task of reading all files in the directory and processing them Thanks in advance-- 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/0b5e4eae-7fd1-46b7-b736-cc34867a5eddn%40googlegroups.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/3b22250a-54c4-4e4d-b56a-bfe9686fe18an%40googlegroups.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/413378D7-8B08-4BF2-9E63-0F3915471871%40hxcore.ol.


Re: [weewx-user] Recording External Temperatures

2021-01-13 Thread Mike Revitt
I have seen that thanks, but I already run a Vantage Vue and didn't think 
you could read data from 2 data sources as part of the main engine

On Wednesday, January 13, 2021 at 9:25:18 AM UTC steep...@gmail.com wrote:

> Have you seen this extension for the Ecowitt API? Excellent implementation 
> that may save you a lot of time.
>
>  
>
> https://github.com/gjr80/weewx-gw1000
>
>  
>
> Sent from Mail  for 
> Windows 10
>
>  
>
> *From: *Mike Revitt
> *Sent: *13 January 2021 09:07
> *To: *weewx-user
> *Subject: *[weewx-user] Recording External Temperatures
>
>  
>
> In my never ending quest to extend WeeWX, I have purchased Ann Ecowitt 
> weather station and set it up so that it records the temperature in my 
> Caravan. This works perfectly but records the data on the Ecowitt website.
>
>  
>
> I have now managed to extend this to publish the weather stats into a 
> directory on my Raspberry PI where WeeWX runs and intend to add another 
> user extension to read this and upload it to extraTemp2 and if I can find a 
> way will also record the humidity.
>
>  
>
> The question is this, currently I record my Raspberry PI CPU temperature 
> using event.record['extraTemp1'] = cpu.temperature and I guess the current 
> time is used as the timestamp, but Ecowitt records the temperature every 60 
> seconds, so is there a way to add the record and give it a timestamp at the 
> same time.
>
>  
>
> Also any suggestions on where to store the humidity as this is possibly 
> more important than the temperature
>
>  
>
> Then it is a simple task of reading all files in the directory and 
> processing them
>
>  
>
> Thanks in advance
>
> -- 
> 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/0b5e4eae-7fd1-46b7-b736-cc34867a5eddn%40googlegroups.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/3b22250a-54c4-4e4d-b56a-bfe9686fe18an%40googlegroups.com.


RE: [weewx-user] Recording External Temperatures

2021-01-13 Thread steepleian
Have you seen this extension for the Ecowitt API? Excellent implementation that may save you a lot of time. https://github.com/gjr80/weewx-gw1000 Sent from Mail for Windows 10 From: Mike RevittSent: 13 January 2021 09:07To: weewx-userSubject: [weewx-user] Recording External Temperatures In my never ending quest to extend WeeWX, I have purchased Ann Ecowitt weather station and set it up so that it records the temperature in my Caravan. This works perfectly but records the data on the Ecowitt website. I have now managed to extend this to publish the weather stats into a directory on my Raspberry PI where WeeWX runs and intend to add another user extension to read this and upload it to extraTemp2 and if I can find a way will also record the humidity. The question is this, currently I record my Raspberry PI CPU temperature using event.record['extraTemp1'] = cpu.temperature and I guess the current time is used as the timestamp, but Ecowitt records the temperature every 60 seconds, so is there a way to add the record and give it a timestamp at the same time. Also any suggestions on where to store the humidity as this is possibly more important than the temperature Then it is a simple task of reading all files in the directory and processing them Thanks in advance-- 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/0b5e4eae-7fd1-46b7-b736-cc34867a5eddn%40googlegroups.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/4100DB73-69C0-4057-85EE-FC709B9CFA9C%40hxcore.ol.