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)

khan.orak 2012-12-28 17:00

Re: [Support thread] Billboard Standby Screen
 
Any script for an Analogue Clock??

coderus?? thp??

coderus 2012-12-28 17:34

Re: [Support thread] Billboard Standby Screen
 
as soon as possible :)

herno24 2012-12-28 19:15

Re: [Support thread] Billboard Standby Screen
 
Quote:

Originally Posted by thp (Post 1212866)
User scripts can be found at (and should be submitted to): https://github.com/harmattan/billboard-scripts

I am using bluetooth_status.py script, but doesn't show anything. I have the latest version of python dbus. Is there another procedure to run scripts .py?. Thanks!.

Win7Mac 2012-12-28 19:38

Re: [Support thread] Billboard Standby Screen
 
^ make shure you have encoding set to UTF-8 and UNIX.
Then in terminal as user run:
Code:

chmod 775 /home/user/script.py
Then wait, some scripts have longer refresh intervals.
It works! :)

knobtviker 2012-12-30 12:34

I just realised that Billboard is a better and more complete version of Nokia Sleeping Screen. I mean it in a good way. Awesome.
Analog clock?
With pictures exchanging every minute?
If analog is chosen can digital be disabled automatically?

coderus 2012-12-30 12:55

Re: [Support thread] Billboard Standby Screen
 
@knobtviker yup. just render python script. and no, digital cant be disabled any way :)

Win7Mac 2012-12-30 19:54

Re: [Support thread] Billboard Standby Screen
 
I like to have used space minimal, so I wanted to shorten this line
"{weekday}, {date} ☀"
to only show short weekday in my languge, using slarti's
Code:

#!/bin/sh

day=$(date +%u)
echo | awk -v d=$day '{split("Ma Ti Ke To Pe La Su",a," "); print a[d]}'

and changed the line to
"{script: /home/user/shortday.sh}, {date} ☀"
But it generates a new line, so I edited it to
Code:

#!/bin/sh

day=$(date +%u)
echo | awk -v d=$day '{split("Ma Ti Ke To Pe La Su",a," "); print a[d]}'+chr(0)

but it doesn't work. :confused:

Also, when I use "{network-name} {network-name? ☸}" a blank line is generated if no network present which usually should not be the case.

Any help about avoiding new/blank lines is very welcome.

EmaNymton 2012-12-31 10:46

Re: [Support thread] Billboard Standby Screen
 
Try printf instead of print.

The problem with your network-name line not disappearing is billboard related, I think. If no network is present maybe an empty string is returned with a linebreak.
Either you can write your own script (should be possbile with a dbus-command) without a linebreak or thp could change this behaivor.

MK99 2012-12-31 11:41

Re: [Support thread] Billboard Standby Screen
 
1 Attachment(s)
Thanks so much! printf works. :D
You can put those same line.
Code:

#!/bin/sh

day=$(date +%u)
echo | awk -v d=$day '{split("Ma Ti Ke To Pe La Su",a," ");
printf a[d]}'


Win7Mac 2012-12-31 11:55

Re: [Support thread] Billboard Standby Screen
 
Quote:

Originally Posted by EmaNymton (Post 1309365)
Try printf instead of print.

Yeah, that works! Thanks a lot! :)


All times are GMT. The time now is 21:20.

vBulletin® Version 3.8.8