Hi, Having a bit of trouble on a couple of fronts. First on an older mac mini running 10.9.5 and Indigo 6.1.11 I get an error in 0.3.13:
Traceback (most recent call last):
SyntaxError: ('invalid syntax', ('plugin.py', 570, 35, " chars_to_remove = {'/', '(', ')'}\n"))
If I comment this out it works fine.
With Indigo 7.1.1, a newer mac mini and 10.13.2, the program runs very slow and fails to launch a dialog box. I get this error after trying to add a new device:
Error (client) timeout waiting for plugin response from com.fogbert.indigoplugin.GhostXML for request UiGetValues2
Error (client) timeout waiting for plugin response from com.fogbert.indigoplugin.GhostXML for request CallPluginFunc
Error (client) runDialogForDevice() caught exception: NSInvalidArgumentException -- *** -[__NSPlaceholderDictionary initWithObjects:forKeys:count:]: attempt to insert nil object from objects[0]
If I comment out the same line and then try and work on a second device, it is very fast and works fine.
The second and more pressing issue is that I have a JSON stream that I can link to using the auth and proper web address. An example output in the browser would be:
{"id":"dia/channel/00000000-00000000-00409DFF-FF5C532F/wine_closet/temperature","type":"DOUBLE","value":"55.6","units":"F","timestamp":"2017-12-23T16:44:20.000Z","server_timestamp":"2017-12-23T16:44:48.134Z","history_uri":"/ws/v1/streams/history/dia/channel/00000000-00000000-00409DFF-FF5C532F/wine_closet/temperature"}
To my mind this should show up with a key:value of:
id:dia/channel/00000000-00000000-00409DFF-FF5C532F/wine_closet/temperature
type:DOUBLE
value:55.6
units:F
timestamp:2017-12-23T16:44:20.000Z
server_timestamp:2017-12-23T16:44:48.134Z
history_uri:/ws/v1/streams/history/dia/channel/00000000-00000000-00409DFF-FF5C532F/wine_closet/temperature
what I get instead is:
GhostXML Error Digi json feed: No JSON object could be decoded
GhostXML Error Error cleaning dictionary keys: 'NoneType' object has no attribute 'iterkeys'
and the device dialog box shows:
DeviceOnline:True
devicelastudpated: "the correct date"
devicetimestamp: "the current timestamp"
Any ideas on what is going on on either of these fronts?
Thanks!