Aaaah, no matter. I just found the section 'Assigning a unit group' in the 
Customization guide. That seems to work... RTFM, I suppose... Thanks!

Cheers,
Jan-Jaap

On Wednesday, February 17, 2021 at 10:28:37 PM UTC+1 Jan-Jaap van der Geer 
wrote:

> On Tuesday, February 16, 2021 at 10:53:33 PM UTC+1 tke...@gmail.com wrote:
>
>> There's already a type for luminosity, but it's called "illuminance", 
>> introduced in V4.2. It's a member of group_illuminance. 
>>
>  
>
>> See issue #613 <https://github.com/weewx/weewx/issues/613>, in 
>> particular, this post. 
>> <https://github.com/weewx/weewx/issues/613#issuecomment-716136794>
>>
>
> Hm, I'm not sure that helps me. I've tried replacing the 'lux = " lux"' 
> with 'illuminance = " lux"' and  adding 'illuminance = %.0f' to the 
> StringFormats but there's still no unit on the graph and the low/high table 
> still has lot's of digits behind the comma. I'm not sure what to do, but I 
> do see that lux/illuminance might be a difficult one to get right because 
> of naming confusion.
>
> But I have a graph for the voltage as well. That one also doesn't show the 
> unit (v) in its graph. Maybe that's a better example. I added these values 
> in weewx.conf:
>
> [[Defaults]]
>   [[[Units]]]
>     [[[[Groups]]]]
>       group_volt = volt
>
>     [[[[Labels]]]]
>       volt = " volt"
>       
> But that does not add the unit to the volt-graph. What am I missing?
>
> Thinking about it a bit more I think I might be completely in the wrong 
> area as there's nothing in the section I quoted that seems to tell weewx to 
> use "°C" for temperatures but still it does.
>
> How does it know this?
>
> Cheers,
> Jan-Jaap
>

-- 
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/253f38a2-ece8-4780-905e-bbc04517087bn%40googlegroups.com.

Reply via email to