RE: [weewx-user] Re: Lightning Strike issues

2022-09-18 Thread dave.spicer2012
Thank you Gary, That seems to have done the trick.

 

Thanks

Dave

 

From: weewx-user@googlegroups.com  On Behalf Of 
gjr80
Sent: Friday, September 16, 2022 7:37 PM
To: weewx-user 
Subject: Re: [weewx-user] Re: Lightning Strike issues

 

The reason you are seeing such large lightning strike numbers reported by WeeWX 
is that your station reports a cumulative lightning strike count, but WeeWX 
requires a per-period count. As posted earlier, the solution is to tell the SDR 
driver the lightning_strike_count field is a delta that is derived from the 
cumulative strike count. This is done via the highlighted lines below that were 
included in the earlier post:

 

[SDR]

[[sensors_map]]

strike_total = strike_count.494.AcuriteAtlasPacket

lightning_distance = strike_distance.494.AcuriteAtlasPacket

[[deltas]]

lightning_strike_count = strike_total

 

Have you included similar lines? Did you restart WeeWX after making the 
changes? Also note that unless you deleted the old cumulative data from WeeWX 
it will likely take an hour for the effects of any old cumulative data to 
disappear from last hour total.

 

Gary

On Saturday, 17 September 2022 at 08:10:54 UTC+10 dave.sp...@gmail.com 
  wrote:

My acurite sensor is reporting correct lightning data. In the loop data I see 
'lightning_distance': 7, 'lightning_strike_count': 296, but on the web page it 
is saying that strikes are 9768 and the hourly total of approx. 28+. How do 
I get it to where it shows that current data instead of erroneous values?

 

 

  

 

 

I would except to see strikes by at 7

 

Also how do I get a graft to see the distance? I am running the default seasons 
4.8.0 skin

 

Thanks

Dave

 

From: weewx...@googlegroups.com   
mailto:weewx...@googlegroups.com> > On Behalf Of 
vince
Sent: Friday, September 16, 2022 12:53 PM
To: weewx-user mailto:weewx...@googlegroups.com> >
Subject: [weewx-user] Re: Lightning Strike issues

 

"Is not correct" isn't much to go on. What are you expecting to see ?

 

See https://github.com/weewx/weewx/wiki/faq-how-to-report-a-problem

 

I don't know about your station in particular, but WeatherFlow stations 
frequently can show thousands of bogus lightning strikes due to the inexpensive 
sensor that vendor uses.  Fix there is to rotate the sensor 90 degrees which 
amazingly does work in quieting down erroneous strike readings.  Acurite has a 
web page on your station at 
https://support.acurite.com/hc/en-us/articles/360045278273-AcuRite-Atlas-7-in-1-Inaccurate-Lightning
 if that helps any.

-- 
You received this message because you are subscribed to the Google Groups 
"weewx-user" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to weewx-user+...@googlegroups.com  .
To view this discussion on the web visit 
https://groups.google.com/d/msgid/weewx-user/07aa5e30-cafe-456c-a4a7-3dcb55fa460bn%40googlegroups.com
 

 .

-- 
You received this message because you are subscribed to the Google Groups 
"weewx-user" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to weewx-user+unsubscr...@googlegroups.com 
 .
To view this discussion on the web visit 
https://groups.google.com/d/msgid/weewx-user/8ddac774-6eab-4bad-820b-46341af2bd35n%40googlegroups.com
 

 .

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


RE: [weewx-user] Re: Lightning Strike issues

2022-09-16 Thread dave.spicer2012
My acurite sensor is reporting correct lightning data. In the loop data I see 
'lightning_distance': 7, 'lightning_strike_count': 296, but on the web page it 
is saying that strikes are 9768 and the hourly total of approx. 28+. How do 
I get it to where it shows that current data instead of erroneous values?

 

 



 

I would except to see strikes by at 7

 

Also how do I get a graft to see the distance? I am running the default seasons 
4.8.0 skin

 

Thanks

Dave

 

From: weewx-user@googlegroups.com  On Behalf Of 
vince
Sent: Friday, September 16, 2022 12:53 PM
To: weewx-user 
Subject: [weewx-user] Re: Lightning Strike issues

 

"Is not correct" isn't much to go on. What are you expecting to see ?

 

See https://github.com/weewx/weewx/wiki/faq-how-to-report-a-problem

 

I don't know about your station in particular, but WeatherFlow stations 
frequently can show thousands of bogus lightning strikes due to the inexpensive 
sensor that vendor uses.  Fix there is to rotate the sensor 90 degrees which 
amazingly does work in quieting down erroneous strike readings.  Acurite has a 
web page on your station at 
https://support.acurite.com/hc/en-us/articles/360045278273-AcuRite-Atlas-7-in-1-Inaccurate-Lightning
 if that helps any.

-- 
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/07aa5e30-cafe-456c-a4a7-3dcb55fa460bn%40googlegroups.com
 

 .

-- 
You received this message because you are subscribed to the Google Groups 
"weewx-user" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to weewx-user+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/weewx-user/028201d8ca19%242def72d0%2489ce5870%24%40gmail.com.


[weewx-user] Lightning Strike issues

2022-09-16 Thread dave.spicer2012
Good morning all, I am having a small issue with the lightning strikes. I
have an Acurite 7-n-1 sensors. On the weewx web page the lightning strikes
are not correct. Here is what the web page is showing:

 



 

 



 

 

When I tail the logs, here is just the part on lightning:
'lightning_distance': 7, 'lightning_strike_count': 296

 

Weewx.conf:

 

[SDR]

# This section is for the software-defined radio driver.

 

# The driver to use

driver = user.sdr

log_unknown_sensors = True

log_unmapped_sensors = True

cmd = sudo rtl_433 -M utc -F json

 

[[sensor_map]]

outTemp = temperature.0010.AcuriteAtlasPacket

outHumidity = humidity.0010.AcuriteAtlasPacket

windSpeed = wind_speed.0010.AcuriteAtlasPacket

windDir = wind_dir.0010.AcuriteAtlasPacket

UV = uv.0010.AcuriteAtlasPacket

rain_total = rain_total.0010.AcuriteAtlasPacket

radiation = lux.0010.AcuriteAtlasPacket

outTempBatteryStatus = battery.0010.AcuriteAtlasPacket

lightning_distance = strike_distance.0010.AcuriteAtlasPacket

lightning_strike_count = strike_count.0010.AcuriteAtlasPacket

luminosity = lux.0010.AcuriteAtlasPacket

 

[[deltas]]

rain = rain_total

 

 

Hardware:

Weewx version 4.8.0

Running SDR

 

Any help in getting the lightning info would be great.

Thanks

Dave

-- 
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/022e01d8c9f2%2409b11b20%241d135160%24%40gmail.com.


RE: [weewx-user] Re: Adding lightening sensor to weewx

2022-06-07 Thread dave.spicer2012
Gary thanks for the reply. Sorry I didn’t provide enough data. So here it what 
I am running. My driver is SDR. I have verified that data is being received and 
stored into the database, but what I am not getting is any type of graph with 
the distance and strike counts on the web site. That is what I need help with. 
How do I make that show up?

 

I have included a log output

 

Thanks

Dave

 

From: weewx-user@googlegroups.com  On Behalf Of 
gjr80
Sent: Monday, June 6, 2022 7:14 PM
To: weewx-user 
Subject: [weewx-user] Re: Adding lightening sensor to weewx

 

Hi,

 

Going to need a little more info. What driver are you using? SDR? If so what 
does your weewx.conf [SDR] stanza contain? Again assuming SDR, have you run the 
driver directly as per the SDR readme 
 ? What does the WeeWX log 
show? Post a log extract with debug = 1 showing the full WeeWX startup and a 
couple of archive periods, this WeeWX wiki page 

  will give you instructions on how to get such a log extract.

 

Gary

 

On Tuesday, 7 June 2022 at 08:16:10 UTC+10 dave.sp...@gmail.com 
  wrote:

Good afternoon all, I am trying to get the lightening detector sensor to show 
in weewx. The sensor is Acurite Atlas

 

I have added the following under [[sensor_map]]

lightning_distance = strike_distance.0010.AcuriteAtlasPacket

lightning_strike_count = strike_count.0010.AcuriteAtlasPacket

 

Any help getting this working would be great

 

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/cce095de-a364-4987-ad60-cae4f905c70fn%40googlegroups.com
 

 .

-- 
You received this message because you are subscribed to the Google Groups 
"weewx-user" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to weewx-user+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/weewx-user/017701d87abc%24a34925f0%24e9db71d0%24%40gmail.com.
=~=~=~=~=~=~=~=~=~=~=~= PuTTY log 2022.06.07 16:14:26 =~=~=~=~=~=~=~=~=~=~=~=
Jun  7 16:14:28 raspberrypi systemd[1]: Starting LSB: weewx weather system...
Jun  7 16:14:29 raspberrypi weewx[25274] INFO __main__: Initializing weewx 
version 4.5.1
Jun  7 16:14:29 raspberrypi weewx[25274] INFO __main__: Using Python 3.7.3 
(default, Jan 22 2021, 20:04:44) #012[GCC 8.3.0]
Jun  7 16:14:29 raspberrypi weewx[25274] INFO __main__: Platform 
Linux-5.10.60-v7+-armv7l-with-debian-10.10
Jun  7 16:14:29 raspberrypi weewx[25274] INFO __main__: Locale is 'en_US.UTF-8'
Jun  7 16:14:29 raspberrypi weewx[25274] INFO __main__: PID file is 
/var/run/weewx.pid
Jun  7 16:14:29 raspberrypi weewx[25278] INFO __main__: Using configuration 
file /home/weewx/weewx.conf
Jun  7 16:14:29 raspberrypi weewx[25278] INFO __main__: Debug is 0
Jun  7 16:14:29 raspberrypi weewx[25278] INFO weewx.engine: Loading station 
type SDR (user.sdr)
Jun  7 16:14:29 raspberrypi weewx[25264]: Starting weewx weather system: weewx.
Jun  7 16:14:29 raspberrypi systemd[1]: Started LSB: weewx weather system.
Jun  7 16:14:29 raspberrypi weewx[25278] INFO user.sdr: driver version is 0.78
Jun  7 16:14:29 raspberrypi weewx[25278] INFO user.sdr: sensor map is 
{'outTemp': 'temperature.0010.AcuriteAtlasPacket', 'outHumidity': 
'humidity.0010.AcuriteAtlasPacket', 'windSpeed': 
'wind_speed.0010.AcuriteAtlasPacket', 'windDir': 
'wind_dir.0010.AcuriteAtlasPacket', 'UV': 'uv.0010.AcuriteAtlasPacket', 
'rain_total': 'rain_total.0010.AcuriteAtlasPacket', 'radiation': 
'lux.0010.AcuriteAtlasPacket', 'outTempBatteryStatus': 
'battery.0010.AcuriteAtlasPacket', 'lightning_distance': 
'strike_distance.0010.AcuriteAtlasPacket', 'lightning_strike_count': 
'strike_count.0010.AcuriteAtlasPacket', 'luminosity': 
'lux.0010.AcuriteAtlasPacket'}
Jun  7 16:14:29 raspberrypi weewx[25278] INFO user.sdr: deltas is {'rain': 
'rain_total', 'lightning_strike_count': 'lightning_strike_count'}
Jun  7 16:14:29 raspberrypi weewx[25278] INFO user.sdr: startup process 'sudo 
/usr/local/bin/rtl_433 -M utc -F json'
Jun  7 16:14:29 raspberrypi /weewxd: bme280: bme280wx configuration 
{'i2c_port': '1', 'i2c_address': '0x77', 'usUnits': 'US', 'temperatureKeys': 
'inTemp', 'temperature_must_have': '', 'pressureKeys': 'pressure', 
'pressure_must_have': 'outTemp', 'humidityKeys': 'inHumidity', 
'humidity_must_have': ''}
Jun  7 16:14:29 raspberrypi /weewxd: bme280: I2C port: 1
Jun  7 16:14:29 raspberrypi /weewxd: 

[weewx-user] Adding lightening sensor to weewx

2022-06-06 Thread dave.spicer2012
Good afternoon all, I am trying to get the lightening detector sensor to
show in weewx. The sensor is Acurite Atlas

 

I have added the following under [[sensor_map]]

lightning_distance = strike_distance.0010.AcuriteAtlasPacket

lightning_strike_count = strike_count.0010.AcuriteAtlasPacket

 

Any help getting this working would be great

 

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/014001d879f3%24042691c0%240c73b540%24%40gmail.com.


[weewx-user] Adding BME280 to WeeWX

2022-05-11 Thread dave.spicer2012
Ok, I have been doing a lot of research, but can't seem to find what I need
to do exactly. 

 

My setup is as follows:

  WeeWX Version 4.5.1 running on a Raspberry Pi 3

  Station_type of SDR to get the weather data from acurite atlas
5-n-1.

 

I am trying to add a BME280. I have it connected to the same RPi that is
running weewx. I can run a test program to verify that it does in fact get
the temp, humidity, pressure, altitude. 

 

What I would like to have done is when I go and view weewx web pages, I
mainly want the barometer reading to populate. I am not too concerned about
the others. With that being said does this mean that I need to have 2
instances of weewx running or can I add this sensor into the weewx.conf file
and still have all of my SDR config. 

 

Any help would be appreciated

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/001c01d8658e%2448092570%24d81b7050%24%40gmail.com.


[weewx-user] SDR interval

2021-10-04 Thread dave.spicer2012
Good afternoon, I have just moved over to using SDR and it appears to be
working great so far. I was looking at the data and I noticed that the
update interval is at 5 minutes. Is there a way to change that to something
like 2 minutes?

 

Thanks

Dave

-- 
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/00af01d7b95b%24f8f75440%24eae5fcc0%24%40gmail.com.


RE: [weewx-user] Weewx MySQL help

2021-10-02 Thread dave.spicer2012
Thank you everyone for helping me get my issue fixed. With everyone’s input, it 
lead me to look more closely at MySQL server. There were several things that I 
modified that made it work. I changed the binding address in mysql to the IP 
address of the server instead of it using 127.0.0.1. Next from what I could 
tell, was the password encryption that mysql was using. Once I change it back 
to mysql_native and recreated the user, everything connect and is now working. 

 

Thank you so much.

Dave

 

From: weewx-user@googlegroups.com  On Behalf Of 
vince
Sent: Friday, October 1, 2021 6:53 PM
To: weewx-user 
Subject: Re: [weewx-user] Weewx MySQL help

 

Thanks - I recreated the original poster's issue and corrected it by changing 
bind-address to 0.0.0.0 in /etc/mysql/mariadb.conf.d/50-server.cnf and then 
restarting mariadb-server.  After that the second pi could indeed connect and 
write to the db.  I used the instructions at 
https://wiki.tinkernet.ca/index.php/WeeWX for how to set up mysql on the pi.

 

On Friday, October 1, 2021 at 4:20:22 PM UTC-7 do...@dougjenkins.com 
  wrote:

Dave & Vince:

I believe WeeWX My SQL Client uses a TCP connection over port 3306 to connect 
to database. To understand the problem, here is what we know:

1. You are running WeeWX on a Raspberry pi. For this illustration, lets call it 
CLIENT

2. You are running MySQL on a Ubuntu 20.04 server. we will call that SERVER

3. you are able to ping SERVER from CLIENT.

4. You are able to login to SERVER via mysql command line from CLIENT.

 

if anyone of the statements above are incorrect, please update accordingly.

 

Here is what I would do:

1. in your weewx.conf, change mysql to the IP address of the server.

2. on the CLIENT, ensure you can login using a TCP network connection

mysql -u  -p --port=3306 --host= --protocol=TCP

3. if that does not work, try sudo on the line above.

 

One culprit is that your MySQL server is not setup to listen for clients 
outside of its server. this is the reason for my questions.

 

Please let us know if this helps.

 

On Friday, October 1, 2021 at 6:33:23 PM UTC-4 dave.sp...@gmail.com 
  wrote:

I have attached a copy of the syslog file and weewx.conf file. Hopefully that 
will help decipher the issue that I am having with connecting to MySQL. I have 
redacted the password in the mysql section. 

 

Litte bit more information: I am trying to make a MySQL connection. MySQL is 
running on Ubuntu Server 20.04 LTS. This is also a brand new server as my old 
server died during an upgrade

No LSB modules are available.

Distributor ID: Ubuntu

Description:Ubuntu 20.04.3 LTS

Release:20.04

Codename:   focal

 

I am able to cli into the mysql using cli, mysql -u weewx -p. I have check 
iptables -L and there are no rules for the firewall. I did check both the MySQL 
server and the RPi and both have no firewall rules.

 

I have run weewx with MySQL connection in the past with no issues, but that was 
on a much older system.

 

Thanks for any information that may help get a connection to MySQL server

 

Thanks

Dave

 

 

From: weewx...@googlegroups.com   
mailto:weewx...@googlegroups.com> > On Behalf Of 
vince
Sent: Friday, October 1, 2021 3:27 PM
To: weewx-user mailto:weewx...@googlegroups.com> >
Subject: Re: [weewx-user] Weewx MySQL help

 

On Friday, October 1, 2021 at 2:23:56 PM UTC-7 dave.sp...@gmail.com 
  wrote:

Any other ideas?

 

 

Not without seeing your weewx.conf file - see 
https://github.com/weewx/weewx/wiki/faq-how-to-report-a-problem and 
https://github.com/weewx/weewx/wiki/Help!-Posting-to-weewx-user

 

 

-- 

You received this message because you are subscribed to the Google Groups 
"weewx-user" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to weewx-user+...@googlegroups.com  .

To view this discussion on the web vis  
https://groups.google.com/d/msgid/weewx-user/ae72c99b-a72d-41bd-8b54-6933a96cd4b8n%40googlegroups.com
 

 .

-- 
You received this message because you are subscribed to the Google Groups 
"weewx-user" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to weewx-user+unsubscr...@googlegroups.com 
 .
To view this discussion on the web visit 
https://groups.google.com/d/msgid/weewx-user/75cd921b-3f15-4ce3-99f6-13908eca5187n%40googlegroups.com
 

 .

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

RE: [weewx-user] Weewx MySQL help

2021-10-01 Thread dave.spicer2012
I have attached a copy of the syslog file and weewx.conf file. Hopefully that 
will help decipher the issue that I am having with connecting to MySQL. I have 
redacted the password in the mysql section. 

 

Litte bit more information: I am trying to make a MySQL connection. MySQL is 
running on Ubuntu Server 20.04 LTS. This is also a brand new server as my old 
server died during an upgrade

No LSB modules are available.

Distributor ID: Ubuntu

Description:Ubuntu 20.04.3 LTS

Release:20.04

Codename:   focal

 

I am able to cli into the mysql using cli, mysql -u weewx -p. I have check 
iptables -L and there are no rules for the firewall. I did check both the MySQL 
server and the RPi and both have no firewall rules.

 

I have run weewx with MySQL connection in the past with no issues, but that was 
on a much older system.

 

Thanks for any information that may help get a connection to MySQL server

 

Thanks

Dave

 

 

From: weewx-user@googlegroups.com  On Behalf Of 
vince
Sent: Friday, October 1, 2021 3:27 PM
To: weewx-user 
Subject: Re: [weewx-user] Weewx MySQL help

 

On Friday, October 1, 2021 at 2:23:56 PM UTC-7 dave.sp...@gmail.com 
  wrote:

Any other ideas?

 

 

Not without seeing your weewx.conf file - see 
https://github.com/weewx/weewx/wiki/faq-how-to-report-a-problem and 
https://github.com/weewx/weewx/wiki/Help!-Posting-to-weewx-user

 

 

-- 
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 vis  
https://groups.google.com/d/msgid/weewx-user/ae72c99b-a72d-41bd-8b54-6933a96cd4b8n%40googlegroups.com
 

 .

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


weewx.conf
Description: Binary data


mylog
Description: Binary data


RE: [weewx-user] Weewx MySQL help

2021-10-01 Thread dave.spicer2012
Yes my pi can resolve mysql. I have even tried using the IP address and still 
have the same issue. I have also check iptables -L and nothing is there either 
on the PI or mysql server. 

 

I am successful at connecting to mysql through the CLI. So it is not a password 
issue

 

Any other ideas?

 

Thanks

Dave

 

From: weewx-user@googlegroups.com  On Behalf Of 
vince
Sent: Friday, October 1, 2021 11:30 AM
To: weewx-user 
Subject: Re: [weewx-user] Weewx MySQL help

 

I suspect it's DNS related on the LAN.   Can the raspberry resolve a host 
'mysql' to the server running that ?

On Friday, October 1, 2021 at 5:39:48 AM UTC-7 Tom Keffer wrote:

This could be due to any number of reasons. Insufficient privilege to open up 
the socket, firewall issues, bad password, or even that you have not installed 
the MySQL server.

 

Can you connect by using the mysql tool? For example, for user 'weewx':

 

mysql -u weewx -p

 

But, honestly, do you need MySQL? It is much harder to administer. If you don't 
have experience with it, you should stick with SQLite. See the Wiki article 
SQLite vs MySQL  .

 

-tk

 

On Thu, Sep 30, 2021 at 7:35 PM mailto:dave.sp...@gmail.com> > wrote:

Ok, Hopefully this is the last thing that I need help with on my rebuild. I 
have another server that is running MySQL and I am able to log into it with now 
issues. I have created an account for weewx. I have verified that I can log 
with that account. I have a DNS entry point to mysql. I have even tried using 
the IP of the MySQL server and still get the same results. Does anyone have any 
idea on why I can not connect to the server while running weewx?

 

I have attached the log and highlighted the error in red.

 

Thanks for all your help

Dave

 

ct  1 03:28:08 raspberrypi systemd[1]: Starting LSB: weewx weather system...

Oct  1 03:28:08 raspberrypi weewx[1480] INFO __main__: Initializing weewx 
version 4.5.1

Oct  1 03:28:08 raspberrypi weewx[1480] INFO __main__: Using Python 3.7.3 
(default, Jan 22 2021, 20:04:44) #012[GCC 8.3.0]

Oct  1 03:28:08 raspberrypi weewx[1480] INFO __main__: Platform 
Linux-5.10.60-v7+-armv7l-with-debian-10.10

Oct  1 03:28:08 raspberrypi weewx[1480] INFO __main__: Locale is 'en_US.UTF-8'

Oct  1 03:28:08 raspberrypi weewx[1480] INFO __main__: PID file is 
/var/run/weewx.pid

Oct  1 03:28:08 raspberrypi weewx[1484] INFO __main__: Using configuration file 
/home/weewx/weewx.conf

Oct  1 03:28:08 raspberrypi weewx[1484] INFO __main__: Debug is 0

Oct  1 03:28:08 raspberrypi weewx[1484] INFO weewx.engine: Loading station type 
SDR (user.sdr)

Oct  1 03:28:08 raspberrypi weewx[1470]: Starting weewx weather system: weewx.

Oct  1 03:28:08 raspberrypi systemd[1]: Started LSB: weewx weather system.

Oct  1 03:28:08 raspberrypi weewx[1484] INFO user.sdr: driver version is 0.78

Oct  1 03:28:08 raspberrypi weewx[1484] INFO user.sdr: sensor map is 
{'outTemp': 'temperature.0010.AcuriteAtlasPacket', 'outHumidity': 
'humidity.0010.AcuriteAtlasPacket', 'outBatteryStatus': 
'battery.0010.AcuriteAtlasPacket', 'rain_total': 
'rain_total.0010.AcuriteAtlasPacket', 'windSpeed': 
'wind_speed.0010.AcuriteAtlasPacket', 'windDir': 
'wind_speed.0010.AcuriteAtlasPacket'}

Oct  1 03:28:08 raspberrypi weewx[1484] INFO user.sdr: deltas is {'rain': 
'rain_total', 'strikes': 'strikes_total'}

Oct  1 03:28:08 raspberrypi weewx[1484] INFO user.sdr: startup process 'sudo 
/usr/local/bin/rtl_433 -M utc -F json'

Oct  1 03:28:08 raspberrypi weewx[1484] INFO weewx.engine: StdConvert target 
unit is 0x1

Oct  1 03:28:08 raspberrypi weewx[1484] INFO user.sdr: shutdown process sudo 
/usr/local/bin/rtl_433 -M utc -F json

Oct  1 03:28:09 raspberrypi kernel: [ 1756.310053] r820t 12-001a: destroying 
instance

Oct  1 03:28:09 raspberrypi kernel: [ 1756.310646] dvb_usb_v2: 'Realtek 
RTL2832U reference design:1-1.1.2' successfully deinitialized and disconnected

Oct  1 03:28:28 raspberrypi weewx[1484] INFO user.sdr: timed out waiting for 
stderr-thread

Oct  1 03:28:31 raspberrypi kernel: [ 1779.066292] usb 1-1.1.2: dvb_usb_v2: 
found a 'Realtek RTL2832U reference design' in warm state

Oct  1 03:28:31 raspberrypi kernel: [ 1779.120633] usb 1-1.1.2: dvb_usb_v2: 
will pass the complete MPEG2 transport stream to the software demuxer

Oct  1 03:28:31 raspberrypi kernel: [ 1779.120679] dvbdev: DVB: registering new 
adapter (Realtek RTL2832U reference design)

Oct  1 03:28:31 raspberrypi kernel: [ 1779.120699] usb 1-1.1.2: media 
controller created

Oct  1 03:28:31 raspberrypi kernel: [ 1779.123765] dvbdev: 
dvb_create_media_entity: media entity 'dvb-demux' registered.

Oct  1 03:28:31 raspberrypi kernel: [ 1779.141830] i2c i2c-11: Added 
multiplexed i2c bus 12

Oct  1 03:28:31 raspberrypi kernel: [ 1779.141856] rtl2832 11-0010: Realtek 
RTL2832 successfully attached

Oct  1 03:28:31 raspberrypi kernel: [ 1779.141950] usb 1-1.1.2: DVB: 
registering adapter 0 frontend 0 (Realtek RTL2832 

[weewx-user] Weewx MySQL help

2021-09-30 Thread dave.spicer2012
Ok, Hopefully this is the last thing that I need help with on my rebuild. I
have another server that is running MySQL and I am able to log into it with
now issues. I have created an account for weewx. I have verified that I can
log with that account. I have a DNS entry point to mysql. I have even tried
using the IP of the MySQL server and still get the same results. Does anyone
have any idea on why I can not connect to the server while running weewx?

 

I have attached the log and highlighted the error in red.

 

Thanks for all your help

Dave

 

ct  1 03:28:08 raspberrypi systemd[1]: Starting LSB: weewx weather system...

Oct  1 03:28:08 raspberrypi weewx[1480] INFO __main__: Initializing weewx
version 4.5.1

Oct  1 03:28:08 raspberrypi weewx[1480] INFO __main__: Using Python 3.7.3
(default, Jan 22 2021, 20:04:44) #012[GCC 8.3.0]

Oct  1 03:28:08 raspberrypi weewx[1480] INFO __main__: Platform
Linux-5.10.60-v7+-armv7l-with-debian-10.10

Oct  1 03:28:08 raspberrypi weewx[1480] INFO __main__: Locale is
'en_US.UTF-8'

Oct  1 03:28:08 raspberrypi weewx[1480] INFO __main__: PID file is
/var/run/weewx.pid

Oct  1 03:28:08 raspberrypi weewx[1484] INFO __main__: Using configuration
file /home/weewx/weewx.conf

Oct  1 03:28:08 raspberrypi weewx[1484] INFO __main__: Debug is 0

Oct  1 03:28:08 raspberrypi weewx[1484] INFO weewx.engine: Loading station
type SDR (user.sdr)

Oct  1 03:28:08 raspberrypi weewx[1470]: Starting weewx weather system:
weewx.

Oct  1 03:28:08 raspberrypi systemd[1]: Started LSB: weewx weather system.

Oct  1 03:28:08 raspberrypi weewx[1484] INFO user.sdr: driver version is
0.78

Oct  1 03:28:08 raspberrypi weewx[1484] INFO user.sdr: sensor map is
{'outTemp': 'temperature.0010.AcuriteAtlasPacket', 'outHumidity':
'humidity.0010.AcuriteAtlasPacket', 'outBatteryStatus':
'battery.0010.AcuriteAtlasPacket', 'rain_total':
'rain_total.0010.AcuriteAtlasPacket', 'windSpeed':
'wind_speed.0010.AcuriteAtlasPacket', 'windDir':
'wind_speed.0010.AcuriteAtlasPacket'}

Oct  1 03:28:08 raspberrypi weewx[1484] INFO user.sdr: deltas is {'rain':
'rain_total', 'strikes': 'strikes_total'}

Oct  1 03:28:08 raspberrypi weewx[1484] INFO user.sdr: startup process 'sudo
/usr/local/bin/rtl_433 -M utc -F json'

Oct  1 03:28:08 raspberrypi weewx[1484] INFO weewx.engine: StdConvert target
unit is 0x1

Oct  1 03:28:08 raspberrypi weewx[1484] INFO user.sdr: shutdown process sudo
/usr/local/bin/rtl_433 -M utc -F json

Oct  1 03:28:09 raspberrypi kernel: [ 1756.310053] r820t 12-001a: destroying
instance

Oct  1 03:28:09 raspberrypi kernel: [ 1756.310646] dvb_usb_v2: 'Realtek
RTL2832U reference design:1-1.1.2' successfully deinitialized and
disconnected

Oct  1 03:28:28 raspberrypi weewx[1484] INFO user.sdr: timed out waiting for
stderr-thread

Oct  1 03:28:31 raspberrypi kernel: [ 1779.066292] usb 1-1.1.2: dvb_usb_v2:
found a 'Realtek RTL2832U reference design' in warm state

Oct  1 03:28:31 raspberrypi kernel: [ 1779.120633] usb 1-1.1.2: dvb_usb_v2:
will pass the complete MPEG2 transport stream to the software demuxer

Oct  1 03:28:31 raspberrypi kernel: [ 1779.120679] dvbdev: DVB: registering
new adapter (Realtek RTL2832U reference design)

Oct  1 03:28:31 raspberrypi kernel: [ 1779.120699] usb 1-1.1.2: media
controller created

Oct  1 03:28:31 raspberrypi kernel: [ 1779.123765] dvbdev:
dvb_create_media_entity: media entity 'dvb-demux' registered.

Oct  1 03:28:31 raspberrypi kernel: [ 1779.141830] i2c i2c-11: Added
multiplexed i2c bus 12

Oct  1 03:28:31 raspberrypi kernel: [ 1779.141856] rtl2832 11-0010: Realtek
RTL2832 successfully attached

Oct  1 03:28:31 raspberrypi kernel: [ 1779.141950] usb 1-1.1.2: DVB:
registering adapter 0 frontend 0 (Realtek RTL2832 (DVB-T))...

Oct  1 03:28:31 raspberrypi kernel: [ 1779.141984] dvbdev:
dvb_create_media_entity: media entity 'Realtek RTL2832 (DVB-T)' registered.

Oct  1 03:28:31 raspberrypi kernel: [ 1779.142268] r820t 12-001a: creating
new instance

Oct  1 03:28:31 raspberrypi kernel: [ 1779.149430] r820t 12-001a: Rafael
Micro r820t successfully identified

Oct  1 03:28:31 raspberrypi kernel: [ 1779.163816] rtl2832_sdr
rtl2832_sdr.0.auto: Registered as swradio0

Oct  1 03:28:31 raspberrypi kernel: [ 1779.163840] rtl2832_sdr
rtl2832_sdr.0.auto: Realtek RTL2832 SDR attached

Oct  1 03:28:31 raspberrypi kernel: [ 1779.163854] rtl2832_sdr
rtl2832_sdr.0.auto: SDR API is still slightly experimental and functionality
changes may follow

Oct  1 03:28:31 raspberrypi kernel: [ 1779.176856] Registered IR keymap
rc-empty

Oct  1 03:28:31 raspberrypi kernel: [ 1779.177023] rc rc0: Realtek RTL2832U
reference design as
/devices/platform/soc/3f98.usb/usb1/1-1/1-1.1/1-1.1.2/rc/rc0

Oct  1 03:28:31 raspberrypi kernel: [ 1779.177233] rc rc0: lirc_dev: driver
dvb_usb_rtl28xxu registered at minor = 0, raw IR receiver, no transmitter

Oct  1 03:28:31 raspberrypi kernel: [ 1779.177435] input: Realtek RTL2832U
reference design as

RE: [weewx-user] Re: SDR Help

2021-09-30 Thread dave.spicer2012
Thank you. That help out a lot

 

Thanks

Dave

 

From: weewx-user@googlegroups.com  On Behalf Of 
vince
Sent: Thursday, September 30, 2021 7:18 PM
To: weewx-user 
Subject: Re: [weewx-user] Re: SDR Help

 

You don't have rtl_433 in a location in the weewx $PATH.  This one comes up 
so often.

Read through 
https://www.mail-archive.com/weewx-user@googlegroups.com/msg35938.html for a 
recent discussion and solution.

 

-- 
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/8f334564-9f52-47fa-8e7f-5350072b4ab0n%40googlegroups.com
 

 .

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


RE: [weewx-user] Re: SDR Help

2021-09-30 Thread dave.spicer2012
Ok, I have another issue that I am hoping that someone can help me out with. I 
am getting data if I run the rtl_433 outside of weewx, but once I try to run it 
from weewx, I get the following error. Does anyone have any idea on how to fix 
this?

 

Thanks

Dave

 

Oct  1 02:00:22 raspberrypi weewx[737] ERROR weewx.engine: Import of driver 
failed: failed to start process 'rtl_433 -M utc -F json': [Errno 2] No such 
file or directory: 'rtl_433': 'rtl_433' ()

Oct  1 02:00:22 raspberrypi weewx[737] CRITICAL weewx.engine:   
Traceback (most recent call last):

Oct  1 02:00:23 raspberrypi weewx[737] CRITICAL weewx.engine: File 
"/home/weewx/bin/user/sdr.py", line 198, in startup

Oct  1 02:00:23 raspberrypi weewx[737] CRITICAL weewx.engine:   
stderr=subprocess.PIPE)

Oct  1 02:00:23 raspberrypi weewx[737] CRITICAL weewx.engine: File 
"/usr/lib/python3.7/subprocess.py", line 775, in __init__

Oct  1 02:00:23 raspberrypi weewx[737] CRITICAL weewx.engine:   
restore_signals, start_new_session)

Oct  1 02:00:23 raspberrypi weewx[737] CRITICAL weewx.engine: File 
"/usr/lib/python3.7/subprocess.py", line 1522, in _execute_child

Oct  1 02:00:23 raspberrypi weewx[737] CRITICAL weewx.engine:   
raise child_exception_type(errno_num, err_msg, err_filename)

Oct  1 02:00:23 raspberrypi weewx[737] CRITICAL weewx.engine:   
FileNotFoundError: [Errno 2] No such file or directory: 'rtl_433': 'rtl_433'

Oct  1 02:00:23 raspberrypi weewx[737] CRITICAL weewx.engine: 

Oct  1 02:00:23 raspberrypi weewx[737] CRITICAL weewx.engine:   During 
handling of the above exception, another exception occurred:

Oct  1 02:00:23 raspberrypi weewx[737] CRITICAL weewx.engine: 

Oct  1 02:00:23 raspberrypi weewx[737] CRITICAL weewx.engine:   
Traceback (most recent call last):

Oct  1 02:00:23 raspberrypi weewx[737] CRITICAL weewx.engine: File 
"/home/weewx/bin/weewx/engine.py", line 119, in setupStation

Oct  1 02:00:23 raspberrypi weewx[737] CRITICAL weewx.engine:   
self.console = loader_function(config_dict, self)

Oct  1 02:00:23 raspberrypi weewx[737] CRITICAL weewx.engine: File 
"/home/weewx/bin/user/sdr.py", line 147, in loader

Oct  1 02:00:23 raspberrypi weewx[737] CRITICAL weewx.engine:   
return SDRDriver(**config_dict[DRIVER_NAME])

Oct  1 02:00:23 raspberrypi weewx[737] CRITICAL weewx.engine: File 
"/home/weewx/bin/user/sdr.py", line 2674, in __init__

Oct  1 02:00:23 raspberrypi weewx[737] CRITICAL weewx.engine:   
self._mgr.startup(cmd, path, ld_library_path)

Oct  1 02:00:23 raspberrypi weewx[737] CRITICAL weewx.engine: File 
"/home/weewx/bin/user/sdr.py", line 207, in startup

Oct  1 02:00:23 raspberrypi weewx[737] CRITICAL weewx.engine:   
(cmd, e))

Oct  1 02:00:23 raspberrypi weewx[737] CRITICAL weewx.engine:   
weewx.WeeWxIOError: failed to start process 'rtl_433 -M utc -F json': [Errno 2] 
No such file or directory: 'rtl_433': 'rtl_433'

Oct  1 02:00:23 raspberrypi weewx[737] CRITICAL __main__: Unable to load 
driver: failed to start process 'rtl_433 -M utc -F json': [Errno 2] No such 
file or directory: 'rtl_433': 'rtl_433'

Oct  1 02:00:23 raspberrypi weewx[737] CRITICAL __main__:   Exiting...

 

From: dave.spicer2...@gmail.com  
Sent: Wednesday, September 29, 2021 5:28 PM
To: weewx-user@googlegroups.com
Subject: RE: [weewx-user] Re: SDR Help

 

Thanks for the help. I can’t believe that I didn’t catch on to that. It is 
working now.

 

Thanks again

Dave

 

From: weewx-user@googlegroups.com   
mailto:weewx-user@googlegroups.com> > On Behalf 
Of gjr80
Sent: Wednesday, September 29, 2021 5:25 PM
To: weewx-user mailto:weewx-user@googlegroups.com> >
Subject: [weewx-user] Re: SDR Help

 

Hi,

 

Likely a python 2/3 problem. When you run the driver directly you need to use 
the same major python version that WeeWX uses, ie python2 or python3. The 
python version run when using the command ‘python’ varies from system to 
system. Check the WeeWX log (assuming you have run WeeWX) and just after 
startup it should log the python version used by WeeWX. If it’s python 3.x try 
using ‘python3’ instead of ‘python’ in the above command. Otherwise try 
‘python2’. If you haven’t started WeeWX yet have a look at the first line of 
any of the WeeWX utilities, say wee_databae, and see what the shebang is. 
wee_database will be in /home/weewx/bin or /usr/share/weewx.

 

Gary

On Thursday, 30 September 2021 at 08:55:30 UTC+10 dave.sp...@gmail.com 
  wrote:

Ok, after playing around with the interceptor driver and not being able to make 
it work, I have decided to go the SDR route. I have been following the 
documentation from https://github.com/matthewwall/weewx-sdr. I was able to get 
the driver install and configured for weewx but when I 

RE: [weewx-user] Re: SDR Help

2021-09-29 Thread dave.spicer2012
Thanks for the help. I can’t believe that I didn’t catch on to that. It is 
working now.

 

Thanks again

Dave

 

From: weewx-user@googlegroups.com  On Behalf Of 
gjr80
Sent: Wednesday, September 29, 2021 5:25 PM
To: weewx-user 
Subject: [weewx-user] Re: SDR Help

 

Hi,

 

Likely a python 2/3 problem. When you run the driver directly you need to use 
the same major python version that WeeWX uses, ie python2 or python3. The 
python version run when using the command ‘python’ varies from system to 
system. Check the WeeWX log (assuming you have run WeeWX) and just after 
startup it should log the python version used by WeeWX. If it’s python 3.x try 
using ‘python3’ instead of ‘python’ in the above command. Otherwise try 
‘python2’. If you haven’t started WeeWX yet have a look at the first line of 
any of the WeeWX utilities, say wee_databae, and see what the shebang is. 
wee_database will be in /home/weewx/bin or /usr/share/weewx.

 

Gary

On Thursday, 30 September 2021 at 08:55:30 UTC+10 dave.sp...@gmail.com 
  wrote:

Ok, after playing around with the interceptor driver and not being able to make 
it work, I have decided to go the SDR route. I have been following the 
documentation from https://github.com/matthewwall/weewx-sdr. I was able to get 
the driver install and configured for weewx but when I run the driver directly 
using the command sudo PYTHONPATH=bin python bin/user/sdr.py –cmd”rtl_433 -M 
utc -F json” I get the following python error:

 

Traceback (most recent call last):

  File "bin/user/sdr.py", line 92, in 

import weewx.units

  File "/home/weewx/bin/weewx/units.py", line 24, in 

import weeutil.weeutil

  File "/home/weewx/bin/weeutil/weeutil.py", line 27, in 

from weeutil.config import accumulateLeaves, search_up

  File "/home/weewx/bin/weeutil/config.py", line 11, in 

import configobj

ImportError: No module named configobj

 

To make that says that configobj library is not install but it is. 

 

This is a brand-new install of Raspbian 10 and everything else.

 

I can sudo rtl_433 -M utc -F json and I do get output from my weather station.

 

Anyone know how to fix the sdr.py issue that I stated above?

 

Thanks

Dave

-- 
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/8c005628-3505-499e-845d-057dc92da6b7n%40googlegroups.com
 

 .

-- 
You received this message because you are subscribed to the Google Groups 
"weewx-user" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to weewx-user+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/weewx-user/006601d7b589%249ba1d3e0%24d2e57ba0%24%40gmail.com.


[weewx-user] SDR Help

2021-09-29 Thread dave.spicer2012
Ok, after playing around with the interceptor driver and not being able to
make it work, I have decided to go the SDR route. I have been following the
documentation from https://github.com/matthewwall/weewx-sdr. I was able to
get the driver install and configured for weewx but when I run the driver
directly using the command sudo PYTHONPATH=bin python bin/user/sdr.py
-cmd"rtl_433 -M utc -F json" I get the following python error:

 

Traceback (most recent call last):

  File "bin/user/sdr.py", line 92, in 

import weewx.units

  File "/home/weewx/bin/weewx/units.py", line 24, in 

import weeutil.weeutil

  File "/home/weewx/bin/weeutil/weeutil.py", line 27, in 

from weeutil.config import accumulateLeaves, search_up

  File "/home/weewx/bin/weeutil/config.py", line 11, in 

import configobj

ImportError: No module named configobj

 

To make that says that configobj library is not install but it is. 

 

This is a brand-new install of Raspbian 10 and everything else.

 

I can sudo rtl_433 -M utc -F json and I do get output from my weather
station.

 

Anyone know how to fix the sdr.py issue that I stated above?

 

Thanks

Dave

-- 
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/005b01d7b585%24176aec00%244640c400%24%40gmail.com.


[weewx-user] Interceptor drive help

2021-09-19 Thread dave.spicer2012
I am in the process on getting the interceptor driver configured and I am
having an issue. I have the acurite atlas weather station. Weewx is a brand
new install on ubuntu. Currently the weather station is uploading the data
to wunderground with no issue. But when I run sudo
PYTHONPATH=/usr/share/weewx python3 /usr/share/weewx/user/interceptor.py
--device=acurite-bridge --mode=listen address=THE IP ADDRESS OF THE ACURITE
ACCESS, I do not get anything at all. 

 

Can anyone tell me what could be going on please?

 

Thanks

Dave

-- 
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/189f01d7ad62%243a6cd450%24af467cf0%24%40gmail.com.


RE: [weewx-user] WeeWX keeps crashing

2020-05-30 Thread dave.spicer2012
Thanks Tom for that info. As soon as you told me that, I knew exactly what 
tables to fix. I had an some bad data this morning that I fixed. Instead on 
putting a 0 in its place I just nulled it out. I is now back up and running all 
of the way with all of my data?

 

Since I am running an old version of weewx 3.9.1, how old will it be to upgrade 
to the latest? What steps would I take to do that?

 

Thanks

Dave

 

From: weewx-user@googlegroups.com  On Behalf Of 
Tom Keffer
Sent: Saturday, May 30, 2020 6:45 PM
To: weewx-user 
Subject: Re: [weewx-user] WeeWX keeps crashing

 

I would guess that the column 'sum' in one of the daily summaries now has a 
value of "null" instead of 0. If you have a good idea which table it is (there 
are dozens!), you could search for it. For example:

 

sqlite3 weewx.sdb

sqlite> select dateTime, sum from archive_day_rain where sum=null;

 

But, if you don't know which table, this could get pretty tedious.

 

Fortunately, you have a backup, right? ☺

 

-tk

 

On Sat, May 30, 2020 at 5:35 PM mailto:dave.spicer2...@gmail.com> > wrote:

Ok. I did a little bit more troubleshooting on this and it appears that I have 
a database corruption. I took a backup of my existing database for weewx which 
is on MySQL. Let it recreate the database and now it is stable. 

 

Is there a way for weewx to repair the database so that I don’t loose all of my 
data?

 

When I ran python –version is came back as Python 2.7.13

 

Dave

 

From: weewx-user@googlegroups.com   
mailto:weewx-user@googlegroups.com> > On Behalf 
Of John Kline
Sent: Saturday, May 30, 2020 6:32 PM
To: weewx-user@googlegroups.com  
Subject: Re: [weewx-user] WeeWX keeps crashing

 

Did you change the default version of Python to 3?

 

What is the output of:

python —version

 

On May 30, 2020, at 5:17 PM, dave.spicer2...@gmail.com 
  wrote:



This morning, I noticed that I was not getting any data from WeeWX. I am 
running weewx ver 3.9.1 on a raspberry pi. I have reboot the raspberry pi to 
see if it would fix the issue but still nothing. When I look at that tail -f 
/var/log/syslog Here is the error that I am getting. 

 

May 30 18:07:46 raspberrypi weewx[467]: manager: Added record 2020-05-30 
18:07:30 MDT (1590883650) to database 'weewx'

May 30 18:07:46 raspberrypi weewx[467]: engine: Main loop exiting. Shutting 
engine down.

May 30 18:07:46 raspberrypi weewx[467]: engine: Shutting down StdReport thread

May 30 18:07:46 raspberrypi weewx[467]: engine: Caught unrecoverable exception 
in engine:

May 30 18:07:46 raspberrypi weewx[467]:   unsupported operand type(s) 
for +=: 'NoneType' and 'float'

May 30 18:07:46 raspberrypi weewx[467]:   Traceback (most recent call 
last):

May 30 18:07:46 raspberrypi weewx[467]: File 
"/home/weewx/bin/weewx/engine.py", line 890, in main

May 30 18:07:46 raspberrypi weewx[467]:   engine.run()

May 30 18:07:46 raspberrypi weewx[467]: File 
"/home/weewx/bin/weewx/engine.py", line 202, in run

May 30 18:07:46 raspberrypi weewx[467]:   
self.dispatchEvent(weewx.Event(weewx.POST_LOOP))

May 30 18:07:46 raspberrypi weewx[467]: File 
"/home/weewx/bin/weewx/engine.py", line 224, in dispatchEvent

May 30 18:07:46 raspberrypi weewx[467]:   callback(event)

May 30 18:07:46 raspberrypi weewx[467]: File 
"/home/weewx/bin/weewx/engine.py", line 582, in post_loop

May 30 18:07:46 raspberrypi weewx[467]:   self._software_catchup()

May 30 18:07:46 raspberrypi weewx[467]: File 
"/home/weewx/bin/weewx/engine.py", line 646, in _software_catchup

May 30 18:07:46 raspberrypi weewx[467]:   
self.engine.dispatchEvent(weewx.Event(weewx.NEW_ARCHIVE_RECORD, record=record, 
origin='software'))

May 30 18:07:46 raspberrypi weewx[467]: File 
"/home/weewx/bin/weewx/engine.py", line 224, in dispatchEvent

May 30 18:07:46 raspberrypi weewx[467]:   callback(event)

May 30 18:07:46 raspberrypi weewx[467]: File 
"/home/weewx/bin/weewx/engine.py", line 601, in new_archive_record

May 30 18:07:46 raspberrypi weewx[467]:   
dbmanager.addRecord(event.record, accumulator=self.old_accumulator)

May 30 18:07:46 raspberrypi weewx[467]: File 
"/home/weewx/bin/weewx/manager.py", line 246, in addRecord

May 30 18:07:46 raspberrypi weewx[467]:   
self._addSingleRecord(record, cursor, log_level)

May 30 18:07:46 raspberrypi weewx[467]: File 
"/home/weewx/bin/weewx/manager.py", line 1216, in _addSingleRecord

May 30 18:07:46 raspberrypi weewx[467]:   
_day_summary.addRecord(record, weight=_weight)

May 30 18:07:46 raspberrypi weewx[467]: File 
"/home/weewx/bin/weewx/accum.py", line 256, in addRecord

May 30 18:07:46 raspberrypi weewx[467]:   func(self, record, 

RE: [weewx-user] WeeWX keeps crashing

2020-05-30 Thread dave.spicer2012
Ok. I did a little bit more troubleshooting on this and it appears that I have 
a database corruption. I took a backup of my existing database for weewx which 
is on MySQL. Let it recreate the database and now it is stable. 

 

Is there a way for weewx to repair the database so that I don’t loose all of my 
data?

 

When I ran python –version is came back as Python 2.7.13

 

Dave

 

From: weewx-user@googlegroups.com  On Behalf Of 
John Kline
Sent: Saturday, May 30, 2020 6:32 PM
To: weewx-user@googlegroups.com
Subject: Re: [weewx-user] WeeWX keeps crashing

 

Did you change the default version of Python to 3?

 

What is the output of:

python —version





On May 30, 2020, at 5:17 PM, dave.spicer2...@gmail.com 
  wrote:



This morning, I noticed that I was not getting any data from WeeWX. I am 
running weewx ver 3.9.1 on a raspberry pi. I have reboot the raspberry pi to 
see if it would fix the issue but still nothing. When I look at that tail -f 
/var/log/syslog Here is the error that I am getting. 

 

May 30 18:07:46 raspberrypi weewx[467]: manager: Added record 2020-05-30 
18:07:30 MDT (1590883650) to database 'weewx'

May 30 18:07:46 raspberrypi weewx[467]: engine: Main loop exiting. Shutting 
engine down.

May 30 18:07:46 raspberrypi weewx[467]: engine: Shutting down StdReport thread

May 30 18:07:46 raspberrypi weewx[467]: engine: Caught unrecoverable exception 
in engine:

May 30 18:07:46 raspberrypi weewx[467]:   unsupported operand type(s) 
for +=: 'NoneType' and 'float'

May 30 18:07:46 raspberrypi weewx[467]:   Traceback (most recent call 
last):

May 30 18:07:46 raspberrypi weewx[467]: File 
"/home/weewx/bin/weewx/engine.py", line 890, in main

May 30 18:07:46 raspberrypi weewx[467]:   engine.run()

May 30 18:07:46 raspberrypi weewx[467]: File 
"/home/weewx/bin/weewx/engine.py", line 202, in run

May 30 18:07:46 raspberrypi weewx[467]:   
self.dispatchEvent(weewx.Event(weewx.POST_LOOP))

May 30 18:07:46 raspberrypi weewx[467]: File 
"/home/weewx/bin/weewx/engine.py", line 224, in dispatchEvent

May 30 18:07:46 raspberrypi weewx[467]:   callback(event)

May 30 18:07:46 raspberrypi weewx[467]: File 
"/home/weewx/bin/weewx/engine.py", line 582, in post_loop

May 30 18:07:46 raspberrypi weewx[467]:   self._software_catchup()

May 30 18:07:46 raspberrypi weewx[467]: File 
"/home/weewx/bin/weewx/engine.py", line 646, in _software_catchup

May 30 18:07:46 raspberrypi weewx[467]:   
self.engine.dispatchEvent(weewx.Event(weewx.NEW_ARCHIVE_RECORD, record=record, 
origin='software'))

May 30 18:07:46 raspberrypi weewx[467]: File 
"/home/weewx/bin/weewx/engine.py", line 224, in dispatchEvent

May 30 18:07:46 raspberrypi weewx[467]:   callback(event)

May 30 18:07:46 raspberrypi weewx[467]: File 
"/home/weewx/bin/weewx/engine.py", line 601, in new_archive_record

May 30 18:07:46 raspberrypi weewx[467]:   
dbmanager.addRecord(event.record, accumulator=self.old_accumulator)

May 30 18:07:46 raspberrypi weewx[467]: File 
"/home/weewx/bin/weewx/manager.py", line 246, in addRecord

May 30 18:07:46 raspberrypi weewx[467]:   
self._addSingleRecord(record, cursor, log_level)

May 30 18:07:46 raspberrypi weewx[467]: File 
"/home/weewx/bin/weewx/manager.py", line 1216, in _addSingleRecord

May 30 18:07:46 raspberrypi weewx[467]:   
_day_summary.addRecord(record, weight=_weight)

May 30 18:07:46 raspberrypi weewx[467]: File 
"/home/weewx/bin/weewx/accum.py", line 256, in addRecord

May 30 18:07:46 raspberrypi weewx[467]:   func(self, record, 
obs_type, add_hilo, weight)

May 30 18:07:46 raspberrypi weewx[467]: File 
"/home/weewx/bin/weewx/accum.py", line 315, in add_value

May 30 18:07:46 raspberrypi weewx[467]:   
self[obs_type].addSum(val, weight=weight)

May 30 18:07:46 raspberrypi weewx[467]: File 
"/home/weewx/bin/weewx/accum.py", line 94, in addSum

May 30 18:07:46 raspberrypi weewx[467]:   self.sum += val

May 30 18:07:46 raspberrypi weewx[467]:   TypeError: unsupported 
operand type(s) for +=: 'NoneType' and 'float'

May 30 18:07:46 raspberrypi weewx[467]:   Exiting.

 

 

How do I get weewx working again?

 

Thanks

Dave

-- 
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/008201d636e0%24ea6155b0%24bf240110%24%40gmail.com
 

[weewx-user] WeeWX keeps crashing

2020-05-30 Thread dave.spicer2012
This morning, I noticed that I was not getting any data from WeeWX. I am
running weewx ver 3.9.1 on a raspberry pi. I have reboot the raspberry pi to
see if it would fix the issue but still nothing. When I look at that tail -f
/var/log/syslog Here is the error that I am getting. 

 

May 30 18:07:46 raspberrypi weewx[467]: manager: Added record 2020-05-30
18:07:30 MDT (1590883650) to database 'weewx'

May 30 18:07:46 raspberrypi weewx[467]: engine: Main loop exiting. Shutting
engine down.

May 30 18:07:46 raspberrypi weewx[467]: engine: Shutting down StdReport
thread

May 30 18:07:46 raspberrypi weewx[467]: engine: Caught unrecoverable
exception in engine:

May 30 18:07:46 raspberrypi weewx[467]:   unsupported operand
type(s) for +=: 'NoneType' and 'float'

May 30 18:07:46 raspberrypi weewx[467]:   Traceback (most recent
call last):

May 30 18:07:46 raspberrypi weewx[467]: File
"/home/weewx/bin/weewx/engine.py", line 890, in main

May 30 18:07:46 raspberrypi weewx[467]:   engine.run()

May 30 18:07:46 raspberrypi weewx[467]: File
"/home/weewx/bin/weewx/engine.py", line 202, in run

May 30 18:07:46 raspberrypi weewx[467]: 
self.dispatchEvent(weewx.Event(weewx.POST_LOOP))

May 30 18:07:46 raspberrypi weewx[467]: File
"/home/weewx/bin/weewx/engine.py", line 224, in dispatchEvent

May 30 18:07:46 raspberrypi weewx[467]:   callback(event)

May 30 18:07:46 raspberrypi weewx[467]: File
"/home/weewx/bin/weewx/engine.py", line 582, in post_loop

May 30 18:07:46 raspberrypi weewx[467]: 
self._software_catchup()

May 30 18:07:46 raspberrypi weewx[467]: File
"/home/weewx/bin/weewx/engine.py", line 646, in _software_catchup

May 30 18:07:46 raspberrypi weewx[467]: 
self.engine.dispatchEvent(weewx.Event(weewx.NEW_ARCHIVE_RECORD,
record=record, origin='software'))

May 30 18:07:46 raspberrypi weewx[467]: File
"/home/weewx/bin/weewx/engine.py", line 224, in dispatchEvent

May 30 18:07:46 raspberrypi weewx[467]:   callback(event)

May 30 18:07:46 raspberrypi weewx[467]: File
"/home/weewx/bin/weewx/engine.py", line 601, in new_archive_record

May 30 18:07:46 raspberrypi weewx[467]: 
dbmanager.addRecord(event.record, accumulator=self.old_accumulator)

May 30 18:07:46 raspberrypi weewx[467]: File
"/home/weewx/bin/weewx/manager.py", line 246, in addRecord

May 30 18:07:46 raspberrypi weewx[467]: 
self._addSingleRecord(record, cursor, log_level)

May 30 18:07:46 raspberrypi weewx[467]: File
"/home/weewx/bin/weewx/manager.py", line 1216, in _addSingleRecord

May 30 18:07:46 raspberrypi weewx[467]: 
_day_summary.addRecord(record, weight=_weight)

May 30 18:07:46 raspberrypi weewx[467]: File
"/home/weewx/bin/weewx/accum.py", line 256, in addRecord

May 30 18:07:46 raspberrypi weewx[467]:   func(self, record,
obs_type, add_hilo, weight)

May 30 18:07:46 raspberrypi weewx[467]: File
"/home/weewx/bin/weewx/accum.py", line 315, in add_value

May 30 18:07:46 raspberrypi weewx[467]: 
self[obs_type].addSum(val, weight=weight)

May 30 18:07:46 raspberrypi weewx[467]: File
"/home/weewx/bin/weewx/accum.py", line 94, in addSum

May 30 18:07:46 raspberrypi weewx[467]:   self.sum += val

May 30 18:07:46 raspberrypi weewx[467]:   TypeError: unsupported
operand type(s) for +=: 'NoneType' and 'float'

May 30 18:07:46 raspberrypi weewx[467]:   Exiting.

 

 

How do I get weewx working again?

 

Thanks

Dave

-- 
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/008201d636e0%24ea6155b0%24bf240110%24%40gmail.com.


RE: [weewx-user] Abnormal Rain amount

2019-05-30 Thread dave.spicer2012
Thanks. I was able to edit the archive database. 

 

My next question is where is the record high/lo data stored in? I need to 
remove those entries?

 

Thanks

Dave

 

From: weewx-user@googlegroups.com  On Behalf Of p q
Sent: Thursday, May 30, 2019 6:12 PM
To: weewx-user@googlegroups.com
Subject: Re: [weewx-user] Abnormal Rain amount

 

You can start by tweaking the StdQC section in weewx.conf to limit the 
erroneous values.  I don't know what causes it. I get random winds of 40 mph 
when I've never seen real wind above 20 in my sheltered location.

 

To fix it, I stop the weewx service (sudo /etc/init.d/weewx stop on my 
raspberry PI). Make a backup copy of the database (/var/lib/weewx/weewx.sdb is 
the default)  and then edit the database to remove the bogus entries. You can 
use any SQLite database editor, but I copy it to my Windows PC and edit it with 
DB Browser. You'll want the archive table. DB Browser lets you filter the 
results. Look in the rain or maybe rainRate field. I'd just null out the bad 
records or put in 0s. 

Save and copy the file back and restart Weewx and you should be good to go.

 

When you're editing the db, one thing I find useful is to check the dateTime 
field of the records that I'm editing. This is stored as unix Epochs. Easiest 
way to convert to human readable time is to use a online tool like 
https://www.epochconverter.com/

 

Good luck

 

 

On Thu, May 30, 2019 at 4:02 PM mailto:dave.spicer2...@gmail.com> > wrote:

Hello everyone, I am fairly new to running weewx and so far I love it. I am 
running it on a raspberry pi with a separate MySQL server and HTTP server. Here 
is my problem. This morning I was looking at the weather data thru the http 
server and I noticed that I received a very large amount of rain, but in fact 
there is no rain at the place of my sensor. So I have a couple of questions. 
1st – Is there a way to see what triggered the large amount of rain? It 
measured 5+ inches of rain. 2nd – Is there a way to adjust or remove that entry 
so it doesn’t skew the data? 3rd – I have seen this a couple of times, but is 
there a way to help prevent this?

 

Thanks

Dave

-- 
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/19e001d5173b%249ed27680%24dc776380%24%40gmail.com
 

 .
For more options, visit https://groups.google.com/d/optout.




 

-- 

Peter Quinn
(415)794-2264

-- 
You received this message because you are subscribed to the Google Groups 
"weewx-user" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to weewx-user+unsubscr...@googlegroups.com 
 .
To view this discussion on the web visit 
https://groups.google.com/d/msgid/weewx-user/CAA1SM234TY4DEEGgtUb_3y08VprjFPGUaZ1KON7DSSfsKHx5PQ%40mail.gmail.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/000d01d5174f%2450275d70%24f0761850%24%40gmail.com.
For more options, visit https://groups.google.com/d/optout.


[weewx-user] Abnormal Rain amount

2019-05-30 Thread dave.spicer2012
Hello everyone, I am fairly new to running weewx and so far I love it. I am
running it on a raspberry pi with a separate MySQL server and HTTP server.
Here is my problem. This morning I was looking at the weather data thru the
http server and I noticed that I received a very large amount of rain, but
in fact there is no rain at the place of my sensor. So I have a couple of
questions. 1st - Is there a way to see what triggered the large amount of
rain? It measured 5+ inches of rain. 2nd - Is there a way to adjust or
remove that entry so it doesn't skew the data? 3rd - I have seen this a
couple of times, but is there a way to help prevent this?

 

Thanks

Dave

-- 
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/19e001d5173b%249ed27680%24dc776380%24%40gmail.com.
For more options, visit https://groups.google.com/d/optout.


RE: [weewx-user] Re: Weewx Skins issue

2018-11-05 Thread dave.spicer2012
Thanks for the tip. After viewing the syslog, turns out there was a typo and 
couldn’t find the skin.

 

Thanks for the quick reply

Dave

 

From: weewx-user@googlegroups.com  On Behalf Of 
gjr80
Sent: Monday, November 5, 2018 5:43 PM
To: weewx-user 
Subject: [weewx-user] Re: Weewx Skins issue

 

Hi,

 

The clue(s) to what is or is not going on will be in the log, this will likely 
be /var/log/syslog though it could be different depending on your system or if 
you have explicitly changed the weeWX log destination. It could be a case of 
your archive interval is say 30 minutes and no archive records have yet been 
generated (to cause the report cycle to be run). There could be some other 
error that is causing the skin files not to be generated. If you don't feel 
confident interpreting the log post an extract here, ideally covering the 
period from weeWX startup through until at least 15 minutes later.

 

Gary


On Tuesday, 6 November 2018 10:10:33 UTC+10, Dave Spicer wrote:

Please bare with me and sorry if this has been asked. I am very new to weewx 
(been running it for 3 days now). I want to change my skin. The skin that I am 
looking at is exfoliation. As per the directions on Github, I installed and 
restart the weewx service but the skin is not changing when I go and view the 
webpage. I have given it a few minutes just to make sure that the templates is 
the right one. Still Nothing. 

 

When I do a wee_extension --list it does show the skin is there.

 

What do I need to do it get this new skin working correctly?

 

Thanks

Dave

-- 
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.