"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: >> >> @Thomas >> >> It works >> >> <solar> >> <solar value="196"/> >> <solar_max value="916"/> >> <solar_max_time value="13:39"/> >> <sun value="0 h 5 m"/> >> </solar> >> >> >> 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.raw) >>> #set minutes = int(($current.sunshine_hours.raw - $hours)*60 + 0.5) >>> <sun value="$hours h $minutes m"/> >>> >>> >>> -tk >>> >>> On Mon, Jul 22, 2019 at 6:54 AM Stefan Schnidrig <sschn...@bluewin.ch> >>> 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 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?? >>>>> >>>>> 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?? Perhaps you should contact the >>>>> creator of the extension!! >>>>> >>>>> >>>>> >>>>> On Monday, 22 July 2019 16:13:55 UTC+3, Stefan Schnidrig wrote: >>>>>> >>>>>> 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 Stefan Schnidrig < >>>>>>> sschn...@bluewin.ch> 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 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 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 < >>>>>>>>> sschn...@bluewin.ch> wrote: >>>>>>>>> >>>>>>>>>> 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 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/e4b49519-f227-4cfa-9151-7a3aafccc813%40googlegroups.com >>>>>>>>>> >>>>>>>>>> <https://groups.google.com/d/msgid/weewx-user/e4b49519-f227-4cfa-9151-7a3aafccc813%40googlegroups.com?utm_medium=email&utm_source=footer> >>>>>>>>>> . >>>>>>>>>> >>>>>>>>> -- >>>>>>>> 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/5dfbcab1-9b7a-4b0c-9048-8a9add486ce9%40googlegroups.com >>>>>>>> >>>>>>>> <https://groups.google.com/d/msgid/weewx-user/5dfbcab1-9b7a-4b0c-9048-8a9add486ce9%40googlegroups.com?utm_medium=email&utm_source=footer> >>>>>>>> . >>>>>>>> >>>>>>> -- >>>> 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/06eb2e2b-bc53-4bc1-8e67-515a2094cdf6%40googlegroups.com >>>> >>>> <https://groups.google.com/d/msgid/weewx-user/06eb2e2b-bc53-4bc1-8e67-515a2094cdf6%40googlegroups.com?utm_medium=email&utm_source=footer> >>>> . >>>> >>> -- 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/85c5055e-b57a-4ceb-8de2-7a825a8ce1d5%40googlegroups.com.