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 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 <[email protected] > <javascript:>> 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 <[email protected]> >>>>> 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 < >>>>>>> [email protected]> 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 [email protected]. >>>>>>>> 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 [email protected]. >>>>>> 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 [email protected] <javascript:>. >> 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 [email protected]. To view this discussion on the web visit https://groups.google.com/d/msgid/weewx-user/dd0dc74c-5599-4539-abd3-28871ccf73e0%40googlegroups.com.
