Would some kind of utility to permit simple edits of 'any' item in weewx.conf be of any value to think about ?
Something like "weectl edit config" or the like (for discussion purposes) ? # edit weewx.conf weectl edit config --set "[StdRestful][[MQTT]]" --key "log_success" --value "true" or # edit a skin's skin.conf weectl edit skinConfig --skin "Belchertown" --set "[Extras]" --key "belchertown_debug" --value "1" I know simply telling them 'edit the file dude' of course works, but it might be helpful for scriptability if there was a way to automate add/edit/comment/uncomment things programmatically. The use of configobj makes this really hard to do without some wrapper utility being cooked up. I did think about some alternate ways: - convert the .conf in configobj format to JSON or YAML - edit thataway - convert it back to configobj format But that would be ugly at best and likely would lose any comments from the .conf file. No short-term need, but thought I'd ask if it might be a longterm stretch goal (?) -- You received this message because you are subscribed to the Google Groups "weewx-development" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. To view this discussion visit https://groups.google.com/d/msgid/weewx-development/a536628c-6943-4eeb-b44d-57ae18051539n%40googlegroups.com.
