Have you looked in the customisati0on guide:
http://weewx.com/docs/customizing.htm#Defining_new_units_and_unit_groups

and

http://weewx.com/docs/customizing.htm#Adding_a_new_observation_type

which give the 'recommended' way of adding new groups and observation types.

I think the station type model is only used for the weewx database/map 
whilst the template hardware tag appears to give the station_type field 
(which is FineOffsetUSB).  Have you tried $station.hardware.model to see if 
it will extract the model from within the fineoffset section? just a 
thought and possibly no help at all!!!!



On Monday, 5 September 2016 10:11:37 UTC+3, Macha wrote:

> Hello,
>
> This is my first post, so I'd like to start by expressing a' thank you' 
> for the efforts put into weewx - I've been using it for a few years and 
> it's been as "solid as a rock".
>
> After several years of lethargy, I finally got round to updating to the 
> latest version and I have a few questions (hope it's OK to bundle these 
> into a single post!).
>
> Firstly, as a preamble, the station. It's nothing too clever, a cheap 
> Fineoffset type, with the addition of a networked Raspberry Pi to measure 
> UV (digital & analogue), Illumination (likewise) and temperature. It also 
> has a Pi camera looking at the sky (well, why not?). I also use this camera 
> btw to take a time-lapse of the night sky.
>
> So, my questions :
>
> 1. I set my station type (WEA22) in weewx.conf as 'model = WEA22'. 
> However, $station.hardware in the .tmpl file seems to return 
> 'FineOffSetUSB'. Have I missed something?
>
> 2. It seems have started returning 'true' for $current.ET.has_data, 
> together with some values. I don't understand this and I wonder if some 
> guidance could be offered on how to track down where it originates?
>
> I've 'solved' these problems by hard coding the .tmpl files, but obviously 
> that's not ideal.
>
> 3. I needed a new group (illuminance) with a value 'lux' and symbol 'lx'. 
> I put the relevant additions into units.py. Obviously, I'll have to 
> remember this if (and when) I next update. So my question is whether it's 
> possible to add a new group via the .conf files without tinkering with the 
> core files?
>
> Many thanks!
>

-- 
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].
For more options, visit https://groups.google.com/d/optout.

Reply via email to