New to Python here... but I'm trying to dump the device list using this:
for dev in indigo.devices:
indigo.server.log(dev.name)
indigo.server.log(str(dev))
When it gets to my Davis Vue weather station (Using WeatherSnoop), which has the state column showing 29.4 degrees F (using the degree symbol), it gives me the error:
Script weather davis vue
Script Error embedded script: 'ascii' codec can't encode character u'\xb0' in position 255: ordinal not in range(128)
Script Error Exception Traceback (most recent call shown last):
embedded script, line 3, at top level
UnicodeEncodeError: 'ascii' codec can't encode character u'\xb0' in position 255: ordinal not in range(128)
I changed the state column to humidity, but I still get the same error.
I ran into a similar problem with a different device name, and obviously changing the name fixed it:
Script kitchen powerstrip (µcell, Hue, Autelis)
Script Error embedded script: 'ascii' codec can't encode character u'\xb5' in position 563: ordinal not in range(128)
Script Error Exception Traceback (most recent call shown last):
embedded script, line 3, at top level
UnicodeEncodeError: 'ascii' codec can't encode character u'\xb5' in position 563: ordinal not in range(128)
For the WeatherSnoop device, Is there a different command other than 'str(dev)' that I should try?