snipsco / snips-actions-templates

Template files for snips actions
11 stars 24 forks source link

Don't assume the MQTT server is running on localhost #9

Open hcooper opened 6 years ago

hcooper commented 6 years ago

It's currently hard coded that MQTT is running on localhost:

https://github.com/snipsco/snips-actions-templates/blob/master/templates/python2/action-%7B%7Baction_name%7D%7D.py.tpl#L37

Ideally this should be configurable, or read in from the central snips config.

hcooper commented 6 years ago

A solution is to read from /etc/snips.toml, but as reported in https://github.com/snipsco/snips-actions-templates/issues/10 it required separate parsing from config.ini

maxbachmann commented 5 years ago

@anthonyray shouldn´t this be fixed with #18 ?