Ich habe mich einmal daran versucht und scheitere!
Version: 1.4.v1.1-879-g5923b19.dev
Fehlermeldung:
Was mache ich falsch?
Evtl .. habe ich hier meine Probleme:
item_subtree = wugro_wetter
instance = wetterrohrbach
Der apikey ist leicht verändert, das Original läuft allerdings in der alten Version.
LG
Wolfgang
Version: 1.4.v1.1-879-g5923b19.dev
Fehlermeldung:
Code:
2017-02-19 13:55:49 ERROR Main Plugin wetterrohrbach exception: Can't convert 'NoneType' object to str implicitly Traceback (most recent call last): File "/usr/local/smarthome/lib/plugin.py", line 90, in __init__ plugin_thread = PluginWrapper(smarthome, plugin, classname, classpath, args, instance) File "/usr/local/smarthome/lib/plugin.py", line 144, in __init__ exec("self.plugin.__init__(smarthome{0}{1})".format("," if len(arglist) else "", argstring)) File "<string>", line 1, in <module> File "/usr/local/smarthome/plugins/wunderground/__init__.py", line 74, in __init__ self.url = 'https://api.wunderground.com/api/' + self.apikey + '/conditions/forecast/lang:' + self.language + '/q/' + self.location + '.xml' TypeError: Can't convert 'NoneType' object to str implicitly
Code:
[wetterrohrbach] class_name = Wunderground class_path = plugins.wunderground apikey = ba3125xxxxxxxxc2 # leicht verändert language = DL location = Germany/Manching item_subtree = wugro_wetter instance = wetterrohrbach
# items/wugro_eigen.conf
#Example configuration for wunderground plugin in the old conf-format:
[wugro_wetter]
[[ort]]
type = str
wug_xmlstring = display_location/city
[[ort_wetterstation]]
type = str
wug_xmlstring = observation_location/city
value = unbekannt
#Example configuration for wunderground plugin in the old conf-format:
[wugro_wetter]
[[ort]]
type = str
wug_xmlstring = display_location/city
[[ort_wetterstation]]
type = str
wug_xmlstring = observation_location/city
value = unbekannt
Evtl .. habe ich hier meine Probleme:
item_subtree = wugro_wetter
instance = wetterrohrbach
Der apikey ist leicht verändert, das Original läuft allerdings in der alten Version.
LG
Wolfgang
Kommentar