Re: [weewx-user] Re: Weewx on RPi Zero

2019-11-19 Thread peter
Thank you all for all suggestions and description.
>From what I understand I can keep the original weewx running and just create 
>another script, database and conf file. I have the WeatherFlow right now and 
>will add Davis.
I’ll report how it goes.

-- 
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/4cdba9ad-58ec-4635-9adc-ee3e14d8b1ed%40googlegroups.com.


Re: [weewx-user] Re: Ecowitt Pm2.5 sensor and Wundergorund

2019-11-19 Thread Tim Tuck

G'Day,

i've seen that post :) That is a post about getting the GW1000 running 
with Weewx which is something I'm working on using that post as a guide, 
and that's not quite working for me either so I'm in the process of 
debugging why.


The GW1000 already uploads data to WU and I was wondering if there was 
some setting that would make data such as the PM2.5 output appear on WU. 
I now know there isn't.


I used Wireshark to capture the W1000 WU data packet off my network and 
I can see that the W1000 doesn't post PM2.5 data to WU.


My best course of action is to use the "customer server" mode of the 
W1000 and the Ecowitt packet format so that my instance of Weewx 
captures all the data and then use Weewx to post to WU. Maybe then WU 
will get the PM2.5 data.


regards

Tim


On 20/11/2019 2:04 pm, G Hammer wrote:

This post is a handy place to start.

GW1000 with WeeWX 

On Tuesday, November 19, 2019 at 7:21:04 PM UTC-5, Tim Tuck wrote:

Hi all,

I've just purchased an Ecowitt GW1000 with various sensors and I was
wondering what platform I should select so that the PM2.5 sensor
shows
up in my Wunderground data since Ecowitt is not in the list.

Also getting the soil moisture sensors to show up would be an
added bonus!

Any help appreciated.

thanks

Tim


--
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/369bdfbd-75a3-4ed7-b776-69db4aa31a8e%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/eab2edfa-3996-8250-6e81-b7585f1e2ce5%40skybase.net.


[weewx-user] Re: Weewx "off line"

2019-11-19 Thread Andrew Milner
it was my understanding from one of the threads that there was a version of 
the driver supposed to address this issue - have you used that version of 
the wmr driver??



On Wednesday, 20 November 2019 04:00:18 UTC+2, Teva MERVIN wrote:
>
> Some details of my installation:
>
> - Debian server 5.2.17-1
> - Weewx 3.9.2-0
> - Database: sqlite
> - Skin: Weather34
> - Station: Oregon WMR200
>
> Le mardi 19 novembre 2019 16:36:37 UTC+11, Teva MERVIN a écrit :
>>
>> Hello.
>> I have a problem that I can not identify.
>> It happens at least once a day, and I have to restart weewx.
>> Do you have ideas?
>>
>> root@Nas:~# service weewx status
>> ● weewx.service - LSB: weewx weather system 
>>   Loaded: loaded (/etc/init.d/weewx; generated) 
>>   Active: active (exited) since Sun 2019-11-17 19:09:21 +11; 1 day 21h 
>> ago 
>> Docs: man:systemd-sysv-generator(8) 
>>  Process: 2094 ExecStart=/etc/init.d/weewx start (code=exited, 
>> status=0/SUCCESS) 
>>
>> nov. 19 13:34:26 Nas weewx[2110]: File 
>> "/usr/share/weewx/weewx/engine.py", line 601, in new_archive_record 
>> nov. 19 13:34:26 Nas weewx[2110]:  
>>  dbmanager.addRecord(event.record, accumulator=self.old_accumulator) 
>> nov. 19 13:34:26 Nas weewx[2110]: File 
>> "/usr/share/weewx/weewx/manager.py", line 246, in addRecord 
>> nov. 19 13:34:26 Nas weewx[2110]:  
>>  self._addSingleRecord(record, cursor, log_level) 
>> nov. 19 13:34:26 Nas weewx[2110]: File 
>> "/usr/share/weewx/weewx/manager.py", line 1212, in _addSingleRecord 
>> nov. 19 13:34:26 Nas weewx[2110]:   _weight = 
>> self._calc_weight(record) 
>> nov. 19 13:34:26 Nas weewx[2110]: File 
>> "/usr/share/weewx/weewx/manager.py", line 1582, in _calc_weight 
>> nov. 19 13:34:26 Nas weewx[2110]:   raise 
>> ValueError("Non-positive value for record field 'interval': %s" % 
>> (record['interval'], )) 
>> nov. 19 13:34:26 Nas weewx[2110]:   ValueError: Non-positive 
>> value for record field 'interval': 0 
>> nov. 19 13:34:26 Nas weewx[2110]:   Exiting.
>>
>> Thank you.
>>
>

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


[weewx-user] Re: Ecowitt Pm2.5 sensor and Wundergorund

2019-11-19 Thread G Hammer
This post is a handy place to start.

GW1000 with WeeWX 

On Tuesday, November 19, 2019 at 7:21:04 PM UTC-5, Tim Tuck wrote:
>
> Hi all, 
>
> I've just purchased an Ecowitt GW1000 with various sensors and I was 
> wondering what platform I should select so that the PM2.5 sensor shows 
> up in my Wunderground data since Ecowitt is not in the list. 
>
> Also getting the soil moisture sensors to show up would be an added bonus! 
>
> Any help appreciated. 
>
> thanks 
>
> Tim 
>
>
>

-- 
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/369bdfbd-75a3-4ed7-b776-69db4aa31a8e%40googlegroups.com.


[weewx-user] Re: Weewx "off line"

2019-11-19 Thread Teva MERVIN
Some details of my installation:

- Debian server 5.2.17-1
- Weewx 3.9.2-0
- Database: sqlite
- Skin: Weather34
- Station: Oregon WMR200

Le mardi 19 novembre 2019 16:36:37 UTC+11, Teva MERVIN a écrit :
>
> Hello.
> I have a problem that I can not identify.
> It happens at least once a day, and I have to restart weewx.
> Do you have ideas?
>
> root@Nas:~# service weewx status
> ● weewx.service - LSB: weewx weather system 
>   Loaded: loaded (/etc/init.d/weewx; generated) 
>   Active: active (exited) since Sun 2019-11-17 19:09:21 +11; 1 day 21h 
> ago 
> Docs: man:systemd-sysv-generator(8) 
>  Process: 2094 ExecStart=/etc/init.d/weewx start (code=exited, 
> status=0/SUCCESS) 
>
> nov. 19 13:34:26 Nas weewx[2110]: File 
> "/usr/share/weewx/weewx/engine.py", line 601, in new_archive_record 
> nov. 19 13:34:26 Nas weewx[2110]:  
>  dbmanager.addRecord(event.record, accumulator=self.old_accumulator) 
> nov. 19 13:34:26 Nas weewx[2110]: File 
> "/usr/share/weewx/weewx/manager.py", line 246, in addRecord 
> nov. 19 13:34:26 Nas weewx[2110]:  
>  self._addSingleRecord(record, cursor, log_level) 
> nov. 19 13:34:26 Nas weewx[2110]: File 
> "/usr/share/weewx/weewx/manager.py", line 1212, in _addSingleRecord 
> nov. 19 13:34:26 Nas weewx[2110]:   _weight = 
> self._calc_weight(record) 
> nov. 19 13:34:26 Nas weewx[2110]: File 
> "/usr/share/weewx/weewx/manager.py", line 1582, in _calc_weight 
> nov. 19 13:34:26 Nas weewx[2110]:   raise 
> ValueError("Non-positive value for record field 'interval': %s" % 
> (record['interval'], )) 
> nov. 19 13:34:26 Nas weewx[2110]:   ValueError: Non-positive 
> value for record field 'interval': 0 
> nov. 19 13:34:26 Nas weewx[2110]:   Exiting.
>
> Thank you.
>

-- 
You received this message because you are subscribed to the Google Groups 
"weewx-user" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to weewx-user+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/weewx-user/0c93a1ce-4fd0-4741-8068-8fb8f42af1bc%40googlegroups.com.


Re: [weewx-user] Re: Weewx on RPi Zero

2019-11-19 Thread Susan Mackay
No - I have an HP1000 clone.

As for the systemd file (which is /etc/systemd/system/weewx.service on my 
RPi) it is:

# systemd configuration for weewx

[Unit]
Description=weewx weather system
Requires=syslog.service
Requires=ntp.service
Requires=time-sync.target
Requires=network-online.target
After=syslog.service
After=ntp.service
After=network-online.target
After=time-sync.target
RequiresMountsFor=/home
RequiresMountsFor=/home/weewx

[Service]
ExecStart=/home/weewx/bin/weewxd --daemon --pidfile=/var/run/weewx.pid 
/home/weewx/weewx.conf
ExecReload=/bin/kill -HUP $MAINPID
Type=simple
PIDFile=/var/run/weewx.pid
#User=weewx
#Group=weewx
Restart=always
RestartSec=5

[Install]
WantedBy=multi-user.target


You can forget the lines about 'RequiresMountFor' - I have all of the weewx 
files held on a NAS (which also helps reduce the wear on the SD card in the 
RPi) and these just make sure that the NAS drive is mounted before it tries 
to access the files.
Also change the references to '/home/weewx/ to wherever your files are 
located.
Susan

On Wednesday, November 20, 2019 at 5:18:46 AM UTC+11, David VE3STI wrote:
>
> Susan: Do you have a Davis system? The reason I ask is that, from my 
> reading of the comments over the last few years, this 'argument' between 
> the RPi starting up and the weather station hardware may be limited to the 
> Davis systems with their logging interface. Would you be willing to share 
> your coding/scripts/etc with the rest of us? Although I have added an RTC 
> and a UPS, I wish that my system was robust enough to reliably deal with 
> power interruptions without these additions. (The RTC and UPS cost more 
> than the RPi!)
>

-- 
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/e7dde985-af39-4590-b81d-828bda625b5a%40googlegroups.com.


[weewx-user] Ecowitt Pm2.5 sensor and Wundergorund

2019-11-19 Thread Tim Tuck

Hi all,

I've just purchased an Ecowitt GW1000 with various sensors and I was 
wondering what platform I should select so that the PM2.5 sensor shows 
up in my Wunderground data since Ecowitt is not in the list.


Also getting the soil moisture sensors to show up would be an added bonus!

Any help appreciated.

thanks

Tim


--
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/d99a39ca-3dc9-11af-0043-bc64d330c74e%40skybase.net.


Re: [weewx-user] Weewx on RPi Zero

2019-11-19 Thread Les Niles
Likewise — I have an RTC but no UPS on an RPi 3, and have zero problems with 
data loss or corruption due to power failures from a few seconds to several 
days in duration.  The only issue is if the RPi is down for the 10-15 days that 
it takes the Davis logger’s memory to overflow.  

Going back to the original question on this thread, the RTC should work just as 
easily with a Pi Zero as with a full-sized Raspberry Pi. IIRC the RTC module is 
about $4 so not a huge expense.

  -Les

> On 19 Nov 2019, at 10:35, Andrew Milner  wrote:
> 
> for what it is worth I do not use a UPS - and we get frequent power outages 
> here.  I do use a usb hard drive though instead of the SD card on my rpi.  
> Weewx has always recovered the data from my current davis and my earlier 
> fineoffset without any issues, so i see no need for a ups.  Anyways sometimes 
> our outages are for 3,4,5 hours so it is doubtful the ups would keep things 
> running anyway even if I had one.  I do have an RTC installed to make sure 
> there are no hiccups in recovering the data from the station logger though!!
> 
> 
> 
> On Tuesday, 19 November 2019 20:18:46 UTC+2, David VE3STI wrote:
> Susan: Do you have a Davis system? The reason I ask is that, from my reading 
> of the comments over the last few years, this 'argument' between the RPi 
> starting up and the weather station hardware may be limited to the Davis 
> systems with their logging interface. Would you be willing to share your 
> coding/scripts/etc with the rest of us? Although I have added an RTC and a 
> UPS, I wish that my system was robust enough to reliably deal with power 
> interruptions without these additions. (The RTC and UPS cost more than the 
> RPi!)
> 
> David
> 
> On Mon, 18 Nov 2019 at 21:32, Susan Mackay > wrote:
> I use an RPi Zero W for Weewx and Nginx as well.
> I use systemd to manage it and have pre-requisites that the 'ntp.service' and 
> 'time-sync.service' have completed before it will start.
> Susan
> 
> On Monday, November 18, 2019 at 11:52:38 PM UTC+11, David VE3STI wrote:
> The problems occur during the startup, before the RPi sets its clock from the 
> Internet, and appear to be issues with the RPi and the Davis equipment 
> disagreeing on the time and getting muddled. It has been the topic of much 
> discussion and you can read the gory details in the wiki. I won't go into the 
> details here. If you have a UPS and rarely reboot, it becomes almost a 
> non-issue.
> 
> David
> 
> -- 
> 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/I5C5Wqvtw7c/unsubscribe 
> .
> To unsubscribe from this group and all its topics, send an email to 
> weewx...@googlegroups.com <>.
> To view this discussion on the web visit 
> https://groups.google.com/d/msgid/weewx-user/c6136128-8d33-450f-84b0-e70e75c49330%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/44bc2cd3-0c5d-45d1-8f6d-1913424916d0%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/D4715FFB-A16C-4D47-B9AC-9EBC7E095C7E%40gmail.com.


[weewx-user] Re: connect camera IP on belchertown skin

2019-11-19 Thread Xant
As I mentioned in previous posting, there are a great variety of camera 
brands and models with different settings and capabilities (which is beyond 
this Forum). Having a "click" button might refers to a specific client 
camera software.

1) Live Stream IP Camera
Usually a Live Stream IP Camera is expensive or need an external Encoding 
software/hardware. Check: RPi Live Stream Camera 


2) Snapshot
Instead of Live Stream, most IP cameras are capable of snapshots through 
URL or other protocol. To note, direct image URL NOT to reach your 
camera management or client software.

For example, my camera is a C2 Reolink, and I can acquire a snapshot 
thorough the following command:

http://(ip address)/cgi-bin/api.cgi?cmd=Snap=0=(any combination 
of numbers and letters)=(user name)=(user password)

https://support.reolink.com/hc/en-us/articles/360007011233-How-to-Capture-Live-JPEG-Image-of-Reolink-Cameras-via-Web-Browsers

Please, check your camera manual and/or OEM website as it might be there 
something similar.

3) 3rd Party Software
Would also suggest to play with an external image client software in you 
mobile device, like TinyCAM (https://tinycammonitor.com/). You may learn a 
lot from setting up your camera to a client mobile software (even the free 
version), as there are many protocols, ports and port-routing that can be 
addressed.

Xant

-- 
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/ce62ec77-7d14-4e6c-a2a1-29ffdc41c0d1%40googlegroups.com.


[weewx-user] Re: connect camera IP on belchertown skin

2019-11-19 Thread Patrick Tranchant


hello Xant

I found my url to access my Camera IP but when I test it ,it asks me to 
click "OK", how I can do for the click "OK" is done automatically.

thanks

Patrick


On Thursday, October 24, 2019 at 8:12:24 PM UTC+2, Patrick Tranchant wrote:
>
> hello PAT
>
> I am searching to connect a camera IP on my skin, I know somebody done it 
> but I can not find anymore.
> do you know to do it ?
> thanks
>
> 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.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/weewx-user/056d04c9-feb3-4d69-a4a9-dcdc4e2f823b%40googlegroups.com.


Re: [weewx-user] OutOfSpan: Attempt to merge an accumulator whose timespan is not a subset

2019-11-19 Thread Thomas Keffer
I've posted issue #469  to
remind us.

-tk

On Tue, Nov 19, 2019 at 11:10 AM Martin Nielsen 
wrote:

> I have now confirmed that changing the interval to a number evenly
> divisible with both 60 and 3600 seems to correct the problem.
>
> Not sure why.
>
> Thanks for the help Thomas.
>
> søndag den 17. november 2019 kl. 01.33.38 UTC+1 skrev Thomas Keffer:
>>
>> I must confess to being baffled by this one. I can't replicate it on my
>> machine, so I'm flying blind.
>>
>> On Sat, Nov 16, 2019 at 11:25 AM Martin Nielsen 
>> wrote:
>>
>>> Hi Thomas.
>>>
>>> Had the same notion so i changed the interval back to 60 this morning. I
>>> did not try this earlier because the userguide only say something about
>>> evenly divisible with 60 - not 3600. But hopefully that will prevent it
>>> from stopping this coming midnight.  It not - i plan to wait another full
>>> day to make sure all readings within that day are with a interval of 60.
>>>
>>> Might take a few days.
>>>
>>> Thanks for the help so far - will get back when i know more.
>>>
>>> /Martin
>>>
>>> lørdag den 16. november 2019 kl. 15.13.25 UTC+1 skrev Thomas Keffer:

 Still not sure what's going on, but I have my suspicions that the
 problem is your archive interval of 480 seconds. It's not evenly
 divisible into an hour.

 Could you try something like 600 or 300 seconds?

 As for the TypeError, I have no clue why that occurred. The patch
 worked fine on my machine.

 -tk

 On Fri, Nov 15, 2019 at 8:50 PM Martin Nielsen 
 wrote:

> Same - but different. :/
>
> /Martin
>
> fredag den 15. november 2019 kl. 21.01.40 UTC+1 skrev Thomas Keffer:
>>
>> That is very odd. Let's try this again, but this time with the import
>> at the top of the file.
>>
>> -tk
>>
>> On Fri, Nov 15, 2019 at 11:32 AM Martin Nielsen 
>> wrote:
>>
>>> Hi Thomas.
>>>
>>> Log attached.
>>>
>>> But I think something is wrong.. "import syslog" is written as
>>> output !?
>>>
>>> /Martin
>>>
>>> onsdag den 13. november 2019 kl. 23.58.04 UTC+1 skrev Thomas Keffer:

 Hello, Martin

 Not exactly sure what's going on here. Could you please replace
 your copy of accum.py with the attached? It has been instrumented to 
 give
 more information about the error.

 You can find it at /usr/share/weewx/weewx/accum.py.

 -tk

 On Wed, Nov 13, 2019 at 12:01 PM Martin Nielsen 
 wrote:

> Hi
>
> My weewx shuts down shortly after every midnight. It began
> immediately after DST changed a few weeks back. But this could just 
> be a
> coincidence.
>
> I have monit running to kick if back to action but it is annoying
> me - and i have been unable to figure out what is going on..
>
> I am running davis vantage pro2 iss with a metostick driver on
> raspberry pi.
>
> Weewx is installed from a deb repository.
>
>
> --
> You received this message because you are subscribed to the Google
> Groups "weewx-user" group.
> To unsubscribe from this group and stop receiving emails from it,
> send an email to weewx...@googlegroups.com.
> To view this discussion on the web visit
> https://groups.google.com/d/msgid/weewx-user/1521f01d-64fa-44c2-aaa9-50a51821fa8c%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...@googlegroups.com.
>>> To view this discussion on the web visit
>>> https://groups.google.com/d/msgid/weewx-user/e3972fbc-e08d-47b9-86ca-90d48a7e6861%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...@googlegroups.com.
> To view this discussion on the web visit
> https://groups.google.com/d/msgid/weewx-user/72521972-3b67-4dee-80e9-0c4bb4b6bbdc%40googlegroups.com
> 
> .
>
 --
>>> You received this message because you are subscribed to the Google
>>> Groups "weewx-user" 

Re: [weewx-user] OutOfSpan: Attempt to merge an accumulator whose timespan is not a subset

2019-11-19 Thread Martin Nielsen
I have now confirmed that changing the interval to a number evenly 
divisible with both 60 and 3600 seems to correct the problem. 

Not sure why.

Thanks for the help Thomas.

søndag den 17. november 2019 kl. 01.33.38 UTC+1 skrev Thomas Keffer:
>
> I must confess to being baffled by this one. I can't replicate it on my 
> machine, so I'm flying blind.
>
> On Sat, Nov 16, 2019 at 11:25 AM Martin Nielsen  > wrote:
>
>> Hi Thomas.
>>
>> Had the same notion so i changed the interval back to 60 this morning. I 
>> did not try this earlier because the userguide only say something about 
>> evenly divisible with 60 - not 3600. But hopefully that will prevent it 
>> from stopping this coming midnight.  It not - i plan to wait another full 
>> day to make sure all readings within that day are with a interval of 60. 
>>
>> Might take a few days.  
>>
>> Thanks for the help so far - will get back when i know more. 
>>
>> /Martin
>>
>> lørdag den 16. november 2019 kl. 15.13.25 UTC+1 skrev Thomas Keffer:
>>>
>>> Still not sure what's going on, but I have my suspicions that the 
>>> problem is your archive interval of 480 seconds. It's not evenly 
>>> divisible into an hour. 
>>>
>>> Could you try something like 600 or 300 seconds?
>>>
>>> As for the TypeError, I have no clue why that occurred. The patch worked 
>>> fine on my machine.
>>>
>>> -tk
>>>
>>> On Fri, Nov 15, 2019 at 8:50 PM Martin Nielsen  
>>> wrote:
>>>
 Same - but different. :/

 /Martin

 fredag den 15. november 2019 kl. 21.01.40 UTC+1 skrev Thomas Keffer:
>
> That is very odd. Let's try this again, but this time with the import 
> at the top of the file.
>
> -tk
>
> On Fri, Nov 15, 2019 at 11:32 AM Martin Nielsen  
> wrote:
>
>> Hi Thomas.
>>
>> Log attached.
>>
>> But I think something is wrong.. "import syslog" is written as output 
>> !?
>>
>> /Martin
>>
>> onsdag den 13. november 2019 kl. 23.58.04 UTC+1 skrev Thomas Keffer:
>>>
>>> Hello, Martin
>>>
>>> Not exactly sure what's going on here. Could you please replace your 
>>> copy of accum.py with the attached? It has been instrumented to give 
>>> more 
>>> information about the error.
>>>
>>> You can find it at /usr/share/weewx/weewx/accum.py.
>>>
>>> -tk
>>>
>>> On Wed, Nov 13, 2019 at 12:01 PM Martin Nielsen  
>>> wrote:
>>>
 Hi

 My weewx shuts down shortly after every midnight. It began 
 immediately after DST changed a few weeks back. But this could just be 
 a 
 coincidence.

 I have monit running to kick if back to action but it is annoying 
 me - and i have been unable to figure out what is going on..

 I am running davis vantage pro2 iss with a metostick driver on 
 raspberry pi.

 Weewx is installed from a deb repository.


 -- 
 You received this message because you are subscribed to the Google 
 Groups "weewx-user" group.
 To unsubscribe from this group and stop receiving emails from it, 
 send an email to weewx...@googlegroups.com.
 To view this discussion on the web visit 
 https://groups.google.com/d/msgid/weewx-user/1521f01d-64fa-44c2-aaa9-50a51821fa8c%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...@googlegroups.com.
>> To view this discussion on the web visit 
>> https://groups.google.com/d/msgid/weewx-user/e3972fbc-e08d-47b9-86ca-90d48a7e6861%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...@googlegroups.com.
 To view this discussion on the web visit 
 https://groups.google.com/d/msgid/weewx-user/72521972-3b67-4dee-80e9-0c4bb4b6bbdc%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...@googlegroups.com .
>> To view this discussion on the web visit 
>> 

Re: [weewx-user] Re: Weewx on RPi Zero

2019-11-19 Thread Andrew Milner
for what it is worth I do not use a UPS - and we get frequent power outages 
here.  I do use a usb hard drive though instead of the SD card on my rpi.  
Weewx has always recovered the data from my current davis and my earlier 
fineoffset without any issues, so i see no need for a ups.  Anyways 
sometimes our outages are for 3,4,5 hours so it is doubtful the ups would 
keep things running anyway even if I had one.  I do have an RTC installed 
to make sure there are no hiccups in recovering the data from the station 
logger though!!



On Tuesday, 19 November 2019 20:18:46 UTC+2, David VE3STI wrote:
>
> Susan: Do you have a Davis system? The reason I ask is that, from my 
> reading of the comments over the last few years, this 'argument' between 
> the RPi starting up and the weather station hardware may be limited to the 
> Davis systems with their logging interface. Would you be willing to share 
> your coding/scripts/etc with the rest of us? Although I have added an RTC 
> and a UPS, I wish that my system was robust enough to reliably deal with 
> power interruptions without these additions. (The RTC and UPS cost more 
> than the RPi!)
>
> David
>
> On Mon, 18 Nov 2019 at 21:32, Susan Mackay > 
> wrote:
>
>> I use an RPi Zero W for Weewx and Nginx as well.
>> I use systemd to manage it and have pre-requisites that the 'ntp.service' 
>> and 'time-sync.service' have completed before it will start.
>> Susan
>>
>> On Monday, November 18, 2019 at 11:52:38 PM UTC+11, David VE3STI wrote:
>>>
>>> The problems occur during the startup, before the RPi sets its clock 
>>> from the Internet, and appear to be issues with the RPi and the Davis 
>>> equipment disagreeing on the time and getting muddled. It has been the 
>>> topic of much discussion and you can read the gory details in the wiki. I 
>>> won't go into the details here. If you have a UPS and rarely reboot, it 
>>> becomes almost a non-issue.
>>>
>>> David
>>>
>> -- 
>> 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/I5C5Wqvtw7c/unsubscribe.
>> To unsubscribe from this group and all its topics, send an email to 
>> weewx...@googlegroups.com .
>> To view this discussion on the web visit 
>> https://groups.google.com/d/msgid/weewx-user/c6136128-8d33-450f-84b0-e70e75c49330%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/44bc2cd3-0c5d-45d1-8f6d-1913424916d0%40googlegroups.com.


Re: [weewx-user] Re: Weewx on RPi Zero

2019-11-19 Thread David Beach
Susan: Do you have a Davis system? The reason I ask is that, from my
reading of the comments over the last few years, this 'argument' between
the RPi starting up and the weather station hardware may be limited to the
Davis systems with their logging interface. Would you be willing to share
your coding/scripts/etc with the rest of us? Although I have added an RTC
and a UPS, I wish that my system was robust enough to reliably deal with
power interruptions without these additions. (The RTC and UPS cost more
than the RPi!)

David

On Mon, 18 Nov 2019 at 21:32, Susan Mackay  wrote:

> I use an RPi Zero W for Weewx and Nginx as well.
> I use systemd to manage it and have pre-requisites that the 'ntp.service'
> and 'time-sync.service' have completed before it will start.
> Susan
>
> On Monday, November 18, 2019 at 11:52:38 PM UTC+11, David VE3STI wrote:
>>
>> The problems occur during the startup, before the RPi sets its clock from
>> the Internet, and appear to be issues with the RPi and the Davis equipment
>> disagreeing on the time and getting muddled. It has been the topic of much
>> discussion and you can read the gory details in the wiki. I won't go into
>> the details here. If you have a UPS and rarely reboot, it becomes almost a
>> non-issue.
>>
>> David
>>
> --
> 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/I5C5Wqvtw7c/unsubscribe.
> To unsubscribe from this group and all its topics, 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/c6136128-8d33-450f-84b0-e70e75c49330%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/CAAMcdj2adVhrxDRfkN9t1ZQB%2B%3DGdo6gbPB0SYgzoHa2eN9ySiQ%40mail.gmail.com.


[weewx-user] Re: Web Server auf dem Raspberry Apache2

2019-11-19 Thread Günther Wrana


Am Mittwoch, 26. Juni 2019 17:34:43 UTC+2 schrieb Günther Wrana:
>
> Es hat funktioniert nur muss die weewx.conf nicht so wie hier beschrieben.
>>
>>
>> http://www.weewx.com/docs/usersguide.htm#If_the_server_is_on_the_same_machine
>>
>> Hier her kopiert werden.
>>
>> sudo cp util/apache/conf.d/weewx.conf /etc/apache2/conf.d
>>
>>  
> Sondern hier her sudo cp util/apache/conf.d/weewx.conf 
> /etc/apache2/conf-available
>
> Danach habe ich diesen Befehl ausgeführt sudo a2enconf weewx.conf und dann 
> apache2 neugestrartet.
>
> Und siehe da ich kann plötzlich von meinem Rechner unter Angabe der IP 
> Adresse 192.168.0.100/weewx auf die Datenbank und die index.html auf dem 
> Raspberry zugreifen.
>
> Danke an alle die mir geholfen haben.
>


Es muss auch die weewx.conf richtig sein.

Bei Apache 2.2

Alias /weewx /home/weewx/public_html

  Options FollowSymlinks
  AllowOverride None
  Order allow,deny
  Allow from all 



Bei Apache 2.4

Alias /weewx /home/weewx/public_html

  Options FollowSymlinks
  AllowOverride None
  Require all granted


Dann funktioniert das auch.

-- 
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/3586de37-2219-4c4c-9a2b-eaea4e477d06%40googlegroups.com.


[weewx-user] Re: Weewx "off line"

2019-11-19 Thread Andrew Milner
are you running 3.9.2??

search the forum for non-positive value for record field 'interval' and you 
will find many other threads



On Tuesday, 19 November 2019 07:36:37 UTC+2, Teva MERVIN wrote:
>
> Hello.
> I have a problem that I can not identify.
> It happens at least once a day, and I have to restart weewx.
> Do you have ideas?
>
> root@Nas:~# service weewx status
> ● weewx.service - LSB: weewx weather system 
>   Loaded: loaded (/etc/init.d/weewx; generated) 
>   Active: active (exited) since Sun 2019-11-17 19:09:21 +11; 1 day 21h 
> ago 
> Docs: man:systemd-sysv-generator(8) 
>  Process: 2094 ExecStart=/etc/init.d/weewx start (code=exited, 
> status=0/SUCCESS) 
>
> nov. 19 13:34:26 Nas weewx[2110]: File 
> "/usr/share/weewx/weewx/engine.py", line 601, in new_archive_record 
> nov. 19 13:34:26 Nas weewx[2110]:  
>  dbmanager.addRecord(event.record, accumulator=self.old_accumulator) 
> nov. 19 13:34:26 Nas weewx[2110]: File 
> "/usr/share/weewx/weewx/manager.py", line 246, in addRecord 
> nov. 19 13:34:26 Nas weewx[2110]:  
>  self._addSingleRecord(record, cursor, log_level) 
> nov. 19 13:34:26 Nas weewx[2110]: File 
> "/usr/share/weewx/weewx/manager.py", line 1212, in _addSingleRecord 
> nov. 19 13:34:26 Nas weewx[2110]:   _weight = 
> self._calc_weight(record) 
> nov. 19 13:34:26 Nas weewx[2110]: File 
> "/usr/share/weewx/weewx/manager.py", line 1582, in _calc_weight 
> nov. 19 13:34:26 Nas weewx[2110]:   raise 
> ValueError("Non-positive value for record field 'interval': %s" % 
> (record['interval'], )) 
> nov. 19 13:34:26 Nas weewx[2110]:   ValueError: Non-positive 
> value for record field 'interval': 0 
> nov. 19 13:34:26 Nas weewx[2110]:   Exiting.
>
> Thank you.
>

-- 
You received this message because you are subscribed to the Google Groups 
"weewx-user" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to weewx-user+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/weewx-user/937cbea7-28c8-4bb6-95c7-9a6cc43779cd%40googlegroups.com.


[weewx-user] Re: Calculate ET using fineoffset WH1080 and manual rain recording

2019-11-19 Thread Greg from Oz
Oh yeah I forgot to mention the spiders as wellIt was raining and 
nothing was being recorded because the spiders had made their web and the 
tipper wouldn't move.


On Tuesday, 19 November 2019 17:24:51 UTC+11, Glen Napthali wrote:
>
> Previously I had the  PWS mounted on a star picket and the whole thing was 
> shaking around quite a lot. In August I made a bracket from some gal 
> C-section, and screwed it to a fence H-brace cross rail with the tipping 
> bucket screwed to the gal. A few drain holes in the gal and it seems much 
> better. I don't get pseudo-rain anymore unless it is really windy (70km/h) 
> and in a specific direction.
>
> The tipping bucket seems to under report by at least 50%, I added a 
> StdCalibrate function over the weekend to help correct the error. I 
> probably need to do a spider check to see if that is part of the trouble. 
> The manual guage is good confirmation.
>

-- 
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/9db24272-4ee3-44cd-b4b5-e6400ac49783%40googlegroups.com.