On Friday, 23 March 2018 12:06:43 UTC+11, gjr80 wrote:
>
> It sounds to me like you are using weeWX to generate a data file that is 
> used by an android app to display weather data.
>

 Yes

- Generate a fixed units data file and have the user select their units in 
> your app. Obviously this has implications for your app but makes the weeWX 
> side of things as simple as possible.
>
 
I was hoping weewx would do this, one less prompt to confuse people with. 
Although as you say later in your email, it's assumed that weeWx users 
should know how to deal with editing a config file.

- Have weeWX generate the data file in user selectable units. This keeps 
> things simple for your app, but complicates the weeWX side of things. At 
> the moment the accepted way for users to change units in an extension 
> packaged skin is to get the user to override the skin units from weewx.conf 
> (this is largely to prevent the user from losing any customisations to the 
> extension when upgrading to a new version of the extension). This is the 
> approach taken by my SteelSeries skin installer. Ideally the user should be 
> interrogated by the extension installer ( ie install.py) as to what units 
> to use (perhaps in the same way the user is asked what unit system to 
> display when installing weeWX) but install.py is not capable of doing that. 
> Of course another approach is the multiple extensions you have created.
>
>
After reading your email it looks like the dual extensions is the easiest 
way to go. That is unless there is more than imperial/metric to pick from.

Thanks for the clarification.

>

Reply via email to