Re: [weewx-user] New Timespan $daylight for the time while sun is up

2023-10-15 Thread Karen K
Dann bitte Version 1.3 benutzen. Meteo Oberwallis schrieb am Sonntag, 15. Oktober 2023 um 12:46:46 UTC+2: > Hallo. > > Ich habe die: > > >- Programm version: 4.10.2 >- Skin Version: 1.2 > > > Gruss > > Karen K schrieb am Sonntag, 15. Oktober 2023 um 11:24:49 UTC+2: > >> Welche

Re: [weewx-user] New Timespan $daylight for the time while sun is up

2023-10-15 Thread Meteo Oberwallis
Hallo. Ich habe die: - Programm version: 4.10.2 - Skin Version: 1.2 Gruss Karen K schrieb am Sonntag, 15. Oktober 2023 um 11:24:49 UTC+2: > Welche Belchertown-Version ist es denn? Die Option unit ist, glaube ich, > erst irgendwann eingeführt worden. > > Funktioniert das mit der Einheit bei

Re: [weewx-user] New Timespan $daylight for the time while sun is up

2023-10-15 Thread Karen K
Welche Belchertown-Version ist es denn? Die Option unit ist, glaube ich, erst irgendwann eingeführt worden. Funktioniert das mit der Einheit bei anderen Größen? Einfach mal ausprobieren, ob nur die absolute Luftfeuchtigkeit betroffen ist oder auch anderes. Zum Beispiel könnte man in einem

Re: [weewx-user] New Timespan $daylight for the time while sun is up

2023-10-15 Thread Meteo Oberwallis
Hallo Karen. Genau so habe ich es. Trotzdem habe ich diese dezimalstellenfehler. Gruss Karen K schrieb am Samstag, 14. Oktober 2023 um 14:47:29 UTC+2: > [[humidity]] > > title = "Luftfeuchtigkeit" > > [[[outHumidity]]] > > name = "relativ" > >

Re: [weewx-user] New Timespan $daylight for the time while sun is up

2023-10-14 Thread Karen K
[[humidity]] title = "Luftfeuchtigkeit" [[[outHumidity]]] name = "relativ" [[[outHumAbs]]] name = "absolut" yAxis = 1 unit = gram_per_meter_cubed numberFormat decimals = 1

Re: [weewx-user] New Timespan $daylight for the time while sun is up

2023-10-14 Thread Meteo Oberwallis
Hallo. Bei mir wird unter Belchertown bei der Absoluten Luftfeuchtugkeit ein zu grosser Wert angezeigt. Wie kann ich das anpassen? [image: 2023_10_14_12_01_34_Clipboard.png] Grüsse Karen K schrieb am Samstag, 30. September 2023 um 08:18:19 UTC+2: > Yes. > > Mks Mk schrieb am Samstag, 30.

Re: [weewx-user] New Timespan $daylight for the time while sun is up

2023-09-30 Thread Mks Mk
Below is NOAA file code ,how can we insert *$daylight* in it? #errorCatcher Echo #set $YM="%Y %m" #set $D=" %d" #set $M=" %b" #set $Time=" %H:%M" #set $NODAY=" N/A" #set $Temp="%6.1f" #set $Wind="%6.1f" #set $Dir="%6.0f" #set $Count="%6d" #set $NONE=" N/A" #if $unit.unit_type_dict.group_rain ==

Re: [weewx-user] New Timespan $daylight for the time while sun is up

2023-09-30 Thread Karen K
Yes. Mks Mk schrieb am Samstag, 30. September 2023 um 03:08:55 UTC+2: > when it comes to coding the best we can do is copy and paste, all we > wanna know is if this tag (*$daylight*) actually does work within NOAA > template file. > thank you for your help > > On Friday, September 29, 2023 at

Re: [weewx-user] New Timespan $daylight for the time while sun is up

2023-09-29 Thread Mks Mk
when it comes to coding the best we can do is copy and paste, all we wanna know is if this tag (*$daylight*) actually does work within NOAA template file. thank you for your help On Friday, September 29, 2023 at 9:13:23 PM UTC+3 Karen K wrote: > Mks Mk schrieb am Freitag, 29. September 2023

Re: [weewx-user] New Timespan $daylight for the time while sun is up

2023-09-29 Thread Karen K
Mks Mk schrieb am Freitag, 29. September 2023 um 19:09:10 UTC+2: We want to add below code or similar to its action to the NOAA monthly report file "*NOAA-%Y-%m.txt.tmpl*" but we do not know if it is possible to do so because of the span tags? Why not trying it? If you are not sure about

Re: [weewx-user] New Timespan $daylight for the time while sun is up

2023-09-29 Thread Mks Mk
Hi We want to add below code or similar to its action to the NOAA monthly report file "*NOAA-%Y-%m.txt.tmpl*" but we do not know if it is possible to do so because of the span tags? day sunrise sunset avg. temperature while sun is up #for $span in $LMTmonth.daylights

Re: [weewx-user] New Timespan $daylight for the time while sun is up

2023-01-30 Thread 'Rory Gillies' via weewx-user
Thanks Again Karen K! It needed a little bit of tweaking but now it’s working great. Here’s the working code extract from week.html.tmpl: #from weewx.units import ValueTuple, ValueHelper #attr $dayradiationacc=0 #attr $n=0 #for $dd in $year.days

Re: [weewx-user] New Timespan $daylight for the time while sun is up

2023-01-28 Thread Karen K
#from weewx.units import ValueTuple, ValueHelper #set $dayradiationacc=0 #set $n=0 #for $dd in $week.days #set $light=$daylight(timestamp=$dd) #set $dayradiation=$light.radiation.sum.raw #if $dayradiation is not None #set $dayradiationacc=$dayradiationacc+$dayradiation #set $n=$n+1 # end if #end

Re: [weewx-user] New Timespan $daylight for the time while sun is up

2023-01-28 Thread 'Rory Gillies' via weewx-user
I'm still struggling with this. Here's the updated code: #errorCatcher Echo #from weewx.units import ValueTuple, ValueHelper #set $dayradiationacc=0 #for $dd in $week.days #set $light=$daylight(timestamp=$dd) #set $dayradiation=$light.radiation.sum.raw #set

Re: [weewx-user] New Timespan $daylight for the time while sun is up

2023-01-26 Thread Karen K
Just before the loop. #set $dayradiationacc=0 rory.g...@googlemail.com schrieb am Donnerstag, 26. Januar 2023 um 20:35:07 UTC+1: > Thanks again. I have removed the .raw, but as you say $dayradiationacc is > not initialised: > > Jan 26 19:30:32 weather weewx[625144] ERROR

Re: [weewx-user] New Timespan $daylight for the time while sun is up

2023-01-26 Thread 'Rory Gillies' via weewx-user
Thanks again. I have removed the .raw, but as you say $dayradiationacc is not initialised: Jan 26 19:30:32 weather weewx[625144] ERROR weewx.cheetahgenerator: Evaluation of template /etc/weewx/skins/neowx-material/week.html.tmpl failed. Jan 26 19:30:32 weather weewx[625144] ERROR

Re: [weewx-user] New Timespan $daylight for the time while sun is up

2023-01-26 Thread Karen K
There are 3 problems in the next line: - $dayradiation is already raw, so another raw is too much. - $dayradiationacc is not initialized for the first loop - $dayradiationacc is already raw, so another raw is too much for the following loops rory.g...@googlemail.com schrieb am

Re: [weewx-user] New Timespan $daylight for the time while sun is up

2023-01-26 Thread 'Rory Gillies' via weewx-user
Thanks! That’s moved the error down a line so I’m moving in the right direction. I can’t seem to iterate through the for loop to add each day’s average radiation. > On 26 Jan 2023, at 12:59, Karen K wrote: > > rory.g...@googlemail.com schrieb am Mittwoch, 25. Januar 2023 um 14:22:27 > UTC+1:

[weewx-user] New Timespan $daylight for the time while sun is up

2021-10-17 Thread Karen K
I added a new tag in weewx-GTS . $daylight is the timespan from sunrise to sunset. The option days_ago is also available. Examples: $daylight.outTemp.avg is the average temperature while the sun is up today. $daylight(days_ago=1).outTemp.avg is the same for