Notices


Reply
Thread Tools
Posts: 7 | Thanked: 10 times | Joined on Dec 2013 @ New Delhi
#1051
Originally Posted by thp View Post
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?
 
Posts: 440 | Thanked: 203 times | Joined on May 2010
#1052
Is there any chance that we can add short name for months like "Jan", "Feb" etc? (preloaded option)
__________________
--------------------------------------------------------------------------------------------------------

Nokia 3310 -> Nokia 6030 -> Nokia N95 -> Nokia X6 -> Nokia N900 -> Nokia N9 -> Nokia Lumia 1520
 
setter's Avatar
Posts: 376 | Thanked: 257 times | Joined on Dec 2012 @ Sweden
#1053
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.
__________________
R.I.P. Symbian-Freak.....
 
thp's Avatar
Posts: 1,391 | Thanked: 4,272 times | Joined on Sep 2007 @ Vienna, Austria
#1054
Originally Posted by praveenchand View Post
Is there any chance that we can add short name for months like "Jan", "Feb" etc? (preloaded option)
Originally Posted by setter View Post
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}.
 

The Following 5 Users Say Thank You to thp For This Useful Post:
setter's Avatar
Posts: 376 | Thanked: 257 times | Joined on Dec 2012 @ Sweden
#1055
Originally Posted by thp View Post
Added for the next version as {short-month}.
But will you get it at the store in time? Before end of December...
__________________
R.I.P. Symbian-Freak.....
 
setter's Avatar
Posts: 376 | Thanked: 257 times | Joined on Dec 2012 @ Sweden
#1056
Okey, I'll guess it's dead now
__________________
R.I.P. Symbian-Freak.....
 
Posts: 245 | Thanked: 233 times | Joined on May 2010 @ Ljubljana, Slovenia
#1057
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.

Last edited by sponka; 2014-01-09 at 20:43.
 
Posts: 142 | Thanked: 72 times | Joined on Jan 2013
#1058
Try: {weekday},{date}
 
Alexxxl's Avatar
Posts: 152 | Thanked: 91 times | Joined on Mar 2013 @ Russia Saratov
#1059
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?

Last edited by Alexxxl; 2014-01-10 at 11:55.
 
EmaNymton's Avatar
Posts: 141 | Thanked: 267 times | Joined on May 2010 @ Germany
#1060
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': []}
 

The Following User Says Thank You to EmaNymton For This Useful Post:
Reply


 
Forum Jump


All times are GMT. The time now is 15:40.