maemo.org - Talk

maemo.org - Talk (https://talk.maemo.org/index.php)
-   Applications (https://talk.maemo.org/forumdisplay.php?f=41)
-   -   [Support thread] Billboard Standby Screen (https://talk.maemo.org/showthread.php?t=84507)

pankajsingh 2013-12-12 07:51

Re: [Support thread] Billboard Standby Screen
 
Quote:

Originally Posted by thp (Post 1212909)
It's described in the about screen of the app (this is for version 1.0.0 and version 1.0.1, there might be a slightly improved syntax in future versions):

{property} - Insert property as-is
{property?text} - Insert "text" when property is not empty
{property!text} - Insert "text" when property is empty

(where property is e.g. "song", "battery" or "cell-network" - without the quotes)

Examples:
{song!No song} - Insert "No song" when no song is selected
{date} - Insert the current date (short format)

Advanced features:
{script:uptime} - Insert output of "uptime" command
{script:/home/user/test.py} - Insert output of "/home/user/test.py" script

All the available properties will change from version to version, and they can be inserted with the "Insert" button in the GUI (to be end-user friendly and enhance discoverability). Right now, there is: Compact date, Full date, Song artist, Song title, Song "Artist - Title", Cell network name, Internet connection, Battery percentage, IM presence status, Active profile.

More properties are planned for future versions, but not available in 1.0.0 or 1.0.1 (e.g. upcoming calendar entries, more fine-grained date settings, system information, ...).

how to use .py files in billboard?

praveenchand 2013-12-12 08:09

Re: [Support thread] Billboard Standby Screen
 
Is there any chance that we can add short name for months like "Jan", "Feb" etc? (preloaded option)

setter 2013-12-12 09:50

Re: [Support thread] Billboard Standby Screen
 
That would be a nice option and also for the day names because here in Sweden {full-date} is too long between September and February so the Year is out of screen.

thp 2013-12-13 11:39

Re: [Support thread] Billboard Standby Screen
 
Quote:

Originally Posted by praveenchand (Post 1395330)
Is there any chance that we can add short name for months like "Jan", "Feb" etc? (preloaded option)

Quote:

Originally Posted by setter (Post 1395376)
That would be a nice option and also for the day names because here in Sweden {full-date} is too long between September and February so the Year is out of screen.

Added for the next version as {short-month}.

setter 2013-12-13 12:17

Re: [Support thread] Billboard Standby Screen
 
Quote:

Originally Posted by thp (Post 1395929)
Added for the next version as {short-month}.

But will you get it at the store in time? Before end of December...

setter 2014-01-05 21:20

Re: [Support thread] Billboard Standby Screen
 
Okey, I'll guess it's dead now :(

sponka 2014-01-09 20:40

Re: [Support thread] Billboard Standby Screen
 
I use {full-date} on my screen and it's displayed in english, it looks like:
Thursday, 9 January 2017

Is it possible to have some script/file with names for days and months in another language and use with existing commands (weekday name, month name, etc.) to display them on screen. The above output would be:
Četrtek, 9. januar 2014

Pretty please :)


EDIT: I see sometning like this on page 95, will check there first if I can adapt.

tonyhuynh 2014-01-10 05:06

Try: {weekday},{date}

Alexxxl 2014-01-10 11:36

Re: [Support thread] Billboard Standby Screen
 
Code:

import feedparser
f = feedparser.parse('http://example.org/feed.rss')
print f.entries[0].title

execute: ....

/home/developer $ python /home/user/.scripts/rss.py
Traceback (most recent call last):
File "/home/user/.scripts/rss.py", line 3, in <module>
print f.entries[0].title
IndexError: list index out of range

What's wrong?

EmaNymton 2014-01-10 11:57

Re: [Support thread] Billboard Standby Screen
 
You should use a real url, the entries list is empty:
Code:

>>> import feedparser
>>> f = feedparser.parse('http://example.org/feed.rss')
>>> print f
{'feed': {}, 'bozo': 1, 'bozo_exception': URLError(gaierror(-2, 'Name or service not known'),), 'entries': []}



All times are GMT. The time now is 05:06.

vBulletin® Version 3.8.8