You need sunshine_time in your database. Is it there? If not, you may want 
to use the wee_database tool to insert it.

Meteo Oberwallis schrieb am Samstag, 26. März 2022 um 13:00:23 UTC+1:

> Hello.
>
> I have a problem. I'm using https://github.com/Jterrettaz/sunduration and 
> that works so far. I can also set the value via $current.sunshine_time 
> and then get 5.0 minutes. However, the whole thing doesn't work for the 
> daytime sunshine time with $day.sunshine_time. I built this for my XML 
> file. This looks like this: 
>
> <solar>
> <solar value="$current.radiation.formatted"/> 
> <solar_max value="$day.radiation.max.formatted"/> 
> <solar_max_time value="$day.radiation.maxtime.format("%H:%M")""/> 
> <sun_last value="$current.sunshine_time"/> 
> <sun_last value="$day.sunshine_time"/> 
> </solar>
>
> Now I get an error that the day.sunshine_time cannot be read. Anyone have 
> an idea why?
>
> Thanks very much 
>
> tke...@gmail.com schrieb am Donnerstag, 24. März 2022 um 22:15:05 UTC+1:
>
>> You definitely don't want sunshine_hours (or sunshineHours) because that 
>> implies a unit. I would suggest "daylight".
>>
>> As for which unit group, the almanac uses group_deltatime for length of 
>> day. It's normally measured in seconds.
>>
>> On Thu, Mar 24, 2022 at 10:54 AM Karen K <kk44...@gmail.com> wrote:
>>
>>> I bought a sunshine duration sensor from Weerhuisje. When integrating it 
>>> in WeeWX I wondered how to call the observation type. There is nothing 
>>> appropriate in the standard schema. I found 2 extensions regarding sunshine 
>>> duration. One of them calls the observation type "sunshine_hours", the 
>>> other one "sunshine_time". 
>>>
>>> I would guess it is not generally a good idea to include an underscore 
>>> in the observation type name, as the underscore is used to separate the 
>>> unit from the observation type in the widely used MQTT extension.
>>>
>>> And I guess it would be better to have the same name irrespective of the 
>>> data source, which extension or hardware is used.
>>>
>>> Another thing is the unit group. I would allocate the sunshine duration 
>>> to group_deltatime, as the output would be something like "8 hours, 45 
>>> minutes, 10 seconds" or so. group_interval would be less appropriate, 
>>> as sunshine duration is not exactly an interval but rather a time period.
>>>
>>> After all I am not sure.
>>>
>>> -- 
>>> 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+...@googlegroups.com.
>>> To view this discussion on the web visit 
>>> https://groups.google.com/d/msgid/weewx-user/e8adff2f-8552-4c1e-8cdd-74d2c15dd514n%40googlegroups.com
>>>  
>>> <https://groups.google.com/d/msgid/weewx-user/e8adff2f-8552-4c1e-8cdd-74d2c15dd514n%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/8bad299f-fcf6-4e4f-9271-5f3a5688a2edn%40googlegroups.com.

Reply via email to