[weewx-user] Re: Installing multiple weewx instances with weewx 4

2020-05-15 Thread Michael
Hi Gert,

I don't think it has anything to do with the installation method.
My installation of weewx is in /home/weewx
And in this directory are also both .conf files.

Michael


Am Freitag, 15. Mai 2020 08:40:44 UTC+2 schrieb Gert Andersen:
>
> Hi Michael
>
> Sounds good it's possible. 
>
> My installation is not based install.py and maybe that was the problem. 
> Even if I changed the pointers to my installation, weewx-multi could not be 
> started. Maybe I should try install.py.
>
> Could you please post your files you use with weewx 4(weewx-multi used in 
> init.d and weewx-mulite used in default)
>
> Thanks a lot for looking
>
> Gert
>
> On Friday, May 15, 2020 at 7:51:49 AM UTC+2, Michael wrote:
>>
>> i use weewx V4.0.0. multi as described here (
>> https://github.com/weewx/weewx/wiki/weewx-multi) without any problems. 
>> installation type: setup.py
>> What exactly does not work?
>>
>> Michael
>>
>> Am Freitag, 15. Mai 2020 05:25:14 UTC+2 schrieb Gert Andersen:
>>>
>>> Hi
>>>
>>> I would like to know if there are some who have been successful in 
>>> installing multiple weewx instances on the same computer and with weewx 4. 
>>> First I tried with weewx-multi which I could not get to work. I have also 
>>> tried 2 startup scripts where I have changed names so the weewx startup 
>>> script points to its own .conf file. These 2 scripts are based on the 
>>> startup script that comes with weewx4.
>>>
>>> I also asked a question about weewx-multi here 
>>> , but 
>>> it's a very old thread not using weewx 4
>>>
>>> System Ubuntu 20.04, weewx installed with apt(not install.py)
>>>
>>> Before I go any further, it would be nice to know if this is possible. 
>>> If anyone has multiple instances running using weewx 4, it would also be 
>>> nice to know which method is used, weewx-multi or separate startup scripts
>>>
>>> Thanks for your advice.
>>>
>>> Gert
>>>
>>

-- 
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/0f96c674-e463-45e3-b203-dade23abc4d6%40googlegroups.com.


weewx
Description: Binary data


weewx-multi
Description: Binary data


[weewx-user] Re: Noticed that the statistics.html page giving wrong data.

2020-05-15 Thread Banana Bob
Andrew
Thanks very much for your help
What does the term Rain Year mean?
James

On Friday, 15 May 2020 18:35:05 UTC+12, Andrew Milner wrote:
>
> rain_year_start is a date set in weewx.conf - in the station_url section, 
> and should be set to the month in which the rain year starts.
>
> the rain year is then the period from rain year start to current date
>
> so yes, i think you are misreading the column - the column represents a 
> time period
>
>
>
> On Friday, 15 May 2020 09:24:27 UTC+3, Banana Bob wrote:
>>
>> Sorry but maybe I am reading this page incorrectly. I was assuming that 
>> Rain Year was a column for how much Rain fell in the year. Does it have 
>> another meaning? 
>>
>> On Friday, 15 May 2020 18:18:10 UTC+12, Andrew Milner wrote:
>>>
>>> Oh - I see what you mean - the year column and the rain year column are 
>>> showing same values for ALL readings.
>>>
>>> Doesn't that just imply that your rain year start is set to start 
>>> January 1st rather than to some date in 2019??
>>>
>>>
>>>
>>> On Friday, 15 May 2020 09:06:19 UTC+3, Banana Bob wrote:

 If you right click on the screenshot and select view image you will get 
 a large version. It will show exactly what I said that the last row 
 contains the same data as the previous row.

 On Friday, 15 May 2020 18:01:39 UTC+12, Andrew Milner wrote:
>
> very hard to say from the screenshot!!  Do you have any rain recorded 
> for between september 2019 and january 2020 which you believe should be 
> added to the rain year total??
>
> On Friday, 15 May 2020 08:49:14 UTC+3, Banana Bob wrote:
>>
>> [image: Screenshot from 2020-05-15 17-46-11.png]
>> Please look at the screenshot and notice that the Year and the Rain 
>> Year columns give the same data. I suspect that this is not correct. 
>>
>

-- 
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/e5519c44-127f-408a-b63d-e0c12f56fd1b%40googlegroups.com.


[weewx-user] Re: Installing multiple weewx instances with weewx 4

2020-05-15 Thread Gert Andersen
Hi Michael

Thanks a lot, I'll try once more. I'll let you know about the result.

Gert

On Friday, May 15, 2020 at 9:33:26 AM UTC+2, Michael wrote:
>
> Hi Gert,
>
> I don't think it has anything to do with the installation method.
> My installation of weewx is in /home/weewx
> And in this directory are also both .conf files.
>
> Michael
>
>
> Am Freitag, 15. Mai 2020 08:40:44 UTC+2 schrieb Gert Andersen:
>>
>> Hi Michael
>>
>> Sounds good it's possible. 
>>
>> My installation is not based install.py and maybe that was the problem. 
>> Even if I changed the pointers to my installation, weewx-multi could not be 
>> started. Maybe I should try install.py.
>>
>> Could you please post your files you use with weewx 4(weewx-multi used in 
>> init.d and weewx-mulite used in default)
>>
>> Thanks a lot for looking
>>
>> Gert
>>
>> On Friday, May 15, 2020 at 7:51:49 AM UTC+2, Michael wrote:
>>>
>>> i use weewx V4.0.0. multi as described here (
>>> https://github.com/weewx/weewx/wiki/weewx-multi) without any problems. 
>>> installation type: setup.py
>>> What exactly does not work?
>>>
>>> Michael
>>>
>>> Am Freitag, 15. Mai 2020 05:25:14 UTC+2 schrieb Gert Andersen:

 Hi

 I would like to know if there are some who have been successful in 
 installing multiple weewx instances on the same computer and with weewx 4. 
 First I tried with weewx-multi which I could not get to work. I have also 
 tried 2 startup scripts where I have changed names so the weewx startup 
 script points to its own .conf file. These 2 scripts are based on the 
 startup script that comes with weewx4.

 I also asked a question about weewx-multi here 
 , but 
 it's a very old thread not using weewx 4

 System Ubuntu 20.04, weewx installed with apt(not install.py)

 Before I go any further, it would be nice to know if this is possible. 
 If anyone has multiple instances running using weewx 4, it would also be 
 nice to know which method is used, weewx-multi or separate startup scripts

 Thanks for your advice.

 Gert

>>>

-- 
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/c879687e-2ac9-4212-a7d2-eeb3a8add4b0%40googlegroups.com.


[weewx-user] Re: Noticed that the statistics.html page giving wrong data.

2020-05-15 Thread Andrew Milner
countries often measure annual rainfall as being the 12 monthes from the 
start of the rainy period (often september) rather than the annual calender 
period from january 1.  weewx caters for this by allowing the user to 
define the month when the annual period should start, in this case the 
reported annual rainfall will be for the current rain year rather than the 
calendar year.  If you want your rain year to start in september edit 
weewx.cong rain_year_start to be 9 rather than the default 1 (=january), 
and then you will see the two columns (year and rain year) will contain 
different values, one will be measuring from start of calendar year and one 
from start of rain year (as defined in weewx.conf).  Rain year is thus the 
timespan from from start of current rain year.



On Friday, 15 May 2020 10:38:52 UTC+3, Banana Bob wrote:
>
> Andrew
> Thanks very much for your help
> What does the term Rain Year mean?
> James
>
> On Friday, 15 May 2020 18:35:05 UTC+12, Andrew Milner wrote:
>>
>> rain_year_start is a date set in weewx.conf - in the station_url section, 
>> and should be set to the month in which the rain year starts.
>>
>> the rain year is then the period from rain year start to current date
>>
>> so yes, i think you are misreading the column - the column represents a 
>> time period
>>
>>
>>
>> On Friday, 15 May 2020 09:24:27 UTC+3, Banana Bob wrote:
>>>
>>> Sorry but maybe I am reading this page incorrectly. I was assuming that 
>>> Rain Year was a column for how much Rain fell in the year. Does it have 
>>> another meaning? 
>>>
>>> On Friday, 15 May 2020 18:18:10 UTC+12, Andrew Milner wrote:

 Oh - I see what you mean - the year column and the rain year column are 
 showing same values for ALL readings.

 Doesn't that just imply that your rain year start is set to start 
 January 1st rather than to some date in 2019??



 On Friday, 15 May 2020 09:06:19 UTC+3, Banana Bob wrote:
>
> If you right click on the screenshot and select view image you will 
> get a large version. It will show exactly what I said that the last row 
> contains the same data as the previous row.
>
> On Friday, 15 May 2020 18:01:39 UTC+12, Andrew Milner wrote:
>>
>> very hard to say from the screenshot!!  Do you have any rain recorded 
>> for between september 2019 and january 2020 which you believe should be 
>> added to the rain year total??
>>
>> On Friday, 15 May 2020 08:49:14 UTC+3, Banana Bob wrote:
>>>
>>> [image: Screenshot from 2020-05-15 17-46-11.png]
>>> Please look at the screenshot and notice that the Year and the Rain 
>>> Year columns give the same data. I suspect that this is not correct. 
>>>
>>

-- 
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/60bb32f8-13d0-4f67-b346-dec9ad397321%40googlegroups.com.


Re: [weewx-user] Installing multiple weewx instances with weewx 4

2020-05-15 Thread steeple ian
Multiple instances working well for me with WeeWX4.0.0 Python3.7 following
the wiki instructions. I'm am using Debian10 (Raspbian) on a RaspberryPi4

I have tried it with setup.py and Deb package and both work fine using the
multi startup script. Currently running three instances with setup.py
install



On Fri, 15 May 2020 at 04:25, Gert Andersen  wrote:

> Hi
>
> I would like to know if there are some who have been successful in
> installing multiple weewx instances on the same computer and with weewx 4.
> First I tried with weewx-multi which I could not get to work. I have also
> tried 2 startup scripts where I have changed names so the weewx startup
> script points to its own .conf file. These 2 scripts are based on the
> startup script that comes with weewx4.
>
> I also asked a question about weewx-multi here
> , but
> it's a very old thread not using weewx 4
>
> System Ubuntu 20.04, weewx installed with apt(not install.py)
>
> Before I go any further, it would be nice to know if this is possible. If
> anyone has multiple instances running using weewx 4, it would also be nice
> to know which method is used, weewx-multi or separate startup scripts
>
> Thanks for your advice.
>
> Gert
>
> --
> 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/91f0c07e-e6d2-4268-9144-d9fd98622fbb%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/CADASSaSCiwuhgxbRZDqX7P4kqKNz4RBWbj79HG5Eq88t0HGZWg%40mail.gmail.com.


Re: [weewx-user] Installing multiple weewx instances with weewx 4

2020-05-15 Thread Gert Andersen
Hi 

I have just installed using install.py and using the files from Michael and 
now it's working. 

Next step to use mqtt and Belchertown for 3 instances. 

Thanks for your help.

Gert

On Friday, May 15, 2020 at 10:03:30 AM UTC+2, steeple ian wrote:
>
> Multiple instances working well for me with WeeWX4.0.0 Python3.7 following 
> the wiki instructions. I'm am using Debian10 (Raspbian) on a RaspberryPi4
>
> I have tried it with setup.py and Deb package and both work fine using the 
> multi startup script. Currently running three instances with setup.py 
> install
>
>
>
> On Fri, 15 May 2020 at 04:25, Gert Andersen  > wrote:
>
>> Hi
>>
>> I would like to know if there are some who have been successful in 
>> installing multiple weewx instances on the same computer and with weewx 4. 
>> First I tried with weewx-multi which I could not get to work. I have also 
>> tried 2 startup scripts where I have changed names so the weewx startup 
>> script points to its own .conf file. These 2 scripts are based on the 
>> startup script that comes with weewx4.
>>
>> I also asked a question about weewx-multi here 
>> , but 
>> it's a very old thread not using weewx 4
>>
>> System Ubuntu 20.04, weewx installed with apt(not install.py)
>>
>> Before I go any further, it would be nice to know if this is possible. If 
>> anyone has multiple instances running using weewx 4, it would also be nice 
>> to know which method is used, weewx-multi or separate startup scripts
>>
>> Thanks for your advice.
>>
>> Gert
>>
>> -- 
>> 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/91f0c07e-e6d2-4268-9144-d9fd98622fbb%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/4173bad1-2fe2-4d80-a23c-1b76330b440d%40googlegroups.com.


Re: [weewx-user] Can Weewx works with weatherLinkIP and Meteobridge?

2020-05-15 Thread Jacques Terrettaz
Hi Tom,

If I am not wrong, Weatherlink IP is the Davis IP datalogger, and weewx can 
normally connect to it using the vantage driver with ethernet connection.

Le jeudi 14 mai 2020 19:38:12 UTC+2, Tom Keffer a écrit :
>
> WeeWX does not support either weatherLinkIP, nor Meteobridge 
> out-of-the-box. They both require extensions. You would have to talk to the 
> extension authors.
>
>>
>>

-- 
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/e1412829-5a74-4afe-b9fb-819904c296b4%40googlegroups.com.


Re: [weewx-user] Can Weewx works with weatherLinkIP and Meteobridge?

2020-05-15 Thread Jacques Terrettaz
Hi José

Could you please post the log beginning with the start of Weewx  until the 
error occurs ? 

Le jeudi 14 mai 2020 19:48:10 UTC+2, José C. Morales C. a écrit :
>
> Thanks Tom
>
> The log say
>
> May 14 13:37:18 raspberrypi weewx[8856] CRITICAL weewx.engine: 
>>   raise weewx.WeeWxIOError(ex)
>> May 14 13:37:18 raspberrypi weewx[8856] CRITICAL weewx.engine:   
>> weewx.WeeWxIOError: [Errno -2] Nombre o servicio desconocido
>> May 14 13:37:18 raspberrypi weewx[8856] CRITICAL __main__: Unable to load 
>> driver: [Errno -2] Nombre o servicio desconocido
>> May 14 13:37:18 raspberrypi weewx[8856] CRITICAL __main__:   
>> Exiting...
>> May 14 13:37:18 raspberrypi weewx[8840]: Starting weewx weather system: 
>> weewx.
>> May 14 13:37:18 raspberrypi systemd[1]: Started LSB: weewx weather system.
>> May 14 13:39:01 raspberrypi CRON[8882]: (root) CMD (  [ -x 
>> /usr/lib/php/sessionclean ] && if [ ! -d /run/systemd/system ]; then 
>> /usr/lib/php/sessionclean; fi)
>> May 14 13:39:35 raspberrypi systemd[1]: Starting Clean php session 
>> files...
>> May 14 13:39:35 raspberrypi systemd[1]: phpsessionclean.service: 
>> Succeeded.
>> May 14 13:39:35 raspberrypi systemd[1]: Started Clean php session files.
>
>
>
>
> El jueves, 14 de mayo de 2020, 13:38:12 (UTC-4), Tom Keffer escribió:
>>
>> WeeWX does not support either weatherLinkIP, nor Meteobridge 
>> out-of-the-box. They both require extensions. You would have to talk to the 
>> extension authors.
>>
>> On Thu, May 14, 2020 at 10:17 AM José C. Morales C.  
>> wrote:
>>
>>> I have weatherlinkIP and meteobridge working fine, im installed Weewx on 
>>> a RPI3, but weewx can´t read current conditions from weatherlinkIP local 
>>> address.
>>>
>>> Can Weewx works with weatherLinkIP and Meteobridge?
>>>
>>> -- 
>>> 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/f93c134b-0351-4eec-ace5-8a1d537b928f%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/9488caf2-65e6-40b2-9b8d-f95925698e0a%40googlegroups.com.


Re: [weewx-user] Number of days on which the average Temperature was above a certain value

2020-05-15 Thread Rolf Zanchettin

Hi Tom,

thanks for the reply. 
That would be awesome :-)

Best regards
Rolf

Am Donnerstag, 14. Mai 2020 20:45:04 UTC+2 schrieb Tom Keffer:
>
> Nope. Not possible with the present version of xtypes. 
>
> But, it's given me some ideas on how to modify xtypes to make it possible. 
> Maybe in v4.0.1.
>
> On Thu, May 14, 2020 at 8:37 AM Tom Keffer > 
> wrote:
>
>> There is a 'max_ge()' aggregation, but, unfortunately, no 'avg_ge()'. It 
>> could be added via the xtypes 
>>  
>> facility, but it would require some clever Python programming.
>>
>> Let me think about that...
>>
>> -tk
>>
>>
>>
>> On Thu, May 14, 2020 at 6:22 AM Rolf Zanchettin > > wrote:
>>
>>> Hello,
>>>
>>> I would like to display the number of days on which the average 
>>> Temperature was greater or equal 5° C.
>>> How can I achieve this?
>>>
>>>
>>> Thanks in advance
>>> Best regards, Rolf
>>>
>>> -- 
>>> 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/d1a3130c-d00b-4eb2-8d09-44a36d27e35f%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/41084e16-e757-45e2-8e40-85e0f1204e06%40googlegroups.com.


[weewx-user] Re: Belchertown skin 1.1 released!

2020-05-15 Thread Rolf Zanchettin
Hi Pat,

first of all a big thanks for your aweseome Belchertown skin.
I have adapted the skin slightly and created a new section to include 
between the header and the station info. For this i have extended the 
"index.html.tmpl" and the "skin.conf" accordingly. This works very well so 
far.

Is there a possibility to reload not only the images (reload_hook_images = 
1) that are included in the .inc files, but also the HTML/text contained in 
the .inc files?

I think i have to modify the function "ajaximages()" in 
"js/belchertown.js.tmpl" to achieve this?

Thanks in advance
Best regards
Rolf

-- 
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/da8b1fb3-f821-4e90-8e65-d766eb074c99%40googlegroups.com.


[weewx-user] Re: Noticed that the statistics.html page giving wrong data.

2020-05-15 Thread Banana Bob
Andrew
Thanks for that excellent explanation. Now all I have to do is find out the 
Rain Year for New Zealand.
James

On Friday, 15 May 2020 20:02:58 UTC+12, Andrew Milner wrote:
>
> countries often measure annual rainfall as being the 12 monthes from the 
> start of the rainy period (often september) rather than the annual calender 
> period from january 1.  weewx caters for this by allowing the user to 
> define the month when the annual period should start, in this case the 
> reported annual rainfall will be for the current rain year rather than the 
> calendar year.  If you want your rain year to start in september edit 
> weewx.cong rain_year_start to be 9 rather than the default 1 (=january), 
> and then you will see the two columns (year and rain year) will contain 
> different values, one will be measuring from start of calendar year and one 
> from start of rain year (as defined in weewx.conf).  Rain year is thus the 
> timespan from from start of current rain year.
>
>
>
> On Friday, 15 May 2020 10:38:52 UTC+3, Banana Bob wrote:
>>
>> Andrew
>> Thanks very much for your help
>> What does the term Rain Year mean?
>> James
>>
>> On Friday, 15 May 2020 18:35:05 UTC+12, Andrew Milner wrote:
>>>
>>> rain_year_start is a date set in weewx.conf - in the station_url 
>>> section, and should be set to the month in which the rain year starts.
>>>
>>> the rain year is then the period from rain year start to current date
>>>
>>> so yes, i think you are misreading the column - the column represents a 
>>> time period
>>>
>>>
>>>
>>> On Friday, 15 May 2020 09:24:27 UTC+3, Banana Bob wrote:

 Sorry but maybe I am reading this page incorrectly. I was assuming that 
 Rain Year was a column for how much Rain fell in the year. Does it have 
 another meaning? 

 On Friday, 15 May 2020 18:18:10 UTC+12, Andrew Milner wrote:
>
> Oh - I see what you mean - the year column and the rain year column 
> are showing same values for ALL readings.
>
> Doesn't that just imply that your rain year start is set to start 
> January 1st rather than to some date in 2019??
>
>
>
> On Friday, 15 May 2020 09:06:19 UTC+3, Banana Bob wrote:
>>
>> If you right click on the screenshot and select view image you will 
>> get a large version. It will show exactly what I said that the last row 
>> contains the same data as the previous row.
>>
>> On Friday, 15 May 2020 18:01:39 UTC+12, Andrew Milner wrote:
>>>
>>> very hard to say from the screenshot!!  Do you have any rain 
>>> recorded for between september 2019 and january 2020 which you believe 
>>> should be added to the rain year total??
>>>
>>> On Friday, 15 May 2020 08:49:14 UTC+3, Banana Bob wrote:

 [image: Screenshot from 2020-05-15 17-46-11.png]
 Please look at the screenshot and notice that the Year and the Rain 
 Year columns give the same data. I suspect that this is not correct. 

>>>

-- 
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/a9fde683-1369-4134-aa01-d82e8fb52fd9%40googlegroups.com.


Re: [weewx-user] Noisy logging, log_success = False not followed

2020-05-15 Thread Tom Keffer
Version 4.0 allows much more control over what gets logged
. To suppress
everything below log level WARN, put this at the bottom of weewx.conf:

[Logging]
  [[loggers]]
[[[weewx.manager]]]
  level = WARN

-tk

On Thu, May 14, 2020 at 9:53 PM Chris Nelson  wrote:

> These two log.info lines in manager.py do not use the config file
> log_success switch, resulting in entries every five minutes.  Adding the
> log_success switch test within _addSingleRecord instances is not trivial
> since the config is not passed to the object.
>
>
>
>> May 12 18:55:15 shop2 journal: weewx[7760] INFO weewx.manager: Added
>> record 2020-05-12 18:55:00 MST (1589334900) to database 'weewx.sdb'
>>
>> May 12 18:55:15 shop2 journal: weewx[7760] INFO weewx.manager: Added
>> record 2020-05-12 18:55:00 MST (1589334900) to daily summary in 'weewx.sdb'
>>
>
> This was noted back in 2017 also by Daniel Jönsson in this thread
>  - not a
> new issue.  I just commented out the two calls to log.info().  I'm just
> working to clean up noise in my system log.
>
> --
> 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/11778f1a-f56b-4753-97e9-4bc53c9a03e3%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/CAPq0zEDmQAMGzTFNDmhsXBupmo9e65%2B2CPEDDGiEuinW%2BYXXfg%40mail.gmail.com.


Re: [weewx-user] Problem with Davis VP2 (Data logger or Konsole)?

2020-05-15 Thread Tom Keffer
It looks like your extension 'radationhours' is not prepared for the case
where outTemp is either missing from a record, or has a value of None. You
must check for these cases.

Also, it should not be necessary to cast the value as a float: it's already
either a float, or None.

As for why outTemp would be missing from the record, or have a value of
None, that's hard to say. It would depend on what processing has occurred
earlier in the engine pipeline.

-tk

On Thu, May 14, 2020 at 11:54 PM Meteo Oberwallis 
wrote:

> Hello everbody.
>
> I have the following problem. The data readout of the Vantage Pro2 console 
> worked without problems for a long time. But I've had this problem for a few 
> weeks now. The solution then seems to be to delete the data logger (with 
> wee_device --clear-memory) and restart weewx.
> Then it works for a while until this error occurs again. What could this be? 
> If I understand that correctly, can't he read the data record from the logger?
>
>
> May 15 08:43:16 raspberrypi systemd[1]: Starting LSB: weewx weather
> system...
> May 15 08:43:27 raspberrypi weewx[4653]: engine: Initializing weewx
> version 3.9.1
> May 15 08:43:27 raspberrypi weewx[4653]: engine: Using Python 2.7.13
> (default, Sep 26 2018, 18:42:22) #012[GCC 6.3.0 20170516]
> May 15 08:43:27 raspberrypi weewx[4653]: engine: Platform
> Linux-4.19.42-v7+-armv7l-with-debian-9.9
> May 15 08:43:27 raspberrypi weewx[4653]: engine: Locale is 'de_CH.UTF-8'
> May 15 08:43:27 raspberrypi weewx[4653]: engine: pid file is
> /var/run/weewx.pid
> May 15 08:43:27 raspberrypi weewx[4639]: Starting weewx weather system:
> weewx.
> May 15 08:43:27 raspberrypi systemd[1]: Started LSB: weewx weather system.
> May 15 08:43:27 raspberrypi weewx[4657]: engine: Using configuration file
> /etc/weewx/weewx.conf
> May 15 08:43:27 raspberrypi weewx[4657]: engine: Debug is 1
> May 15 08:43:27 raspberrypi weewx[4657]: engine: Initializing engine
> May 15 08:43:27 raspberrypi weewx[4657]: engine: Loading station type
> Vantage (weewx.drivers.vantage)
> May 15 08:43:27 raspberrypi weewx[4657]: vantage: Driver version is 3.1.1
> May 15 08:43:27 raspberrypi weewx[4657]: vantage: Opened up serial port
> /dev/ttyUSB0; baud 19200; timeout 4.00
> May 15 08:43:27 raspberrypi weewx[4657]: vantage: Gentle wake up of
> console successful
> May 15 08:43:27 raspberrypi weewx[4657]: vantage: Hardware type is 16
> May 15 08:43:27 raspberrypi weewx[4657]: vantage: ISS ID is 1
> May 15 08:43:27 raspberrypi weewx[4657]: vantage: Hardware name: Vantage
> Pro2
> May 15 08:43:27 raspberrypi weewx[4657]: engine: Loading service
> weewx.engine.StdTimeSynch
> May 15 08:43:27 raspberrypi weewx[4657]: engine: Finished loading service
> weewx.engine.StdTimeSynch
> May 15 08:43:27 raspberrypi weewx[4657]: engine: Loading service
> user.cputemp.AddCpuTemp
> May 15 08:43:27 raspberrypi weewx[4657]: engine: Finished loading service
> user.cputemp.AddCpuTemp
> May 15 08:43:27 raspberrypi weewx[4657]: engine: Loading service
> user.radiationhours.RadiationHours
> May 15 08:43:27 raspberrypi weewx[4657]: engine: Finished loading service
> user.radiationhours.RadiationHours
> May 15 08:43:27 raspberrypi weewx[4657]: engine: Loading service
> weewx.engine.StdConvert
> May 15 08:43:27 raspberrypi weewx[4657]: engine: StdConvert target unit is
> 0x1
> May 15 08:43:27 raspberrypi weewx[4657]: engine: Finished loading service
> weewx.engine.StdConvert
> May 15 08:43:27 raspberrypi weewx[4657]: engine: Loading service
> weewx.engine.StdCalibrate
> May 15 08:43:27 raspberrypi weewx[4657]: engine: Finished loading service
> weewx.engine.StdCalibrate
> May 15 08:43:27 raspberrypi weewx[4657]: engine: Loading service
> weewx.engine.StdQC
> May 15 08:43:27 raspberrypi weewx[4657]: engine: Finished loading service
> weewx.engine.StdQC
> May 15 08:43:27 raspberrypi weewx[4657]: engine: Loading service
> weewx.wxservices.StdWXCalculate
> May 15 08:43:27 raspberrypi weewx[4657]: wxcalculate: The following values
> will be calculated: barometer=prefer_hardware, windchill=prefer_hardware,
> dewpoint=prefer_hardware, appTemp=prefer_hardware,
> rainRate=prefer_hardware, windrun=prefer_hardware,
> heatindex=prefer_hardware, maxSolarRad=prefer_hardware,
> humidex=prefer_hardware, pressure=prefer_hardware,
> inDewpoint=prefer_hardware, ET=prefer_hardware, altimeter=prefer_hardware,
> cloudbase=prefer_hardware
> May 15 08:43:27 raspberrypi weewx[4657]: wxcalculate: The following
> algorithms will be used for calculations: altimeter=aaNOAA, maxSolarRad=RS
> May 15 08:43:27 raspberrypi weewx[4657]: engine: Finished loading service
> weewx.wxservices.StdWXCalculate
> May 15 08:43:27 raspberrypi weewx[4657]: engine: Loading service
> weewx.engine.StdArchive
> May 15 08:43:27 raspberrypi weewx[4657]: engine: Archive will use data
> binding wx_binding
> May 15 08:43:27 raspberrypi weewx[4657]: engine: Record generation will be
> attempted in 'hardware'
> May 15 08:43:27 raspberrypi weewx[4657]: engine: Us

Re: [weewx-user] Re: Installing multiple weewx instances with weewx 4

2020-05-15 Thread Tom Keffer
I run 3 instances of weewx V4 on one machine, all using the same code base,
but different versions of weewx.conf. It should not be a problem.

It also doesn't matter how you install the code base. The key is
weewx.conf. It contains the information on where each instance is to find
its drivers, skins, database, etc.

-tk

On Thu, May 14, 2020 at 11:40 PM Gert Andersen 
wrote:

> Hi Michael
>
> Sounds good it's possible.
>
> My installation is not based install.py and maybe that was the problem.
> Even if I changed the pointers to my installation, weewx-multi could not be
> started. Maybe I should try install.py.
>
> Could you please post your files you use with weewx 4(weewx-multi used in
> init.d and weewx-mulite used in default)
>
> Thanks a lot for looking
>
> Gert
>
> On Friday, May 15, 2020 at 7:51:49 AM UTC+2, Michael wrote:
>>
>> i use weewx V4.0.0. multi as described here (
>> https://github.com/weewx/weewx/wiki/weewx-multi) without any problems.
>> installation type: setup.py
>> What exactly does not work?
>>
>> Michael
>>
>> Am Freitag, 15. Mai 2020 05:25:14 UTC+2 schrieb Gert Andersen:
>>>
>>> Hi
>>>
>>> I would like to know if there are some who have been successful in
>>> installing multiple weewx instances on the same computer and with weewx 4.
>>> First I tried with weewx-multi which I could not get to work. I have also
>>> tried 2 startup scripts where I have changed names so the weewx startup
>>> script points to its own .conf file. These 2 scripts are based on the
>>> startup script that comes with weewx4.
>>>
>>> I also asked a question about weewx-multi here
>>> , but
>>> it's a very old thread not using weewx 4
>>>
>>> System Ubuntu 20.04, weewx installed with apt(not install.py)
>>>
>>> Before I go any further, it would be nice to know if this is possible.
>>> If anyone has multiple instances running using weewx 4, it would also be
>>> nice to know which method is used, weewx-multi or separate startup scripts
>>>
>>> Thanks for your advice.
>>>
>>> Gert
>>>
>> --
> 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/18170890-95e3-4465-b1a8-de7f80c99a9b%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/CAPq0zEB%2BTakxuQZRSXgY06PjBnq%2BOmxr9ZS2bdpo%2Bx6khPKfDg%40mail.gmail.com.


Re: [weewx-user] Can Weewx works with weatherLinkIP and Meteobridge?

2020-05-15 Thread Tom Keffer
On Fri, May 15, 2020 at 1:14 AM Jacques Terrettaz 
wrote:

> Hi Tom,
>
> If I am not wrong, Weatherlink IP is the Davis IP datalogger, and weewx
> can normally connect to it using the vantage driver with ethernet
> connection.
>

Right you are! I was thinking of WeatherLink Live.

-tk

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


Re: [weewx-user] Problem with Davis VP2 (Data logger or Konsole)?

2020-05-15 Thread Meteo Oberwallis
Hello.

I have the problem that the reading stops at once. If I then check, this 
message always comes. As soon as I delete the archive memory from the data 
logger, weewx can be started again. I can rule out that the data logger is 
defective. After this procedure everything works again.

Am Freitag, 15. Mai 2020 14:13:35 UTC+2 schrieb Tom Keffer:
>
> It looks like your extension 'radationhours' is not prepared for the case 
> where outTemp is either missing from a record, or has a value of None. You 
> must check for these cases.
>
> Also, it should not be necessary to cast the value as a float: it's 
> already either a float, or None.
>
> As for why outTemp would be missing from the record, or have a value of 
> None, that's hard to say. It would depend on what processing has occurred 
> earlier in the engine pipeline.
>
> -tk
>
> On Thu, May 14, 2020 at 11:54 PM Meteo Oberwallis  > wrote:
>
>> Hello everbody.
>>
>> I have the following problem. The data readout of the Vantage Pro2 console 
>> worked without problems for a long time. But I've had this problem for a few 
>> weeks now. The solution then seems to be to delete the data logger (with 
>> wee_device --clear-memory) and restart weewx. 
>> Then it works for a while until this error occurs again. What could this be? 
>> If I understand that correctly, can't he read the data record from the 
>> logger?
>>
>>
>> May 15 08:43:16 raspberrypi systemd[1]: Starting LSB: weewx weather 
>> system...
>> May 15 08:43:27 raspberrypi weewx[4653]: engine: Initializing weewx 
>> version 3.9.1
>> May 15 08:43:27 raspberrypi weewx[4653]: engine: Using Python 2.7.13 
>> (default, Sep 26 2018, 18:42:22) #012[GCC 6.3.0 20170516]
>> May 15 08:43:27 raspberrypi weewx[4653]: engine: Platform 
>> Linux-4.19.42-v7+-armv7l-with-debian-9.9
>> May 15 08:43:27 raspberrypi weewx[4653]: engine: Locale is 'de_CH.UTF-8'
>> May 15 08:43:27 raspberrypi weewx[4653]: engine: pid file is 
>> /var/run/weewx.pid
>> May 15 08:43:27 raspberrypi weewx[4639]: Starting weewx weather system: 
>> weewx.
>> May 15 08:43:27 raspberrypi systemd[1]: Started LSB: weewx weather system.
>> May 15 08:43:27 raspberrypi weewx[4657]: engine: Using configuration file 
>> /etc/weewx/weewx.conf
>> May 15 08:43:27 raspberrypi weewx[4657]: engine: Debug is 1
>> May 15 08:43:27 raspberrypi weewx[4657]: engine: Initializing engine
>> May 15 08:43:27 raspberrypi weewx[4657]: engine: Loading station type 
>> Vantage (weewx.drivers.vantage)
>> May 15 08:43:27 raspberrypi weewx[4657]: vantage: Driver version is 3.1.1
>> May 15 08:43:27 raspberrypi weewx[4657]: vantage: Opened up serial port 
>> /dev/ttyUSB0; baud 19200; timeout 4.00
>> May 15 08:43:27 raspberrypi weewx[4657]: vantage: Gentle wake up of 
>> console successful
>> May 15 08:43:27 raspberrypi weewx[4657]: vantage: Hardware type is 16
>> May 15 08:43:27 raspberrypi weewx[4657]: vantage: ISS ID is 1
>> May 15 08:43:27 raspberrypi weewx[4657]: vantage: Hardware name: Vantage 
>> Pro2
>> May 15 08:43:27 raspberrypi weewx[4657]: engine: Loading service 
>> weewx.engine.StdTimeSynch
>> May 15 08:43:27 raspberrypi weewx[4657]: engine: Finished loading service 
>> weewx.engine.StdTimeSynch
>> May 15 08:43:27 raspberrypi weewx[4657]: engine: Loading service 
>> user.cputemp.AddCpuTemp
>> May 15 08:43:27 raspberrypi weewx[4657]: engine: Finished loading service 
>> user.cputemp.AddCpuTemp
>> May 15 08:43:27 raspberrypi weewx[4657]: engine: Loading service 
>> user.radiationhours.RadiationHours
>> May 15 08:43:27 raspberrypi weewx[4657]: engine: Finished loading service 
>> user.radiationhours.RadiationHours
>> May 15 08:43:27 raspberrypi weewx[4657]: engine: Loading service 
>> weewx.engine.StdConvert
>> May 15 08:43:27 raspberrypi weewx[4657]: engine: StdConvert target unit 
>> is 0x1
>> May 15 08:43:27 raspberrypi weewx[4657]: engine: Finished loading service 
>> weewx.engine.StdConvert
>> May 15 08:43:27 raspberrypi weewx[4657]: engine: Loading service 
>> weewx.engine.StdCalibrate
>> May 15 08:43:27 raspberrypi weewx[4657]: engine: Finished loading service 
>> weewx.engine.StdCalibrate
>> May 15 08:43:27 raspberrypi weewx[4657]: engine: Loading service 
>> weewx.engine.StdQC
>> May 15 08:43:27 raspberrypi weewx[4657]: engine: Finished loading service 
>> weewx.engine.StdQC
>> May 15 08:43:27 raspberrypi weewx[4657]: engine: Loading service 
>> weewx.wxservices.StdWXCalculate
>> May 15 08:43:27 raspberrypi weewx[4657]: wxcalculate: The following 
>> values will be calculated: barometer=prefer_hardware, 
>> windchill=prefer_hardware, dewpoint=prefer_hardware, 
>> appTemp=prefer_hardware, rainRate=prefer_hardware, windrun=prefer_hardware, 
>> heatindex=prefer_hardware, maxSolarRad=prefer_hardware, 
>> humidex=prefer_hardware, pressure=prefer_hardware, 
>> inDewpoint=prefer_hardware, ET=prefer_hardware, altimeter=prefer_hardware, 
>> cloudbase=prefer_hardware
>> May 15 08:43:27 raspberrypi weewx[4657]: wxcalculate: The following 
>> algorithms will be used for 

Re: [weewx-user] Can Weewx works with weatherLinkIP and Meteobridge?

2020-05-15 Thread José C . Morales C .
Hi Jacques

Thanks for answered, this i think is the code

May 15 09:04:34 raspberrypi weewx[4205] CRITICAL weewx.engine: 
>   ret  
>   urn VantageService(engine, config_dict)
> May 15 09:04:34 raspberrypi weewx[4205] CRITICAL weewx.engine: 
> File
>  "/usr/share/weewx/weewx/drivers/vantage.py", line 1897, in 
> __init__
> May 15 09:04:34 raspberrypi weewx[4205] CRITICAL weewx.engine: 
>   Van  
>   tage.__init__(self, **config_dict[DRIVER_NAME])
> May 15 09:04:34 raspberrypi weewx[4205] CRITICAL weewx.engine: 
> File
>  "/usr/share/weewx/weewx/drivers/vantage.py", line 511, in 
> __init__
> May 15 09:04:34 raspberrypi weewx[4205] CRITICAL weewx.engine: 
>   sel  
>   f.port.openPort()
> May 15 09:04:34 raspberrypi weewx[4205] CRITICAL weewx.engine: 
> File
>  "/usr/share/weewx/weewx/drivers/vantage.py", line 344, in 
> openPort
> May 15 09:04:34 raspberrypi weewx[4205] CRITICAL weewx.engine: 
>   rai  
>   se weewx.WeeWxIOError(ex)
> May 15 09:04:34 raspberrypi weewx[4205] CRITICAL weewx.engine:   
> weewx.W
> eeWxIOError: [Errno -2] Nombre o servicio desconocido
> May 15 09:04:34 raspberrypi weewx[4205] CRITICAL __main__: Unable to load 
> driver  
>   : [Errno -2] Nombre o servicio desconocido
> May 15 09:04:34 raspberrypi weewx[4205] CRITICAL __main__:   
> Exiting...







El viernes, 15 de mayo de 2020, 4:23:07 (UTC-4), Jacques Terrettaz escribió:
>
> Hi José
>
> Could you please post the log beginning with the start of Weewx  until the 
> error occurs ? 
>
> Le jeudi 14 mai 2020 19:48:10 UTC+2, José C. Morales C. a écrit :
>>
>> Thanks Tom
>>
>> The log say
>>
>> May 14 13:37:18 raspberrypi weewx[8856] CRITICAL weewx.engine:   
>>> raise weewx.WeeWxIOError(ex)
>>> May 14 13:37:18 raspberrypi weewx[8856] CRITICAL weewx.engine:   
>>> weewx.WeeWxIOError: [Errno -2] Nombre o servicio desconocido
>>> May 14 13:37:18 raspberrypi weewx[8856] CRITICAL __main__: Unable to 
>>> load driver: [Errno -2] Nombre o servicio desconocido
>>> May 14 13:37:18 raspberrypi weewx[8856] CRITICAL __main__:   
>>> Exiting...
>>> May 14 13:37:18 raspberrypi weewx[8840]: Starting weewx weather system: 
>>> weewx.
>>> May 14 13:37:18 raspberrypi systemd[1]: Started LSB: weewx weather 
>>> system.
>>> May 14 13:39:01 raspberrypi CRON[8882]: (root) CMD (  [ -x 
>>> /usr/lib/php/sessionclean ] && if [ ! -d /run/systemd/system ]; then 
>>> /usr/lib/php/sessionclean; fi)
>>> May 14 13:39:35 raspberrypi systemd[1]: Starting Clean php session 
>>> files...
>>> May 14 13:39:35 raspberrypi systemd[1]: phpsessionclean.service: 
>>> Succeeded.
>>> May 14 13:39:35 raspberrypi systemd[1]: Started Clean php session files.
>>
>>
>>
>>
>> El jueves, 14 de mayo de 2020, 13:38:12 (UTC-4), Tom Keffer escribió:
>>>
>>> WeeWX does not support either weatherLinkIP, nor Meteobridge 
>>> out-of-the-box. They both require extensions. You would have to talk to the 
>>> extension authors.
>>>
>>> On Thu, May 14, 2020 at 10:17 AM José C. Morales C.  
>>> wrote:
>>>
 I have weatherlinkIP and meteobridge working fine, im installed Weewx 
 on a RPI3, but weewx can´t read current conditions from weatherlinkIP 
 local 
 address.

 Can Weewx works with weatherLinkIP and Meteobridge?

 -- 
 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/f93c134b-0351-4eec-ace5-8a1d537b928f%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/4eaf50f3-bf0a-

[weewx-user] Rain information by MQTT

2020-05-15 Thread Wifi75
hello everyone, weewx send me the following information via mqtt, could you 
explain the meaning of each of them?


*rain_cm=*
*dayRain_cm=*
*rain24_cm=*

*hourRain_cm=*

*rainRate_cm_per_hour=*
*rain_total=*


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/169d4269-4543-4fbd-be3f-a7c799b8b895%40googlegroups.com.


Re: [weewx-user] Can Weewx works with weatherLinkIP and Meteobridge?

2020-05-15 Thread Jacques Terrettaz
José,

May be a network problem ?
How is your RPI3 connected to your network ?  Wifi?, wired?  
 Can you ping the IP address of your IP datalogger from the terminal windows of 
 your RPI3 ?




-- 
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/E1A7595D-EDB9-4072-9DE0-7538A514C7CC%40gmail.com.


Re: [weewx-user] Problem with Davis VP2 (Data logger or Konsole)?

2020-05-15 Thread Tom Keffer
The reading stops because weewxd crashed. It crashed because you're trying
to convert a None value to a float value.

Fix the extension radiationhours.py first, then try again.

-tk

On Fri, May 15, 2020 at 6:00 AM Meteo Oberwallis 
wrote:

> Hello.
>
> I have the problem that the reading stops at once. If I then check, this
> message always comes. As soon as I delete the archive memory from the data
> logger, weewx can be started again. I can rule out that the data logger is
> defective. After this procedure everything works again.
>
> Am Freitag, 15. Mai 2020 14:13:35 UTC+2 schrieb Tom Keffer:
>>
>> It looks like your extension 'radationhours' is not prepared for the case
>> where outTemp is either missing from a record, or has a value of None. You
>> must check for these cases.
>>
>> Also, it should not be necessary to cast the value as a float: it's
>> already either a float, or None.
>>
>> As for why outTemp would be missing from the record, or have a value of
>> None, that's hard to say. It would depend on what processing has occurred
>> earlier in the engine pipeline.
>>
>> -tk
>>
>> On Thu, May 14, 2020 at 11:54 PM Meteo Oberwallis 
>> wrote:
>>
>>> Hello everbody.
>>>
>>> I have the following problem. The data readout of the Vantage Pro2 console 
>>> worked without problems for a long time. But I've had this problem for a 
>>> few weeks now. The solution then seems to be to delete the data logger 
>>> (with wee_device --clear-memory) and restart weewx.
>>> Then it works for a while until this error occurs again. What could this 
>>> be? If I understand that correctly, can't he read the data record from the 
>>> logger?
>>>
>>>
>>> May 15 08:43:16 raspberrypi systemd[1]: Starting LSB: weewx weather
>>> system...
>>> May 15 08:43:27 raspberrypi weewx[4653]: engine: Initializing weewx
>>> version 3.9.1
>>> May 15 08:43:27 raspberrypi weewx[4653]: engine: Using Python 2.7.13
>>> (default, Sep 26 2018, 18:42:22) #012[GCC 6.3.0 20170516]
>>> May 15 08:43:27 raspberrypi weewx[4653]: engine: Platform
>>> Linux-4.19.42-v7+-armv7l-with-debian-9.9
>>> May 15 08:43:27 raspberrypi weewx[4653]: engine: Locale is 'de_CH.UTF-8'
>>> May 15 08:43:27 raspberrypi weewx[4653]: engine: pid file is
>>> /var/run/weewx.pid
>>> May 15 08:43:27 raspberrypi weewx[4639]: Starting weewx weather system:
>>> weewx.
>>> May 15 08:43:27 raspberrypi systemd[1]: Started LSB: weewx weather
>>> system.
>>> May 15 08:43:27 raspberrypi weewx[4657]: engine: Using configuration
>>> file /etc/weewx/weewx.conf
>>> May 15 08:43:27 raspberrypi weewx[4657]: engine: Debug is 1
>>> May 15 08:43:27 raspberrypi weewx[4657]: engine: Initializing engine
>>> May 15 08:43:27 raspberrypi weewx[4657]: engine: Loading station type
>>> Vantage (weewx.drivers.vantage)
>>> May 15 08:43:27 raspberrypi weewx[4657]: vantage: Driver version is 3.1.1
>>> May 15 08:43:27 raspberrypi weewx[4657]: vantage: Opened up serial port
>>> /dev/ttyUSB0; baud 19200; timeout 4.00
>>> May 15 08:43:27 raspberrypi weewx[4657]: vantage: Gentle wake up of
>>> console successful
>>> May 15 08:43:27 raspberrypi weewx[4657]: vantage: Hardware type is 16
>>> May 15 08:43:27 raspberrypi weewx[4657]: vantage: ISS ID is 1
>>> May 15 08:43:27 raspberrypi weewx[4657]: vantage: Hardware name: Vantage
>>> Pro2
>>> May 15 08:43:27 raspberrypi weewx[4657]: engine: Loading service
>>> weewx.engine.StdTimeSynch
>>> May 15 08:43:27 raspberrypi weewx[4657]: engine: Finished loading
>>> service weewx.engine.StdTimeSynch
>>> May 15 08:43:27 raspberrypi weewx[4657]: engine: Loading service
>>> user.cputemp.AddCpuTemp
>>> May 15 08:43:27 raspberrypi weewx[4657]: engine: Finished loading
>>> service user.cputemp.AddCpuTemp
>>> May 15 08:43:27 raspberrypi weewx[4657]: engine: Loading service
>>> user.radiationhours.RadiationHours
>>> May 15 08:43:27 raspberrypi weewx[4657]: engine: Finished loading
>>> service user.radiationhours.RadiationHours
>>> May 15 08:43:27 raspberrypi weewx[4657]: engine: Loading service
>>> weewx.engine.StdConvert
>>> May 15 08:43:27 raspberrypi weewx[4657]: engine: StdConvert target unit
>>> is 0x1
>>> May 15 08:43:27 raspberrypi weewx[4657]: engine: Finished loading
>>> service weewx.engine.StdConvert
>>> May 15 08:43:27 raspberrypi weewx[4657]: engine: Loading service
>>> weewx.engine.StdCalibrate
>>> May 15 08:43:27 raspberrypi weewx[4657]: engine: Finished loading
>>> service weewx.engine.StdCalibrate
>>> May 15 08:43:27 raspberrypi weewx[4657]: engine: Loading service
>>> weewx.engine.StdQC
>>> May 15 08:43:27 raspberrypi weewx[4657]: engine: Finished loading
>>> service weewx.engine.StdQC
>>> May 15 08:43:27 raspberrypi weewx[4657]: engine: Loading service
>>> weewx.wxservices.StdWXCalculate
>>> May 15 08:43:27 raspberrypi weewx[4657]: wxcalculate: The following
>>> values will be calculated: barometer=prefer_hardware,
>>> windchill=prefer_hardware, dewpoint=prefer_hardware,
>>> appTemp=prefer_hardware, rainRate=prefer_hardware, windrun=prefer_hardware,
>>> heatindex=pr

[weewx-user] Re: Problem with Davis VP2 (Data logger or Konsole)?

2020-05-15 Thread Jacques Terrettaz
Hi Meteo Oberwallis,

Try to modify the script /usr/share/weewx/user/radiationhours.py as follow :

Replace (in line 20 ?) :

tempe = float(event.record.get('outTemp'))

by

tempe = event.record.get('outTemp')
if tempe is None:
tempe=15

-- 
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/e23b1667-2355-4cfa-b554-55d8d0e9cd01%40googlegroups.com.


Re: [weewx-user] Can Weewx works with weatherLinkIP and Meteobridge?

2020-05-15 Thread José C . Morales C .

>
> May be a network problem ?

I dont think so

How is your RPI3 connected to your network ?  Wifi?, wired? 

wired
 

> Can you ping the IP address of your IP datalogger from the terminal 
> windows of  your RPI3 ?

pi@raspberrypi:~ $ ping 192.168.1.103
PING 192.168.1.103 (192.168.1.103) 56(84) bytes of data.
64 bytes from 192.168.1.103: icmp_seq=1 ttl=64 time=1.94 ms
64 bytes from 192.168.1.103: icmp_seq=2 ttl=64 time=0.970 ms
64 bytes from 192.168.1.103: icmp_seq=3 ttl=64 time=1.03 ms
64 bytes from 192.168.1.103: icmp_seq=4 ttl=64 time=0.992 ms
64 bytes from 192.168.1.103: icmp_seq=5 ttl=64 time=1.02 ms
64 bytes from 192.168.1.103: icmp_seq=6 ttl=64 time=1.04 ms
64 bytes from 192.168.1.103: icmp_seq=7 ttl=64 time=0.979 ms
64 bytes from 192.168.1.103: icmp_seq=8 ttl=64 time=1.00 ms
64 bytes from 192.168.1.103: icmp_seq=9 ttl=64 time=1.06 ms
64 bytes from 192.168.1.103: icmp_seq=10 ttl=64 time=0.982 ms
64 bytes from 192.168.1.103: icmp_seq=11 ttl=64 time=1.03 ms
64 bytes from 192.168.1.103: icmp_seq=12 ttl=64 time=0.969 ms
64 bytes from 192.168.1.103: icmp_seq=13 ttl=64 time=0.977 ms
64 bytes from 192.168.1.103: icmp_seq=14 ttl=64 time=1.01 ms
64 bytes from 192.168.1.103: icmp_seq=15 ttl=64 time=1.02 ms
64 bytes from 192.168.1.103: icmp_seq=16 ttl=64 time=0.973 ms
64 bytes from 192.168.1.103: icmp_seq=17 ttl=64 time=1.02 ms

I installed too weatherlink software and when i tried to download lot of 
data, weatherlink is freeze, have errors and crash it.

I think the problem is maybe some setup on the logger!




El viernes, 15 de mayo de 2020, 9:25:04 (UTC-4), Jacques Terrettaz escribió:
>
> José, 
>
> May be a network problem ? 
> How is your RPI3 connected to your network ?  Wifi?, wired?   
>  Can you ping the IP address of your IP datalogger from the terminal 
> windows of  your RPI3 ? 
>
>
>
>
>

-- 
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/a8e060c0-69d0-4cda-bb2f-54d8f9d1a4e0%40googlegroups.com.


Re: [weewx-user] Re: Problem with Davis VP2 (Data logger or Konsole)?

2020-05-15 Thread Tom Keffer
Or, even simpler,

tempe = event.record.get('outTemp', 15.0)

-tk

On Fri, May 15, 2020 at 7:04 AM Jacques Terrettaz 
wrote:

> Hi Meteo Oberwallis,
>
> Try to modify the script /usr/share/weewx/user/radiationhours.py as follow
> :
>
> Replace (in line 20 ?) :
>
> tempe = float(event.record.get('outTemp'))
>
> by
>
> tempe = event.record.get('outTemp')
> if tempe is None:
> tempe=15
>
> --
> 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/e23b1667-2355-4cfa-b554-55d8d0e9cd01%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/CAPq0zEDgXB%2BVM0eG%2BziKB19RdEYuwSwBgC0CnF6FGHmJPqAVQg%40mail.gmail.com.


[weewx-user] Re: Problem with Davis VP2 (Data logger or Konsole)?

2020-05-15 Thread Meteo Oberwallis
Hello Jacques

Ok. Its Work! Thank you. I will test this. 

def newArchiveRecord(self, event):
"""Gets called on a new archive record event."""
seuil = 0
tempe = event.record.get('outTemp')
if tempe is None: tempe=15
radiation = event.record.get('radiation')
event.record['sunshine_hours'] = 0.0
if radiation is not None:
utcdate = 
datetime.utcfromtimestamp(event.record.get('dateTime'))
dayofyear = 
int(time.strftime("%j",time.gmtime(event.record.get('dateTime'
theta = 360 * dayofyear / 365
equatemps = 0.0172 + 0.4281 * cos((pi / 180) * theta) - 7.3515 
* sin(
(pi / 180) * theta) - 3.3495 * cos(2 * (pi / 180) * theta) 
- 9.3619 * sin(
2 * (pi / 180) * theta)


Am Freitag, 15. Mai 2020 16:04:21 UTC+2 schrieb Jacques Terrettaz:
>
> Hi Meteo Oberwallis,
>
> Try to modify the script /usr/share/weewx/user/radiationhours.py as follow 
> :
>
> Replace (in line 20 ?) :
>
> tempe = float(event.record.get('outTemp'))
>
> by
>
> tempe = event.record.get('outTemp')
> if tempe is None:
> tempe=15
>

-- 
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/832aa004-abda-489a-824a-780599d9e61a%40googlegroups.com.


Re: [weewx-user] Re: Problem with Davis VP2 (Data logger or Konsole)?

2020-05-15 Thread Meteo Oberwallis
Thx Tom. I hope, this failure its away. Its not good, when i must clear the 
Logger every Day.

Am Freitag, 15. Mai 2020 16:10:26 UTC+2 schrieb Tom Keffer:
>
> Or, even simpler,
>
> tempe = event.record.get('outTemp', 15.0)
>
> -tk
>
> On Fri, May 15, 2020 at 7:04 AM Jacques Terrettaz  > wrote:
>
>> Hi Meteo Oberwallis,
>>
>> Try to modify the script /usr/share/weewx/user/radiationhours.py as 
>> follow :
>>
>> Replace (in line 20 ?) :
>>
>> tempe = float(event.record.get('outTemp'))
>>
>> by
>>
>> tempe = event.record.get('outTemp')
>> if tempe is None:
>> tempe=15
>>
>> -- 
>> 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/e23b1667-2355-4cfa-b554-55d8d0e9cd01%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/6e52ed1a-ba10-49c1-a6eb-0492eccd664b%40googlegroups.com.


Re: [weewx-user] Can Weewx works with weatherLinkIP and Meteobridge?

2020-05-15 Thread Tom Keffer
Take a look at this thread
 and
see if it helps.

-tk

On Fri, May 15, 2020 at 7:07 AM José C. Morales C. 
wrote:

> May be a network problem ?
>
> I dont think so
>
> How is your RPI3 connected to your network ?  Wifi?, wired?
>
> wired
>
>
>> Can you ping the IP address of your IP datalogger from the terminal
>> windows of  your RPI3 ?
>
> pi@raspberrypi:~ $ ping 192.168.1.103
> PING 192.168.1.103 (192.168.1.103) 56(84) bytes of data.
> 64 bytes from 192.168.1.103: icmp_seq=1 ttl=64 time=1.94 ms
> 64 bytes from 192.168.1.103: icmp_seq=2 ttl=64 time=0.970 ms
> 64 bytes from 192.168.1.103: icmp_seq=3 ttl=64 time=1.03 ms
> 64 bytes from 192.168.1.103: icmp_seq=4 ttl=64 time=0.992 ms
> 64 bytes from 192.168.1.103: icmp_seq=5 ttl=64 time=1.02 ms
> 64 bytes from 192.168.1.103: icmp_seq=6 ttl=64 time=1.04 ms
> 64 bytes from 192.168.1.103: icmp_seq=7 ttl=64 time=0.979 ms
> 64 bytes from 192.168.1.103: icmp_seq=8 ttl=64 time=1.00 ms
> 64 bytes from 192.168.1.103: icmp_seq=9 ttl=64 time=1.06 ms
> 64 bytes from 192.168.1.103: icmp_seq=10 ttl=64 time=0.982 ms
> 64 bytes from 192.168.1.103: icmp_seq=11 ttl=64 time=1.03 ms
> 64 bytes from 192.168.1.103: icmp_seq=12 ttl=64 time=0.969 ms
> 64 bytes from 192.168.1.103: icmp_seq=13 ttl=64 time=0.977 ms
> 64 bytes from 192.168.1.103: icmp_seq=14 ttl=64 time=1.01 ms
> 64 bytes from 192.168.1.103: icmp_seq=15 ttl=64 time=1.02 ms
> 64 bytes from 192.168.1.103: icmp_seq=16 ttl=64 time=0.973 ms
> 64 bytes from 192.168.1.103: icmp_seq=17 ttl=64 time=1.02 ms
>
> I installed too weatherlink software and when i tried to download lot of
> data, weatherlink is freeze, have errors and crash it.
>
> I think the problem is maybe some setup on the logger!
>
>
>
>
> El viernes, 15 de mayo de 2020, 9:25:04 (UTC-4), Jacques Terrettaz
> escribió:
>>
>> José,
>>
>> May be a network problem ?
>> How is your RPI3 connected to your network ?  Wifi?, wired?
>>  Can you ping the IP address of your IP datalogger from the terminal
>> windows of  your RPI3 ?
>>
>>
>>
>>
>> --
> 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/a8e060c0-69d0-4cda-bb2f-54d8f9d1a4e0%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/CAPq0zED7xX6oQM1MR%2B-MyEochdMo%3DkijUv6mAwOooRx0kKZPmw%40mail.gmail.com.


Re: [weewx-user] Re: Problem with Davis VP2 (Data logger or Konsole)?

2020-05-15 Thread Tom Keffer
No, it is not good. But, the VP2 driver is used by hundreds, maybe
thousands of users. I'm sure it can be made to work.

What happened after putting in the fix for the extension radiationhours?

-tk

On Fri, May 15, 2020 at 7:21 AM Meteo Oberwallis 
wrote:

> Thx Tom. I hope, this failure its away. Its not good, when i must clear
> the Logger every Day.
>
> Am Freitag, 15. Mai 2020 16:10:26 UTC+2 schrieb Tom Keffer:
>>
>> Or, even simpler,
>>
>> tempe = event.record.get('outTemp', 15.0)
>>
>> -tk
>>
>> On Fri, May 15, 2020 at 7:04 AM Jacques Terrettaz 
>> wrote:
>>
>>> Hi Meteo Oberwallis,
>>>
>>> Try to modify the script /usr/share/weewx/user/radiationhours.py as
>>> follow :
>>>
>>> Replace (in line 20 ?) :
>>>
>>> tempe = float(event.record.get('outTemp'))
>>>
>>> by
>>>
>>> tempe = event.record.get('outTemp')
>>> if tempe is None:
>>> tempe=15
>>>
>>> --
>>> 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/e23b1667-2355-4cfa-b554-55d8d0e9cd01%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/6e52ed1a-ba10-49c1-a6eb-0492eccd664b%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/CAPq0zECfs-sxQFzSb-oK5keFm3_Fcr%3D%3DSxAZa%2BQAAKkB4VwgUQ%40mail.gmail.com.


Re: [weewx-user] Re: Problem with Davis VP2 (Data logger or Konsole)?

2020-05-15 Thread Meteo Oberwallis
The error has now disappeared and I have also found out why this happens. 
If the console lost the connection to the outside, then the expansion had a 
problem because there was no value. That is why weewx was stopped.

Now it runs even after the data logger has been deleted and no data from the 
outdoor station is available.
What is the value 15 for? What does this mean?



Am Freitag, 15. Mai 2020 16:23:20 UTC+2 schrieb Tom Keffer:
>
> No, it is not good. But, the VP2 driver is used by hundreds, maybe 
> thousands of users. I'm sure it can be made to work.
>
> What happened after putting in the fix for the extension radiationhours?
>
> -tk
>
> On Fri, May 15, 2020 at 7:21 AM Meteo Oberwallis  > wrote:
>
>> Thx Tom. I hope, this failure its away. Its not good, when i must clear 
>> the Logger every Day.
>>
>> Am Freitag, 15. Mai 2020 16:10:26 UTC+2 schrieb Tom Keffer:
>>>
>>> Or, even simpler,
>>>
>>> tempe = event.record.get('outTemp', 15.0)
>>>
>>> -tk
>>>
>>> On Fri, May 15, 2020 at 7:04 AM Jacques Terrettaz  
>>> wrote:
>>>
 Hi Meteo Oberwallis,

 Try to modify the script /usr/share/weewx/user/radiationhours.py as 
 follow :

 Replace (in line 20 ?) :

 tempe = float(event.record.get('outTemp'))

 by

 tempe = event.record.get('outTemp')
 if tempe is None:
 tempe=15
 -- 
 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/e23b1667-2355-4cfa-b554-55d8d0e9cd01%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/6e52ed1a-ba10-49c1-a6eb-0492eccd664b%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/7fe29475-b8a6-4832-b0ff-6d830c793a86%40googlegroups.com.


Re: [weewx-user] Problem with Davis VP2 (Data logger or Konsole)?

2020-05-15 Thread Jacques Terrettaz
The formula include a small correction of the Davis radiation sensor values 
depending on the temperature.  
If the temperature is not available, a default temperature of 15°C is used. 

You can use alternatively 25.0 instead of 15.0 as default temperature -  tempe 
= event.record.get('outTemp', 25.0) -   and in that case the radiation value 
will not be corrected if temperature value is not available.   

> Le 15 mai 2020 à 16:29, Meteo Oberwallis  a écrit :
> 
> What is the value 15 for? What does this mean?
> 

-- 
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/5AC6BD30-5BB2-4688-891F-3F3D953D1459%40gmail.com.


Re: [weewx-user] Noisy logging, log_success = False not followed

2020-05-15 Thread Chris Nelson
Thanks Tom,
I re-read your logged 
 page in detail 
after I posted this issue.  A couple of suggestions for the not fully 
initiated:


   - This link points to the Python logger documentation, whereas I thought 
   I'd be reading about the WeeWX logging config schema
   
First, read, or, at least, attempt to read, the section on the schema of 
> the configuration dictionary 
>  that 
> logging uses.
>


   -  Perhaps add a commented out example [Logging] section to the 
   weewx.conf.dist.


Unrelated, I thought that wunderfixer is no longer functional based on API 
changes at WU.  If correct then there is still a remnant in weewx.conf.dist:

> # If you plan on using wunderfixer, set the following
> # to your API key:
> api_key = replace_me
>

Thank you for continuing this project and bringing it up to Py3!
cjn


On Friday, May 15, 2020 at 4:55:31 AM UTC-7, Tom Keffer wrote:
>
> Version 4.0 allows much more control over what gets logged 
> . To suppress 
> everything below log level WARN, put this at the bottom of weewx.conf:
>
> [Logging]
>   [[loggers]]
> [[[weewx.manager]]]
>   level = WARN
>
> -tk
>
> On Thu, May 14, 2020 at 9:53 PM Chris Nelson  > wrote:
>
>> These two log.info lines in manager.py do not use the config file 
>> log_success switch, resulting in entries every five minutes.  Adding the 
>> log_success switch test within _addSingleRecord instances is not trivial 
>> since the config is not passed to the object.
>>
>>  
>>
>>> May 12 18:55:15 shop2 journal: weewx[7760] INFO weewx.manager: Added 
>>> record 2020-05-12 18:55:00 MST (1589334900) to database 'weewx.sdb'
>>>
>>> May 12 18:55:15 shop2 journal: weewx[7760] INFO weewx.manager: Added 
>>> record 2020-05-12 18:55:00 MST (1589334900) to daily summary in 'weewx.sdb'
>>>
>>
>> This was noted back in 2017 also by Daniel Jönsson in this thread 
>>  - not a 
>> new issue.  I just commented out the two calls to log.info().  I'm just 
>> working to clean up noise in my system log.
>>
>> -- 
>> 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/11778f1a-f56b-4753-97e9-4bc53c9a03e3%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/e7e1574e-1066-4760-b1fe-556b4259bf10%40googlegroups.com.


[weewx-user] Re: NOAA Reports not corrcet - Belchertown

2020-05-15 Thread Dirk
I still have this problem.
All reports are generated and uploaded to the Server, but only 2 of them are to 
see on the webpage.
Any ideas?

-- 
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/c0990510-f8c3-44a3-b84a-31c413ade27c%40googlegroups.com.


[weewx-user] Upload-time is chaos

2020-05-15 Thread Keimpe Bleeker
Hi all, last major issue: how can I arrange that the time of the last 
MQTT-organized upload looks a bit legible (see the attached screenshot)? 
I'm using Weewx 4.0.0 and Belchertown 1.1, connected to a Davis Vantage 
Pro2 and it's my first 'live' Weewx-setup (http://oentsjerk.eu/). Thanks in 
advance, Keimpe (NL)

-- 
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/cbdfa31a-9a1b-4909-8342-8dae87016445%40googlegroups.com.


RE: [weewx-user] Noisy logging, log_success = False not followed

2020-05-15 Thread nineback
I tried to follow the instructions in the v4 logging wiki, 
https://github.com/weewx/weewx/wiki/WeeWX-v4-and-logging.  I added this to my 
weewx.conf file:

 

[Logging]

[[loggers]]

# Root logger

[[[root]]]

  handlers = rotate,# 1

[[handlers]]

# Log to a set of rotating files

[[[rotate]]]

level = DEBUG   # 2

formatter = standard# 3

class = logging.handlers.RotatingFileHandler  # 4

filename = /var/log/weewx.log   # 5

maxBytes = 1000 # 6

backupCount = 4 # 7

 

Nothing is being logged to the weewx.log file and weewx is not updating the 
archive file or reports.  It appears weewx has crashed but syslog is not 
showing anything which I’m assuming indicates the program is trying to write to 
the weewx.log file but cannot hence it isn’t recording any error messages.

 

I tried top add syslog to the handlers thinking something might show up in 
syslog.

 

handlers = rotate, syslog   

 

This is what I get in the syslog file:

 

May 15 14:20:21 raspberrypi systemd[1]: Starting LSB: weewx weather system...

May 15 14:20:21 raspberrypi weewx[2183] INFO __main__: Initializing weewx 
version 4.0.0

May 15 14:20:21 raspberrypi weewx[2183] INFO __main__: Using Python 3.7.3 
(default, Dec 20 2019, 18:57:59) #012[GCC 8.3.0]

May 15 14:20:21 raspberrypi weewx[2183] INFO __main__: Platform 
Linux-4.19.97-v7+-armv7l-with-debian-10.4

May 15 14:20:21 raspberrypi weewx[2183] INFO __main__: Locale is 'en_US.UTF-8'

May 15 14:20:21 raspberrypi weewx[2183] INFO __main__: PID file is 
/var/run/weewx.pid

 

This is a new install.  Everything works fine until I try to add [Logging} to 
the weewx.conf file.

 

Tom

From: weewx-user@googlegroups.com  On Behalf Of 
Tom Keffer
Sent: Friday, May 15, 2020 6:55 AM
To: weewx-user 
Subject: Re: [weewx-user] Noisy logging, log_success = False not followed

 

Version 4.0 allows much more control over what gets logged 
 . To suppress 
everything below log level WARN, put this at the bottom of weewx.conf:

 

[Logging]
  [[loggers]]
[[[weewx.manager]]]
  level = WARN

 

-tk

 

On Thu, May 14, 2020 at 9:53 PM Chris Nelson mailto:cjncj...@gmail.com> > wrote:

These two log.info   lines in manager.py do not use the config 
file log_success switch, resulting in entries every five minutes.  Adding the 
log_success switch test within _addSingleRecord instances is not trivial since 
the config is not passed to the object.

 

May 12 18:55:15 shop2 journal: weewx[7760] INFO weewx.manager: Added record 
2020-05-12 18:55:00 MST (1589334900) to database 'weewx.sdb'

May 12 18:55:15 shop2 journal: weewx[7760] INFO weewx.manager: Added record 
2020-05-12 18:55:00 MST (1589334900) to daily summary in 'weewx.sdb'

 

This was noted back in 2017 also by Daniel Jönsson in this thread 
  - not a new 
issue.  I just commented out the two calls to log.info  ().  
I'm just working to clean up noise in my system log.

-- 
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/11778f1a-f56b-4753-97e9-4bc53c9a03e3%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/CAPq0zEDmQAMGzTFNDmhsXBupmo9e65%2B2CPEDDGiEuinW%2BYXXfg%40mail.gmail.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/00b201d62aef%24c7b1d8c0%2457158a40%24%40gmail.com.


RE: [weewx-user] Noisy logging, log_success = False not followed

2020-05-15 Thread Chris Nelson
Thinking out loud here...  Running as the Pi user?  Have write access to 
/var/log?

-- 
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/8fb4e590-c1f8-4220-beef-ab6e6baba964%40googlegroups.com.


Re: [weewx-user] Noisy logging, log_success = False not followed

2020-05-15 Thread Tom Keffer
Sorry, Tom. This is due to a bug in how weewx configures the logger. The
problem is that weewx does not convert strings to int when configuring.  It
was fixed a couple weeks ago (commit 6348741
),
but I totally forgot about it.

You have two choices:

   1. Replace your copy of weeutil/logger.py with the one in the repository
   ,
   or
   2. remove the integers from the configuration stanza. It becomes

[Logging]
[[loggers]]
# Root logger
[[[root]]]
  handlers = rotate,# 1
[[handlers]]
# Log to a set of rotating files
[[[rotate]]]
level = DEBUG   # 2
formatter = standard# 3
class = logging.handlers.RotatingFileHandler  # 4
filename = /var/log/weewx.log   # 5

-tk

On Fri, May 15, 2020 at 3:58 PM Chris Nelson  wrote:

> Thinking out loud here...  Running as the Pi user?  Have write access to
> /var/log?
>
> --
> 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/8fb4e590-c1f8-4220-beef-ab6e6baba964%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/CAPq0zEAkF8DDP%3D5ahXooNr2KiSFzQbcLWKo2tU4Y4RQMb7f8yw%40mail.gmail.com.


RE: [weewx-user] Noisy logging, log_success = False not followed

2020-05-15 Thread nineback
Thanks Tom.  I updated the logger.py file and all is well.  I also changed the 
formatter to verbose so I could get date/time stamps.

 

Tom

 

From: weewx-user@googlegroups.com  On Behalf Of 
Tom Keffer
Sent: Friday, May 15, 2020 7:09 PM
To: weewx-user 
Subject: Re: [weewx-user] Noisy logging, log_success = False not followed

 

Sorry, Tom. This is due to a bug in how weewx configures the logger. The 
problem is that weewx does not convert strings to int when configuring.  It was 
fixed a couple weeks ago (commit  

 6348741), but I totally forgot about it.

 

You have two choices: 

1.   Replace your copy of weeutil/logger.py with the one in the repository 
 , 
or 

2.   remove the integers from the configuration stanza. It becomes

[Logging]
[[loggers]]
# Root logger
[[[root]]]
  handlers = rotate,# 1
[[handlers]]
# Log to a set of rotating files   
[[[rotate]]]
level = DEBUG   # 2
formatter = standard# 3
class = logging.handlers.RotatingFileHandler  # 4
filename = /var/log/weewx.log   # 5

-tk

 

On Fri, May 15, 2020 at 3:58 PM Chris Nelson mailto:cjncj...@gmail.com> > wrote:

Thinking out loud here...  Running as the Pi user?  Have write access to 
/var/log?

-- 
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/8fb4e590-c1f8-4220-beef-ab6e6baba964%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/CAPq0zEAkF8DDP%3D5ahXooNr2KiSFzQbcLWKo2tU4Y4RQMb7f8yw%40mail.gmail.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/026901d62b1e%24a66839f0%24f338add0%24%40gmail.com.


Re: [weewx-user] Number of days on which the average Temperature was above a certain value

2020-05-15 Thread Tom Keffer
Rolf, I actually found a way around the limitations. You can do this now
with V4.0.0.

See the extension weewx-xstats  and
let me know if you have any questions.

-tk

On Fri, May 15, 2020 at 1:43 AM Rolf Zanchettin  wrote:

>
> Hi Tom,
>
> thanks for the reply.
> That would be awesome :-)
>
> Best regards
> Rolf
>
> Am Donnerstag, 14. Mai 2020 20:45:04 UTC+2 schrieb Tom Keffer:
>>
>> Nope. Not possible with the present version of xtypes.
>>
>> But, it's given me some ideas on how to modify xtypes to make it
>> possible. Maybe in v4.0.1.
>>
>> On Thu, May 14, 2020 at 8:37 AM Tom Keffer  wrote:
>>
>>> There is a 'max_ge()' aggregation, but, unfortunately, no 'avg_ge()'.
>>> It could be added via the xtypes
>>> 
>>> facility, but it would require some clever Python programming.
>>>
>>> Let me think about that...
>>>
>>> -tk
>>>
>>>
>>>
>>> On Thu, May 14, 2020 at 6:22 AM Rolf Zanchettin 
>>> wrote:
>>>
 Hello,

 I would like to display the number of days on which the average
 Temperature was greater or equal 5° C.
 How can I achieve this?


 Thanks in advance
 Best regards, Rolf

 --
 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/d1a3130c-d00b-4eb2-8d09-44a36d27e35f%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/41084e16-e757-45e2-8e40-85e0f1204e06%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/CAPq0zEBNPEWuUJc%3DreyZCCscqvZEEY2n10b_Nt3cpWVNkDfnKw%40mail.gmail.com.