[weewx-user] Klimalogg Pro on Synology NAS

2019-01-01 Thread wolfcram
Hello, I successfully installed weewx on my Synology DS111, using a 
Klimalogg Pro with four sensors. Works really well so far.

I have two questions however.

1) I cannot get the logs to be recorded properly. From the startup script, 
DSM (the synology OS) says "/sbin/syslogd: No such file or directory".

2) I cannot get wee_device to work:
system/bin/wee_device
Using configuration file /volume1/homes/weewx/system/weewx.conf
Using KlimaLogg driver version 1.3.6 (user.kl)
Querying the station for the configuration...
No data after 30 seconds (press the USB button to start communication)

I confirm that the USB connection works for all regular function, I just 
seem to be unable to use wee_device.

The reason why I was looking at wee_device was that I was hoping (perhaps 
in vain) to use it to get more info about the actual hardware in the 
Klimalogg Pro, allowing me to figure out how to download the full data from 
it. It seems that any data successfully downloaded from it is still there, 
but I can't access it with weewx.

Any help and suggestions appreciated!

-- 
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.
For more options, visit https://groups.google.com/d/optout.


Re: [weewx-user] Re: weewx, Interceptor, WS-2902A, Skipping Data and Parse Errors

2019-01-01 Thread WILWetter25
Kein Problem!

-- 
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.
For more options, visit https://groups.google.com/d/optout.


[weewx-user] Re: Cumulus Data Import & File Generation Questions

2019-01-01 Thread Greg from Oz
I have delete my /var/www/html/weewx directory and then run wee_reports and 
everything gets recreated.
I usually have weewx stopped when doing stuff. It catches up eventually 
with new records.
wee_database /etc/weewx/weewx.conf --drop-daily  
wee_database /etc/weewx/weewx.conf --rebuild-daily 

My Cumulus was the old Cumulus so hopefully your log files are the same?


http://www.weewx.com/docs/utilities.htm#Importing_from_Cumulus

I converted ages ago and it work fine.
The conf file tells where you have placed all the cumulus log giles. 
EG Feb17log.txt etc
The conf file also tells the converter what units to use:
[[Units]]
temperature = degree_C  # options are 'degree_F' or 'degree_C'
pressure= hPa   # options are 'inHg', 'mbar' or 'hPa'
rain= mm# options are 'inch' or 'mm'
speed   = km_per_hour   # options are 'mile_per_hour',
# 'km_per_hour', 'knot' or
# 'meter_per_second'

I wrote a script to do it I use mysql as I like it better than mysqlite:
#!/bin/bash
#this is to import my Cumulus data into weewx
echo number of records to be processed:

mysql -u weewx -pweewx << EOF
use weewx;
select count(*) from archive;
EOF

echo backup weewx just in case
sudo /usr/bin/mysqldump --user=root -p weewx  >  /tmp/weewx-$(date 
+%T).sql

echo press enter to continue next line is dry run option first

read answer

sudo wee_import --import-config=/home/user/cumulus.conf 
#sudo wee_import --import-config=/home/user/cumulus.conf --dry-run

echo "After running this then do this: UPDATE archive SET rain=0 
WHERE ( rain > 700) ;"

echo then run a drop daily and a rebuild daily


On Wednesday, 2 January 2019 08:36:46 UTC+11, MikeQ wrote:
>
> I am moving over from Cumulus to weeWX both running on a RPi, both talking 
> to a VP2 Console, and both ftp'ing the generated web pages to my Web Server 
> on another box..  I had no problems getting weeWX running on the RPi with 
> the standard options.
>
> Now I am trying to import my old Cumulus data (going back to 2011) to the 
> SQLLite DB and causing myself much confusion.  After several hours, I 
> believe I have the process squared away now, but I still have a couple of 
> questions that I am not sure about.  Part of my confusion came from not 
> running wee-import as sudo initially and generating thousands of read-only 
> database errors in syslog.  After figuring that out, I narrowed down what I 
> was trying to import and then using NOAA reports to verify that the data 
> was properly imported.  This caused more confusion as some of the reports 
> were completely blank and some only had partial data even though it 
> appeared all the records had been imported to SQLLite without any errors.
>
> While reading another group post, I found that someone deleted their NOAA 
> files and let weeWX regenerate them.  After doing the same thing on my RPi, 
> I fixed my missing NOAA report info issue.  So that leaves my two questions:
>
> 1. I assumed (we all know that didn't go well) that weeWX would recognize 
> there was new info added to the DB and regenerate the previous NOAA 
> reports.  Apparently though, those files are only generated if they are 
> missing.  Is that correct?  So if I wanted to regenerate the entire 
> /var/www/html/weewx directory, I could just delete the files from it and at 
> the next archive interval weeWX would regenerate it?
>
> 2. I also read in another post about importing Cumulus files in ascending 
> date order and running 'wee_database --drop-daily' if that was not done. In 
> reviewing wee_database I see there is also a --check option and a 
> --rebuild-daily option. Since I have been bouncing around chronologically 
> doing my imports (I thought there might be an issue with Cumulus v1.9.1 -> 
> v1.9.4 log files which I have), should I run one or more of the 
> wee_database options after my imports are completed to verify there are no 
> issues with the DB?  Does weeWX need to be stopped when running 
> wee_database?
>
> 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.
For more options, visit https://groups.google.com/d/optout.


Re: [weewx-user] Re: weewx, Interceptor, WS-2902A, Skipping Data and Parse Errors

2019-01-01 Thread Scott Grayban
Danke !

On Tuesday, January 1, 2019 at 2:41:18 PM UTC-8, WILWetter25 wrote:
>
> Ich würde weewx stoppen 
> Das Netzwerk nach RaspAP oder Hostapd erstellen 
> Anschließend die Wetterstation mit dem Netzwerk verbinden, danach den 
> interceptor Treiber installieren. Danach die Weewx.conf Datei überarbeiten 
> (wie in der Anleitung). Aber darauf achten, dass beim Treiber "Simulator" 
> steht! 
> Und danach weewx neu starten. Anschließend sollte es funktionieren. Ich 
> habe das leider noch nicht selbst ausprobieren können. 
> Leider habe ich in den nächsten Tagen nicht so viel Zeit um noch was 
> ausprobieren :)

-- 
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.
For more options, visit https://groups.google.com/d/optout.


Re: [weewx-user] Re: weewx, Interceptor, WS-2902A, Skipping Data and Parse Errors

2019-01-01 Thread WILWetter25
Ich würde weewx stoppen 
Das Netzwerk nach RaspAP oder Hostapd erstellen
Anschließend die Wetterstation mit dem Netzwerk verbinden, danach den 
interceptor Treiber installieren. Danach die Weewx.conf Datei überarbeiten (wie 
in der Anleitung). Aber darauf achten, dass beim Treiber "Simulator" steht! 
Und danach weewx neu starten. Anschließend sollte es funktionieren. Ich habe 
das leider noch nicht selbst ausprobieren können. 
Leider habe ich in den nächsten Tagen nicht so viel Zeit um noch was 
ausprobieren :)

-- 
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.
For more options, visit https://groups.google.com/d/optout.


Re: [weewx-user] Re: weewx, Interceptor, WS-2902A, Skipping Data and Parse Errors

2019-01-01 Thread Scott Grayban
So let's say in my case I already am using weewx but I want to change my 
WS, which I did buy a new Ambient, and I don't want to lose any data from 
the previous WS. All I need to do is change out the driver and add the 
right settings for Observer correct?

I am assuming I will have to move the existing weewx to the PI I have the 
AP on correct ?

On Tuesday, January 1, 2019 at 2:14:38 PM UTC-8, WILWetter25 wrote:
>
> I will Show two ways on Wiki. One with RaspAP and with hostapd :)

-- 
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.
For more options, visit https://groups.google.com/d/optout.


Re: [weewx-user] Re: weewx, Interceptor, WS-2902A, Skipping Data and Parse Errors

2019-01-01 Thread G Hammer
I used hostapd because it didn’t affect other services, and for my machine,
made configuration easier.

On Tue, Jan 1, 2019 at 5:14 PM WILWetter25 
wrote:

> I will Show two ways on Wiki. One with RaspAP and with hostapd :)
>
> --
> You received this message because you are subscribed to a topic in the
> Google Groups "weewx-user" group.
> To unsubscribe from this topic, visit
> https://groups.google.com/d/topic/weewx-user/6ihvgtwnEGo/unsubscribe.
> To unsubscribe from this group and all its topics, send an email to
> weewx-user+unsubscr...@googlegroups.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.
For more options, visit https://groups.google.com/d/optout.


Re: [weewx-user] Re: weewx, Interceptor, WS-2902A, Skipping Data and Parse Errors

2019-01-01 Thread WILWetter25
I will Show two ways on Wiki. One with RaspAP and with hostapd :)

-- 
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.
For more options, visit https://groups.google.com/d/optout.


Re: [weewx-user] Re: weewx, Interceptor, WS-2902A, Skipping Data and Parse Errors

2019-01-01 Thread Scott Grayban
That's ok I speak and write German. I'll look at that.

On Tuesday, January 1, 2019 at 2:00:06 PM UTC-8, WILWetter25 wrote:
>
> There are another ways to create a AP. If you dont want to use RaspAP you 
> could try this:
>
>
> https://www.elektronik-kompendium.de/sites/raspberry-pi/2002171.htm
>
> But its in German :) 
>
>

-- 
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.
For more options, visit https://groups.google.com/d/optout.


Re: [weewx-user] Re: weewx, Interceptor, WS-2902A, Skipping Data and Parse Errors

2019-01-01 Thread WILWetter25
There are another ways to create a AP. If you dont want to use RaspAP you could 
try this:


https://www.elektronik-kompendium.de/sites/raspberry-pi/2002171.htm

But its in German :) 

-- 
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.
For more options, visit https://groups.google.com/d/optout.


Re: [weewx-user] Re: weewx, Interceptor, WS-2902A, Skipping Data and Parse Errors

2019-01-01 Thread Scott Grayban
Hmmm it wants to install Lighthttpd. I'll have to remove that so it 
doesn't break my apache install that I need. Might want to mention that in 
the instructions when you post on the WIKI.

On Tuesday, January 1, 2019 at 1:43:45 PM UTC-8, WILWetter25 wrote:
>
> Sure Just follow my steps, I have posted :)
>
> And I will look when I can Post it on a wiki. Sometime in the next days :)
>

-- 
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.
For more options, visit https://groups.google.com/d/optout.


Re: [weewx-user] Re: weewx, Interceptor, WS-2902A, Skipping Data and Parse Errors

2019-01-01 Thread WILWetter25
Sure Just follow my steps, I have posted :)

And I will look when I can Post it on a wiki. Sometime in the next days :)

-- 
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.
For more options, visit https://groups.google.com/d/optout.


[weewx-user] Re: Displaying Each Year's Graphs

2019-01-01 Thread John Smith


On Tuesday, 1 January 2019 23:27:17 UTC+11, Cycle London wrote:
>
> Hi,
> As it's now happy new year time, I can finally see a full year's data. 
>  But if I go to 'current' and then click on 'Year', I get the data for 2019 
> - i.e. today.  
>
> If I click on the drop-down menu 'select year' and choose 2018, I get an 
> ASCII graph.  This is fine, but is there any way to get the graphs for 
> 2018, presented in the same way that they were up to midnight last night 
> (or 'this morning', if you prefer)? 
>

I submitted code to do graphs for last year, month, day but it was rejected

https://github.com/weewx/weewx/pull/324 

-- 
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.
For more options, visit https://groups.google.com/d/optout.


[weewx-user] Cumulus Data Import & File Generation Questions

2019-01-01 Thread MikeQ
I am moving over from Cumulus to weeWX both running on a RPi, both talking 
to a VP2 Console, and both ftp'ing the generated web pages to my Web Server 
on another box..  I had no problems getting weeWX running on the RPi with 
the standard options.

Now I am trying to import my old Cumulus data (going back to 2011) to the 
SQLLite DB and causing myself much confusion.  After several hours, I 
believe I have the process squared away now, but I still have a couple of 
questions that I am not sure about.  Part of my confusion came from not 
running wee-import as sudo initially and generating thousands of read-only 
database errors in syslog.  After figuring that out, I narrowed down what I 
was trying to import and then using NOAA reports to verify that the data 
was properly imported.  This caused more confusion as some of the reports 
were completely blank and some only had partial data even though it 
appeared all the records had been imported to SQLLite without any errors.

While reading another group post, I found that someone deleted their NOAA 
files and let weeWX regenerate them.  After doing the same thing on my RPi, 
I fixed my missing NOAA report info issue.  So that leaves my two questions:

1. I assumed (we all know that didn't go well) that weeWX would recognize 
there was new info added to the DB and regenerate the previous NOAA 
reports.  Apparently though, those files are only generated if they are 
missing.  Is that correct?  So if I wanted to regenerate the entire 
/var/www/html/weewx directory, I could just delete the files from it and at 
the next archive interval weeWX would regenerate it?

2. I also read in another post about importing Cumulus files in ascending 
date order and running 'wee_database --drop-daily' if that was not done. In 
reviewing wee_database I see there is also a --check option and a 
--rebuild-daily option. Since I have been bouncing around chronologically 
doing my imports (I thought there might be an issue with Cumulus v1.9.1 -> 
v1.9.4 log files which I have), should I run one or more of the 
wee_database options after my imports are completed to verify there are no 
issues with the DB?  Does weeWX need to be stopped when running 
wee_database?

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.
For more options, visit https://groups.google.com/d/optout.


Re: [weewx-user] Re: weewx, Interceptor, WS-2902A, Skipping Data and Parse Errors

2019-01-01 Thread Scott Grayban
Can I make a current PI I use to become the PI AP without breaking it ? I'm 
assuming yes so long as it has wired internet. ?

On Tuesday, January 1, 2019 at 3:37:28 AM UTC-8, WILWetter25 wrote:
>
> First you have to to set up the Raspberry, that you can use it like a 
> wireless router.
> 1. Connect the raspbbery via LAN with your internet-router.
> 2. Install raspbian.
> 3. Create a network with RaspAP
> 3.1 use the command: wget -q https://git.io/voEUQ -O /tmp/raspap && bash 
> /tmp/raspap to install RaspAP
> 3.2 Go to the webgui with the IP: 10.3.141.1 in your Browser.
> 3.3 Log in with the username: "admin" and the password "secret" 
> Info: the First Network is running with the SSID "raspi-webgui" with the 
> password "ChangeMe".
> 3.4 for security you should change the SSID and your password like you 
> want.
>
> Then connect the weatherstation with the Network
> 1. Download the Ambient Tool from Play Store
> 2. Connect the weatherstation with this Network.
> Info: the steps how are explained in the App.
>
> Install weewx
> 1 use These commands to Install weewx
> 1.1 wget -qO - http://weewx.com/keys.html | sudo apt-key add -
> 1.2 wget -qO - http://weewx.com/apt/weewx.list | sudo tee 
> /etc/apt/sources.list.d/weewx.list
> 1.3 sudo apt-get update
> 1.4 sudo apt-get install weewx
> 1.5 follow the installation steps. Choose the Driver "Simulator" 
>
> Install the Interceptor Driver:
> 1. Install python libpcap with: sudo apt-get install python-libpcap
> 2. Download the Driver: wget -O weewx-interceptor.zip 
> https://github.com/matthewwall/weewx-interceptor/archive/master.zip
> 3. Install the driver: sudo wee_extension --install 
> weewx-interceptor-master.zip
> Info: Sometimes the Name is changed in interceptor-master.zip or 
> master.zip. The best way: Look in your Downloads folder there is the 
> correct name of the File. Then you have may change the command.
> 4. Reconfigure the weewx.conf File 
> With "sudo wee_config --reconfigure --" and "driver=user.interceptor 
> --no-prompt"
>
> Configure the weewx.conf-file
>
> At the end of the File, in the [Interceptor] section. Or should be Look 
> like this:
>
> [Interceptor]
>
>   driver = user.interceptor
>
>   device_type = observer
>
>   mode = sniff
>
>   iface = wlan0
>
>   pcap_filter = src 10.3.141.136 and dst port 80
>
> Info: the IP could be changed. If you dont know your IP: Go to the Ambient 
> Tool in your Smartphone and Look to connected divices.
>
> At Last restart weewx with sudo etc/init.d/weewx stop and etc/init.d/weewx 
> start
>
> I think thats all.
>
> If you have question Just ask :)
>
> Happy New Year to all :)
>
>

-- 
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.
For more options, visit https://groups.google.com/d/optout.


Re: [weewx-user] Re: weewx, Interceptor, WS-2902A, Skipping Data and Parse Errors

2019-01-01 Thread G Hammer
There is and it is quite useful.
weewx wiki 

On Tuesday, January 1, 2019 at 3:14:40 PM UTC-5, WILWetter25 wrote:
>
> Sure I can Post it on a Wiki :) is there a Wiki for this? :) 

-- 
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.
For more options, visit https://groups.google.com/d/optout.


Re: [weewx-user] Re: weewx, Interceptor, WS-2902A, Skipping Data and Parse Errors

2019-01-01 Thread WILWetter25
Sure I can Post it on a Wiki :) is there a Wiki for this? :) 

-- 
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.
For more options, visit https://groups.google.com/d/optout.


Re: [weewx-user] Re: weewx, Interceptor, WS-2902A, Skipping Data and Parse Errors

2019-01-01 Thread G Hammer
Thank you very much.
Any chance you could paste this into the wiki?
Much easier to find there going forward.

On Tuesday, January 1, 2019 at 6:37:28 AM UTC-5, WILWetter25 wrote:
>
> First you have to to set up the Raspberry, that you can use it like a 
> wireless router.
> 1. Connect the raspbbery via LAN with your internet-router.
> 2. Install raspbian.
> 3. Create a network with RaspAP
> 3.1 use the command: wget -q https://git.io/voEUQ -O /tmp/raspap && bash 
> /tmp/raspap to install RaspAP
> 3.2 Go to the webgui with the IP: 10.3.141.1 in your Browser.
> 3.3 Log in with the username: "admin" and the password "secret" 
> Info: the First Network is running with the SSID "raspi-webgui" with the 
> password "ChangeMe".
> 3.4 for security you should change the SSID and your password like you 
> want.
>
> Then connect the weatherstation with the Network
> 1. Download the Ambient Tool from Play Store
> 2. Connect the weatherstation with this Network.
> Info: the steps how are explained in the App.
>
> Install weewx
> 1 use These commands to Install weewx
> 1.1 wget -qO - http://weewx.com/keys.html | sudo apt-key add -
> 1.2 wget -qO - http://weewx.com/apt/weewx.list | sudo tee 
> /etc/apt/sources.list.d/weewx.list
> 1.3 sudo apt-get update
> 1.4 sudo apt-get install weewx
> 1.5 follow the installation steps. Choose the Driver "Simulator" 
>
> Install the Interceptor Driver:
> 1. Install python libpcap with: sudo apt-get install python-libpcap
> 2. Download the Driver: wget -O weewx-interceptor.zip 
> https://github.com/matthewwall/weewx-interceptor/archive/master.zip
> 3. Install the driver: sudo wee_extension --install 
> weewx-interceptor-master.zip
> Info: Sometimes the Name is changed in interceptor-master.zip or 
> master.zip. The best way: Look in your Downloads folder there is the 
> correct name of the File. Then you have may change the command.
> 4. Reconfigure the weewx.conf File 
> With "sudo wee_config --reconfigure --" and "driver=user.interceptor 
> --no-prompt"
>
> Configure the weewx.conf-file
>
> At the end of the File, in the [Interceptor] section. Or should be Look 
> like this:
>
> [Interceptor]
>
>   driver = user.interceptor
>
>   device_type = observer
>
>   mode = sniff
>
>   iface = wlan0
>
>   pcap_filter = src 10.3.141.136 and dst port 80
>
> Info: the IP could be changed. If you dont know your IP: Go to the Ambient 
> Tool in your Smartphone and Look to connected divices.
>
> At Last restart weewx with sudo etc/init.d/weewx stop and etc/init.d/weewx 
> start
>
> I think thats all.
>
> If you have question Just ask :)
>
> Happy New Year to all :)
>
>

-- 
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.
For more options, visit https://groups.google.com/d/optout.


[weewx-user] Re: Displaying Each Year's Graphs

2019-01-01 Thread vince
On Tuesday, January 1, 2019 at 4:27:17 AM UTC-8, Cycle London wrote:
>
> As it's now happy new year time, I can finally see a full year's data. 
>  But if I go to 'current' and then click on 'Year', I get the data for 2019 
> - i.e. today.  
>
> If I click on the drop-down menu 'select year' and choose 2018, I get an 
> ASCII graph.  This is fine, but is there any way to get the graphs for 
> 2018, presented in the same way that they were up to midnight last night 
> (or 'this morning', if you prefer)? 
>
>
I'm not sure that I'm understanding the question.


   - If you use the dropdown list of months or years, you will see the NOAA 
   text file for the selected month or year.
   - If you want to see day/week/month/year graphs, do not use the 
   dropdown, use the current/week/month/year buttons above the dropdown menu. 
Then you'll get a running day/week/month/year of plots.
   

-- 
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.
For more options, visit https://groups.google.com/d/optout.


[weewx-user] Re: use Weewx on raspberry

2019-01-01 Thread Pat
Exactly correct. I'm SSH'd to his Pi and debugging now. Will probably need 
more help soon but for now the driver is at least working. Unsure on 
validity of sensor values quite yet. 

On Tuesday, January 1, 2019 at 2:30:19 PM UTC-5, gjr80 wrote:
>
> In this case the problem is your code is trying use a BYOWS object before 
> the BYOWS class has been defined. You need to re-structure your code to 
> avoid calling the class before it is defined.
>
> 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.
For more options, visit https://groups.google.com/d/optout.


[weewx-user] Re: use Weewx on raspberry

2019-01-01 Thread gjr80
In this case the problem is your code is trying use a BYOWS object before the 
BYOWS class has been defined. You need to re-structure your code to avoid 
calling the class before it is defined.

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.
For more options, visit https://groups.google.com/d/optout.


[weewx-user] Belchertown Skin 0.8.2 Released

2019-01-01 Thread WILWetter25
Thank you for your great work :)

-- 
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.
For more options, visit https://groups.google.com/d/optout.


[weewx-user] Deutsche Skins für Weewx und skin aktualisierungsrate Weewx

2019-01-01 Thread WILWetter25
Also ich habe für mich noch den Belchertown-Skin von Pat auf Deutsch übersetzt.

http://www.wetter-wittlich.de

-- 
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.
For more options, visit https://groups.google.com/d/optout.


[weewx-user] Re: Steel Series Gauges

2019-01-01 Thread nineback
I was testing the files on my local Window's Machine and getting the 
message.  Once I tested them on my off-site server all is well.

Tom

On Tuesday, January 1, 2019 at 10:30:52 AM UTC-6, nine...@gmail.com wrote:
>
> I installed the gauges uses the weex install script.  Files are being 
> produced in my var/www/html/weewx/ss directory.  When I run the index.html 
> file the gauges show up just fine except I get an error: in the led display 
> and no data is shown on the gauges.  I suspect it s something to do with 
> the location of the gauge-data.txt file but not sure?  The gauge-data.txt 
> file in the html/ss directory.
>
> Tom
>

-- 
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.
For more options, visit https://groups.google.com/d/optout.


Re: [weewx-user] Re: use Weewx on raspberry

2019-01-01 Thread Pat O'Brien
Yes you can send me a private mail. I can't look at it for a few hours.
Maybe you can leave it there for a day or so? Send me a login and your home
ip in private mail.

On Tue, Jan 1, 2019, 11:18 AM Patrick Tranchant  wrote:

> I am ready Pat
>
>
> On Saturday, December 8, 2018 at 3:40:43 PM UTC+1, Patrick Tranchant wrote:
>>
>> hello I am a newbie from France ( sorry for my english )
>>
>> I want to use weewx on a raspberry with a weather station built by myself
>> (view on Magpi)
>> I don't see my station on your website to configure :
>>
>> Weather Station Hardware Comparison: I don't found my weather station.
>> Do you have a solution or how to configure Weewx
>>
>> thank you for your help
>>
>> Patrick
>>
> --
> You received this message because you are subscribed to a topic in the
> Google Groups "weewx-user" group.
> To unsubscribe from this topic, visit
> https://groups.google.com/d/topic/weewx-user/ZoDjJYZJR9o/unsubscribe.
> To unsubscribe from this group and all its topics, send an email to
> weewx-user+unsubscr...@googlegroups.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.
For more options, visit https://groups.google.com/d/optout.


[weewx-user] Steel Series Gauges

2019-01-01 Thread nineback
I installed the gauges uses the weex install script.  Files are being 
produced in my var/www/html/weewx/ss directory.  When I run the index.html 
file the gauges show up just fine except I get an error: in the led display 
and no data is shown on the gauges.  I suspect it s something to do with 
the location of the gauge-data.txt file but not sure?  The gauge-data.txt 
file in the html/ss directory.

Tom

-- 
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.
For more options, visit https://groups.google.com/d/optout.


[weewx-user] Re: use Weewx on raspberry

2019-01-01 Thread Patrick Tranchant
I am ready Pat

On Saturday, December 8, 2018 at 3:40:43 PM UTC+1, Patrick Tranchant wrote:
>
> hello I am a newbie from France ( sorry for my english )
>
> I want to use weewx on a raspberry with a weather station built by myself 
> (view on Magpi)
> I don't see my station on your website to configure :
>
> Weather Station Hardware Comparison: I don't found my weather station.
> Do you have a solution or how to configure Weewx
>
> thank you for your help
>
> Patrick
>

-- 
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.
For more options, visit https://groups.google.com/d/optout.


Re: [weewx-user] Re: Deutsche Skins für Weewx und skin aktualisierungsrate Weewx

2019-01-01 Thread Joachim Rummler
weewx vorher gestoppt? 

sudo /etc/init.d/weewx stop



Weil in der vorletzten Zeile 

"weewx.WeeWxIOError: [Errno 16] Resource busy"

auftaucht



Am Montag, 31. Dezember 2018 11:31:24 UTC+1 schrieb Thomas Wielgoß:
>
>  oh ja die Schreibweise stimmt danke noch mal
>
> root@raspberrypi:~# sudo /usr/share/weewx/wee_device --set-interval=5
> Using configuration file /etc/weewx/weewx.conf
> Using FineOffsetUSB driver version 1.9 (weewx.drivers.fousb)
> Traceback (most recent call last):
>   File "/usr/share/weewx/wee_device", line 54, in 
> main()
>   File "/usr/share/weewx/wee_device", line 51, in main
> device.configure(config_dict)
>   File "/usr/share/weewx/weewx/drivers/__init__.py", line 69, in configure
> self.do_options(options, parser, config_dict, prompt)
>   File "/usr/share/weewx/weewx/drivers/fousb.py", line 375, in do_options
> self.station = FineOffsetUSB(**config_dict[DRIVER_NAME])
>   File "/usr/share/weewx/weewx/drivers/fousb.py", line 979, in __init__
> self.openPort()
>   File "/usr/share/weewx/weewx/drivers/fousb.py", line 1052, in openPort
> raise weewx.WeeWxIOError(e)
> weewx.WeeWxIOError: [Errno 16] Resource busy
> root@raspberrypi:~# 
>
> mal sehen ob es geht  ;-)
>
>
> Am Mo., 31. Dez. 2018 um 11:26 Uhr schrieb Thomas Wielgoß <
> dbja...@hotmail.com >:
>
>> Wieder nichts
>>
>> habe jetzt nach der datei gesucht...
>> wee_device
>>
>>
>>
>> und in gefunden /usr/share/weewx
>>
>>
>> root@raspberrypi:~# sudo /usr/share/weewx/wee_device --set-Intervall = 5
>>
>> Traceback (most recent call last):
>>
>>   File "/usr/share/weewx/wee_device", line 54, in 
>>
>> main()
>>
>>   File "/usr/share/weewx/wee_device", line 19, in main
>>
>> config_fn, config_dict = weecfg.read_config(None, sys.argv[1:])
>>
>>   File "/usr/share/weewx/weecfg/__init__.py", line 221, in read_config
>>
>> locations=locations, file_name=file_name)
>>
>>   File "/usr/share/weewx/weecfg/__init__.py", line 196, in find_file
>>
>> raise IOError("%s is not a file" % file_path)
>>
>> IOError: = is not a file
>>
>> root@raspberrypi:~# 
>>
>>
>>
>>
>> ich denke das ist die falsche Datei oder ?
>>
>>
>> #!/usr/bin/env python
>>
>> #
>>
>> #Copyright (c) 2013 Matthew Wall
>>
>> #
>>
>> #See the file LICENSE.txt for your full rights.
>>
>> #
>>
>> """Command line utility for configuring devices."""
>>
>>
>> import sys
>>
>> import syslog
>>
>>
>> import weecfg
>>
>>
>> def main():
>>
>> syslog.openlog('wee_device', syslog.LOG_PID | syslog.LOG_CONS)
>>
>> syslog.setlogmask(syslog.LOG_UPTO(syslog.LOG_INFO))
>>
>>
>> # Load the configuration file
>>
>> config_fn, config_dict = weecfg.read_config(None, sys.argv[1:])
>>
>> print 'Using configuration file %s' % config_fn
>>
>>
>> try:
>>
>> # Find the device type
>>
>> device_type = config_dict['Station']['station_type']
>>
>> driver = config_dict[device_type]['driver']
>>
>> except KeyError, e:
>>
>> sys.exit("No configuration for device %s" % e)
>>
>>
>> # Try to load the driver
>>
>> device = None
>>
>> try:
>>
>> __import__(driver)
>>
>> driver_module = sys.modules[driver]
>>
>> loader_function = getattr(driver_module, 'configurator_loader')
>>
>> device = loader_function(config_dict)
>>
>> driver_name = driver_module.DRIVER_NAME
>>
>> driver_vers = driver_module.DRIVER_VERSION \
>>
>> if hasattr(driver_module, 'DRIVER_VERSION') else '?'
>>
>> print 'Using %s driver version %s (%s)' % (
>>
>> driver_name, driver_vers, driver)
>>
>> except AttributeError, e:
>>
>> msg = "The driver %s does not include a configuration tool" % 
>> driver
>>
>> syslog.syslog(syslog.LOG_INFO, "%s: %s" % (msg, e))
>>
>> exit(0)
>>
>> except Exception, e:
>>
>> msg = "Cannot load configurator for %s" % device_type
>>
>> syslog.syslog(syslog.LOG_ERR, "%s: %s" % (msg, e))
>>
>> print msg
>>
>> exit(1)
>>
>>
>> device.configure(config_dict)
>>
>>
>> if __name__ == "__main__":
>>
>> main()
>>
>>
>> nun ja die suche geht weiter :-)
>>
>> danke noch mal für die Infos
>>
>> Frohes neues an alle Jahr 
>>
>> MFG
>>
>> Am Mo., 31. Dez. 2018 um 10:32 Uhr schrieb Joachim Rummler <
>> jmru...@gmail.com >:
>>
>>> Hatte auch das gleiche Problem. python ist nicht in den Pfaden 
>>> eingetragen. Bei mir lautete dann der Befehl wie folgt:
>>>
>>> sudo /etc/init.d/weewx stop
>>> sudo python/home/weewx/bin/wee_device --set-interval=5
>>> sudo /etc/init.d/weewx start
>>>
>>>
>>>
>>> Vorher muss man weewx stoppen, danach wieder starten.
>>>
>>> Workaround wäre das mitgelieferte PC-Programm, wo man diese 
>>> Einstellungen auch verändern kann. Muss man die Konsole allerdings per USB 
>>> anschließen.
>>>
>>> Viel Erfolg, vielleicht klappt es 2018 noch
>>> ;-)
>>>
>>> Joachim
>>>
>>> -- 
>>> You received this message because you are subscribed to the 

[weewx-user] Re: use Weewx on raspberry

2019-01-01 Thread Patrick Tranchant
ok
I go to configure a DMZ and I come back to you, by private mail if possible

patrick

On Saturday, December 8, 2018 at 3:40:43 PM UTC+1, Patrick Tranchant wrote:
>
> hello I am a newbie from France ( sorry for my english )
>
> I want to use weewx on a raspberry with a weather station built by myself 
> (view on Magpi)
> I don't see my station on your website to configure :
>
> Weather Station Hardware Comparison: I don't found my weather station.
> Do you have a solution or how to configure Weewx
>
> thank you for your help
>
> Patrick
>

-- 
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.
For more options, visit https://groups.google.com/d/optout.


[weewx-user] Re: use Weewx on raspberry

2019-01-01 Thread Pat
Is your weewx Pi available externally? If I find a few minutes later I 
could try to SSH to it?

On Tuesday, January 1, 2019 at 10:00:20 AM UTC-5, Patrick Tranchant wrote:
>
> I do it, but this the same ERROR
>
> Jan  1 15:55:56 raspberrypi weewx[2593]: engine: pid file is 
> /var/run/weewx.pid
> Jan  1 15:55:56 raspberrypi weewx[2597]: engine: Using configuration file 
> /home/weewx/weewx.conf
> Jan  1 15:55:56 raspberrypi weewx[2597]: engine: Loading station type 
> BYOWS (user.byows)
> Jan  1 15:55:56 raspberrypi weewx[2582]: Starting weewx weather system: 
> weewx.
> Jan  1 15:55:56 raspberrypi systemd[1]: Started LSB: weewx weather system.
> Jan  1 15:55:59 raspberrypi weewx[2597]: engine: Caught unrecoverable 
> exception in engine:
> Jan  1 15:55:59 raspberrypi weewx[2597]:   name 'BYOWS' is not 
> defined
> Jan  1 15:55:59 raspberrypi weewx[2597]:   Traceback (most recent 
> call last):
> Jan  1 15:55:59 raspberrypi weewx[2597]: File 
> "/home/weewx/bin/weewx/engine.py", line 871, in main
> Jan  1 15:55:59 raspberrypi weewx[2597]:   engine = 
> engine_class(config_dict)
> Jan  1 15:55:59 raspberrypi weewx[2597]: File 
> "/home/weewx/bin/weewx/engine.py", line 72, in __init__
> Jan  1 15:55:59 raspberrypi weewx[2597]:   
> self.setupStation(config_dict)
> Jan  1 15:55:59 raspberrypi weewx[2597]: File 
> "/home/weewx/bin/weewx/engine.py", line 96, in setupStation
> Jan  1 15:55:59 raspberrypi weewx[2597]:   __import__(driver)
> Jan  1 15:55:59 raspberrypi weewx[2597]: File 
> "/home/weewx/bin/user/byows.py", line 32, in 
> Jan  1 15:55:59 raspberrypi weewx[2597]:   
> wind_speed_sensor.when_pressed = BYOWS.spin # is this a valid call for the 
> below class function?
> Jan  1 15:55:59 raspberrypi weewx[2597]:   NameError: name 'BYOWS' 
> is not defined
> Jan  1 15:55:59 raspberrypi weewx[2597]:   Exiting.
>
> Patrick
>
> On Saturday, December 8, 2018 at 3:40:43 PM UTC+1, Patrick Tranchant wrote:
>>
>> hello I am a newbie from France ( sorry for my english )
>>
>> I want to use weewx on a raspberry with a weather station built by myself 
>> (view on Magpi)
>> I don't see my station on your website to configure :
>>
>> Weather Station Hardware Comparison: I don't found my weather station.
>> Do you have a solution or how to configure Weewx
>>
>> thank you for your help
>>
>> Patrick
>>
>

-- 
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.
For more options, visit https://groups.google.com/d/optout.


[weewx-user] Re: Belchertown Skin 0.8.2 Released

2019-01-01 Thread Juan Antonio Mosquera
Updated to 0.8.2 and works fine.

El martes, 1 de enero de 2019, 13:50:49 (UTC+1), Pat escribió:
>
> I've just released version 0.8.2 of the Belchertown skin which fixes the 
> New Year bug some of you are seeing. It also adds some other features. 
>
>
> Download and install instructions here: 
> https://github.com/poblabs/weewx-belchertown/releases
>
>
> * Fixed an error where the skin would fail when the date rolls to the New 
> Year due to no data being in certain tables in the database yet. 
> * Added the ability to show any weather alerts provided by the DarkSky 
> API. Weather alerts are off by default, use forecast_alert_enabled in 
> weewx.conf skin options to enable it.
> * New option to show cloudbase. You must have your database schema 
> extended for the cloudbase observation to be calculated by weewx. Check the 
> Belchertown skin wiki for details.
> * Fixes an issue where the MQTT updates showed altimeter instead of 
> barometer.
> * Updated Google Analytics page to be in header based on Google 
> recommendations. 
> * Updated Google Analytics to a more recent script block. 
> * Added a Google Analytics page view per MQTT update as per Google 
> Recommendations on background updates. 
>
>

-- 
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.
For more options, visit https://groups.google.com/d/optout.


[weewx-user] Re: Belchertown skin for weewx now available!

2019-01-01 Thread kutzenco
Even better check out 
https://groups.google.com/d/msg/weewx-user/6Sa3vfzsH6k/cEQJ6ASXDQAJ and 
post updates there.

phil

On Tuesday, January 1, 2019 at 8:11:02 AM UTC-5, kutz...@gmail.com wrote:
>
> See Scott's note a couple of posts above. Check out 
> https://groups.google.com/d/topic/weewx-user/XwkT_hCBsLc/discussion for 
> the fix. Also post future discussion at 
> https://groups.google.com/d/topic/weewx-user/ARBHWDXiDpQ/discussion and 
> not here.
>
> phil
>
> On Tuesday, January 1, 2019 at 7:25:56 AM UTC-5, Juan Antonio Mosquera 
> wrote:
>
> me too... i use 0.8.1  since 0:00AM fails.
>
> Jan 01 13:23:05 meteomontaos weewx[6865]: reportengine: Caught 
> unrecoverable exception in generator weewx.cheetahgenerator.CheetahGenerator
> Jan 01 13:23:05 meteomontaos weewx[6865]:   'NoneType' object 
> has no attribute '__getitem__'
> Jan 01 13:23:05 meteomontaos weewx[6865]:   Traceback (most 
> recent call last):
> Jan 01 13:23:05 meteomontaos weewx[6865]: File 
> "/usr/share/weewx/weewx/reportengine.p
>
> ...

-- 
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.
For more options, visit https://groups.google.com/d/optout.


[weewx-user] Re: Belchertown skin for weewx now available!

2019-01-01 Thread kutzenco
See Scott's note a couple of posts above. Check out 
https://groups.google.com/d/topic/weewx-user/XwkT_hCBsLc/discussion for the 
fix. Also post future discussion at 
https://groups.google.com/d/topic/weewx-user/ARBHWDXiDpQ/discussion and not 
here.

phil

On Tuesday, January 1, 2019 at 7:25:56 AM UTC-5, Juan Antonio Mosquera 
wrote:
>
> me too... i use 0.8.1  since 0:00AM fails.
>
> Jan 01 13:23:05 meteomontaos weewx[6865]: reportengine: Caught 
> unrecoverable exception in generator weewx.cheetahgenerator.CheetahGenerator
> Jan 01 13:23:05 meteomontaos weewx[6865]:   'NoneType' object 
> has no attribute '__getitem__'
> Jan 01 13:23:05 meteomontaos weewx[6865]:   Traceback (most 
> recent call last):
> Jan 01 13:23:05 meteomontaos weewx[6865]: File 
> "/usr/share/weewx/weewx/reportengine.py", line 239, in run
> Jan 01 13:23:05 meteomontaos weewx[6865]:   obj.start()
> Jan 01 13:23:05 meteomontaos weewx[6865]: File 
> "/usr/share/weewx/weewx/reportengine.py", line 273, in start
> Jan 01 13:23:05 meteomontaos weewx[6865]:   self.run()
> Jan 01 13:23:05 meteomontaos weewx[6865]: File 
> "/usr/share/weewx/weewx/cheetahgenerator.py", line 158, in run
> Jan 01 13:23:05 meteomontaos weewx[6865]:   ngen = 
> self.generate(gen_dict[section_name], self.gen_ts)
> Jan 01 13:23:05 meteomontaos weewx[6865]: File 
> "/usr/share/weewx/weewx/cheetahgenerator.py", line 232, in generate
> Jan 01 13:23:05 meteomontaos weewx[6865]:   ngen += 
> self.generate(section[subsection], gen_ts)
> Jan 01 13:23:05 meteomontaos weewx[6865]: File 
> "/usr/share/weewx/weewx/cheetahgenerator.py", line 232, in generate
> Jan 01 13:23:05 meteomontaos weewx[6865]:   ngen += 
> self.generate(section[subsection], gen_ts)
> Jan 01 13:23:05 meteomontaos weewx[6865]: File 
> "/usr/share/weewx/weewx/cheetahgenerat
> ...

-- 
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.
For more options, visit https://groups.google.com/d/optout.


[weewx-user] Re: use Weewx on raspberry

2019-01-01 Thread Pat
Try this version of byows.py - copy to bin/user and restart weewx.


On Tuesday, January 1, 2019 at 7:38:18 AM UTC-5, Patrick Tranchant wrote:
>
> in my original file, there is:
>
> def spin():
> global wind_count
> wind_count = wind_count + 1
> 
>
> maybe it's missing in "byows.py"? I do not know
>
> Patrick
>
> On Saturday, December 8, 2018 at 3:40:43 PM UTC+1, Patrick Tranchant wrote:
>>
>> hello I am a newbie from France ( sorry for my english )
>>
>> I want to use weewx on a raspberry with a weather station built by myself 
>> (view on Magpi)
>> I don't see my station on your website to configure :
>>
>> Weather Station Hardware Comparison: I don't found my weather station.
>> Do you have a solution or how to configure Weewx
>>
>> thank you for your help
>>
>> Patrick
>>
>

-- 
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.
For more options, visit https://groups.google.com/d/optout.
#!/usr/bin/python
# Copyright 2018 Pat O'Brien https://obrienlabs.net
#
# This driver takes the sensors used in the Raspberry Pi
# build your own weather station project and converts it
# into a format that can be used with weewx.
#
# The Raspberry Pi project can be found here:
# https://projects.raspberrypi.org/en/projects/build-your-own-weather-station
#

import os # POB REMOVE
os.environ['GPIOZERO_PIN_FACTORY'] = os.environ.get('GPIOZERO_PIN_FACTORY', 'mock') # POB REMOVE
from gpiozero import Button
import time
import math
import bme280_sensor_2
import wind_direction_byo_5
import statistics
import ds18b20_therm
import datetime
import syslog

import weedb
import weewx.drivers
import weeutil.weeutil
import weewx.wxformulas

temp_probe = ds18b20_therm.DS18B20()

wind_speed_sensor = Button(5)
wind_speed_sensor.when_pressed = BYOWS.spin # is this a valid call for the below class function?

rain_sensor = Button(6)
rain_sensor.when_pressed = BYOWS.bucket_tipped # is this a valid call for the below class function?

def logmsg(dst, msg):
syslog.syslog(dst, 'BYOWS: %s' % msg)

def loginf(msg):
logmsg(syslog.LOG_INFO, msg)

def logerror(msg):
logmsg(syslog.LOG_ERROR, msg)

def logdebug(msg):
logmsg(syslog.LOG_DEBUG, msg)

def loader(config_dict, engine):
station = BYOWS(**config_dict['BYOWS'])
return station

class BYOWS(weewx.drivers.AbstractDevice):
""" Driver for the Raspberry Pi Bring Your Own Weather Station. """

def __init__(self, **stn_dict) :
""" Initialize object. """
self.station_hardware = stn_dict.get('hardware')
# TODO CONVERT TO WEEWX OPTIONS?
self.interval = 60 # Measurements recorded every 1 minute
self.wind_count = 0 # Counts how many half-rotations
self.radius_cm = 9.0 # Radius of your anemometer
self.wind_interval = 5 # How often (secs) to sample speed
self.wind_gust = 0
self.cm_in_a_km = 10.0
self.secs_in_an_hour = 3600
self.adjustment = 1.18
self.bucket_size = 0.2794 # mm
self.rain_count = 0
self.store_speeds = []
self.store_directions = []


def hardware_name(self):
return self.station_hardware

# Every half-rotations, add 1 to count
def spin(self):
self.wind_count = self.wind_count + 1
#print("spin" + str(self.wind_count))

def calculate_speed(self, time_sec):
circumference_cm = (2 * math.pi) * self.radius_cm
rotations = self.wind_count / 2.0

# Calculate distance travelled by a cup in km
dist_km = (circumference_cm * rotations) / self.cm_in_a_km

# Speed = distance / time
km_per_sec = dist_km / time_sec
km_per_hour = km_per_sec * self.secs_in_an_hour

# Calculate Speed
final_speed = km_per_hour * self.adjustment
   
return final_speed

def bucket_tipped(self):
self.rain_count = self.rain_count + 1
#print (self.rain_count * self.bucket_size)

def reset_rainfall(self):
self.rain_count = 0

def reset_wind(self):
self.wind_count = 0

def reset_gust(self):
self.wind_gust = 0


#===
# LOOP record decoding functions
#===

def genLoopPackets(self):
""" Generator function that continuously returns loop packets """
for _packet in self.genPackets():
yield _packet

def genPackets(self):
""" Generate measurement packets. """
global temp_probe
while True:
start_time = time.time()
while time.time() - start_time <= self.interval:
wind_start_time = 

[weewx-user] Re: use Weewx on raspberry

2019-01-01 Thread Patrick Tranchant
I modified the script "byows.py"

wind_speed_sensor.when_pressed =* byows*.spin # is this a valid call for 
the below class function?

rain_sensor = Button(6)
rain_sensor.when_pressed =* byows*.bucket_tipped # is this a valid call for 
the below class function?

def logmsg(dst, msg):
syslog.syslog(dst, *'byows*: %s' % msg)
but it is the same error

Jan  1 13:30:32 raspberrypi weewx[2019]:   name 'byows' is not 
defined
Jan  1 13:30:32 raspberrypi weewx[2019]:   Traceback (most recent 
call last):
Jan  1 13:30:32 raspberrypi weewx[2019]: File 
"/home/weewx/bin/weewx/engine.py", line 871, in main
Jan  1 13:30:32 raspberrypi weewx[2019]:   engine = 
engine_class(config_dict)
Jan  1 13:30:32 raspberrypi weewx[2019]: File 
"/home/weewx/bin/weewx/engine.py", line 72, in __init__
Jan  1 13:30:32 raspberrypi weewx[2019]:   
self.setupStation(config_dict)
Jan  1 13:30:32 raspberrypi weewx[2019]: File 
"/home/weewx/bin/weewx/engine.py", line 96, in setupStation
Jan  1 13:30:32 raspberrypi weewx[2019]:   __import__(driver)
Jan  1 13:30:32 raspberrypi weewx[2019]: File 
"/home/weewx/bin/user/byows.py", line 30, in 
Jan  1 13:30:32 raspberrypi weewx[2019]:   
wind_speed_sensor.when_pressed = byows.spin # is this a valid call for the 
below class function?
Jan  1 13:30:32 raspberrypi weewx[2019]:   NameError: name 'byows' 
is not defined

where is define 'BYOWS' ?

see you

Patrick


On Saturday, December 8, 2018 at 3:40:43 PM UTC+1, Patrick Tranchant wrote:
>
> hello I am a newbie from France ( sorry for my english )
>
> I want to use weewx on a raspberry with a weather station built by myself 
> (view on Magpi)
> I don't see my station on your website to configure :
>
> Weather Station Hardware Comparison: I don't found my weather station.
> Do you have a solution or how to configure Weewx
>
> thank you for your help
>
> Patrick
>

-- 
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.
For more options, visit https://groups.google.com/d/optout.


[weewx-user] Re: Belchertown skin for weewx now available!

2019-01-01 Thread Pat
All, please upgrade to 0.8.2 

Details here: https://groups.google.com/forum/#!topic/weewx-user/6Sa3vfzsH6k

Please reply in that thread. This thread is too long now. 

-- 
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.
For more options, visit https://groups.google.com/d/optout.


[weewx-user] Belchertown Skin 0.8.2 Released

2019-01-01 Thread Pat
I've just released version 0.8.2 of the Belchertown skin which fixes the 
New Year bug some of you are seeing. It also adds some other features. 


Download and install instructions 
here: https://github.com/poblabs/weewx-belchertown/releases


* Fixed an error where the skin would fail when the date rolls to the New 
Year due to no data being in certain tables in the database yet. 
* Added the ability to show any weather alerts provided by the DarkSky API. 
Weather alerts are off by default, use forecast_alert_enabled in weewx.conf 
skin options to enable it.
* New option to show cloudbase. You must have your database schema extended 
for the cloudbase observation to be calculated by weewx. Check the 
Belchertown skin wiki for details.
* Fixes an issue where the MQTT updates showed altimeter instead of 
barometer.
* Updated Google Analytics page to be in header based on Google 
recommendations. 
* Updated Google Analytics to a more recent script block. 
* Added a Google Analytics page view per MQTT update as per Google 
Recommendations on background updates. 

-- 
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.
For more options, visit https://groups.google.com/d/optout.


[weewx-user] Re: use Weewx on raspberry

2019-01-01 Thread Patrick Tranchant
in my original file, there is:

def spin():
global wind_count
wind_count = wind_count + 1


maybe it's missing in "byows.py"? I do not know

Patrick

On Saturday, December 8, 2018 at 3:40:43 PM UTC+1, Patrick Tranchant wrote:
>
> hello I am a newbie from France ( sorry for my english )
>
> I want to use weewx on a raspberry with a weather station built by myself 
> (view on Magpi)
> I don't see my station on your website to configure :
>
> Weather Station Hardware Comparison: I don't found my weather station.
> Do you have a solution or how to configure Weewx
>
> thank you for your help
>
> Patrick
>

-- 
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.
For more options, visit https://groups.google.com/d/optout.


[weewx-user] Displaying Each Year's Graphs

2019-01-01 Thread Cycle London
Hi,
As it's now happy new year time, I can finally see a full year's data.  But 
if I go to 'current' and then click on 'Year', I get the data for 2019 - 
i.e. today.  

If I click on the drop-down menu 'select year' and choose 2018, I get an 
ASCII graph.  This is fine, but is there any way to get the graphs for 
2018, presented in the same way that they were up to midnight last night 
(or 'this morning', if you prefer)? 

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.
For more options, visit https://groups.google.com/d/optout.


[weewx-user] Re: use Weewx on raspberry

2019-01-01 Thread Patrick Tranchant
hello Gary and PAT, HNY 2019

I could reinstalled with the other method, but I have the same error, look, 
and here is the conf, is the error not in byows.py (with capital or 
lowercase) ... ..
see you

Patrick

Jan  1 12:35:16 raspberrypi systemd[1]: Starting LSB: weewx weather 
system...
Jan  1 12:35:16 raspberrypi weewx[1711]: engine: Initializing weewx version 
3.8.2
Jan  1 12:35:16 raspberrypi weewx[1711]: engine: Using Python 2.7.13 
(default, Sep 26 2018, 18:42:22) #012[GCC 6.3.0 20170516]
Jan  1 12:35:16 raspberrypi weewx[1711]: engine: Platform 
Linux-4.14.71-v7+-armv7l-with-debian-9.4
Jan  1 12:35:16 raspberrypi weewx[1711]: engine: Locale is 'fr_FR.UTF-8'
Jan  1 12:35:16 raspberrypi weewx[1711]: engine: pid file is 
/var/run/weewx.pid
Jan  1 12:35:16 raspberrypi weewx[1715]: engine: Using configuration file 
/home/weewx/weewx.conf
Jan  1 12:35:16 raspberrypi weewx[1715]: engine: Loading station type BYOWS 
(user.byows)
Jan  1 12:35:16 raspberrypi systemd[1]: Started LSB: weewx weather system.
Jan  1 12:35:16 raspberrypi weewx[1699]: Starting weewx weather system: 
weewx.
Jan  1 12:35:19 raspberrypi weewx[1715]: engine: Caught unrecoverable 
exception in engine:
Jan  1 12:35:19 raspberrypi weewx[1715]:   name 'BYOWS' is not 
defined
Jan  1 12:35:19 raspberrypi weewx[1715]:   Traceback (most recent 
call last):
Jan  1 12:35:19 raspberrypi weewx[1715]: File 
"/home/weewx/bin/weewx/engine.py", line 871, in main
Jan  1 12:35:19 raspberrypi weewx[1715]:   engine = 
engine_class(config_dict)
Jan  1 12:35:19 raspberrypi weewx[1715]: File 
"/home/weewx/bin/weewx/engine.py", line 72, in __init__
Jan  1 12:35:19 raspberrypi weewx[1715]:   
self.setupStation(config_dict)
Jan  1 12:35:19 raspberrypi weewx[1715]: File 
"/home/weewx/bin/weewx/engine.py", line 96, in setupStation
Jan  1 12:35:19 raspberrypi weewx[1715]:   __import__(driver)
Jan  1 12:35:19 raspberrypi weewx[1715]: File 
"/home/weewx/bin/user/byows.py", line 30, in 
Jan  1 12:35:19 raspberrypi weewx[1715]:   
wind_speed_sensor.when_pressed = BYOWS.spin # is this a valid call for the 
below class function?
Jan  1 12:35:19 raspberrypi weewx[1715]:   NameError: name 'BYOWS' 
is not defined
Jan  1 12:35:19 raspberrypi weewx[1715]:   Exiting.



On Saturday, December 8, 2018 at 3:40:43 PM UTC+1, Patrick Tranchant wrote:
>
> hello I am a newbie from France ( sorry for my english )
>
> I want to use weewx on a raspberry with a weather station built by myself 
> (view on Magpi)
> I don't see my station on your website to configure :
>
> Weather Station Hardware Comparison: I don't found my weather station.
> Do you have a solution or how to configure Weewx
>
> thank you for your help
>
> Patrick
>

-- 
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.
For more options, visit https://groups.google.com/d/optout.
#!/usr/bin/python
# Copyright 2018 Pat O'Brien https://obrienlabs.net
#
# This driver takes the sensors used in the Raspberry Pi
# build your own weather station project and converts it
# into a format that can be used with weewx.
#
# The Raspberry Pi project can be found here:
# https://projects.raspberrypi.org/en/projects/build-your-own-weather-station
#

from gpiozero import Button
import time
import math
import bme280_sensor_2
import wind_direction_byo_5
import statistics
import ds18b20_therm
import datetime
import syslog

import weedb
import weewx.drivers
import weeutil.weeutil
import weewx.wxformulas

temp_probe = ds18b20_therm.DS18B20()

wind_speed_sensor = Button(5)
wind_speed_sensor.when_pressed = BYOWS.spin # is this a valid call for the below class function?

rain_sensor = Button(6)
rain_sensor.when_pressed = BYOWS.bucket_tipped # is this a valid call for the below class function?

def logmsg(dst, msg):
syslog.syslog(dst, 'BYOWS: %s' % msg)

def loginf(msg):
logmsg(syslog.LOG_INFO, msg)

def logerror(msg):
logmsg(syslog.LOG_ERROR, msg)

def logdebug(msg):
logmsg(syslog.LOG_DEBUG, msg)

def loader(config_dict, engine):
station = BYOWS(**config_dict['BYOWS'])
return station

class BYOWS(weewx.drivers.AbstractDevice):
""" Driver for the Raspberry Pi Bring Your Own Weather Station. """

def __init__(self, **stn_dict) :
""" Initialize object. """
self.station_hardware = stn_dict.get('hardware')
# TODO CONVERT TO WEEWX OPTIONS?
self.interval = 60 # Measurements recorded every 1 minute
self.wind_count = 0 # Counts how many half-rotations
self.radius_cm = 9.0 # Radius of your anemometer
self.wind_interval = 5 # How often (secs) to sample speed
self.wind_gust = 0
self.cm_in_a_km = 10.0
self.secs_in_an_hour = 3600
  

[weewx-user] Re: Belchertown skin for weewx now available!

2019-01-01 Thread Juan Antonio Mosquera
me too... i use 0.8.1  since 0:00AM fails.

Jan 01 13:23:05 meteomontaos weewx[6865]: reportengine: Caught 
unrecoverable exception in generator weewx.cheetahgenerator.CheetahGenerator
Jan 01 13:23:05 meteomontaos weewx[6865]:   'NoneType' object 
has no attribute '__getitem__'
Jan 01 13:23:05 meteomontaos weewx[6865]:   Traceback (most 
recent call last):
Jan 01 13:23:05 meteomontaos weewx[6865]: File 
"/usr/share/weewx/weewx/reportengine.py", line 239, in run
Jan 01 13:23:05 meteomontaos weewx[6865]:   obj.start()
Jan 01 13:23:05 meteomontaos weewx[6865]: File 
"/usr/share/weewx/weewx/reportengine.py", line 273, in start
Jan 01 13:23:05 meteomontaos weewx[6865]:   self.run()
Jan 01 13:23:05 meteomontaos weewx[6865]: File 
"/usr/share/weewx/weewx/cheetahgenerator.py", line 158, in run
Jan 01 13:23:05 meteomontaos weewx[6865]:   ngen = 
self.generate(gen_dict[section_name], self.gen_ts)
Jan 01 13:23:05 meteomontaos weewx[6865]: File 
"/usr/share/weewx/weewx/cheetahgenerator.py", line 232, in generate
Jan 01 13:23:05 meteomontaos weewx[6865]:   ngen += 
self.generate(section[subsection], gen_ts)
Jan 01 13:23:05 meteomontaos weewx[6865]: File 
"/usr/share/weewx/weewx/cheetahgenerator.py", line 232, in generate
Jan 01 13:23:05 meteomontaos weewx[6865]:   ngen += 
self.generate(section[subsection], gen_ts)
Jan 01 13:23:05 meteomontaos weewx[6865]: File 
"/usr/share/weewx/weewx/cheetahgenerator.py", line 320, in generate
Jan 01 13:23:05 meteomontaos weewx[6865]:   default_binding)
Jan 01 13:23:05 meteomontaos weewx[6865]: File 
"/usr/share/weewx/weewx/cheetahgenerator.py", line 372, in _getSearchList
Jan 01 13:23:05 meteomontaos weewx[6865]:   searchList += 
obj.get_extension_list(timespan, db_lookup)
Jan 01 13:23:05 meteomontaos weewx[6865]: File 
"/usr/share/weewx/user/belchertown.py", line 297, in get_extension_list
Jan 01 13:23:05 meteomontaos weewx[6865]:   
year_rainiest_month_tuple = (year_rainiest_month_query[1], rain_unit, 
'group_rain')
Jan 01 13:23:05 meteomontaos weewx[6865]:   TypeError: 
'NoneType' object has no attribute '__getitem__'
Jan 01 13:23:05 meteomontaos weewx[6865]:   Generator terminated


El martes, 1 de enero de 2019, 7:37:34 (UTC+1), Zsolt Máté escribió:
>
> I'm getting the following error. Am I missing a path or something? 
>
> Using configuration file /etc/weewx/weewx.conf
> Generating for all time
> Traceback (most recent call last):
>   File "/usr/share/weewx/weewx/reportengine.py", line 239, in run
> obj.start()
>   File "/usr/share/weewx/weewx/reportengine.py", line 273, in start
> self.run()
>   File "/usr/share/weewx/weewx/cheetahgenerator.py", line 158, in run
> ngen = self.generate(gen_dict[section_name], self.gen_ts)
>   File "/usr/share/weewx/weewx/cheetahgenerator.py", line 232, in generate
> ngen += self.generate(section[subsection], gen_ts)
>   File "/usr/share/weewx/weewx/cheetahgenerator.py", line 232, in generate
> ngen += self.generate(section[subsection], gen_ts)
>   File "/usr/share/weewx/weewx/cheetahgenerator.py", line 320, in generate
> default_binding)
>   File "/usr/share/weewx/weewx/cheetahgenerator.py", line 372, in 
> _getSearchList
>
> ...

-- 
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.
For more options, visit https://groups.google.com/d/optout.


[weewx-user] Re: WH65B no pressure

2019-01-01 Thread Zsolt Máté
I tried, something is not working or I'm doing something wrong.

On Wednesday, January 2, 2019 at 12:53:42 AM UTC+13, Andrew Milner wrote:
>
> with the interceptor driver
>
>
>
> On Tuesday, 1 January 2019 13:42:18 UTC+2, Zsolt Máté wrote:
>>
>> I ran tcpdump on my router an I got this:
>> GET 
>> /weatherstation/updateweatherstation.php?ID=*==72.5=64.4=59.7=64.4=52=85=0.0=0.0=198=29.63=29.60=0.00=0.00=0.31=0.00=0.00=0=2019-1-1%2011:38:47=EasyWeatherV1.2.3=updateraw=1=5
>>  
>> HTTP/1.0
>>
>> The question is, how can I intercept and interpret this communication 
>> from my raspi?
>>
>> On Wednesday, January 2, 2019 at 12:32:34 AM UTC+13, Zsolt Máté wrote:
>>>
>>> The console has no USB port, it's communicating via WiFi.
>>>
>>> On Tuesday, January 1, 2019 at 8:05:28 PM UTC+13, mwall wrote:



 On Tuesday, January 1, 2019 at 12:10:46 AM UTC-5, Zsolt Máté wrote:
>
>
> Is there a way to get the barometer readout as well?
>

 not using rtl_433/weewx-sdr.  the pressure sensor is located in your 
 weather station console, so the pressure data are never sent.  rtl_433 
 picks up only the transmissions from the instrument cluster (and any 
 remote 
 temperature/humidity sensors), not the console.

 you'll have to intercept the data sent by the console (e.g., using the 
 weewx-interceptor driver) or figure out some way to probe the console for 
 data (does it have a usb port that responds to data requests?)

 m 

>>>

-- 
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.
For more options, visit https://groups.google.com/d/optout.


[weewx-user] Re: WH65B no pressure

2019-01-01 Thread Andrew Milner
with the interceptor driver



On Tuesday, 1 January 2019 13:42:18 UTC+2, Zsolt Máté wrote:
>
> I ran tcpdump on my router an I got this:
> GET 
> /weatherstation/updateweatherstation.php?ID=*==72.5=64.4=59.7=64.4=52=85=0.0=0.0=198=29.63=29.60=0.00=0.00=0.31=0.00=0.00=0=2019-1-1%2011:38:47=EasyWeatherV1.2.3=updateraw=1=5
>  
> HTTP/1.0
>
> The question is, how can I intercept and interpret this communication from 
> my raspi?
>
> On Wednesday, January 2, 2019 at 12:32:34 AM UTC+13, Zsolt Máté wrote:
>>
>> The console has no USB port, it's communicating via WiFi.
>>
>> On Tuesday, January 1, 2019 at 8:05:28 PM UTC+13, mwall wrote:
>>>
>>>
>>>
>>> On Tuesday, January 1, 2019 at 12:10:46 AM UTC-5, Zsolt Máté wrote:


 Is there a way to get the barometer readout as well?

>>>
>>> not using rtl_433/weewx-sdr.  the pressure sensor is located in your 
>>> weather station console, so the pressure data are never sent.  rtl_433 
>>> picks up only the transmissions from the instrument cluster (and any remote 
>>> temperature/humidity sensors), not the console.
>>>
>>> you'll have to intercept the data sent by the console (e.g., using the 
>>> weewx-interceptor driver) or figure out some way to probe the console for 
>>> data (does it have a usb port that responds to data requests?)
>>>
>>> m 
>>>
>>

-- 
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.
For more options, visit https://groups.google.com/d/optout.


[weewx-user] Re: WH65B no pressure

2019-01-01 Thread Zsolt Máté
I ran tcpdump on my router an I got this:
GET 
/weatherstation/updateweatherstation.php?ID=*==72.5=64.4=59.7=64.4=52=85=0.0=0.0=198=29.63=29.60=0.00=0.00=0.31=0.00=0.00=0=2019-1-1%2011:38:47=EasyWeatherV1.2.3=updateraw=1=5
 
HTTP/1.0

The question is, how can I intercept and interpret this communication from 
my raspi?

On Wednesday, January 2, 2019 at 12:32:34 AM UTC+13, Zsolt Máté wrote:
>
> The console has no USB port, it's communicating via WiFi.
>
> On Tuesday, January 1, 2019 at 8:05:28 PM UTC+13, mwall wrote:
>>
>>
>>
>> On Tuesday, January 1, 2019 at 12:10:46 AM UTC-5, Zsolt Máté wrote:
>>>
>>>
>>> Is there a way to get the barometer readout as well?
>>>
>>
>> not using rtl_433/weewx-sdr.  the pressure sensor is located in your 
>> weather station console, so the pressure data are never sent.  rtl_433 
>> picks up only the transmissions from the instrument cluster (and any remote 
>> temperature/humidity sensors), not the console.
>>
>> you'll have to intercept the data sent by the console (e.g., using the 
>> weewx-interceptor driver) or figure out some way to probe the console for 
>> data (does it have a usb port that responds to data requests?)
>>
>> m 
>>
>

-- 
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.
For more options, visit https://groups.google.com/d/optout.


Re: [weewx-user] Re: weewx, Interceptor, WS-2902A, Skipping Data and Parse Errors

2019-01-01 Thread WILWetter25
First you have to to set up the Raspberry, that you can use it like a wireless 
router.
1. Connect the raspbbery via LAN with your internet-router.
2. Install raspbian.
3. Create a network with RaspAP
3.1 use the command: wget -q https://git.io/voEUQ -O /tmp/raspap && bash 
/tmp/raspap to install RaspAP
3.2 Go to the webgui with the IP: 10.3.141.1 in your Browser.
3.3 Log in with the username: "admin" and the password "secret" 
Info: the First Network is running with the SSID "raspi-webgui" with the 
password "ChangeMe".
3.4 for security you should change the SSID and your password like you want.

Then connect the weatherstation with the Network
1. Download the Ambient Tool from Play Store
2. Connect the weatherstation with this Network.
Info: the steps how are explained in the App.

Install weewx
1 use These commands to Install weewx
1.1 wget -qO - http://weewx.com/keys.html | sudo apt-key add -
1.2 wget -qO - http://weewx.com/apt/weewx.list | sudo tee 
/etc/apt/sources.list.d/weewx.list
1.3 sudo apt-get update
1.4 sudo apt-get install weewx
1.5 follow the installation steps. Choose the Driver "Simulator" 

Install the Interceptor Driver:
1. Install python libpcap with: sudo apt-get install python-libpcap
2. Download the Driver: wget -O weewx-interceptor.zip 
https://github.com/matthewwall/weewx-interceptor/archive/master.zip
3. Install the driver: sudo wee_extension --install weewx-interceptor-master.zip
Info: Sometimes the Name is changed in interceptor-master.zip or master.zip. 
The best way: Look in your Downloads folder there is the correct name of the 
File. Then you have may change the command.
4. Reconfigure the weewx.conf File 
With "sudo wee_config --reconfigure --" and "driver=user.interceptor 
--no-prompt"

Configure the weewx.conf-file

At the end of the File, in the [Interceptor] section. Or should be Look like 
this:

[Interceptor]

  driver = user.interceptor

  device_type = observer

  mode = sniff

  iface = wlan0

  pcap_filter = src 10.3.141.136 and dst port 80

Info: the IP could be changed. If you dont know your IP: Go to the Ambient Tool 
in your Smartphone and Look to connected divices.

At Last restart weewx with sudo etc/init.d/weewx stop and etc/init.d/weewx start

I think thats all.

If you have question Just ask :)

Happy New Year to all :)

-- 
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.
For more options, visit https://groups.google.com/d/optout.


[weewx-user] Re: WH65B no pressure

2019-01-01 Thread Zsolt Máté
The console has no USB port, it's communicating via WiFi.

On Tuesday, January 1, 2019 at 8:05:28 PM UTC+13, mwall wrote:
>
>
>
> On Tuesday, January 1, 2019 at 12:10:46 AM UTC-5, Zsolt Máté wrote:
>>
>>
>> Is there a way to get the barometer readout as well?
>>
>
> not using rtl_433/weewx-sdr.  the pressure sensor is located in your 
> weather station console, so the pressure data are never sent.  rtl_433 
> picks up only the transmissions from the instrument cluster (and any remote 
> temperature/humidity sensors), not the console.
>
> you'll have to intercept the data sent by the console (e.g., using the 
> weewx-interceptor driver) or figure out some way to probe the console for 
> data (does it have a usb port that responds to data requests?)
>
> m 
>

-- 
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.
For more options, visit https://groups.google.com/d/optout.


Re: [weewx-user] Re: weewx, Interceptor, WS-2902A, Skipping Data and Parse Errors

2019-01-01 Thread Scott Grayban
Thank's... I'll read it when I wake up...

On Tuesday, January 1, 2019 at 2:17:32 AM UTC-8, WILWetter25 wrote:
>
> I will write a detailed Plan how to: in one hour

-- 
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.
For more options, visit https://groups.google.com/d/optout.


[weewx-user] Re: Scaling the Y axis in plots

2019-01-01 Thread Andrej B.
Happy New Year!

Maybe someone can suggest - approach to scaling Y axis units in cmon 
explained in this thread will work witch the newest weewx 3.8.2 ?

Thanks!

Andrej

-- 
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.
For more options, visit https://groups.google.com/d/optout.


Re: [weewx-user] Re: weewx, Interceptor, WS-2902A, Skipping Data and Parse Errors

2019-01-01 Thread WILWetter25
I will write a detailed Plan how to: in one hour

-- 
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.
For more options, visit https://groups.google.com/d/optout.


Re: [weewx-user] Re: Belchertown skin for weewx now available!

2019-01-01 Thread Colin Larsen
There is a new belchertown.py to fix it.

On Tue, 1 Jan 2019, 21:40 Scott Grayban  Also post follow ups at
> https://groups.google.com/d/topic/weewx-user/ARBHWDXiDpQ/discussion and
> not here.
>
> On Monday, December 31, 2018 at 10:37:34 PM UTC-8, Zsolt Máté wrote:
>>
>> I'm getting the following error. Am I missing a path or something?
>>
>> Using configuration file /etc/weewx/weewx.conf
>> Generating for all time
>> Traceback (most recent call last):
>>   File "/usr/share/weewx/weewx/reportengine.py", line 239, in run
>> obj.start()
>>   File "/usr/share/weewx/weewx/reportengine.py", line 273, in start
>> self.run()
>>   File "/usr/share/weewx/weewx/cheetahgenerator.py", line 158, in run
>> ngen = self.generate(gen_dict[section_name], self.gen_ts)
>>   File "/usr/share/weewx/weewx/cheetahgenerator.py", line 232, in generate
>> ngen += self.generate(section[subsection], gen_ts)
>>   File "/usr/share/weewx/weewx/cheetahgenerator.py", line 232, in generate
>> ngen += self.generate(section[subsection], gen_ts)
>>   File "/usr/share/weewx/weewx/cheetahgenerator.py", line 320, in generate
>> default_binding)
>>   File "/usr/share/weewx/weewx/cheetahgenerator.py", line 372, in
>> _getSearchList
>>
>> ...
>
> --
> 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.
> 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.
For more options, visit https://groups.google.com/d/optout.


[weewx-user] Re: Belchertown skin for weewx now available!

2019-01-01 Thread Scott Grayban
Also post follow ups at 
https://groups.google.com/d/topic/weewx-user/ARBHWDXiDpQ/discussion and not 
here.

On Monday, December 31, 2018 at 10:37:34 PM UTC-8, Zsolt Máté wrote:
>
> I'm getting the following error. Am I missing a path or something? 
>
> Using configuration file /etc/weewx/weewx.conf
> Generating for all time
> Traceback (most recent call last):
>   File "/usr/share/weewx/weewx/reportengine.py", line 239, in run
> obj.start()
>   File "/usr/share/weewx/weewx/reportengine.py", line 273, in start
> self.run()
>   File "/usr/share/weewx/weewx/cheetahgenerator.py", line 158, in run
> ngen = self.generate(gen_dict[section_name], self.gen_ts)
>   File "/usr/share/weewx/weewx/cheetahgenerator.py", line 232, in generate
> ngen += self.generate(section[subsection], gen_ts)
>   File "/usr/share/weewx/weewx/cheetahgenerator.py", line 232, in generate
> ngen += self.generate(section[subsection], gen_ts)
>   File "/usr/share/weewx/weewx/cheetahgenerator.py", line 320, in generate
> default_binding)
>   File "/usr/share/weewx/weewx/cheetahgenerator.py", line 372, in 
> _getSearchList
>
> ...

-- 
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.
For more options, visit https://groups.google.com/d/optout.


Re: [weewx-user] Re: Start of 2019 not so smooth

2019-01-01 Thread Scott Grayban
No errors at 00:10

Thanks for the fix Pat...

On Monday, December 31, 2018 at 7:15:46 PM UTC-8, Pat wrote:
>
> For those with Belchertown skin, if you get hit with the new year bug grab 
> an updated copy of the bin/user/belchertown.py file 
> 
>  
> and place it into your bin/user folder and restart weewx.
>
> The bug is when there's no data populated in certain tables yet because of 
> the new year, which breaks the records page - thus breaking the whole skin. 
>
> Should be fixed now!
>
> On Monday, December 31, 2018 at 8:00:08 PM UTC-5, Pat wrote:
>>
>> Starting to look now
>>
>> On Monday, December 31, 2018 at 7:52:55 PM UTC-5, Colin Larsen wrote:
>>>
>>> Ah well, if you're quick you'll fix it before it strikes there :)
>>>
>>> On Tue, Jan 1, 2019 at 1:48 PM Pat  wrote:
>>>
 I'm awake! But it's 7:30pm here, not 2019 yet. Hmm... 

 On Monday, December 31, 2018 at 6:39:02 PM UTC-5, Colin Larsen wrote:
>
> sqllite here
>
> On Tue, Jan 1, 2019 at 12:34 PM  wrote:
>
>> Colin,
>>
>> Out of curiosity, are you using mySQL or sqlite? Pat tailors the SQL 
>> statements to the database. I'm running weeWX and the Belchertown skin 
>> on 
>> sqlite. I'm in the US Eastern timezone, so will see if the skin coughs 
>> up 
>> for me after the year roll over.
>>
>> phil
>>
>> On Monday, December 31, 2018 at 6:08:19 PM UTC-5, Colin Larsen wrote:
>>>
>>> Thanks Greg and HNY to you.
>>>
>>> Yep I just did a reboot and got a better look at the error, it 
>>> certainly looks like a skin problem. I'll have to wait for Pat to wake 
>>> up :)
>>>
>>> Jan  1 12:05:15 raspberrypi weewx[1004]: manager: Added record 
>>> 2019-01-01 12:05:00 NZDT (1546297500) to database 'weewx.sdb'
>>>
>>> Jan  1 12:05:15 raspberrypi weewx[1004]: manager: Added record 
>>> 2019-01-01 12:05:00 NZDT (1546297500) to daily summary in 'weewx.sdb'
>>>
>>> Jan  1 12:05:20 raspberrypi weewx[1004]: cheetahgenerator: 
>>> Generated 14 files for report StandardReport in 4.36 seconds
>>>
>>> Jan  1 12:05:25 raspberrypi weewx[1004]: imagegenerator: Generated 
>>> 36 images for StandardReport in 3.78 seconds
>>>
>>> Jan  1 12:05:25 raspberrypi weewx[1004]: copygenerator: copied 9 
>>> files to /var/www/html/weewx
>>>
>>> Jan  1 12:05:30 raspberrypi weewx[1004]: cheetahgenerator: 
>>> Generated 4 files for report Highcharts_Belchertown in 5.74 seconds
>>>
>>> Jan  1 12:05:30 raspberrypi weewx[1004]: copygenerator: copied 0 
>>> files to /var/www/html/weewx/belchertown
>>>
>>> Jan  1 12:05:30 raspberrypi weewx[1004]: Belchertown Extension: 
>>> version 0.8.1
>>>
>>> Jan  1 12:05:30 raspberrypi weewx[1004]: reportengine: Caught 
>>> unrecoverable exception in generator 
>>> weewx.cheetahgenerator.CheetahGenerator
>>>
>>> Jan  1 12:05:30 raspberrypi weewx[1004]:   'NoneType' 
>>> object has no attribute '__getitem__'
>>>
>>> Jan  1 12:05:30 raspberrypi weewx[1004]:   Traceback 
>>> (most recent call last):
>>>
>>> Jan  1 12:05:30 raspberrypi weewx[1004]: File 
>>> "/usr/share/weewx/weewx/reportengine.py", line 239, in run
>>>
>>> Jan  1 12:05:30 raspberrypi weewx[1004]:   
>>> obj.start()
>>>
>>> Jan  1 12:05:30 raspberrypi weewx[1004]: File 
>>> "/usr/share/weewx/weewx/reportengine.py", line 273, in start
>>>
>>> Jan  1 12:05:30 raspberrypi weewx[1004]:   
>>> self.run()
>>>
>>> Jan  1 12:05:30 raspberrypi weewx[1004]: File 
>>> "/usr/share/weewx/weewx/cheetahgenerator.py", line 158, in run
>>>
>>> Jan  1 12:05:30 raspberrypi weewx[1004]:   ngen = 
>>> self.generate(gen_dict[section_name], self.gen_ts)
>>>
>>> Jan  1 12:05:30 raspberrypi weewx[1004]: File 
>>> "/usr/share/weewx/weewx/cheetahgenerator.py", line 232, in generate
>>>
>>> Jan  1 12:05:30 raspberrypi weewx[1004]:   ngen += 
>>> self.generate(section[subsection], gen_ts)
>>>
>>> Jan  1 12:05:30 raspberrypi weewx[1004]: File 
>>> "/usr/share/weewx/weewx/cheetahgenerator.py", line 232, in generate
>>>
>>> Jan  1 12:05:30 raspberrypi weewx[1004]:   ngen += 
>>> self.generate(section[subsection], gen_ts)
>>>
>>> Jan  1 12:05:30 raspberrypi weewx[1004]: File 
>>> "/usr/share/weewx/weewx/cheetahgenerator.py", line 320, in generate
>>>
>>> Jan  1 12:05:30 raspberrypi weewx[1004]:   
>>> default_binding)
>>>
>>> Jan  1 12:05:30 raspberrypi weewx[1004]: File 
>>> 

[weewx-user] Re: 24 hour rain total in mysql database

2019-01-01 Thread mwall
On Monday, December 31, 2018 at 12:50:45 PM UTC-5, bdf0506 wrote:
>
> I am looking to add information into my archive database that will show 
> rainfall over the last 24 hours.
>
> Today, I have the influxdb extension, and when I look in the influxdb, I 
> see a measurement for "rain24_in". I would like for this to also appear 
> within the mysql DB that I am using. I currently have "rain" and "rainRate" 
> in mysql DB, but nothing about 24hour rainfall.
>
> How can I accomplish this?
>

you already have it.

SELECT SUM(rain), MIN(usUnits), MAX(usUnits) FROM archive WHERE dateTime>X 
and dateTime<=Y

where Y is the current time (as epoch) and X=Y-24*3600

the rain24_in the influx packets is simply the value returned from that 
query.

m

-- 
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.
For more options, visit https://groups.google.com/d/optout.


[weewx-user] Re: Belchertown skin for weewx now available!

2019-01-01 Thread Scott Grayban
Did you read this post ?

https://groups.google.com/d/topic/weewx-user/XwkT_hCBsLc/discussion

On Monday, December 31, 2018 at 10:37:34 PM UTC-8, Zsolt Máté wrote:
>
> I'm getting the following error. Am I missing a path or something? 
>
> Using configuration file /etc/weewx/weewx.conf
> Generating for all time
> Traceback (most recent call last):
>   File "/usr/share/weewx/weewx/reportengine.py", line 239, in run
> obj.start()
>   File "/usr/share/weewx/weewx/reportengine.py", line 273, in start
> self.run()
>   File "/usr/share/weewx/weewx/cheetahgenerator.py", line 158, in run
> ngen = self.generate(gen_dict[section_name], self.gen_ts)
>   File "/usr/share/weewx/weewx/cheetahgenerator.py", line 232, in generate
> ngen += self.generate(section[subsection], gen_ts)
>   File "/usr/share/weewx/weewx/cheetahgenerator.py", line 232, in generate
> ngen += self.generate(section[subsection], gen_ts)
>   File "/usr/share/weewx/weewx/cheetahgenerator.py", line 320, in generate
> default_binding)
>   File "/usr/share/weewx/weewx/cheetahgenerator.py", line 372, in 
> _getSearchList
>
> ...

-- 
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.
For more options, visit https://groups.google.com/d/optout.