[weewx-user] Re: ephem does not work

2020-03-27 Thread Astrid
Hello!

Yes, I think so...?
But I dont understand, why this is so...?? :(

But I am happy, that ephem is working now. :)

Thanx a lot. :)

Regards, Astrid

-- 
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/cf46eb20-d83e-414a-9e20-49d370c40738%40googlegroups.com.


Re: [weewx-user] WeeWX on RPi with custom hardware based on I2C sensors

2020-03-27 Thread Sergio Alejandro González
Thank you Thomas for you prompt response...I'll take a deep look at version 
4.b17

On Friday, March 27, 2020 at 9:59:29 PM UTC-3, Thomas Keffer wrote:
>
> WeeWX blocks on queries to the sensors, so it responds as fast as the 
> sensor emits data. Once per second should be fine on all but the slowest of 
> platforms.
>
> WeeWX V3.9 runs on Python 2.x only. Version 4.x (due RSN), runs on either. 
> It's pretty stable. You can find betas in the development download area 
> .
>
> -t
>
>
>
> On Fri, Mar 27, 2020 at 3:30 PM Sergio Alejandro González <
> sergio.alej...@gmail.com > wrote:
>
>> Ok guys..I have a couple of doubts: 
>>
>> I'm completely new to WeeWX but I think that I can use it for a complete 
>> custom weather station that I've created and is based on I2C sensors, 
>> specifically, atmospheric radiance sensors. Now my question is I need to 
>> query those sensors every second. WeeWX is able to be customized to be able 
>> to do that?
>>
>> I currently have the custom hardware working on a RPI3 with Python 3.6 
>> code...I know WeeWX works in Pyhton 2.7...could this be a problem ?
>>
>> Warmest regard to all in this forums and tanks in advance to any help...
>>
>> -- 
>> 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/3b630c01-c50d-4729-bbb6-ea895fe83cb8%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/16819b77-e8f1-4a91-b626-3b7dee96b132%40googlegroups.com.


Re: [weewx-user] WeeWX on RPi with custom hardware based on I2C sensors

2020-03-27 Thread Thomas Keffer
WeeWX blocks on queries to the sensors, so it responds as fast as the
sensor emits data. Once per second should be fine on all but the slowest of
platforms.

WeeWX V3.9 runs on Python 2.x only. Version 4.x (due RSN), runs on either.
It's pretty stable. You can find betas in the development download area
.

-t



On Fri, Mar 27, 2020 at 3:30 PM Sergio Alejandro González <
sergio.alejandro.gonza...@gmail.com> wrote:

> Ok guys..I have a couple of doubts:
>
> I'm completely new to WeeWX but I think that I can use it for a complete
> custom weather station that I've created and is based on I2C sensors,
> specifically, atmospheric radiance sensors. Now my question is I need to
> query those sensors every second. WeeWX is able to be customized to be able
> to do that?
>
> I currently have the custom hardware working on a RPI3 with Python 3.6
> code...I know WeeWX works in Pyhton 2.7...could this be a problem ?
>
> Warmest regard to all in this forums and tanks in advance to any help...
>
> --
> 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/3b630c01-c50d-4729-bbb6-ea895fe83cb8%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/CAPq0zECapTVuQ35n5rSnLyXrcm2H%3DcZaVgcdqrxDCPk4UKZ2LQ%40mail.gmail.com.


[weewx-user] WeeWx: Import of driver failed. (interceptor)

2020-03-27 Thread 'Joerg Strobel' via weewx-user
Hi, 

i have the following problem with WeeWx. I have to use the interceptor 
driver, because of sniffing.
At the first start after installation everyhing worked fine. So i think the 
weewx.conf is fine.My RPI got all the packages and the html file was fine.
After installing a new weewx skin and deleting all the files in the 
/var/www/html folders wait for the new files, but nothing came in. So i 
checked the log.

Does someone has an idea what to do?

Starting weewx weather system: weewx.

Mär 28 00:42:59 3bplus-ap1.f1linux.com systemd[1]: Started LSB: weewx 
weather system.

Mär 28 00:42:59 3bplus-ap1.f1linux.com weewx[652]: interceptor: MainThread: 
driver version is 0.53

Mär 28 00:42:59 3bplus-ap1.f1linux.com weewx[652]: interceptor: MainThread: 
device type: observer

Mär 28 00:42:59 3bplus-ap1.f1linux.com weewx[652]: interceptor: MainThread: 
mode is sniff

Mär 28 00:42:59 3bplus-ap1.f1linux.com weewx[652]: interceptor: MainThread: 
sniff iface=wlan0 promiscuous=0

Mär 28 00:42:59 3bplus-ap1.f1linux.com weewx[652]: interceptor: MainThread: 
sniff filter '192.168.*XXX.Y* and dst port 80'

Mär 28 00:42:59 3bplus-ap1.f1linux.com weewx[652]: *engine: Import of 
driver failed: ('syntax error in filter expression: syntax error', 
'pcap_compile') (https://groups.google.com/d/msgid/weewx-user/e4f1d825-ba19-4e8c-b88c-03202a7abfb0%40googlegroups.com.


[weewx-user] WeeWX on RPi with custom hardware based on I2C sensors

2020-03-27 Thread Sergio Alejandro González
Ok guys..I have a couple of doubts: 

I'm completely new to WeeWX but I think that I can use it for a complete 
custom weather station that I've created and is based on I2C sensors, 
specifically, atmospheric radiance sensors. Now my question is I need to 
query those sensors every second. WeeWX is able to be customized to be able 
to do that?

I currently have the custom hardware working on a RPI3 with Python 3.6 
code...I know WeeWX works in Pyhton 2.7...could this be a problem ?

Warmest regard to all in this forums and tanks in advance to any help...

-- 
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/3b630c01-c50d-4729-bbb6-ea895fe83cb8%40googlegroups.com.


Re: [weewx-user] Re: ephem does not work

2020-03-27 Thread Thomas Keffer
Are you saying that "pip" installed pyephem in a Python 3.x location, but
the command "python" invokes Python 2.x?

-tk

On Fri, Mar 27, 2020 at 11:22 AM Astrid  wrote:

> Hello!
>
> I got it. :)
> I found that there is a pip2.7.
> I am a little bit confused with the version...
> If I say pyton it calls pyton2.7, but if I say pip, it calls pip3.6...
> It is suse Leap 15.1.
>
> But now with the command
> pip2.7 install ephem
>
> I got it. :)
>
> Thank you very much for your hints in the
> right direction.
> I am a newbee on here...
>
> Regards, Astrid
>
> --
> 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/2c166d8e-d5d3-4b19-b576-676069214ffe%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/CAPq0zECRhc8f437qak39KAaE_dfrN%2B0s1MxJZmxTP46iMZNFAw%40mail.gmail.com.


[weewx-user] Re: ephem does not work

2020-03-27 Thread Astrid
Hello!

I got it. :)
I found that there is a pip2.7.
I am a little bit confused with the version...
If I say pyton it calls pyton2.7, but if I say pip, it calls pip3.6...
It is suse Leap 15.1.

But now with the command
pip2.7 install ephem

I got it. :)

Thank you very much for your hints in the
right direction.
I am a newbee on here...

Regards, Astrid

-- 
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/2c166d8e-d5d3-4b19-b576-676069214ffe%40googlegroups.com.


[weewx-user] Re: ephem does not work

2020-03-27 Thread Astrid
Hello!

Thanx for your hints.

I installed weewx with downloading the rpm and
do it with rpm --install.

Here are the requested results:

pip show pyephem
Name: pyephem
Version: 3.7.7.0
Summary: Empty package that depends on "ephem"
Home-page: http://rhodesmill.org/pyephem/
Author: Brandon Rhodes
Author-email: brandon rhodesmill.org
License: LGPL
Location: /usr/lib/python3.6/site-packages
Requires: ephem
Required-by: 

python -c "import sys; print(sys.path)"
['', '/usr/lib/python27.zip', '/usr/lib64/python2.7', 
'/usr/lib64/python2.7/plat-linux2', '/usr/lib64/python2.7/lib-tk', 
'/usr/lib64/python2.7/lib-old', '/usr/lib64/python2.7/lib-dynload', 
'/usr/lib64/python2.7/site-packages', 
'/usr/lib64/python2.7/site-packages/PIL', 
'/usr/local/lib64/python2.7/site-packages', 
'/usr/local/lib/python2.7/site-packages', 
'/usr/lib64/python2.7/site-packages/gtk-2.0', 
'/usr/lib/python2.7/site-packages']

head /usr/bin/weewxd
#!/usr/bin/env python
#
#Copyright (c) 2009-2015 Tom Keffer 
#
#See the file LICENSE.txt for your rights.
#
"""Entry point to the weewx weather system."""
import sys
from optparse import OptionParser

So will it be enough to change the first line of weewxd to
#!/usr/bin/env python3.6

This is installed too on my computer.

Regards, Astrid

-- 
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/ad74bd50-e53f-4c1f-a376-635de0a248b1%40googlegroups.com.


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

2020-03-27 Thread Jan Stelling
Hej Pat,

I am facing an issue with the weather radials. I used the 
graphs.conf.example and renamed it to graphs.conf and finally inserted this 
snippet at the end:

[weatherRadialGraphGroup]
title = Temperature Range Radial
show_button = true
button_text = Weather Radial
time_length = year

[[radialChartName]]
title = This Year
css_class = "weatherRadial"
[[[weatherRange]]]
range_type = outTemp


Unfortuantely nothing shows up on my graphs page, only the button > 
https://www.janstelling.de/wetter
Any idea what I miss?




-- 
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/bf779bd7-0aa8-4ddd-912d-ae6493cba286%40googlegroups.com.


Re: [weewx-user] ephem does not work

2020-03-27 Thread Thomas Keffer
You're not giving a lot of information, but it's possible that pip
installed pyephem a different version of python that the version you are
using to run weewxd. Try this:

*pip show pyephem*

It will show you where pip installed pyephem. Then try this:

*python -c "import sys; print(sys.path)"*

There must be a match between them.

Also, how are you running weewxd? We need to know what version of Python it
is using. Try this:

*head /usr/bin/weewxd*

or

*head /home/weewx/bin/weewxd*

depending on how you installed WeeWX.

Finally, what is your PATH?

*env echo $PATH*

-tk

On Fri, Mar 27, 2020 at 7:04 AM Astrid  wrote:

> Hello!
>
> I have weewx 3.9.2 installed.
> PyEphem is installed via pip.
>
> pip list | grep ephem
> ephem   3.7.7.0
> pyephem 3.7.7.0
>
> I put
> import ephem
> to local weewx-installation into
> extensions.py
>
> but if I restart weewx, it said that it
> ephem not found
>
> If I ommit this line in extensions.py and
> and restart weewx and
> print $almanac.hasExtra to a report, it
> said: false.
>
> I want to add moonrise and moonset to my
> almanach.
>
> How I can get ephem for this getting work?
>
> Regards, Astrid
>
> --
> 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/cc3e7973-99cd-4bfd-b7d1-e58c6463873f%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/CAPq0zEAn6288C2nAom2DAjKLimi%2BN65E_M%3Df2REwCJ8AwQya%3Dw%40mail.gmail.com.


[weewx-user] Re: Sunshine Time

2020-03-27 Thread Meteo Oberwallis



I have another question. Is it possible that the entire database can now be run 
once in order to have the hours of sun generated by the past? The graphics are 
not up to date right now because the 5min sun was displayed as 0.8 before 
renewal.



Am Freitag, 27. März 2020 13:17:34 UTC+1 schrieb Jacques Terrettaz:
>
> May be :
>
> #set minutes = int($day.sunshine_hours.sum.raw - ($hours*60))
>
>
>
> Le vendredi 27 mars 2020 13:14:05 UTC+1, Meteo Oberwallis a écrit :
>>
>> Hello.
>>
>> Thx. Thats Work! I have another Problem. 
>>
>> A coming point now appears at the minutes, which should not be there. How 
>> can I remove it?
>>
>>
>> 
>> 
>>
>> Thank you
>>
>> Am Freitag, 27. März 2020 12:49:17 UTC+1 schrieb Jacques Terrettaz:
>>>
>>>
>>> Hi,
>>> With this extension, the sunshine time is recorded as minutes.
>>>
>>> So in your case, to have the number of hours, you should divide the sum 
>>> by 60:
>>>
>>>  
>>> #set hours = int($day.sunshine_hours.sum.raw*/60*)  
>>> #set minutes = $day.sunshine_hours.sum.raw - ($hours*60)
>>>
>>> With a daily sum of 135 minutes , this give:
>>> hours = int(135/60) = 2
>>> minutes = 135-(2*60)= 15
>>>
>>> So 
>>>   should give now 2 h 15 m
>>>
>>>
>>>  
>>>
>>>

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


[weewx-user] ephem does not work

2020-03-27 Thread Astrid
Hello!

I have weewx 3.9.2 installed.
PyEphem is installed via pip.

pip list | grep ephem
ephem   3.7.7.0  
pyephem 3.7.7.0  

I put 
import ephem
to local weewx-installation into
extensions.py

but if I restart weewx, it said that it
ephem not found

If I ommit this line in extensions.py and
and restart weewx and
print $almanac.hasExtra to a report, it
said: false.

I want to add moonrise and moonset to my
almanach.

How I can get ephem for this getting work?

Regards, Astrid

-- 
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/cc3e7973-99cd-4bfd-b7d1-e58c6463873f%40googlegroups.com.


[weewx-user] Re: do not understand x-axis labels of year-plots from Standard-skin

2020-03-27 Thread Astrid
Hello!

Ok, thanx for information.

Regads, Astrid

-- 
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/45d4c90f-ec30-46fa-a26d-c2123346fa6b%40googlegroups.com.


Re: [weewx-user] Average WX local historical data to compare?

2020-03-27 Thread Thomas Keffer
This would be a useful feature but, unfortunately, it does not exist in
WeeWX. You would have to write a search list extension.

-tk

On Thu, Mar 26, 2020 at 6:46 PM Xant  wrote:

>
> I'm in the UpstateNY, where weather behaviour indeed awkward (specially
> recently) Mix of warm days, recent snow and freezing temps besides
> clear sunny days.
>
> Historically, what is the temp I was expected to see today? Under
> freezing, above freezing, warm? Are the Seasons changing due to "Global
> Warming"?
>
> In another words, is there average WX local historical data that can be
> retrieved and compared and plotted to WeeWX graphs?
>
> 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/1d64607d-f584-4363-b6a7-11ec67b96411%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/CAPq0zEAXGCqwvG-dPfkoWHt2sCGFf1H3NNtG90MFvrNM86T1jg%40mail.gmail.com.


[weewx-user] Re: Sunshine Time

2020-03-27 Thread Meteo Oberwallis
Great. That’s it. thank you very much

Am Freitag, 27. März 2020 13:17:34 UTC+1 schrieb Jacques Terrettaz:
>
> May be :
>
> #set minutes = int($day.sunshine_hours.sum.raw - ($hours*60))
>
>
>
> Le vendredi 27 mars 2020 13:14:05 UTC+1, Meteo Oberwallis a écrit :
>>
>> Hello.
>>
>> Thx. Thats Work! I have another Problem. 
>>
>> A coming point now appears at the minutes, which should not be there. How 
>> can I remove it?
>>
>>
>> 
>> 
>>
>> Thank you
>>
>> Am Freitag, 27. März 2020 12:49:17 UTC+1 schrieb Jacques Terrettaz:
>>>
>>>
>>> Hi,
>>> With this extension, the sunshine time is recorded as minutes.
>>>
>>> So in your case, to have the number of hours, you should divide the sum 
>>> by 60:
>>>
>>>  
>>> #set hours = int($day.sunshine_hours.sum.raw*/60*)  
>>> #set minutes = $day.sunshine_hours.sum.raw - ($hours*60)
>>>
>>> With a daily sum of 135 minutes , this give:
>>> hours = int(135/60) = 2
>>> minutes = 135-(2*60)= 15
>>>
>>> So 
>>>   should give now 2 h 15 m
>>>
>>>
>>>  
>>>
>>>

-- 
You received this message because you are subscribed to the Google Groups 
"weewx-user" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to weewx-user+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/weewx-user/57dea60c-91c0-4413-bfe4-4c988859fa1e%40googlegroups.com.


[weewx-user] Re: Sunshine Time

2020-03-27 Thread Jacques Terrettaz
May be :

#set minutes = int($day.sunshine_hours.sum.raw - ($hours*60))



Le vendredi 27 mars 2020 13:14:05 UTC+1, Meteo Oberwallis a écrit :
>
> Hello.
>
> Thx. Thats Work! I have another Problem. 
>
> A coming point now appears at the minutes, which should not be there. How can 
> I remove it?
>
>
> 
> 
>
> Thank you
>
> Am Freitag, 27. März 2020 12:49:17 UTC+1 schrieb Jacques Terrettaz:
>>
>>
>> Hi,
>> With this extension, the sunshine time is recorded as minutes.
>>
>> So in your case, to have the number of hours, you should divide the sum 
>> by 60:
>>
>>  
>> #set hours = int($day.sunshine_hours.sum.raw*/60*)  
>> #set minutes = $day.sunshine_hours.sum.raw - ($hours*60)
>>
>> With a daily sum of 135 minutes , this give:
>> hours = int(135/60) = 2
>> minutes = 135-(2*60)= 15
>>
>> So 
>>   should give now 2 h 15 m
>>
>>
>>  
>>
>>

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


[weewx-user] Re: Sunshine Time

2020-03-27 Thread Meteo Oberwallis
Hello.

Thx. Thats Work! I have another Problem. 

A coming point now appears at the minutes, which should not be there. How can I 
remove it?





Thank you

Am Freitag, 27. März 2020 12:49:17 UTC+1 schrieb Jacques Terrettaz:
>
>
> Hi,
> With this extension, the sunshine time is recorded as minutes.
>
> So in your case, to have the number of hours, you should divide the sum by 
> 60:
>
>  
> #set hours = int($day.sunshine_hours.sum.raw*/60*)  
> #set minutes = $day.sunshine_hours.sum.raw - ($hours*60)
>
> With a daily sum of 135 minutes , this give:
> hours = int(135/60) = 2
> minutes = 135-(2*60)= 15
>
> So 
>   should give now 2 h 15 m
>
>
>  
>
>

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


[weewx-user] Re: Sunshine Time

2020-03-27 Thread Jacques Terrettaz

Hi, 
Another way to go, if you want to have the sunshine time recorded as hours, 
is to mofify the end of the extension to divide  it by 60,  as follows :

 if mesure > seuil:
event.record['sunshine_time'] = event.record['interval']/60



-- 
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/60201244-0231-4bf9-af62-8f58d766ec25%40googlegroups.com.


[weewx-user] Re: Clear anomalous rain rate reading from database

2020-03-27 Thread Muireadach O Connor
Fixed it, posting here for future reference,

I downloaded the free tool "DB Browser for SQLite from 
https://sqlitebrowser.org/ and had alook at a copy of my databse. It was 
then I realised that the values are stored in imperial, so my rainfall, 
though displaying in mm is reorded in inches.

So reran the below but changed :

update archive set rainRate=NULL where rainRate > 200 (mm) to update 
archive set rainRate=NULL where rainRate > 14 (in)

All worked great, tables already updated.

Cheers,

Muireadach.

On Friday, March 27, 2020 at 8:41:01 AM UTC, Muireadach O Connor wrote:
>
> I followed the guide ( http://www.weewx.com/docs/usersguide.htm - Spikes 
> in the graph section) on  to clear an anomalous reading after I cleaned my 
> weather station which resulted in a huge rainfall rate reading spike.
>
> However this morning I see the reading is still there (
> https://www.loughlinstown.ie/records.html - rainfall rate records table - 
> February 2020).
>
> I'm running WeeWX on a Raspberry Pi 2.
>
> Steps taken as per the guide:
>
> *Stop WeeWX*
>
> sudo service weewx stop
>
>
> *Make a copy of the archive database*
>
> cp weewx.sdb weewx-YYMMDD.sdb
>
> *Verify the bad data exist where you think they exist*
> sudo sqlite3 weewx.sdb
> sqlite> select dateTime,rainRate from archive where rainRate > 200; 
>
> sqlite> (nothing displayed after doing previous command, just sqlite 
> prompt)
>
>
> * Remove the bad data by setting to NULL*
> sqlite> update archive set rainRate=NULL where rainRate > 200;
>
>
> * Delete the aggregate statistics so that WeeWX can regenerate them 
> without the anomalies*
> sudo wee_database --drop-daily
>
> *Start WeeWX*
>
> sudo service weewx start
>
>
> I figured that the records would be updated daily so waited until this 
> morning, the day after, to check to see if the records page had updated, 
> did a force refresh to make sure (shift+f5) but still the value reads 
> "Highest Rain Rate 460.8 mm/h 01/02/20 14:20:00"
>
>
> Can anyone advise please?
>
>
> P.S. what is the correct nomenclature WeeWX or weeWX ?
>
>
> Many thanks,
>
>
> Muireadach.
>

-- 
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/b08c41cc-7458-489c-af6a-5ce7540a563a%40googlegroups.com.


[weewx-user] Re: Sunshine Time

2020-03-27 Thread Jacques Terrettaz

Hi,
With this extension, the sunshine time is recorded as minutes.

So in your case, to have the number of hours, you should divide the sum by 
60:

 
#set hours = int($day.sunshine_hours.sum.raw*/60*)  
#set minutes = $day.sunshine_hours.sum.raw - ($hours*60)

With a daily sum of 135 minutes , this give:
hours = int(135/60) = 2
minutes = 135-(2*60)= 15

So 
  should give now 2 h 15 m


 

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


[weewx-user] Re: Sunshine Time

2020-03-27 Thread Meteo Oberwallis


Hi there.
I have recently taken the template for the hours of sunshine from the example 
under. Now I have noticed that my sunshine time in the xml is no longer 
correct. I think it's because of the conversion?

The Result:








The Code:




#set hours = int($day.sunshine_hours.sum.raw)
#set minutes = int(($day.sunshine_hours.sum.raw - $hours)*60 + 0.5)


It is also said to divide the 130 minutes into hours and minutes. That means 
doing it with the existing code, but unfortunately it doesn't work anymore. Can 
someone help me?



Am Donnerstag, 14. November 2019 13:34:16 UTC+1 schrieb Jacques Terrettaz:
>
> I agree with peter's comment.
> The Davis solar radiation sensor, or any comparable sensor, is measuring a 
> global radiation ( direct + diffuse) and the surface of the sensor is 
> parallel to the ground.  A fixed threshold, such as 120 W/m2, can be used 
> only with sensors measuring direct radiation and that have their surface 
> always pointing to the sun (i.e surface of sensor is always perpendicular 
> to the axis sun-sensor).
> With a Davis solar sensor, applying a fixed threshold to estimate sunshine 
> duration give innacurate values. Why?  A simple example, taken from the 
> measurements of my Davis solar sensor, will make you understand:
> - On December 20, at 9:30, the sun was shining, and my solar sensor, in 
> full sun, measured 105 W / m2.
> - On June 11, at 10 am, the sky was cloudy, and my solar probe measured 
> 301 W / m2.
> How to choose a fixed threshold so that the sun of December with 105 W / 
> m2 is considered as sunny and that a radiation of 301W / m2 under a cloudy 
> sky of end of June is not considered as sunny?
> A measurement of the global solar radiation on a plane parallel to the 
> ground is very dependent on the elevation of the sun. This elevation 
> changes according to the time of day and according to the seasons.
> So with this type of solar sensors, a valid calculation of the sunshine 
> duration  can only be done with methods taking into account the elevation 
> of the sun at the time of the measurement, calculated according to the 
> latitude, longitude, date and the time of observation.
>
> Here is the weewx extension I am using, that I  modified from 
> https://github.com/brewster76/util-archer/blob/master/user/radiationhours.py 
>  by applying a formula developed by MeteoFrance to estimate sunshine 
> duration from Davis sensors. (
> https://forums.infoclimat.fr/f/topic/17151-calcul-duree-ensoleillement/?do=findComment=1216053).
>  
>  The idea is to determine at each measurements a  threshold value that is 
> calculated depending on the date, time and geographic location (latitude 
> and longitude) of the sensor. If the measured solar radiation is higher 
> than the calculated threshold, the sunshine duration for this measurement 
> will be equal to the archive interval, otherwise it will be 0.
>
> """
> Adds a new observation field to weewx: [sunshine_time]
> Installation:
> 1. Save this file to your user customisations directory (which is often 
> /usr/share/weewx/user)
> 2. Enable this service in weewx.conf by adding 
> user.sunduration.SunshineDuration to the process_services list.
> [Engine]
> [[Services]]
> # This section specifies the services that should be run. 
> They are
> # grouped by type, and the order of services within each group
> # determines the order in which the services will be run.
> prep_services = weewx.engine.StdTimeSynch
> process_services = user.sunduration.SunshineDuration, 
> weewx.engine.StdConvert, weewx.engine.StdCalibrate, weewx.engine.StdQC, 
> weewx.wxservices.StdWXCalculate
> 3. Add [sunshine_time] to the database schema so tables include this new 
> observation field.
>In weewx.conf, change the wx_binding schema from schemas.wview.schema 
> to user.sunduration.schema_with_sunshine_time
> [DataBindings]
> [[wx_binding]]
> # The database must match one of the sections in [Databases].
> # This is likely to be the only option you would want to 
> change.
> database = archive_sqlite
> # The name of the table within the database
> table_name = archive
> # The manager handles aggregation of data for historical 
> summaries
> manager = weewx.wxmanager.WXDaySummaryManager
> # The schema defines the structure of the database.
> # It is *only* used when the database is created.
> #schema = schemas.wview.schema
> schema = user.sunduration.schema_with_sunshine_time
> 4. Shutdown Weewx and update your database to bring in the new field.
>wee_database weewx.conf --reconfigure
>Make sure you know what you're doing at this point, you can 
> 

[weewx-user] Re: do not understand x-axis labels of year-plots from Standard-skin

2020-03-27 Thread gjr80
As I said:

If you want the plot to show month/year instead of day/month (or month/day) 
then you will need to change the x_label_format option for the yearly plots. 
You will find this in the Standard skin.conf under [ImageGenerator] 
[[year_images]]. Be aware though that you will then have, for example, 11/19 
(November 2019) centred under the vertical line that is actually 1 November 
2019 so your plot will be somewhat misleading time wise.

Gary

-- 
You received this message because you are subscribed to the Google Groups 
"weewx-user" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to weewx-user+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/weewx-user/514dfde1-af31-41d8-80a0-21c5f7978105%40googlegroups.com.


[weewx-user] Re: do not understand x-axis labels of year-plots from Standard-skin

2020-03-27 Thread Astrid
Hello!

Thanx but great great excuse...
Yes, it was typos... :(
Sorry...

It is standing:

03/01 05/01 07/01 09/01 11/01 01/01 03/01

but I expect:

03/19 05/19 07/19 09/19 11/19 01/20 03/20 -> month/last two numbers of the 
year

is this possible to get?

Regards, Astrid

-- 
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/8c8241e7-f57d-4a8d-95f6-c38a74617bf2%40googlegroups.com.


[weewx-user] Clear anomalous rain rate reading from database

2020-03-27 Thread Muireadach O Connor
I followed the guide ( http://www.weewx.com/docs/usersguide.htm - Spikes in 
the graph section) on  to clear an anomalous reading after I cleaned my 
weather station which resulted in a huge rainfall rate reading spike.

However this morning I see the reading is still there (
https://www.loughlinstown.ie/records.html - rainfall rate records table - 
February 2020).

I'm running WeeWX on a Raspberry Pi 2.

Steps taken as per the guide:

*Stop WeeWX*

sudo service weewx stop


*Make a copy of the archive database*

cp weewx.sdb weewx-YYMMDD.sdb

*Verify the bad data exist where you think they exist*
sudo sqlite3 weewx.sdb
sqlite> select dateTime,rainRate from archive where rainRate > 200; 

sqlite> (nothing displayed after doing previous command, just sqlite prompt)


* Remove the bad data by setting to NULL*
sqlite> update archive set rainRate=NULL where rainRate > 200;


* Delete the aggregate statistics so that WeeWX can regenerate them without 
the anomalies*
sudo wee_database --drop-daily

*Start WeeWX*

sudo service weewx start


I figured that the records would be updated daily so waited until this 
morning, the day after, to check to see if the records page had updated, 
did a force refresh to make sure (shift+f5) but still the value reads 
"Highest Rain Rate 460.8 mm/h 01/02/20 14:20:00"


Can anyone advise please?


P.S. what is the correct nomenclature WeeWX or weeWX ?


Many thanks,


Muireadach.

-- 
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/061cf2d7-dec2-4cf3-b2c9-bb73aa073e96%40googlegroups.com.


[weewx-user] Re: Manual sync from weather station

2020-03-27 Thread Maginos
Ok, so with restarting weewx it should work. Thank you Gary.

-- 
You received this message because you are subscribed to the Google Groups 
"weewx-user" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to weewx-user+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/weewx-user/862d7eb2-b359-407c-988f-ff3fbda1f159%40googlegroups.com.


[weewx-user] Manual sync from weather station

2020-03-27 Thread gjr80
Or possibly a config reload as well ie sending the WeeWX daemon a HUP.

Gary

-- 
You received this message because you are subscribed to the Google Groups 
"weewx-user" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to weewx-user+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/weewx-user/228e3f24-3dab-48f1-8482-3dbff565db17%40googlegroups.com.


[weewx-user] Manual sync from weather station

2020-03-27 Thread gjr80
Hi,

The only was to do this is to restart WeeWX.

Gary

-- 
You received this message because you are subscribed to the Google Groups 
"weewx-user" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to weewx-user+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/weewx-user/50d2b96d-24e6-4ffd-b1a3-0c041020850c%40googlegroups.com.


[weewx-user] Manual sync from weather station

2020-03-27 Thread Maginos
Hi guys, 

I would like to know, if it is possible to manually sync the data from the 
weather station to weewx. What I exactly mean: When weewx starts, it checks 
automatically, if there are new entries in the database of the weather 
station and if so, it syncs the new entries to its database. And what I'd 
like to know is, if this could be done manually with a specific command. 

Thank you for your help!

-- 
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/607c40ab-af73-4c03-899a-ad6813ab8ef2%40googlegroups.com.