[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

[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!

[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?

[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

[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

[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

[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

[weewx-user] Re: Sunshine Time

2020-03-26 Thread Meteo Oberwallis
Hello everbody Unfortunately I haven't been able to solve the problem yet. I still have the problem that I want to include the sunshine time in my solar graphics. The value 0.08 is always given instead of 5min. How can you adjust that? Am Mittwoch, 1. Januar 2020 13:22:36 UTC+1 schrieb Meteo

[weewx-user] Re: Sunshine Time

2020-03-11 Thread peter
I have a question about how to log the sunshine hours. I thought to log "1" for every minute the radiation is above 75% expected maximum radiation and 0 when it is below. When I do a daily sum of this parameter, I'd get a number of sunshine minutes for a day. I chose to log these "sunny

[weewx-user] Re: Sunshine Time

2020-01-01 Thread Stefan
Hello everybody I have a question about graphic design. I would like to include the sunshine time in the graphics. Currently the value of 0.08 in sunshine always appears there. This is my current code in use. [[chart6]] title = Sonnenschein # Make sure the y-axis increment is

[weewx-user] Re: Sunshine Time

2019-11-14 Thread 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

[weewx-user] Re: Sunshine Time

2019-11-14 Thread peter
I admit I don't follow the discussion frequently. I was thinking about the sunshine hours log - from the posts I understand the interval is considered "sunny" if the solar radiation is above a fixed threshold (e.g. 120 W/m2). I have second thoughts. For one of my stations I use Weather Display

[weewx-user] Re: Sunshine Time

2019-11-01 Thread Stefan
Hello Andrew. Yes.Thats it. Thank you very Much. It works! Thanks Stefan Am Mittwoch, 16. Oktober 2019 15:08:35 UTC+2 schrieb Andrew Milner: > > check your file - it looks as though there is now a 'stray' letter v in > the file as a result of your editing!! A typo of somekind clearly!! > > >

[weewx-user] Re: Sunshine Time

2019-10-16 Thread Andrew Milner
check your file - it looks as though there is now a 'stray' letter v in the file as a result of your editing!! A typo of somekind clearly!! On Wednesday, 16 October 2019 14:57:33 UTC+3, Stefan wrote: > > Thx Gary. > I made the change. However, it does not work either. There is still the >

[weewx-user] Re: Sunshine Time

2019-10-16 Thread Stefan
Thx Gary. I made the change. However, it does not work either. There is still the error message: Oct 16 13:54:28 raspberrypi weewx[12153]: engine: Caught unrecoverable exception in engine: Oct 16 13:54:28 raspberrypi weewx[12153]: name 'v' is not defined Oct 16 13:54:28 raspberrypi

[weewx-user] Re: Sunshine Time

2019-10-16 Thread gjr80
OK, essentially the same file but double spaced. The problem looks like it is due to field radiation being either missing or None. Try changing the following line: syslog.syslog(syslog.LOG_DEBUG, "Calculated sunshine_hours = %f, based on radiation = %f, and min_sunshine = %f" % to

[weewx-user] Re: Sunshine Time

2019-10-16 Thread Stefan
Hello Gray. Here is the Script. Thx for Help. Am Mittwoch, 16. Oktober 2019 07:47:43 UTC+2 schrieb gjr80: > > Chances are field radiation does not exist in an archive record or it is > set to None. I am afraid if you want any further help you are going to have > to post the copy of

[weewx-user] Re: Sunshine Time

2019-10-15 Thread gjr80
Chances are field radiation does not exist in an archive record or it is set to None. I am afraid if you want any further help you are going to have to post the copy of radiationhours.py that you are using; the version in the repo you linked only has 106 lines of code and the error trace you

[weewx-user] Re: Sunshine Time

2019-10-15 Thread Stefan
Hello. The problem has reappeared today. Weewx stops the work. I have not changed the script, not adjusted to the threshold. This is still on 120W min. It ran until this morning without problems. But again this error message. Oct 16 07:22:48 raspberrypi weewx[14709]: engine: Caught

[weewx-user] Re: Sunshine Time

2019-10-12 Thread gjr80
If you must modify the code then yes that will do what you want provided there is no min_sunshine setting in weewx.conf. 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

[weewx-user] Re: Sunshine Time

2019-10-12 Thread Stefan
OK thanks. But if I change the value in radiationshours.py, would that work out well? Replace the yellow marked value with 200? import weewx from weewx.wxengine import StdService class RadiationHours(StdService): def __init__(self, engine, config_dict): # Pass the initialization information

[weewx-user] Re: Sunshine Time

2019-10-12 Thread gjr80
The single [ ] tell you it needs to be its own top level stanza. Easiest thing is to put it at the end of the file. 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

[weewx-user] Re: Sunshine Time

2019-10-12 Thread Stefan
Hello Gary. No I did not write anything to the weewx.conf. Where should I insert this? So under what class? Am Samstag, 12. Oktober 2019 10:54:08 UTC+2 schrieb gjr80: > > So did you put the following in weewx.conf: > > [Radiation Days] > min_sunshine = 200 > > then save weewx.conf and

[weewx-user] Re: Sunshine Time

2019-10-12 Thread gjr80
So did you put the following in weewx.conf: [Radiation Days] min_sunshine = 200 then save weewx.conf and restart WeeWX? Why do you think it is not working? The author gives you a means to set the threshold value in weewx.conf rather than modifying code. Try setting debug = 1 and see what

[weewx-user] Re: Sunshine Time

2019-10-12 Thread Stefan
Hello I have a question. The documentation says, you can change the threshold of 120 in the weewx.conf. However, I do not find the weewx.conf this described point. 120 are too few. I want to set the value to 200. If I change this in the radiationshours.py, then I get, as soon as the solar