Page 1 of 1

Get this Error in the log when i using my washer and dryer.

PostPosted: Fri Jul 10, 2015 1:27 am
by jens
Get this error log, but everything works when I run my washing and drying or should it appear this way?

Re: Get this Error in the log when i using my washer and dry

PostPosted: Fri Jul 10, 2015 3:40 am
by DaveL17
What you're seeing is a Unicode error because the plugin is stumbling on the 'ä' character. (the Unicode code for which is '\ex4'). Try changing the names of the timers:

From: 'Tvätt kör'
To: 'Tvatt kor'

From: 'Tvätt klar'
To: 'Tvatt klar'

and see how you get on.
Dave

Re: Get this Error in the log when i using my washer and dry

PostPosted: Fri Jul 10, 2015 5:40 am
by FlyingDiver
Or just fix the actual bug in the plugin code. In the plugin.py file inside the TimersAndPesters plug, at line 346, change:

Code: Select all
         self.debugLog(u"  Timer found: \"%s\"" % str(timer.instance.name))


to:

Code: Select all
         self.debugLog(u"  Timer found: \"%s\"" % timer.instance.name)


timer.instance.name is already a string. Calling str() on it works ok when it's ASCII, as that's the default encoding for the str() function. But it's unnecessary.

Re: Get this Error in the log when i using my washer and dry

PostPosted: Fri Jul 10, 2015 6:02 am
by DaveL17
FlyingDiver is correct.

But Matt and Jay will have to make the change in their source too, as any change you make to the underlying code will be overwritten by the next Indigo update you apply.

Re: Get this Error in the log when i using my washer and dry

PostPosted: Fri Jul 10, 2015 9:15 am
by jay (support)
Yep, this is a string encoding bug in the plugin. We'll get it fixed in the next release. In the meantime, just take out an non-ascii characters in the timer device names as Dave suggested.

Re: Get this Error in the log when i using my washer and dry

PostPosted: Sat Jul 11, 2015 3:14 am
by jens
Okey will do that thanks .:)

Skickat från min D6603 via Tapatalk