![]() |
Re: [Support thread] Billboard Standby Screen
Quote:
|
Re: [Support thread] Billboard Standby Screen
Quote:
That would actually be great! I'm sure this has been asked before, but I'm not aware of a solution: Is there a chance to dimm standby screen? |
Re: [Support thread] Billboard Standby Screen
Quote:
Code:
if (datetime.now() + timedelta(days_ahead)) < events_list[0][0]: |
Re: [Support thread] Billboard Standby Screen
Locale won't change a thing for whatever weird reason.
Try declaring the encoding by adding #-*- coding: utf-8 -*- after #!/usr/bin/python and get rid of the .encode('utf-8') part everywhere. I think that will do the trick. If it does, let me know and I'll change it in github. |
Re: [Support thread] Billboard Standby Screen
Ok, now it works.... almost. Script works fully in terminal with scandic letters too, but in bb, it only prints output if there is no events in x days. So if event is found it does not get printed in bb, but in terminal it works. Weird :confused:
|
Re: [Support thread] Billboard Standby Screen
Did you remove the .encode('utf-8') part everywhere?
Sorry to do this the difficult way, I don't have my half-broken N9 here. |
Re: [Support thread] Billboard Standby Screen
yes i removed them all. Weird how it fully works in terminal, but only partly in bb.
|
Re: [Support thread] Billboard Standby Screen
I can't remember if there is a limitation to line length in BB. Try printing fewer things in the last line as a test. For example try:
print weekday,title and see if that works. If it does, add more things and see what screws it up. |
Re: [Support thread] Billboard Standby Screen
declare text as unicode string:
Code:
u'Ei tapahtumia %s päivään' |
Re: [Support thread] Billboard Standby Screen
Sorted it finally... Actually the line "print weekday, title, ..." needed .encode('utf-8') afterall to output in bb. And then again #-*- coding: utf-8 -*- is needed to print scandic letters.
|
| All times are GMT. The time now is 08:44. |
vBulletin® Version 3.8.8