Re: [weewx-user] Sunshine Time

2019-07-22 Thread gjr80
The answer is in the error message. You are using $day.sunshine_hours.raw, you should be using $day.sunshine_hours.sum or perhaps $day.sunshine_hours.sum.raw Gary -- You received this message because you are subscribed to the Google Groups "weewx-user" group. To unsubscribe from this group and

Re: [weewx-user] Sunshine Time

2019-07-22 Thread Andrew Milner
what does $day.sunshine_hours.sum give you (without raw, and without trying to convert to hours and minutes - if an error then what error?? Is the value the approximate minutes of sunlight you would expect for the day?? can you post the template that you are using please. On Tuesday, 23 Jul

Re: [weewx-user] Sunshine Time

2019-07-22 Thread Stefan
Here the error message [image: Unbenannt.JPG] Am Montag, 22. Juli 2019 22:51:21 UTC+2 schrieb gjr80: > > Just to get the obvious question out of the way first; you did use > $day.sunshine_hours.sum didn’t you (as opposed to day.sunshine_hours.sum), > the ‘$’ matters? Might help to post a copy

Re: [weewx-user] Sunshine Time

2019-07-22 Thread Stefan Schnidrig
Good morning Gary. Thank you for your help. Here is the code: #set hours = int($current.sunshine_hours.raw) #set minutes = int(($current.sunshine_hours.raw - $hours)*60 + 0.5) That works with the current. But now I need the daylight sunshine. If I take day, then I get an error message when p

Re: [weewx-user] Sunshine Time

2019-07-22 Thread gjr80
Just to get the obvious question out of the way first; you did use $day.sunshine_hours.sum didn’t you (as opposed to day.sunshine_hours.sum), the ‘$’ matters? Might help to post a copy of the actual template code used, you would be surprised how often transcription or spelling errors are made an

[weewx-user] Re: AS3935 database issue

2019-07-22 Thread Mikael Fredriksson
And use it like this for example in a web page: > > Lightning strikes today$day.lightning_strikes.sum Distance (Last strike)$year.avg_distance.last$year.avg_distance.lasttime Will result in: Lightning strikes (<40km) Lightning strikes today 0 Distance (Last strike) 20 km 2019-07-21 19:50:00

Re: [weewx-user] Sunshine Time

2019-07-22 Thread Stefan Schnidrig
"day.sunshine_hours.sum" does not work. An error message appears that the day does not exist Am Montag, 22. Juli 2019 19:43:27 UTC+2 schrieb Andrew Milner: > > sorry - it should have been day.sunshine_hours.sum I think > > > > On Monday, 22 July 2019 20:07:46 UTC+3, Stefan Schnidrig wrote: >> >>

Re: [weewx-user] Sunshine Time

2019-07-22 Thread Andrew Milner
sorry - it should have been day.sunshine_hours.sum I think On Monday, 22 July 2019 20:07:46 UTC+3, Stefan Schnidrig wrote: > > @Thomas > > It works > > > > > > > > > > Now it would be great if you had the day, not 24 hours. Then you would always > have the daily value. > > Thanks! > > > A

[weewx-user] Re: AS3935 database issue

2019-07-22 Thread Mikael Fredriksson
Well, as I'm rather new to this I don't feel really confident writing a description, but I'll try the best I can! 1. First I got the CJMCU as3935 chip soldered and hooked up to my RPi3B+, connections as follows: VCC -> 3.3V GND -> GND SCL -> PIN 5 MOSI -> PIN 3

Re: [weewx-user] Sunshine Time

2019-07-22 Thread Stefan Schnidrig
@Thomas It works Now it would be great if you had the day, not 24 hours. Then you would always have the daily value. Thanks! Am Montag, 22. Juli 2019 17:39:08 UTC+2 schrieb Thomas Keffer: > > You could do something like this (NOT TESTED): > > #set hours = int($current.sunshine_hours.r

Re: [weewx-user] Sunshine Time

2019-07-22 Thread Stefan Schnidrig
Hello @Andrew If I enter day.sunshine_hours.raw, then I get an error message. @Thomas Excuse the stupid question, but where should I paste? In my xml that will not work? Thanks for your inputs Am Montag, 22. Juli 2019 17:39:08 UTC+2 schrieb Thomas Keffer: > > You could do something like t

Re: [weewx-user] Sunshine Time

2019-07-22 Thread Andrew Milner
Tom - I think sunshine_hours is a schema extension which is set to archive interval if the interval radiation in the interval exceeds a configurable threshold and so is regarded as being sunny, so I think one would need to do a sum to get the day's total before doing your formatting calculation

Re: [weewx-user] Sunshine Time

2019-07-22 Thread Thomas Keffer
You could do something like this (NOT TESTED): #set hours = int($current.sunshine_hours.raw) #set minutes = int(($current.sunshine_hours.raw - $hours)*60 + 0.5) -tk On Mon, Jul 22, 2019 at 6:54 AM Stefan Schnidrig wrote: > Hello. > > I would like to have the sunshine hours for the current da

Re: [weewx-user] Sunshine Time

2019-07-22 Thread Andrew Milner
what does day.sunshine_hours.raw give you instead of current.sunshine_hours.raw ??? On Monday, 22 July 2019 16:54:54 UTC+3, Stefan Schnidrig wrote: > > Hello. > > I would like to have the sunshine hours for the current day. Format in > hours and minutes. > > Thanks > > Am Montag, 22. Juli 2019 1

[weewx-user] Re: CWOP and APRS

2019-07-22 Thread Charles Adams
Well it helps when you edit the correct file. I put everything in the weewx.conf file and it up and running. I am now on findU. Wow thanks everyone for all your help! This is a great form we great people. I never received a derogatory post no matter how basic a question I posted. Thanks agai

Re: [weewx-user] Sunshine Time

2019-07-22 Thread Stefan Schnidrig
Hello. I would like to have the sunshine hours for the current day. Format in hours and minutes. Thanks Am Montag, 22. Juli 2019 15:46:42 UTC+2 schrieb Andrew Milner: > > From the output you provided I read that as saying .08 hours of sunshine > today - does that correspond with reality?? > >

Re: [weewx-user] Sunshine Time

2019-07-22 Thread Andrew Milner
>From the output you provided I read that as saying .08 hours of sunshine today - does that correspond with reality?? What output are you wanting?? I read the extension install instructions and what you have posted seems to correspond with what I would expect. What exactly are you wanting??

Re: [weewx-user] Sunshine Time

2019-07-22 Thread Stefan Schnidrig
Now it looks like this. I think that's not true yet? [image: Unbenannt.JPG] Thanks for watching Am Montag, 22. Juli 2019 14:56:03 UTC+2 schrieb Thomas Keffer: > > If you just want the raw number, use the "raw" suffix: > > $current.sunshine_hours.raw > > > -tk > > On Mon, Jul 22, 2019 at 5:48 AM S

Re: [weewx-user] Sunshine Time

2019-07-22 Thread Stefan Schnidrig
So about? [image: Unbenannt.JPG] Thanks Am Montag, 22. Juli 2019 14:56:03 UTC+2 schrieb Thomas Keffer: > > If you just want the raw number, use the "raw" suffix: > > $current.sunshine_hours.raw > > > -tk > > On Mon, Jul 22, 2019 at 5:48 AM Stefan Schnidrig > wrote: > >> Hello Thomas. >> Thanks

Re: [weewx-user] Sunshine Time

2019-07-22 Thread Thomas Keffer
If you just want the raw number, use the "raw" suffix: $current.sunshine_hours.raw -tk On Mon, Jul 22, 2019 at 5:48 AM Stefan Schnidrig wrote: > Hello Thomas. > Thanks for your message. No. I would like to use the solar sensor to > display the sunshine time. But I want that in numbers, so I c

Re: [weewx-user] Sunshine Time

2019-07-22 Thread Stefan Schnidrig
Hello Thomas. Thanks for your message. No. I would like to use the solar sensor to display the sunshine time. But I want that in numbers, so I can put it in my xml. Thank you Am Montag, 22. Juli 2019 13:47:39 UTC+2 schrieb Thomas Keffer: > > I'm not sure what you mean by "show this value in num

[weewx-user] Re: CWOP and APRS

2019-07-22 Thread gjr80
weewx.conf.mmddHHMMSS is a backup of weewx.conf made when an install happened at mmddHHMMSS(the installer always backs up weewx.conf irrespective of what you tell the installer to do/use). weewx.conf should be the post install config file, whether it is based on your existing pre-instal

Re: [weewx-user] Sunshine Time

2019-07-22 Thread Thomas Keffer
I'm not sure what you mean by "show this value in numbers." Do you mean formatting the value as "4:15 h", versus "4.25"? -tk On Mon, Jul 22, 2019 at 2:50 AM Stefan Schnidrig wrote: > Hello everybody. > > I have found this link ( > https://github.com/brewster76/util-archer/blob/master/user/radia

[weewx-user] Sunshine Time

2019-07-22 Thread Stefan Schnidrig
Hello everybody. I have found this link (https://github.com/brewster76/util-archer/blob/master/user/radiationhours.py) where is described how to display the sunshine time. Now I would like to show this value in numbers (eg 4:15 h). Is that possible? Thank you -- You received this message be

[weewx-user] Re: Customised logwatch

2019-07-22 Thread Rick M0LEP
I think I was confusing logwatch and logcheck; logcheck has directories for various categories of messages including "ignore" of which I make much use, while logwatch has scripts it runs for each service, which means it can do rather more with the messages, but makes it a bit less easily tailor

[weewx-user] Re: Customised logwatch

2019-07-22 Thread Andrew Milner
that was my problem Rick - having to edit the weewx logwatch script to not include the weewx extensions - raw, historygenerator and for some reason ftpgenerator (not sure where that one came from anyway!!), so that my daily weewx logwatch file from the weewx standard package is not filled with