Here's what I can't get to work: {{blue}}{events}{events? ☚} only works as desired if there's 1 event. If there's 2 or more, only the first is shown blue (the rest is white) and only the last has the ☚ (which is obvious)
{script: /home/user/alarm.py} is not showing at all with the last line of script edited to Code: sys.stdout.write('\n'.join(sorted(get_queued_alarms()))) instead of Code: print '\n'.join(sorted(get_queued_alarms())) or 'No alarms' This modification is supposed to enable special characters in the BB text, but I get nothing at all. Any help on this would be great. Would it be possible to get events and alarms via shell script too?
sys.stdout.write('\n'.join(sorted(get_queued_alarms())))
print '\n'.join(sorted(get_queued_alarms())) or 'No alarms'
u"☚".encode('utf-8')
'\xe2\x98\x9a'
# -*- coding: utf-8 -*-