openenergymonitor / emonhub

Python service linking and decoding input to MQTT & Emoncms
90 stars 83 forks source link

Relative path for available.conf? #197

Open glynhudson opened 1 year ago

glynhudson commented 1 year ago

Could we use a relative path here i.e conf/available.conf instead of hardcoding the path to handle emonhub being installed in a different location?

https://github.com/openenergymonitor/emonhub/blob/f67244500821b196f98c54f15062bcc60a757daf/src/emonhub_auto_conf.py#L49

Also, even when autoconf is disabled emonhub still tries to load available.conf

h1771t commented 1 year ago

please also see: https://community.openenergymonitor.org/t/mqtt-interfacer-gets-no-data/23097 related to this issue when trying to use emonhub as standalone. Thanks

borpin commented 9 months ago

Could create a symlink from /etc/emonhub/ at install time to point back to where autoconf is and use the /etc/emonhub/ location in the script.

borpin commented 8 months ago

Another instance

https://community.openenergymonitor.org/t/power-outage-and-suddenly-stops-sending-data-to-emoncms/25611/22?u=borpin