[weewx-user] Clearing Archive Memory on Davis Westher Envoy

2019-07-24 Thread Allan Tyson
I have a Davis USB Westher Envoy connected to an RPi running weewx. It was 
running fine but I stopped weewx on the RPi and disconnected the Weather Envoy 
USB cable from the RPi to connect it to another RPi I was using to install 
Raspbian Buster with weewx on a smaller micro SD card so I could save it’s 
image to a smaller backup image file  having originally installed it on an 
internal 120GB SSD drive.
 The new installation worked just great but when I reconnected the Weather 
Envoy to the original RPi I discovered that the USB loggers’s memory was 
somehow corrupted so that weewx would no longer update Nginx. I cleared the 
memory by connecting the Logger to my Mac laptop & used WeatherLink to clear 
the archive memory.
 There was a Post by Tom in 2012 saying you could change the configuration of a 
weather envoy using the config utility in weewx as well as using the 
WeatherLink software. I did see the instructions for using wee_device to change 
the parameters of the Davis driver but when running it I get an unrecognized 
hardware error and the Weather Envoy isn’t listed as being supported hardware 
in the list of supported hardware. Only the  Vantsge Vue and Vantsge Pro2 
Consoles are listed though in the pictorial list of supported hardware the 
Weather Envoy is shown.
 Is there a way of clearing the Weather Envoy archive memory from the command 
line of the RPi so I can clear it without having to stop the RPI, disconnect 
the Envoy USB cable and connect it to my laptop to use the WeatherLink software 
to perform the clearing and then have to reconnect it to my RPi ?.

Allan

-- 
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/e122fd87-079c-4c63-83ff-44ca9bb88cc4%40googlegroups.com.


[weewx-user] Acurite Access + RaspberryPi --> WU DNS hijacking (DD-WRT) - howto

2019-07-24 Thread Xant


The following is a note response by Matthew in GitHub blog regarding 
Acurite Access:


*weewx does work with the access, but the access must send data in wu 
format. configure the access to send wu data. ideally you would configure 
it to send to the computer running weewx (use dns hijacking for this). then 
configure interceptor to listen (not sniff), and it will simply receive the 
wu data.*

*if you prefer to send to wu, then you must configure the interceptor to 
sniff the traffic (not listen).*

*please post on the weewx user group for further help on this.*

*i am sorry there is not yet a guide specifically for intercepter and 
access*




*1) WU DNS forwarding by DD-WRT router*


Setup>Forced DNS Redirection [On]

Services>ServicesTab>DNSmasq>Additional DNSmasq Options
address=/rtupdate.wunderground.com/Y.Y.Y.Y (where Y.Y.Y.Y is RaspberryPi IP)



*2) Directly test Interceptor* (should receive packages)


# PYTHONPATH=/usr/share/weewx python /usr/share/weewx/user/interceptor.py 
--device=wu-client --mode=listen --port=80



*3) WeeWX Config*


[Interceptor]
# This section is for the network traffic interceptor driver.
driver = user.interceptor
device_type = wu-client
mode = listen
port = 80


If all works, html file generated at /var/www/html/weewx/index.html


PS: repost, with minor tweek

-- 
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/b57d0980-afd2-4ab1-a0e8-5ff284ec11dc%40googlegroups.com.


[weewx-user] Acurite Access + RaspberryPi --> WU DNS hijacking (DD-WRT) - howto

2019-07-24 Thread Xant


The following is a note response by Matthew in GitHub blog regarding 
Acurite Access:


*weewx does work with the access, but the access must send data in wu 
format. configure the access to send wu data. ideally you would configure 
it to send to the computer running weewx (use dns hijacking for this). then 
configure interceptor to listen (not sniff), and it will simply receive the 
wu data.*

*if you prefer to send to wu, then you must configure the interceptor to 
sniff the traffic (not listen).*

*please post on the weewx user group for further help on this.*

*i am sorry there is not yet a guide specifically for intercepter and 
access*




*1) WU DNS forwarding by DD-WRT router*


Setup>Forced DNS Redirection [On]

Services>ServicesTab>DNSmasq>Additional DNSmasq Options
address=/wunderground.com/Y.Y.Y.Y (where Y.Y.Y.Y is RaspberryPi IP)



*2) Directly test Interceptor* (should receive packages)


# PYTHONPATH=/usr/share/weewx python /usr/share/weewx/user/interceptor.py 
--device=wu-client --mode=listen --port=80



*3) WeeWX Config*


[Interceptor]
# This section is for the network traffic interceptor driver.
driver = user.interceptor
device_type = wu-client
mode = listen
port = 80


If all works, html file generated at /var/www/html/weewx/index.html

-- 
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/ea50cd2c-4a94-41ac-a1bd-bb6a59e46851%40googlegroups.com.


[weewx-user] Re: Acurite Atlas/Access with interceptor and wunderground

2019-07-24 Thread Chris McLeod
One more thing, I looked back at my syslog once more after posting the 
below and see three lines and thought I would post them for completeness in 
case they help sort the rain issue out.  

Jul 24 22:19:20 Weewx2 weewx[20428]: interceptor: MainThread: unrecognized 
parameter rainin=0.00
Jul 24 22:19:20 Weewx2 weewx[20428]: interceptor: MainThread: skipping rain 
measurement of 0.0: no last rain
Jul 24 22:19:23 Weewx2 weewx[20428]: interceptor: MainThread: unrecognized 
parameter rainin=0.00


On Wednesday, July 24, 2019 at 7:14:40 PM UTC-6, Chris McLeod wrote:
>
> Hello, 
>
> I just got my new Atlas set up and having not done my research found that 
> getting it to work with SDR isn't a solved solution as yet (if I am missing 
> something please tell me) so I decided to go the interceptor route. I have 
> the Access setup up and sending, have the pfSense resolver routing it to my 
> ubuntu box and I can see the data both with tcpdump and with interceptor.py 
> running in debug mode. I have made two attempts at a [[sensor_map]] (one 
> off of tcpdump and one off of interceptor.py in debug mode) but I am still 
> not getting anything but an eroneous rain measurement into the database. I 
> am guessing its the sensor_map that is borked but since I don't know for 
> sure I will be putting much more data here in case someone can assist. 
>
> Thanks in advance,
>
> Chris
>
> weewx 3.9.2 installed from apt repository for Ubuntu 18.04 LTS
>
> *tcpdump on Ubuntu box:*
>
> tcpdump: verbose output suppressed, use -v or -vv for full protocol decode
> listening on ens160, link-type EN10MB (Ethernet), capture size 262144 bytes
> 17:01:03.669281 IP W550-0A43C9.little-to-no.org.3132 > 
> rtupdate.wunderground.com.http: Flags [P.], seq 1:440, ack 1, win 8192, 
> length 439: HTTP: GET 
> /weatherstation/updateweatherstation.php?ID=@@@&PASSWORD=*&softwaretype=myAcuRite&dateutc=now&action=updateraw&realtime=1&rtfreq=35&baromin=30.13&UV=1&humidity=19&tempf=92.6&windspeedmph=2&winddir=53&windgustmph=3&windgustdir=90&dewptf=44.3&dailyrainin=0.00&rainin=0.00
>  
> HTTP/1.1
>
> From this I built the following sensor_map
>
> [[sensor_map]]
> barometer = baromin
> UV = UV
> outHumidity = humidity
> outTemp = tempf
> windSpeed = windspeedmph
> windDir = winddir
> windGust = windgustmph
> windGustDir= windgustdir
> dewpoint = dewptf
> rain = rainin
>
> but got nothing but the humidity on to the index.html
>
> *interceptory.py in manually with device type acurite-bridge*
>
> cmcleod@Weewx2:~$ sudo PYTHONPATH=/usr/share/weewx python 
> /usr/share/weewx/user/interceptor.py --device=acurite-bridge --mode=listen 
> --port=80
> identifiers: {'bridge_id': None, 'sensor_type': None, 'sensor_id': None}
>
> *interceptor.py in manual mode with device type observer (found old post 
> where someone mentioned they got it going with observer)*
>
> cmcleod@Weewx2:~$ sudo PYTHONPATH=/usr/share/weewx python 
> /usr/share/weewx/user/interceptor.py --device=observer --mode=listen 
> --port=80
> identifiers: {}
>
> *Interceptor.py debug output w/accurite-bridge setting*
>
> cmcleod@Weewx2:~$ sudo PYTHONPATH=/usr/share/weewx python 
> /usr/share/weewx/user/interceptor.py --device=acurite-bridge --mode=listen 
> --port=80 --bug
> identifiers: {'bridge_id': None, 'sensor_type': None, 'sensor_id': None}
> raw data: 
> ID=KCOTHORN74&PASSWORD=YdrxbW2U&softwaretype=myAcuRite&dateutc=now&action=updateraw&realtime=1&rtfreq=35&baromin=30.20&UV=1&humidity=53&tempf=74.7&windspeedmph=8&winddir=34&windgustmph=16&windgustdir=37&dewptf=56.4&dailyrainin=0.08&rainin=0.00
> raw packet: {'winddir..': 34.0, 'dateTime': 1564016918, 'usUnits..': 1, 
> 'pressure..': 30.2, 'temperature..': 74.7, 'dateTime..': 1564016918, 
> 'windspeed..': 8.0, 'rainfall..': None, 'usUnits': 1, 'humidity..': 53.0}
> mapped packet: {'pressure': 30.2, 'usUnits': 1, 'dateTime': 1564016918}
>
> As you can see the items here are named quite a bit differently than in 
> just the raw HTTP GET so I generated a new sensor_map
>
>   [[sensor_map]]
> barometer = pressure
> outHumidity = humidity
> outTemp = temperature
> windSpeed = windspeed
> windDir = winddir
> dewpoint = dewptf
> rain = rainfall
> UV = UV
>
> And now I have lost the barometric pressure.  
>
> So as you can see the data is getting sent from my access to wunderground, 
> redirected by pfSense to my Ubuntu box. I had hoped that would be the hard 
> part and getting it into the db would be easier but I am obviously doing 
> something wrong. Any assistance appreciated. I will respond quicky for asks 
> for any missing infomration. 
>
>
>
>
>

-- 
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/58fac131-2a28-4ef9

[weewx-user] Re: Acurite Atlas/Access with interceptor and wunderground

2019-07-24 Thread Chris McLeod
Hello, 

Sorry for the wasted post, I have this sorted (for the most part). 
Apparently I was a bit overdone getting the networking sorted and didn't 
read the fine manual provided for interceptor so I missed there was a 
wu-client device. Once that was set things work much, much better. The only 
error I am getting in syslog is:

Jul 24 22:21:08 Weewx2 weewx[20428]: interceptor: MainThread: unrecognized 
parameter *rainin=0.00*

I removed the sensor_map so I guess this is part of interceptor.py? Below 
is representative of what I get when running interceptor.py in debug mode:

:~$ sudo PYTHONPATH=/usr/share/weewx python 
/usr/share/weewx/user/interceptor.py --device=wu-client --mode=listen 
--port=80 --debug
identifiers: {}
raw data: 
ID=@@@&PASSWORD=&softwaretype=myAcuRite&dateutc=now&action=updateraw&realtime=1&rtfreq=35&baromin=30.26&UV=0&humidity=42&empf=76.6&windspeedmph=4&winddir=195&windgustmph=7&windgustdir=0&dewptf=51.8&
*dailyrainin=0.00*&*rainin=0.00*
raw packet: {'wind_speed': 4.0, 'barometer': 30.26, 'wind_gust': 7.0, 
'dewpoint': 51.8, 'humidity_out': 42.0, 'uv': 0.0, 'rain': None, 
'dateTime':1564028339, 'temperature_out': 76.6, 'wind_dir': 195.0, 
'rain_total': 0.0, 'wind_gust_dir': 0.0, 'usUnits': 1}
mapped packet: {'barometer': 30.26, 'dewpoint': 51.8, 'outHumidity': 42.0, 
'UV': 0.0, *'rain': None*, 'dateTime': 1564028339, 'windDir': 195.0, 
'outemp': 76.6, 'windSpeed': 4.0, 'windGust': 7.0, 'usUnits': 1, 
'windGustDir': 0.0}

I see that I am getting dailyrain from the wu data and it is likely getting 
mapped to rain, would it be better to map rainin to rain and let weewx 
calculate my daily rain? Any assistance on this appreciated as rain 
measurement is one of my primary wants from this setup. 

Thanks, 

Chris 




On Wednesday, July 24, 2019 at 7:14:40 PM UTC-6, Chris McLeod wrote:
>
> Hello, 
>
> I just got my new Atlas set up and having not done my research found that 
> getting it to work with SDR isn't a solved solution as yet (if I am missing 
> something please tell me) so I decided to go the interceptor route. I have 
> the Access setup up and sending, have the pfSense resolver routing it to my 
> ubuntu box and I can see the data both with tcpdump and with interceptor.py 
> running in debug mode. I have made two attempts at a [[sensor_map]] (one 
> off of tcpdump and one off of interceptor.py in debug mode) but I am still 
> not getting anything but an eroneous rain measurement into the database. I 
> am guessing its the sensor_map that is borked but since I don't know for 
> sure I will be putting much more data here in case someone can assist. 
>
> Thanks in advance,
>
> Chris
>
> weewx 3.9.2 installed from apt repository for Ubuntu 18.04 LTS
>
> *tcpdump on Ubuntu box:*
>
> tcpdump: verbose output suppressed, use -v or -vv for full protocol decode
> listening on ens160, link-type EN10MB (Ethernet), capture size 262144 bytes
> 17:01:03.669281 IP W550-0A43C9.little-to-no.org.3132 > 
> rtupdate.wunderground.com.http: Flags [P.], seq 1:440, ack 1, win 8192, 
> length 439: HTTP: GET 
> /weatherstation/updateweatherstation.php?ID=@@@&PASSWORD=*&softwaretype=myAcuRite&dateutc=now&action=updateraw&realtime=1&rtfreq=35&baromin=30.13&UV=1&humidity=19&tempf=92.6&windspeedmph=2&winddir=53&windgustmph=3&windgustdir=90&dewptf=44.3&dailyrainin=0.00&rainin=0.00
>  
> HTTP/1.1
>
> From this I built the following sensor_map
>
> [[sensor_map]]
> barometer = baromin
> UV = UV
> outHumidity = humidity
> outTemp = tempf
> windSpeed = windspeedmph
> windDir = winddir
> windGust = windgustmph
> windGustDir= windgustdir
> dewpoint = dewptf
> rain = rainin
>
> but got nothing but the humidity on to the index.html
>
> *interceptory.py in manually with device type acurite-bridge*
>
> cmcleod@Weewx2:~$ sudo PYTHONPATH=/usr/share/weewx python 
> /usr/share/weewx/user/interceptor.py --device=acurite-bridge --mode=listen 
> --port=80
> identifiers: {'bridge_id': None, 'sensor_type': None, 'sensor_id': None}
>
> *interceptor.py in manual mode with device type observer (found old post 
> where someone mentioned they got it going with observer)*
>
> cmcleod@Weewx2:~$ sudo PYTHONPATH=/usr/share/weewx python 
> /usr/share/weewx/user/interceptor.py --device=observer --mode=listen 
> --port=80
> identifiers: {}
>
> *Interceptor.py debug output w/accurite-bridge setting*
>
> cmcleod@Weewx2:~$ sudo PYTHONPATH=/usr/share/weewx python 
> /usr/share/weewx/user/interceptor.py --device=acurite-bridge --mode=listen 
> --port=80 --bug
> identifiers: {'bridge_id': None, 'sensor_type': None, 'sensor_id': None}
> raw data: 
> ID=KCOTHORN74&PASSWORD=YdrxbW2U&softwaretype=myAcuRite&dateutc=now&action=updateraw&realtime=1&rtfreq=35&baromin=30.20&UV=1&humidity=53&tempf=74.7&windspeedmph=8&winddir=34&windgustmph=16&windgustdir=37&dewptf=56.4&dailyrainin=0.08&rainin=0.00
> raw packet: {'winddir..': 34.0, 'dateTime': 1564016918, 'usUnits..': 1, 
> 'pressure..': 30.2, 'temperature..': 74.7, 'dateTime..': 1

[weewx-user] Re: Acurite Atlas/Access with interceptor and wunderground

2019-07-24 Thread Xant


As always, too many hours already trying to make WeeWX on RasperryPi to 
connect to Acurite Access, at no result (1st try normal installation; 2nd 
try driver standalone; etc).


Acurite Access has a Static DHCP through DD-WRT router. The following 
command, returns no result:


PYTHONPATH=/usr/share/weewx python /usr/share/weewx/user/interceptor.py 
--device=acurite-bridge --mode=sniff --iface=eth0 --filter="src 
192.168.1.135 and dst port 80"


Understand there might be other 'strong' approaches (DNS hijack, direct 
eth0 connection, etc). Please, advice whats "next" and usually works for 
WeeWX Interceptor and Acurite Access.


After much plus hours, I was able to DNS hijack "atlasapi.myacurite.com" 
(this is the "new" API/myacurite.com address) to RaspberryPi/WeeWX IP 
address through DD-WRT DNSmasq/DNS Forwarding... still, no luck and stuck.


The above, was a posted of mine in the GitHub Interceptor blog, which 
Matthew was kind to reply and respond as the following (so ALL Acurite 
Access users to be aware):


*weewx does work with the access, but the access must send data in wu 
format. configure the access to send wu data. ideally you would configure 
it to send to the computer running weewx (use dns hijacking for this). then 
configure interceptor to listen (not sniff), and it will simply receive the 
wu data.*

*if you prefer to send to wu, then you must configure the interceptor to 
sniff the traffic (not listen).*

*please post on the weewx user group for further help on this.*

*i am sorry there is not yet a guide specifically for intercepter and 
access*


Thanks Matthew for continue support and response.



Some progress! (more to come)

DD-WRT can do DNS forwarding as the following:

Upload data to WU consider 
"https://weatherstation.wunderground.com/weatherstation"; (ref: 
https://projects.raspberrypi.org/en/projects/uploading-weather-data-to-weather-underground/4)

In DD-WRT:

Setup>Forced DNS Redirection [On]

Services>ServicesTab>DNSmasq>Additional DNSmasq Options
address=/website/forwardIP , or in this case
address=wunderground/Y.Y.Y.Y

In RaspberryPi:

PYTHONPATH=/usr/share/weewx python /usr/share/weewx/user/interceptor.py 
--device=wu-client --mode=listen --port=80

Finally some data packages. Now, trying with WeeWX and identifiers.

Best, ZX

-- 
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/5993451e-d755-4db3-ae6c-b5d6e0837512%40googlegroups.com.


[weewx-user] Re: Acurite Atlas/Access with interceptor and wunderground

2019-07-24 Thread Xant


On Wednesday, July 24, 2019 at 9:14:40 PM UTC-4, Chris McLeod wrote:
>
> Hello, 
>
> I just got my new Atlas set up and having not done my research found that 
> getting it to work with SDR isn't a solved solution as yet (if I am missing 
> something please tell me) so I decided to go the interceptor route. I have 
> the Access setup up and sending, have the pfSense resolver routing it to my 
> ubuntu box and I can see the data both with tcpdump and with interceptor.py 
> running in debug mode. I have made two attempts at a [[sensor_map]] (one 
> off of tcpdump and one off of interceptor.py in debug mode) but I am still 
> not getting anything but an eroneous rain measurement into the database. I 
> am guessing its the sensor_map that is borked but since I don't know for 
> sure I will be putting much more data here in case someone can assist. 
>
> Thanks in advance,
>
> Chris
>
> weewx 3.9.2 installed from apt repository for Ubuntu 18.04 LTS
>
> *tcpdump on Ubuntu box:*
>
> tcpdump: verbose output suppressed, use -v or -vv for full protocol decode
> listening on ens160, link-type EN10MB (Ethernet), capture size 262144 bytes
> 17:01:03.669281 IP W550-0A43C9.little-to-no.org.3132 > 
> rtupdate.wunderground.com.http: Flags [P.], seq 1:440, ack 1, win 8192, 
> length 439: HTTP: GET 
> /weatherstation/updateweatherstation.php?ID=@@@&PASSWORD=*&softwaretype=myAcuRite&dateutc=now&action=updateraw&realtime=1&rtfreq=35&baromin=30.13&UV=1&humidity=19&tempf=92.6&windspeedmph=2&winddir=53&windgustmph=3&windgustdir=90&dewptf=44.3&dailyrainin=0.00&rainin=0.00
>  
> HTTP/1.1
>
> From this I built the following sensor_map
>
> [[sensor_map]]
> barometer = baromin
> UV = UV
> outHumidity = humidity
> outTemp = tempf
> windSpeed = windspeedmph
> windDir = winddir
> windGust = windgustmph
> windGustDir= windgustdir
> dewpoint = dewptf
> rain = rainin
>
> but got nothing but the humidity on to the index.html
>
> *interceptory.py in manually with device type acurite-bridge*
>
> cmcleod@Weewx2:~$ sudo PYTHONPATH=/usr/share/weewx python 
> /usr/share/weewx/user/interceptor.py --device=acurite-bridge --mode=listen 
> --port=80
> identifiers: {'bridge_id': None, 'sensor_type': None, 'sensor_id': None}
>
> *interceptor.py in manual mode with device type observer (found old post 
> where someone mentioned they got it going with observer)*
>
> cmcleod@Weewx2:~$ sudo PYTHONPATH=/usr/share/weewx python 
> /usr/share/weewx/user/interceptor.py --device=observer --mode=listen 
> --port=80
> identifiers: {}
>
> *Interceptor.py debug output w/accurite-bridge setting*
>
> cmcleod@Weewx2:~$ sudo PYTHONPATH=/usr/share/weewx python 
> /usr/share/weewx/user/interceptor.py --device=acurite-bridge --mode=listen 
> --port=80 --bug
> identifiers: {'bridge_id': None, 'sensor_type': None, 'sensor_id': None}
> raw data: 
> ID=KCOTHORN74&PASSWORD=YdrxbW2U&softwaretype=myAcuRite&dateutc=now&action=updateraw&realtime=1&rtfreq=35&baromin=30.20&UV=1&humidity=53&tempf=74.7&windspeedmph=8&winddir=34&windgustmph=16&windgustdir=37&dewptf=56.4&dailyrainin=0.08&rainin=0.00
> raw packet: {'winddir..': 34.0, 'dateTime': 1564016918, 'usUnits..': 1, 
> 'pressure..': 30.2, 'temperature..': 74.7, 'dateTime..': 1564016918, 
> 'windspeed..': 8.0, 'rainfall..': None, 'usUnits': 1, 'humidity..': 53.0}
> mapped packet: {'pressure': 30.2, 'usUnits': 1, 'dateTime': 1564016918}
>
> As you can see the items here are named quite a bit differently than in 
> just the raw HTTP GET so I generated a new sensor_map
>
>   [[sensor_map]]
> barometer = pressure
> outHumidity = humidity
> outTemp = temperature
> windSpeed = windspeed
> windDir = winddir
> dewpoint = dewptf
> rain = rainfall
> UV = UV
>
> And now I have lost the barometric pressure.  
>
> So as you can see the data is getting sent from my access to wunderground, 
> redirected by pfSense to my Ubuntu box. I had hoped that would be the hard 
> part and getting it into the db would be easier but I am obviously doing 
> something wrong. Any assistance appreciated. I will respond quicky for asks 
> for any missing infomration. 
>
>
>
>
>

-- 
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/4cb8264a-5d4a-4a21-a0f6-29c1f3bf1faa%40googlegroups.com.


Re: [weewx-user] Re: OWFS install instructions

2019-07-24 Thread Glenn McKechnie
The additional information you provided helps, but I'm curious. You
say an original Dallas weather station - is this the AAG station with
wind vane, anenometer?
What other sensors do you have - temperature?

My first reaction seeing the i2c would have been that weewx-OWFS.py is
not the path, however following up on your later hints leads to a
schematic and a set of instructions  which suggest it may well work
with mwalls script.

https://www.abelectronics.co.uk/kb/article/3/owfs-with-i2c-support-on-raspberry-pi

The schematic also hints that a 'strict' i2c method may not be required.

Have you run through that AB Electronics HowTo above? If you can get a
result from that then OWFS.py should work as well as it uses the
ow-server.

>From a wee_extension install of owfs on a weewx installed via the
setup.py method
owfs.py - that script will be found in  /home/weewx/bin/user Nothing
should need to be touched / edited within that script but if you're
familiar with 1-wire terminology it will offer clues.
The actual 1-wire configuration section will have been added to your
existing weewx.conf file in /home/weewx under a heading labelled
[OWFS]

What version of Debian runs on the pi? ie: can you get owserver
installed and running as per that HowTo? (A recent post suggests the
Buster version may have issues)

On 25/07/2019, Bret Craytor  wrote:
>
>
> On Wednesday, July 24, 2019 at 10:10:31 PM UTC-5, Bret Craytor wrote:
>>
>> I can't seem to find instructions on how to install a i2c to 1-wire
>> adaptor to an original Dallas Semicondutor 1-wire weather station.  I have
>>
>> OWFS installed, and ran setup.py using the Texas Weather as the extension,
>>
>> then used wee_extension to add the owfs (0.21) files.  I saw some
>> instructions, but with the re-boots, I can't find where they went.
>>
>> Can somebody point me in the right direction? do I need OWFS.py?
>>
>> Bret
>>
>
> by the way using a Raspberry Pi 3B
> AB electronics UK  i2c-onewire adapter
>
> --
> 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/06369fc5-ab58-4235-bb29-48642d1fc837%40googlegroups.com.
>


-- 


Cheers
 Glenn

rorpi - read only raspberry pi & various weewx addons
https://github.com/glennmckechnie

-- 
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/CAAraAzhOLL_-aRgXn1fy5EQ7LRnRMhnRZUDTrfBnSA_L8ePh5g%40mail.gmail.com.


[weewx-user] Re: Acurite Atlas/Access with interceptor and wunderground

2019-07-24 Thread Xant


As always, too many hours already trying to make WeeWX on RasperryPi to 
connect to Acurite Access, at no result (1st try normal installation; 2nd 
try driver standalone; etc).


Acurite Access has a Static DHCP through DD-WRT router. The following 
command, returns no result:


PYTHONPATH=/usr/share/weewx python /usr/share/weewx/user/interceptor.py 
--device=acurite-bridge --mode=sniff --iface=eth0 --filter="src 
192.168.1.135 and dst port 80"


Understand there might be other 'strong' approaches (DNS hijack, direct 
eth0 connection, etc). Please, advice whats "next" and usually works for 
WeeWX Interceptor and Acurite Access.


After much plus hours, I was able to DNS hijack "atlasapi.myacurite.com" 
(this is the "new" API/myacurite.com address) to RaspberryPi/WeeWX IP 
address through DD-WRT DNSmasq/DNS Forwarding... still, no luck and stuck.



The above, was a posted of mine in the GitHub Interceptor blog, which 
Matthew was kind to reply and respond as the following (so ALL Acurite 
Access users to be aware):


*weewx does work with the access, but the access must send data in wu 
format. configure the access to send wu data. ideally you would configure 
it to send to the computer running weewx (use dns hijacking for this). then 
configure interceptor to listen (not sniff), and it will simply receive the 
wu data.*

*if you prefer to send to wu, then you must configure the interceptor to 
sniff the traffic (not listen).*

*please post on the weewx user group for further help on this.*

*i am sorry there is not yet a guide specifically for intercepter and 
access*


Thanks Matthew for continue support and response.



If you place the Access IP in web-browser, it provides basic info and 
current Acurite server, which for the Atlas current server seems to be 
"atlasapi.myacurite.com". In my router with DD-WRT I was able to DNS 
forward "atlastapi.myacurite.com" to RaspberryPi/WeeWX IP. Is this the same 
approach for UW through DNS hijacking? If so, what UW domain for DNS 
forward?


Thanks, ZX

-- 
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/9c4d1218-1949-4b75-993d-a17768676578%40googlegroups.com.


[weewx-user] Re: OWFS install instructions

2019-07-24 Thread Bret Craytor


On Wednesday, July 24, 2019 at 10:10:31 PM UTC-5, Bret Craytor wrote:
>
> I can't seem to find instructions on how to install a i2c to 1-wire 
> adaptor to an original Dallas Semicondutor 1-wire weather station.  I have 
> OWFS installed, and ran setup.py using the Texas Weather as the extension, 
> then used wee_extension to add the owfs (0.21) files.  I saw some 
> instructions, but with the re-boots, I can't find where they went.
>
> Can somebody point me in the right direction? do I need OWFS.py?  
>
> Bret
>

by the way using a Raspberry Pi 3B
AB electronics UK  i2c-onewire adapter 

-- 
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/06369fc5-ab58-4235-bb29-48642d1fc837%40googlegroups.com.


[weewx-user] OWFS install instructions

2019-07-24 Thread Bret Craytor
I can't seem to find instructions on how to install a i2c to 1-wire adaptor 
to an original Dallas Semicondutor 1-wire weather station.  I have OWFS 
installed, and ran setup.py using the Texas Weather as the extension, then 
used wee_extension to add the owfs (0.21) files.  I saw some instructions, 
but with the re-boots, I can't find where they went.

Can somebody point me in the right direction? do I need OWFS.py?  

Bret

-- 
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/b6af8563-4e2a-47d1-84f2-f92ab30b3681%40googlegroups.com.


[weewx-user] Acurite Atlas/Access with interceptor and wunderground

2019-07-24 Thread Chris McLeod
Hello, 

I just got my new Atlas set up and having not done my research found that 
getting it to work with SDR isn't a solved solution as yet (if I am missing 
something please tell me) so I decided to go the interceptor route. I have 
the Access setup up and sending, have the pfSense resolver routing it to my 
ubuntu box and I can see the data both with tcpdump and with interceptor.py 
running in debug mode. I have made two attempts at a [[sensor_map]] (one 
off of tcpdump and one off of interceptor.py in debug mode) but I am still 
not getting anything but an eroneous rain measurement into the database. I 
am guessing its the sensor_map that is borked but since I don't know for 
sure I will be putting much more data here in case someone can assist. 

Thanks in advance,

Chris

weewx 3.9.2 installed from apt repository for Ubuntu 18.04 LTS

*tcpdump on Ubuntu box:*

tcpdump: verbose output suppressed, use -v or -vv for full protocol decode
listening on ens160, link-type EN10MB (Ethernet), capture size 262144 bytes
17:01:03.669281 IP W550-0A43C9.little-to-no.org.3132 > 
rtupdate.wunderground.com.http: Flags [P.], seq 1:440, ack 1, win 8192, 
length 439: HTTP: GET 
/weatherstation/updateweatherstation.php?ID=@@@&PASSWORD=*&softwaretype=myAcuRite&dateutc=now&action=updateraw&realtime=1&rtfreq=35&baromin=30.13&UV=1&humidity=19&tempf=92.6&windspeedmph=2&winddir=53&windgustmph=3&windgustdir=90&dewptf=44.3&dailyrainin=0.00&rainin=0.00
 
HTTP/1.1

>From this I built the following sensor_map

[[sensor_map]]
barometer = baromin
UV = UV
outHumidity = humidity
outTemp = tempf
windSpeed = windspeedmph
windDir = winddir
windGust = windgustmph
windGustDir= windgustdir
dewpoint = dewptf
rain = rainin

but got nothing but the humidity on to the index.html

*interceptory.py in manually with device type acurite-bridge*

cmcleod@Weewx2:~$ sudo PYTHONPATH=/usr/share/weewx python 
/usr/share/weewx/user/interceptor.py --device=acurite-bridge --mode=listen 
--port=80
identifiers: {'bridge_id': None, 'sensor_type': None, 'sensor_id': None}

*interceptor.py in manual mode with device type observer (found old post 
where someone mentioned they got it going with observer)*

cmcleod@Weewx2:~$ sudo PYTHONPATH=/usr/share/weewx python 
/usr/share/weewx/user/interceptor.py --device=observer --mode=listen 
--port=80
identifiers: {}

*Interceptor.py debug output w/accurite-bridge setting*

cmcleod@Weewx2:~$ sudo PYTHONPATH=/usr/share/weewx python 
/usr/share/weewx/user/interceptor.py --device=acurite-bridge --mode=listen 
--port=80 --bug
identifiers: {'bridge_id': None, 'sensor_type': None, 'sensor_id': None}
raw data: 
ID=KCOTHORN74&PASSWORD=YdrxbW2U&softwaretype=myAcuRite&dateutc=now&action=updateraw&realtime=1&rtfreq=35&baromin=30.20&UV=1&humidity=53&tempf=74.7&windspeedmph=8&winddir=34&windgustmph=16&windgustdir=37&dewptf=56.4&dailyrainin=0.08&rainin=0.00
raw packet: {'winddir..': 34.0, 'dateTime': 1564016918, 'usUnits..': 1, 
'pressure..': 30.2, 'temperature..': 74.7, 'dateTime..': 1564016918, 
'windspeed..': 8.0, 'rainfall..': None, 'usUnits': 1, 'humidity..': 53.0}
mapped packet: {'pressure': 30.2, 'usUnits': 1, 'dateTime': 1564016918}

As you can see the items here are named quite a bit differently than in 
just the raw HTTP GET so I generated a new sensor_map

  [[sensor_map]]
barometer = pressure
outHumidity = humidity
outTemp = temperature
windSpeed = windspeed
windDir = winddir
dewpoint = dewptf
rain = rainfall
UV = UV

And now I have lost the barometric pressure.  

So as you can see the data is getting sent from my access to wunderground, 
redirected by pfSense to my Ubuntu box. I had hoped that would be the hard 
part and getting it into the db would be easier but I am obviously doing 
something wrong. Any assistance appreciated. I will respond quicky for asks 
for any missing infomration. 




-- 
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/1b4afadb-1126-48c9-9899-fe314a253048%40googlegroups.com.


[weewx-user] Re: MQTT Posting Loop but Archive not making it

2019-07-24 Thread Tom Mitchell
OK, thanks.

On the # in the topic, I appreciate your calling that out. Fixed my config.

On the archive records being in the loop topic but having different data, 
that is good to know. I expected there to be an archive topic, for some 
reason.

Thanks for clarifying on both counts. Great skin - I am just playing with 
it in earnest.

On Wednesday, July 24, 2019 at 10:45:03 AM UTC-4, Pat wrote:
>
> I would advise you to change your mqtt_websockets_topic to 
> "weather/vt-dev/loop". The # topic is the "firehose" and typically only 
> used for troubleshooting. Using # in the skin can sometimes cause 
> unintended things to happen. 
>
> I'm trying to understand your question though. You're looking for the 
> archive (REC) payload on your MQTT broker? If so, those show up in the loop 
> topic I mentioned above. The only difference are the items within that 
> payload that identify it as the archive packet. 
>
>
>
>
> On Wednesday, July 24, 2019 at 5:26:43 AM UTC-4, Tom Mitchell wrote:
>>
>> Hello,
>>
>> Running weewx 3.9.2 and mqtt 0.18 and Belchertown skin v1.0.1.
>>
>> I have my own mosquitto server and all seems well with loop records. 
>> However, archive records seem to be getting posted by the mqtt extension 
>> but for the life of me I can not find them on the mqtt server, which I am 
>> looking at with MQTT Explorer.
>>
>> Here is my relevant config:
>>
>> [[MQTT]]
>> server_url = mqtt://xxx:y...@web.foo.bar:1883
>> topic = weather/vt-dev
>> unit_system = US
>> binding = archive, loop
>> aggregation = aggregate
>>
>>
>>
>> [[Belchertown]]
>> HTML_ROOT = public_html/belchertown
>> skin = Belchertown
>> [[[Extras]]]
>> [snip]
>> mqtt_websockets_enabled = 1
>> mqtt_websockets_ssl = 0
>> mqtt_websockets_host = "web.foo.bar" #  The MQTT broker hostname or IP
>> mqtt_websockets_port = 9001 #   The port of the MQTT broker's Websockets 
>> port. Check your broker's documentation.
>> mqtt_websockets_topic = "weather/vt-dev/#" #The topic to subscribe 
>> to for your weather data
>> disconnect_live_website_visitor = 180 #The number of seconds after a 
>> visitor has loaded your page that we disconnect them from the live 
>> streaming updates. The idea here is to save your broker from a streaming 
>> connection that never ends. Time is in milliseconds. 0 = disabled. 30 = 
>> 5 minutes. 180 = 30 minutes
>>
>> Log snippet: the blue highlighted records are making it fine (I can see 
>> them in the client. The yellow ones seem to be leaving weewx but I am 
>> not able to see them in the client. If I generate one manually and post it 
>> to the archive topic, it shows up in the client.
>>
>> Wondering what I might be doing wrong. Any tips appreciated.
>>
>> Jul 24 05:15:29 weewx-deployment-vt-dev-54f7b44d6d-qsq5b weewx[28]: 
>> manager: Added record 2019-07-24 05:15:00 EDT (1563959700) to daily summary 
>> in 'weewx_vt_dev'
>> Jul 24 05:15:29 weewx-deployment-vt-dev-54f7b44d6d-qsq5b weewx[28]: 
>> engine: Launch of report thread aborted: existing report thread still 
>> running
>> Jul 24 05:15:29 weewx-deployment-vt-dev-54f7b44d6d-qsq5b weewx[28]: 
>> restx: MQTT: Published record 2019-07-24 05:15:00 EDT (1563959700)
>> Jul 24 05:15:30 weewx-deployment-vt-dev-54f7b44d6d-qsq5b weewx[28]: 
>> manager: Added record 2019-07-24 05:15:31 EDT (1563959731) to database 
>> 'weewx_vt_dev'
>> : 0, outTemp: 55.4, pressure: 28.6496180628, radiation: 0.0, rain: 0.0, 
>> rainAlarm: 0, rainRate: 0.0, soilLeafAlarm1: 0, soilLeafAlarm2: 0, 
>> soilLeafAlarm3: 0, soilLeafAlarm4: 0, stormRain: 0.07, stormStart: 
>> 1563768000, sunrise: 1563960300, sunset: 1564014060, trendIcon: 0, 
>> txBatteryStatus: 0, usUnits: 1, windchill: 55.4, windDir: 355.0, windGust: 
>> 1.0, windGustDir: 355.0, windSpeed: 1.0, windSpeed10: 0.0, yearET: 0.92, 
>> yearRain: 0.16
>> LOOP:   2019-07-24 05:15:16 EDT (1563959716) altimeter: 29.9279416577, 
>> appTemp: 56.72448544, barometer: 29.906, cloudbase: 1466.04677519, 
>> consBatteryVoltage: 4.78, dateTime: 1563959716, dayET: 0.0, dayRain: 0.0, 
>> dewpoint: 54.2777941892, extraAlarm1: 0, extraAlarm2: 0, extraAlarm3: 0, 
>> extraAlarm4: 0, extraAlarm5: 0, extraAlarm6: 0, extraAlarm7: 0, 
>> extraAlarm8: 0, forecastIcon: 6, forecastRule: 45, heatindex: 55.4, 
>> humidex: 59.8243535484, inDewpoint: 57.412055126, inHumidity: 57.0, 
>> insideAlarm: 0, inTemp: 73.6, leafWet4: 0.0, maxSolarRad: 0.0, monthET: 
>> 0.92, monthRain: 0.16, outHumidity: 96.0, outsideAlarm1: 0, outsideAlarm2: 
>> 0, outTemp: 55.4, pressure: 28.6496180628, radiation: 0.0, rain: 0.0, 
>> rainAlarm: 0, rainRate: 0.0, soilLeafAlarm1: 0, soilLeafAlarm2: 0, 
>> soilLeafAlarm3: 0, soilLeafAlarm4: 0, stormRain: 0.07, stormStart: 
>> 1563768000, sunrise: 1563960300, sunset: 1564014060, trendIcon: 0, 
>> txBatteryStatus: 0, usUnits: 1, windchill: 55.4, windDir: None, windGust: 
>> 1.0, windGustDir: 355.0, windSpeed: 0.0, windSpeed10: 0.0, yearET: 0.92, 
>> yearRain: 0.16
>> Unable to wake up console... sleeping
>> Unable to wake up co

Re: [weewx-user] rain 10x

2019-07-24 Thread Jardi Martínez
On Wed, Jul 24, 2019, 1:18 PM Kike .Asekas  wrote:

> I have my weewx configured with METRICWX. In my station console indicates
> 0,9 mm of rain, but in weewx i have 9 mm. Where can the fault be?
> Thank you.
>
> --
>
What station and driver are you using?
Can you post your weewx.conf file?

If all you want is for the reports to be in certain unit, you can do that
at in the reports section of your weewx.conf file. You don't need to change
the target unit for the observations stored in the database.

Jardi.

-- 
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/CAETA7dTVz8N-ah1wmgjcwyPQLB554mZUne%3DF94Aj-Cd5K-%3Dt8Q%40mail.gmail.com.


[weewx-user] rain 10x

2019-07-24 Thread Kike .Asekas
I have my weewx configured with METRICWX. In my station console indicates 
0,9 mm of rain, but in weewx i have 9 mm. Where can the fault be?
Thank you.

-- 
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/b53fd027-c6ac-4850-a63f-ac632085dae8%40googlegroups.com.


Re: [weewx-user] Temperature in jar for solar observation

2019-07-24 Thread Greg Troxel
Peter Leban  writes:

> I wonder how to plot the "solar" curve from sunrise on. Is the temp-offset 
> always considered as "15 degC" for sunny conditions or also this offset 
> slides over the curve? Anyone experimented on this?
> For the Weatherflow station, I implemented the logic to say the sky 
> conditions but there I get the solar value from the station itself.

My advice is to put this someplace and then gather data for a number of
full-blue-sky days, noting when it's in the sun.Then you can try to
curve fit the data to the calculated irradiance.   Or the irradiance
from a nearby station.

-- 
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/rmiblxjdxu1.fsf%40s1.lexort.com.


Re: [weewx-user] Re: RAM disc for web server data

2019-07-24 Thread Thomas Keffer
Weewx generates any missing NOAA files on every reporting cycle.

On Wed, Jul 24, 2019 at 1:23 PM vince  wrote:

> On Wednesday, July 24, 2019 at 8:06:37 AM UTC-7, James Muirhead wrote:
>>
>> Does it not regenerate all of the files on the webserver side every 5
>> minutes? Or does it only generate the ones it can't find? I got the
>> impression it regenerated everything.
>>
>>
>>
> The historical NOAA files are a weewx bootup thing only (ie, my previous
> 12 years of summaries, in my case).
>
> --
> 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/76401500-fba3-424a-9d72-aba1a89d1679%40googlegroups.com
> 
> .
>
-- 
-tk

-- 
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/CAPq0zEC9b3Y_teXGCzR5saoZ1TMTBox7AE26aREgGNrivWw3%2Bg%40mail.gmail.com.


[weewx-user] SQL Hosted on Synology NAS

2019-07-24 Thread gjr80
Hi,

Perhaps the log might have some clues? Try setting debug = 1 in weewx.conf then 
restart WeeWX. Let WeeWX run for a couple of archive periods then post the log 
from WeeWX startup. Make sure you post all of the startup sequence (please 
don’t post just part, the startup log provides important config info).

Gary

-- 
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/a9fb47f4-4803-4feb-9425-0ce5358c4860%40googlegroups.com.


[weewx-user] Re: RAM disc for web server data

2019-07-24 Thread vince
On Wednesday, July 24, 2019 at 8:06:37 AM UTC-7, James Muirhead wrote:
>
> Does it not regenerate all of the files on the webserver side every 5 
> minutes? Or does it only generate the ones it can't find? I got the 
> impression it regenerated everything.
>
>
>
The historical NOAA files are a weewx bootup thing only (ie, my previous 12 
years of summaries, in my case). 

-- 
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/76401500-fba3-424a-9d72-aba1a89d1679%40googlegroups.com.


[weewx-user] Re: AS3935 database issue

2019-07-24 Thread Peter Leban
I did this in another way. My AS3935 is connected to another RPi which 
reports the number of strokes in the recent minute. The "weewx" RPi 
downloads the file from AS3935 RPi every minute and stores the value into 
the new database entry (either one unused or create a new entry). Very 
simple and very effective. I keep the raw log (timestamp, energy, distance) 
in the AS3935 RPi if I ever want to check it.


Dne nedelja, 07. julij 2019 18.27.16 UTC+2 je oseba Mikael Fredriksson 
napisala:
>
> Hi.
>
> Trying to get the AS3935 lightning detector module to work in Weewx. 
> Seems like the module sends data to Weewx but there seems to be some issue 
> with the database. I´m stuck!
> Got this in syslog, as3935: callback failed: Missing value for record 
> field 'interval'
>
> Don´t know how to fix it, hope someone can help me out here!
>
>
> /Micael
>
>

-- 
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/39be62a9-de14-4598-8f3c-0be2b2b06c29%40googlegroups.com.


[weewx-user] Temperature in jar for solar observation

2019-07-24 Thread Peter Leban
I've few weather stations and not all have a solar sensor. For Vantage Vue, 
I was using Weather Display which has a very nice feature that correlates 
the temperature in a jar to external temperature to plot the solar curve. 
I'm not interested in the very accurate value but I use this value to 
calculate sky conditions (sunny, partly cloudy, cloudy, etc.). I switched 
to weewx now which doesn't have this feature (I think). My sensor is 
connected to the 1-wire-to-USB interface.
I probably could read the temperature value from a jar over 1-wire, then 
I'd use the external temperature and also set the offset (e.g. 15degC) 
between the two temperatures to say when the sky is clear and sun is 
highest (at noon/1pm). I also have a maxSolarRad value that would be my 
limit for that time of the day.
I wonder how to plot the "solar" curve from sunrise on. Is the temp-offset 
always considered as "15 degC" for sunny conditions or also this offset 
slides over the curve? Anyone experimented on this?
For the Weatherflow station, I implemented the logic to say the sky 
conditions but there I get the solar value from the station itself.
Thanks.

-- 
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/9837cbae-1fde-4815-b77f-1b2c38bedc84%40googlegroups.com.


[weewx-user] SQL Hosted on Synology NAS

2019-07-24 Thread Mike P
Hello everyone,

I tried searching and using the guide but I am struggling to get this to 
work. My knowledge of this is pretty limited so please bear with me.

I am trying to have the weewx use the mysql db (specifically MariaDB 10) on 
my NAS. I created the DB called weewx in phpMyAdmin and created a user 
account of weewx password weewx as recommend in the guide. I changed the 
config file to address weewx as the DB and changed the address of the DB to 
my internatl address, in this case 192.168.1.90:3307. It doesn't look like 
anything is feeding into the DB though.

Anything I did glaringly wrong or any assistance you can provide would be 
helpful.

Thanks,
Mike

-- 
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/edf0e11b-0121-43fe-b566-6ddfda3b0aa9%40googlegroups.com.


[weewx-user] Re: RAM disc for web server data

2019-07-24 Thread James Muirhead
Does it not regenerate all of the files on the webserver side every 5 
minutes? Or does it only generate the ones it can't find? I got the 
impression it regenerated everything.

-James Muirhead

On Wednesday, 24 July 2019 15:09:30 UTC+1, vince wrote:
>
> On Wednesday, July 24, 2019 at 6:55:42 AM UTC-7, James Muirhead wrote
>>
>> As the web server data is written to the SD every 5 minutes, I felt it 
>> would be appropriate to create a RAM disc for it. Should, in theory, 
>> improve lifespan of the SD card.
>> [...]
>>
>  
>
>> Just means, that on boot it can take up to 5 minutes for the web server 
>> to be populated with files and will likely return a 403 error when you try 
>> to look at it from a browser.
>>
>> I also created a temporary splash page that just says "loading, please 
>> wait." which is loaded by a cron entry on @reboot.
>>
>>  

> *cp /home/pi/temp-splash.html /var/www/html/index.html*
>>
>>
> Yes - I think several folks (including me) have posted something similar 
> along the same lines.   I have one pi that I run basically 'everything' in 
> ramdisk, although that of course loses you the syslogs if you need them for 
> forensics after a crash or the like.
>
> One thing you might think about is stashing your NOAA files to disk 
> periodically (couple times a day) and restoring them, as they take a long 
> time to regenerate as you get more and more data.  The other stuff will 
> regenerate quickly on firstboot of course.
>
>
>

-- 
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/a0c7400d-20fe-4375-86af-4d7108f6429a%40googlegroups.com.


[weewx-user] Re: MQTT Posting Loop but Archive not making it

2019-07-24 Thread Pat
I would advise you to change your mqtt_websockets_topic to 
"weather/vt-dev/loop". The # topic is the "firehose" and typically only 
used for troubleshooting. Using # in the skin can sometimes cause 
unintended things to happen. 

I'm trying to understand your question though. You're looking for the 
archive (REC) payload on your MQTT broker? If so, those show up in the loop 
topic I mentioned above. The only difference are the items within that 
payload that identify it as the archive packet. 




On Wednesday, July 24, 2019 at 5:26:43 AM UTC-4, Tom Mitchell wrote:
>
> Hello,
>
> Running weewx 3.9.2 and mqtt 0.18 and Belchertown skin v1.0.1.
>
> I have my own mosquitto server and all seems well with loop records. 
> However, archive records seem to be getting posted by the mqtt extension 
> but for the life of me I can not find them on the mqtt server, which I am 
> looking at with MQTT Explorer.
>
> Here is my relevant config:
>
> [[MQTT]]
> server_url = mqtt://xxx:y...@web.foo.bar:1883
> topic = weather/vt-dev
> unit_system = US
> binding = archive, loop
> aggregation = aggregate
>
>
>
> [[Belchertown]]
> HTML_ROOT = public_html/belchertown
> skin = Belchertown
> [[[Extras]]]
> [snip]
> mqtt_websockets_enabled = 1
> mqtt_websockets_ssl = 0
> mqtt_websockets_host = "web.foo.bar" #  The MQTT broker hostname or IP
> mqtt_websockets_port = 9001 #   The port of the MQTT broker's Websockets 
> port. Check your broker's documentation.
> mqtt_websockets_topic = "weather/vt-dev/#" #The topic to subscribe to 
> for your weather data
> disconnect_live_website_visitor = 180 #The number of seconds after a 
> visitor has loaded your page that we disconnect them from the live 
> streaming updates. The idea here is to save your broker from a streaming 
> connection that never ends. Time is in milliseconds. 0 = disabled. 30 = 
> 5 minutes. 180 = 30 minutes
>
> Log snippet: the blue highlighted records are making it fine (I can see 
> them in the client. The yellow ones seem to be leaving weewx but I am not 
> able to see them in the client. If I generate one manually and post it to 
> the archive topic, it shows up in the client.
>
> Wondering what I might be doing wrong. Any tips appreciated.
>
> Jul 24 05:15:29 weewx-deployment-vt-dev-54f7b44d6d-qsq5b weewx[28]: 
> manager: Added record 2019-07-24 05:15:00 EDT (1563959700) to daily summary 
> in 'weewx_vt_dev'
> Jul 24 05:15:29 weewx-deployment-vt-dev-54f7b44d6d-qsq5b weewx[28]: 
> engine: Launch of report thread aborted: existing report thread still 
> running
> Jul 24 05:15:29 weewx-deployment-vt-dev-54f7b44d6d-qsq5b weewx[28]: restx: 
> MQTT: Published record 2019-07-24 05:15:00 EDT (1563959700)
> Jul 24 05:15:30 weewx-deployment-vt-dev-54f7b44d6d-qsq5b weewx[28]: 
> manager: Added record 2019-07-24 05:15:31 EDT (1563959731) to database 
> 'weewx_vt_dev'
> : 0, outTemp: 55.4, pressure: 28.6496180628, radiation: 0.0, rain: 0.0, 
> rainAlarm: 0, rainRate: 0.0, soilLeafAlarm1: 0, soilLeafAlarm2: 0, 
> soilLeafAlarm3: 0, soilLeafAlarm4: 0, stormRain: 0.07, stormStart: 
> 1563768000, sunrise: 1563960300, sunset: 1564014060, trendIcon: 0, 
> txBatteryStatus: 0, usUnits: 1, windchill: 55.4, windDir: 355.0, windGust: 
> 1.0, windGustDir: 355.0, windSpeed: 1.0, windSpeed10: 0.0, yearET: 0.92, 
> yearRain: 0.16
> LOOP:   2019-07-24 05:15:16 EDT (1563959716) altimeter: 29.9279416577, 
> appTemp: 56.72448544, barometer: 29.906, cloudbase: 1466.04677519, 
> consBatteryVoltage: 4.78, dateTime: 1563959716, dayET: 0.0, dayRain: 0.0, 
> dewpoint: 54.2777941892, extraAlarm1: 0, extraAlarm2: 0, extraAlarm3: 0, 
> extraAlarm4: 0, extraAlarm5: 0, extraAlarm6: 0, extraAlarm7: 0, 
> extraAlarm8: 0, forecastIcon: 6, forecastRule: 45, heatindex: 55.4, 
> humidex: 59.8243535484, inDewpoint: 57.412055126, inHumidity: 57.0, 
> insideAlarm: 0, inTemp: 73.6, leafWet4: 0.0, maxSolarRad: 0.0, monthET: 
> 0.92, monthRain: 0.16, outHumidity: 96.0, outsideAlarm1: 0, outsideAlarm2: 
> 0, outTemp: 55.4, pressure: 28.6496180628, radiation: 0.0, rain: 0.0, 
> rainAlarm: 0, rainRate: 0.0, soilLeafAlarm1: 0, soilLeafAlarm2: 0, 
> soilLeafAlarm3: 0, soilLeafAlarm4: 0, stormRain: 0.07, stormStart: 
> 1563768000, sunrise: 1563960300, sunset: 1564014060, trendIcon: 0, 
> txBatteryStatus: 0, usUnits: 1, windchill: 55.4, windDir: None, windGust: 
> 1.0, windGustDir: 355.0, windSpeed: 0.0, windSpeed10: 0.0, yearET: 0.92, 
> yearRain: 0.16
> Unable to wake up console... sleeping
> Unable to wake up console... retrying
> REC:2019-07-24 05:15:00 EDT (1563959700) altimeter: 29.9279679062, 
> appTemp: 56.855466787, barometer: 29.906, cloudbase: 1466.15968472, 
> consBatteryVoltage: 4.78, dateTime: 1563959700, dayET: 0.0, dayRain: 0.0, 
> dewpoint: 54.3772973872, ET: 0.0, extraAlarm1: 0.0, extraAlarm2: 0.0, 
> extraAlarm3: 0.0, extraAlarm4: 0.0, extraAlarm5: 0.0, extraAlarm6: 0.0, 
> extraAlarm7: 0.0, extraAlarm8: 0.0, forecastIcon: 6.0, forecastRule: 45, 
> heatindex: 55.5, highOutTemp: 55.6, high

[weewx-user] Re: Seasons skin + MQTT

2019-07-24 Thread Pat
No offense taken, that's why there's many different skins available. 

I'm not sure what it would take to get MQTT into Seasons. I had never 
considered looking into it since it's not my skin. I can't imagine it's too 
terribly hard to setup but it would require development hours and 
maintenance time which I don't have currently. This could be a great 
project for anyone who wants to dive in for sure. Belchertown can offer an 
example of how to get MQTT working. 

To change the layout of Belchertown isn't in my roadmap of the skin. But 
the skin is using Bootstrap JS and CSS - which is really a series of 
elements in rows and columns. So in theory things could be 
removed/added/moved around relatively easily. Again - this could be a fun 
project for someone who wants to dive in. 



On Monday, July 22, 2019 at 1:59:35 AM UTC-4, Praveen Chandrasekaran wrote:
>
> Hi,
>
> While I do like many aspects of the Belchertown skin (with its live data 
> and the awesome graphs), I am still attached to the Seasons skin (No 
> offence Pat!).
>
> What I love about the Seasons skin is that everything is available on my 
> screen on mobile (all graphs etc) without having to scroll as against the 
> Belchertown skin
>
> With WU becoming pretty much useless I miss the live data at times as I am 
> still using Seasons skin. What would it take to get the data under Current 
> Weather in Seasons skin from MQTT? I am not too familiar with HTML or JS. 
> This is an idea that I had and thought of circulating it over here.
>
> Pat, On a related note, what would it take to format the Belchertown skin 
> similar to Seasons skin? :) I like everything about the Belchertown skin 
> just that I prefer the display format of Seasons over it still. 
>
> Regards,
> Praveen
>

-- 
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/be32f4bc-a1b7-4c08-9956-a5ccae66904a%40googlegroups.com.


[weewx-user] Re: RAM disc for web server data

2019-07-24 Thread vince
On Wednesday, July 24, 2019 at 6:55:42 AM UTC-7, James Muirhead wrote
>
> As the web server data is written to the SD every 5 minutes, I felt it 
> would be appropriate to create a RAM disc for it. Should, in theory, 
> improve lifespan of the SD card.
> [...]
>
 

> Just means, that on boot it can take up to 5 minutes for the web server to 
> be populated with files and will likely return a 403 error when you try to 
> look at it from a browser.
>
> I also created a temporary splash page that just says "loading, please 
> wait." which is loaded by a cron entry on @reboot.
>
> *cp /home/pi/temp-splash.html /var/www/html/index.html*
>
>
Yes - I think several folks (including me) have posted something similar 
along the same lines.   I have one pi that I run basically 'everything' in 
ramdisk, although that of course loses you the syslogs if you need them for 
forensics after a crash or the like.

One thing you might think about is stashing your NOAA files to disk 
periodically (couple times a day) and restoring them, as they take a long 
time to regenerate as you get more and more data.  The other stuff will 
regenerate quickly on firstboot of course.


-- 
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/710ca3d7-2bd1-42fa-ba35-b1d48ddb2e02%40googlegroups.com.


[weewx-user] RAM disc for web server data

2019-07-24 Thread James Muirhead
In case this is useful to anyone...

As the web server data is written to the SD every 5 minutes, I felt it 
would be appropriate to create a RAM disc for it. Should, in theory, 
improve lifespan of the SD card.

Anyhow, I just created an entry in */etc/fstab* for the folder which is 
just the weather data, in my case it's the root of the web server 
*/var/www/html* but in your case (and default) may be 
*/var/www/html/weather*.

The entry is...

*tmpfs /var/www/html tmpfs nodev,nosuid,size=20M 0 0*

I gave it 20MB of RAM even though the web server is currently using ~700KB, 
but I have 1GB of RAM total to play with and will allow for potential 
expansion. Plus, it's the only thing I have on this particular Pi (Orange 
Pi PC running Armbian).

Just means, that on boot it can take up to 5 minutes for the web server to 
be populated with files and will likely return a 403 error when you try to 
look at it from a browser.

I also created a temporary splash page that just says "loading, please 
wait." which is loaded by a cron entry on @reboot.

*cp /home/pi/temp-splash.html /var/www/html/index.html*

Hope this is useful to someone. Has been quite fun to instigate.

-James Muirhead.

-- 
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/ac488fc8-9624-43d8-bb84-58d626ffdd83%40googlegroups.com.


[weewx-user] Re: Database - Data not archived correctly

2019-07-24 Thread gjr80
Agree it is almost certainly the driver. Can you post the driver code you are 
using, or a link to the code, so we can have a look. As long as the driver is 
consistently emitting loop packets WeeWX should take care of the rest.

Gary

-- 
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/db3c4f48-d023-4729-990b-d5748188e1e4%40googlegroups.com.


[weewx-user] Re: MQTT Posting Loop but Archive not making it

2019-07-24 Thread Tom Mitchell
One followup question: the user.mqtt.MQTT extension is declared in the 
restful_services and the archive_services or just restful?


On Wednesday, July 24, 2019 at 5:26:43 AM UTC-4, Tom Mitchell wrote:
>
> Hello,
>
> Running weewx 3.9.2 and mqtt 0.18 and Belchertown skin v1.0.1.
>
> I have my own mosquitto server and all seems well with loop records. 
> However, archive records seem to be getting posted by the mqtt extension 
> but for the life of me I can not find them on the mqtt server, which I am 
> looking at with MQTT Explorer.
>
> Here is my relevant config:
>
> [[MQTT]]
> server_url = mqtt://xxx:y...@web.foo.bar:1883
> topic = weather/vt-dev
> unit_system = US
> binding = archive, loop
> aggregation = aggregate
>
>
>
> [[Belchertown]]
> HTML_ROOT = public_html/belchertown
> skin = Belchertown
> [[[Extras]]]
> [snip]
> mqtt_websockets_enabled = 1
> mqtt_websockets_ssl = 0
> mqtt_websockets_host = "web.foo.bar" #  The MQTT broker hostname or IP
> mqtt_websockets_port = 9001 #   The port of the MQTT broker's Websockets 
> port. Check your broker's documentation.
> mqtt_websockets_topic = "weather/vt-dev/#" #The topic to subscribe to 
> for your weather data
> disconnect_live_website_visitor = 180 #The number of seconds after a 
> visitor has loaded your page that we disconnect them from the live 
> streaming updates. The idea here is to save your broker from a streaming 
> connection that never ends. Time is in milliseconds. 0 = disabled. 30 = 
> 5 minutes. 180 = 30 minutes
>
> Log snippet: the blue highlighted records are making it fine (I can see 
> them in the client. The yellow ones seem to be leaving weewx but I am not 
> able to see them in the client. If I generate one manually and post it to 
> the archive topic, it shows up in the client.
>
> Wondering what I might be doing wrong. Any tips appreciated.
>
> Jul 24 05:15:29 weewx-deployment-vt-dev-54f7b44d6d-qsq5b weewx[28]: 
> manager: Added record 2019-07-24 05:15:00 EDT (1563959700) to daily summary 
> in 'weewx_vt_dev'
> Jul 24 05:15:29 weewx-deployment-vt-dev-54f7b44d6d-qsq5b weewx[28]: 
> engine: Launch of report thread aborted: existing report thread still 
> running
> Jul 24 05:15:29 weewx-deployment-vt-dev-54f7b44d6d-qsq5b weewx[28]: restx: 
> MQTT: Published record 2019-07-24 05:15:00 EDT (1563959700)
> Jul 24 05:15:30 weewx-deployment-vt-dev-54f7b44d6d-qsq5b weewx[28]: 
> manager: Added record 2019-07-24 05:15:31 EDT (1563959731) to database 
> 'weewx_vt_dev'
> : 0, outTemp: 55.4, pressure: 28.6496180628, radiation: 0.0, rain: 0.0, 
> rainAlarm: 0, rainRate: 0.0, soilLeafAlarm1: 0, soilLeafAlarm2: 0, 
> soilLeafAlarm3: 0, soilLeafAlarm4: 0, stormRain: 0.07, stormStart: 
> 1563768000, sunrise: 1563960300, sunset: 1564014060, trendIcon: 0, 
> txBatteryStatus: 0, usUnits: 1, windchill: 55.4, windDir: 355.0, windGust: 
> 1.0, windGustDir: 355.0, windSpeed: 1.0, windSpeed10: 0.0, yearET: 0.92, 
> yearRain: 0.16
> LOOP:   2019-07-24 05:15:16 EDT (1563959716) altimeter: 29.9279416577, 
> appTemp: 56.72448544, barometer: 29.906, cloudbase: 1466.04677519, 
> consBatteryVoltage: 4.78, dateTime: 1563959716, dayET: 0.0, dayRain: 0.0, 
> dewpoint: 54.2777941892, extraAlarm1: 0, extraAlarm2: 0, extraAlarm3: 0, 
> extraAlarm4: 0, extraAlarm5: 0, extraAlarm6: 0, extraAlarm7: 0, 
> extraAlarm8: 0, forecastIcon: 6, forecastRule: 45, heatindex: 55.4, 
> humidex: 59.8243535484, inDewpoint: 57.412055126, inHumidity: 57.0, 
> insideAlarm: 0, inTemp: 73.6, leafWet4: 0.0, maxSolarRad: 0.0, monthET: 
> 0.92, monthRain: 0.16, outHumidity: 96.0, outsideAlarm1: 0, outsideAlarm2: 
> 0, outTemp: 55.4, pressure: 28.6496180628, radiation: 0.0, rain: 0.0, 
> rainAlarm: 0, rainRate: 0.0, soilLeafAlarm1: 0, soilLeafAlarm2: 0, 
> soilLeafAlarm3: 0, soilLeafAlarm4: 0, stormRain: 0.07, stormStart: 
> 1563768000, sunrise: 1563960300, sunset: 1564014060, trendIcon: 0, 
> txBatteryStatus: 0, usUnits: 1, windchill: 55.4, windDir: None, windGust: 
> 1.0, windGustDir: 355.0, windSpeed: 0.0, windSpeed10: 0.0, yearET: 0.92, 
> yearRain: 0.16
> Unable to wake up console... sleeping
> Unable to wake up console... retrying
> REC:2019-07-24 05:15:00 EDT (1563959700) altimeter: 29.9279679062, 
> appTemp: 56.855466787, barometer: 29.906, cloudbase: 1466.15968472, 
> consBatteryVoltage: 4.78, dateTime: 1563959700, dayET: 0.0, dayRain: 0.0, 
> dewpoint: 54.3772973872, ET: 0.0, extraAlarm1: 0.0, extraAlarm2: 0.0, 
> extraAlarm3: 0.0, extraAlarm4: 0.0, extraAlarm5: 0.0, extraAlarm6: 0.0, 
> extraAlarm7: 0.0, extraAlarm8: 0.0, forecastIcon: 6.0, forecastRule: 45, 
> heatindex: 55.5, highOutTemp: 55.6, highRadiation: 0.0, humidex: 
> 59.9774261904, inDewpoint: 57.412055126, inHumidity: 57.0, insideAlarm: 
> 0.0, inTemp: 73.6, interval: 5, leafWet4: 0.0, lowOutTemp: 55.4, 
> maxSolarRad: 0.0, monthET: 0.92, monthRain: 0.16, outHumidity: 96.0, 
> outsideAlarm1: 0.0, outsideAlarm2: 0.0, outTemp: 55.5, pressure: 
> 28.6496433933, radiation: 0.0, rain: 0.0, rainAlarm: 0.0, ra

Re: [weewx-user] Re: Tutorial for installing WeeWX Docker?

2019-07-24 Thread Tom Mitchell
I have been playing with this for some time. I have a base weewx image and 
then I have containers that extend that image and add config, 
customizations, etc. I run it all in Kubernetes on Google for pretty cheap.

I built it for me, but I am happy to work with someone if they want to help 
generalize it all.

On Friday, May 17, 2019 at 8:00:26 PM UTC-4, Leon Shaner wrote:
>
> I could probably write something up, but I should first look at what has 
> already been done.  For example, I presume external DB and external syslog 
> listener would be best practices, since the container itself is throwaway. 
>  I'll think about it and see what I can come up with to streamline it.  =D
>
> Regards,
> \Leon
> --
> Leon Shaner :: Dearborn, Michigan (iPhone)
>
> On May 17, 2019, at 6:53 PM, vince > 
> wrote:
>
> On Friday, May 17, 2019 at 11:33:47 AM UTC-7, Roelof Schuiling wrote:
>>
>> Is there perhaps a tutorial available for installing a Docker image for 
>> WeeWX?
>>
>> I created a container from https://hub.docker.com/r/mitct02/weewx 
>> through Portainer (basically just pulling the image and linking a volume). 
>> It 's running, I can enter a terminal but I can't locate weewxd.
>>
>> Is there some explanation available for Docker, perhaps a step by step 
>> tutorial?
>>
>>
>>
> I would suggest asking the person who created that particular container.
>
> There are lots of docker explanations and tutorials, likely 'thousands' if 
> you do any google searching, if you're looking for more general tutorials.
>
>  
>
> -- 
> 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...@googlegroups.com .
> To view this discussion on the web visit 
> https://groups.google.com/d/msgid/weewx-user/d328e281-f0d2-4abd-bbab-bc9d5f2671f3%40googlegroups.com
>  
> 
> .
> For more options, visit https://groups.google.com/d/optout.
>
>

-- 
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/ca857778-a7d4-448d-84f1-99b9a7207e75%40googlegroups.com.


[weewx-user] MQTT Posting Loop but Archive not making it

2019-07-24 Thread Tom Mitchell
Hello,

Running weewx 3.9.2 and mqtt 0.18 and Belchertown skin v1.0.1.

I have my own mosquitto server and all seems well with loop records. 
However, archive records seem to be getting posted by the mqtt extension 
but for the life of me I can not find them on the mqtt server, which I am 
looking at with MQTT Explorer.

Here is my relevant config:

[[MQTT]]
server_url = mqtt://xxx:y...@web.foo.bar:1883
topic = weather/vt-dev
unit_system = US
binding = archive, loop
aggregation = aggregate



[[Belchertown]]
HTML_ROOT = public_html/belchertown
skin = Belchertown
[[[Extras]]]
[snip]
mqtt_websockets_enabled = 1
mqtt_websockets_ssl = 0
mqtt_websockets_host = "web.foo.bar" #  The MQTT broker hostname or IP
mqtt_websockets_port = 9001 #   The port of the MQTT broker's Websockets 
port. Check your broker's documentation.
mqtt_websockets_topic = "weather/vt-dev/#" #The topic to subscribe to 
for your weather data
disconnect_live_website_visitor = 180 #The number of seconds after a 
visitor has loaded your page that we disconnect them from the live 
streaming updates. The idea here is to save your broker from a streaming 
connection that never ends. Time is in milliseconds. 0 = disabled. 30 = 
5 minutes. 180 = 30 minutes

Log snippet: the blue highlighted records are making it fine (I can see 
them in the client. The yellow ones seem to be leaving weewx but I am not 
able to see them in the client. If I generate one manually and post it to 
the archive topic, it shows up in the client.

Wondering what I might be doing wrong. Any tips appreciated.

Jul 24 05:15:29 weewx-deployment-vt-dev-54f7b44d6d-qsq5b weewx[28]: 
manager: Added record 2019-07-24 05:15:00 EDT (1563959700) to daily summary 
in 'weewx_vt_dev'
Jul 24 05:15:29 weewx-deployment-vt-dev-54f7b44d6d-qsq5b weewx[28]: engine: 
Launch of report thread aborted: existing report thread still running
Jul 24 05:15:29 weewx-deployment-vt-dev-54f7b44d6d-qsq5b weewx[28]: restx: 
MQTT: Published record 2019-07-24 05:15:00 EDT (1563959700)
Jul 24 05:15:30 weewx-deployment-vt-dev-54f7b44d6d-qsq5b weewx[28]: 
manager: Added record 2019-07-24 05:15:31 EDT (1563959731) to database 
'weewx_vt_dev'
: 0, outTemp: 55.4, pressure: 28.6496180628, radiation: 0.0, rain: 0.0, 
rainAlarm: 0, rainRate: 0.0, soilLeafAlarm1: 0, soilLeafAlarm2: 0, 
soilLeafAlarm3: 0, soilLeafAlarm4: 0, stormRain: 0.07, stormStart: 
1563768000, sunrise: 1563960300, sunset: 1564014060, trendIcon: 0, 
txBatteryStatus: 0, usUnits: 1, windchill: 55.4, windDir: 355.0, windGust: 
1.0, windGustDir: 355.0, windSpeed: 1.0, windSpeed10: 0.0, yearET: 0.92, 
yearRain: 0.16
LOOP:   2019-07-24 05:15:16 EDT (1563959716) altimeter: 29.9279416577, 
appTemp: 56.72448544, barometer: 29.906, cloudbase: 1466.04677519, 
consBatteryVoltage: 4.78, dateTime: 1563959716, dayET: 0.0, dayRain: 0.0, 
dewpoint: 54.2777941892, extraAlarm1: 0, extraAlarm2: 0, extraAlarm3: 0, 
extraAlarm4: 0, extraAlarm5: 0, extraAlarm6: 0, extraAlarm7: 0, 
extraAlarm8: 0, forecastIcon: 6, forecastRule: 45, heatindex: 55.4, 
humidex: 59.8243535484, inDewpoint: 57.412055126, inHumidity: 57.0, 
insideAlarm: 0, inTemp: 73.6, leafWet4: 0.0, maxSolarRad: 0.0, monthET: 
0.92, monthRain: 0.16, outHumidity: 96.0, outsideAlarm1: 0, outsideAlarm2: 
0, outTemp: 55.4, pressure: 28.6496180628, radiation: 0.0, rain: 0.0, 
rainAlarm: 0, rainRate: 0.0, soilLeafAlarm1: 0, soilLeafAlarm2: 0, 
soilLeafAlarm3: 0, soilLeafAlarm4: 0, stormRain: 0.07, stormStart: 
1563768000, sunrise: 1563960300, sunset: 1564014060, trendIcon: 0, 
txBatteryStatus: 0, usUnits: 1, windchill: 55.4, windDir: None, windGust: 
1.0, windGustDir: 355.0, windSpeed: 0.0, windSpeed10: 0.0, yearET: 0.92, 
yearRain: 0.16
Unable to wake up console... sleeping
Unable to wake up console... retrying
REC:2019-07-24 05:15:00 EDT (1563959700) altimeter: 29.9279679062, 
appTemp: 56.855466787, barometer: 29.906, cloudbase: 1466.15968472, 
consBatteryVoltage: 4.78, dateTime: 1563959700, dayET: 0.0, dayRain: 0.0, 
dewpoint: 54.3772973872, ET: 0.0, extraAlarm1: 0.0, extraAlarm2: 0.0, 
extraAlarm3: 0.0, extraAlarm4: 0.0, extraAlarm5: 0.0, extraAlarm6: 0.0, 
extraAlarm7: 0.0, extraAlarm8: 0.0, forecastIcon: 6.0, forecastRule: 45, 
heatindex: 55.5, highOutTemp: 55.6, highRadiation: 0.0, humidex: 
59.9774261904, inDewpoint: 57.412055126, inHumidity: 57.0, insideAlarm: 
0.0, inTemp: 73.6, interval: 5, leafWet4: 0.0, lowOutTemp: 55.4, 
maxSolarRad: 0.0, monthET: 0.92, monthRain: 0.16, outHumidity: 96.0, 
outsideAlarm1: 0.0, outsideAlarm2: 0.0, outTemp: 55.5, pressure: 
28.6496433933, radiation: 0.0, rain: 0.0, rainAlarm: 0.0, rainRate: 0.0, 
rxCheckPercent: 98.875, soilLeafAlarm1: 0.0, soilLeafAlarm2: 0.0, 
soilLeafAlarm3: 0.0, soilLeafAlarm4: 0.0, stormRain: 0.07, stormStart: 
1563768000.0, sunrise: 1563960300.0, sunset: 1564014060.0, trendIcon: 0.0, 
txBatteryStatus: 0, usUnits: 1, windchill: 55.5, windDir: None, windGust: 
1.0, windGustDir: 0.0, windrun: 0.0, windSpeed: 0.0, windSpeed10: 0.0, 
yearE

[weewx-user] Re: Database - Data not archived correctly

2019-07-24 Thread Andrew Milner
>From the short bit of file you attached everything looked OK - the LOOP 
data seemed correct and so did the REC - however you only covered 1 archive 
period, and the value for that period seemed ok.

If you think you know what is happening then great, as there does not 
appear anything wrong in the short file you posted!



On Wednesday, 24 July 2019 09:08:05 UTC+3, Danie Cillie wrote:
>
> I think I am starting to understand what is happening.
>
> I'll try and explain what the symptoms are as clearly as possible:
>
> When the weewxd engine is started, all values are stored to the database. 
> However the humidity reading stays at the first level and does not change 
> unless the weewxd engine is restarted.
> This morning the humidity reading was still at the level displayed early 
> last night. Only when I restarted the weewxd engine did the value change.
>
> I am almost 100% certain that the problem is in the GrovePi driver.
> I thought that the driver was providing the correct values when looking at 
> the LOOP data but I'll have to monitor it over a longer period to see if it 
> actually changes.
>
> The LOOP data file is attached.
>
> Thank you for your help
>
> On Tuesday, 23 July 2019 19:05:53 UTC+2, Andrew Milner wrote:
>>
>> why do you say it is updated in the webpage and the database??  The data 
>> on the webpage comes from the database!!
>>
>> have you tried forcing a browser page reload (shift refresh usually) when 
>> things appear 'stuck'??  There is no reason whatsoever why humidity should 
>> be any different with regards updates than the other fields?
>>
>> you can capture the terminal output from running directly by sending the 
>> terminal output to a file as a simple way
>>
>> the log does not appear to show anything strange, and confirms that 
>> archive records are being written every 3 minutes
>>
>>
>>
>> On Tuesday, 23 July 2019 18:34:42 UTC+3, Danie Cillie wrote:
>>>
>>> *Here is the log information*
>>>
>>> On Tuesday, 23 July 2019 17:19:42 UTC+2, Danie Cillie wrote:

 By display I mean the html page in a web browser.
 I have since stopped and started weewx a few times and every time it 
 updates the humidity value on the webpage and in the database.
 I'll attach log shortly.

 How do I capture the LOOP and REC data?



 On Tuesday, 23 July 2019 16:53:33 UTC+2, Andrew Milner wrote:
>
> what does the log say from startup until two archive intervals have 
> passed??
>
> the answer usually lies in the log - so please post your log from 
> startup until two intervals later.
>
> Also, as a seperate exercise, can you post the result of running weewx 
> directly and give us the LOOP and REC data for at least two archive 
> intervals.
>
> When you say the humidity updated what exacgly do you mean - in a 
> report, in weewx.sdb or somewhere else.  When you say humidity is 
> displayed 
> as 48% where and how is it displayed?  weewx does not 'display' data 
> anywhere it merely stores archive data in a database, runs a report 
> generator to create html pages and outpts data to other places - there is 
> no 'display' anywhere
>
>
>
>
>
> On Tuesday, 23 July 2019 17:46:55 UTC+3, Danie Cillie wrote:
>>
>> Since my last message, the humidity was displayed as 48% (last 3 
>> hours) even though we had rain and the direct sensor reading was 94%.
>>
>> Just out of desperation I stopped the weewx engine and restarted and 
>> the humidity updated.
>> So for some reason it only updates when the weewx engine starts.
>>
>>
>>
>>
>> On Tuesday, 23 July 2019 13:39:42 UTC+2, Andrew Milner wrote:
>>>
>>> that is correct.  BUt you really should not see much difference 
>>> between polling values if you are polling at 2.5 seconds!!  But the 
>>> value 
>>> which is archived will be the average value over the 3 minute archive 
>>> period.
>>>
>>> If you are displaying the LOOP packets - the values written to the 
>>> database are in the REC packet - which should occur once every 3 
>>> minutes - 
>>> and they are ALL averaged values for values received in the LOOP 
>>> packets of 
>>> the interval - pressure, temperature, humidity etc etc
>>>
>>> On Tuesday, 23 July 2019 14:32:17 UTC+3, Danie Cillie wrote:

 The archive period you refer to, is that the value set in the 
 weewx.conf file? I have reduced that to 240 or 3 minutes. If I 
 understand 
 you correctly, the average is over the 3 minute period until the next 
 write 
 is done to the database.
 If I run weewxd directly, (sudo weewxd weewx.conf) the LOOP values 
 are correct.
 Then I assume the values read (poll_interval is 2.5 seconds) in the 
 3 minute period is averaged and written to the database, is that 
 cor

[weewx-user] Re: AS3935 database issue

2019-07-24 Thread dan Forster
Mikael,

Superb.

In order for me to add this to the Seasons skin I did this: -

*Edit /etc/weewx/skins/Seasons/current.inc and add the labels and data: -*


$obs.label.rainRate
$current.rainRate
  
  
$obs.label.rain_today
$day.rain.sum
  







*$obs.label.lightning_strikes$day.lightning_strikes.sum  
$obs.label.avg_distance$year.avg_distance.last  *

*I also edited (in the same directory) skin.conf and added the following to 
get the correct labels to show in the skin: -*

[Labels]

# Override some labels. No need to identify these as a "Battery"
# or "Voltage", because that is included in the template.
[[Generic]]
txBatteryStatus  = Transmitter
windBatteryStatus= Wind
rainBatteryStatus= Rain
outTempBatteryStatus = Outside Temperature
inTempBatteryStatus  = Inside Temperature
consBatteryVoltage   = Console
heatingVoltage   = Heating
supplyVoltage= Supply
referenceVoltage = Reference

# Some specialized labels
rain_today   = Rain Today
wind = Wind
l
*ightning_strikes= Lightning Strikes Todayavg_distance 
= Distance (Last Strike)*

I have added a screenshot to show how the results display.


Cheers

[image: Screenshot 2019-07-24 at 09.14.55.png]
Dan


On Monday, 22 July 2019 19:55:57 UTC+1, Mikael Fredriksson wrote:
>
>
>
> And use it like this for example in a web page:
>>
>>
> Lightning strikes 
> today$day.lightning_strikes.sum
> Distance (Last 
> strike)$year.avg_distance.last$year.avg_distance.lasttime
>
> Will result in:
>
> Lightning strikes (<40km)
> Lightning strikes today 0 
> Distance (Last strike) 20 km 2019-07-21 19:50:00
>

-- 
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/167fe53e-16d7-48f8-9748-ead138b427e6%40googlegroups.com.