Comments below.

Gary

On Monday, 28 December 2020 at 11:22:30 UTC+10 vince wrote:

> Agree.
>
> Also thanks for the reminder re: wee_config --reconfigure. I had not seen 
> magic buried in a driver that asked questions when you reconfigure.  That 
> kinda blows up scripted installs to some extent for folks like me who use 
> --no-prompt a lot.
>

A number of the drivers use it (eg, vantage asks for hardware interface). 
Worth the extra effort where you want some user input. Only problem is it’s 
only available via wee_config and you need to get the user to go the extra 
step. 

These might be nits but I thought I'd mention them:
>
>    - If you use the --no-prompt switch to wee_config you get only a 
>    partial stanza installed (I didn't check the code to see if this matters 
> or 
>    not).  You might want to consider having it write out all the items if 
> this 
>    matters.
>
> Will look at that. The aim in such cases is to exit with a working 
install, even if some of the settings are not to the users liking. 

>
>    - init_on_loop gets added right under the version string in weewx.conf 
>    with no comment or whitespace.  That might be easy to overlook later on.
>
> Will look at that too, Tom’s configobj lesson from a few days ago might 
help. I was under the impression that we were fairly limited in the 
comments and formatting we could programmatically add to a config file. Tom 
showed otherwise.

>
>    - uninstalling the driver leaves the init_on_loop item in weewx.conf. 
>     Admittedly, it is unusual to uninstall a driver as folks would just use 
>    wee_config to point to a different one (if they follow the instructions 
>    that is :-)
>
> Bit difficult to handle that one as wee_extension will not know anything 
about loop_on_init and if using wee_config to configure a new driver you 
get the new driver’s config prompts (which may or may not include 
loop_on_init). Might end up being another step in the uninstall procedure.
 

-- 
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/cc853a3f-7cce-43a1-baa8-25c14700a963n%40googlegroups.com.

Reply via email to