Active Topics

 



Notices


Reply
Thread Tools
Posts: 198 | Thanked: 130 times | Joined on Sep 2012 @ Pakistan
#391
Any script for an Analogue Clock??

coderus?? thp??
 
coderus's Avatar
Posts: 6,436 | Thanked: 12,701 times | Joined on Nov 2011 @ Ängelholm, Sweden
#392
as soon as possible
__________________
Telegram | Openrepos | GitHub | Revolut donations
 

The Following User Says Thank You to coderus For This Useful Post:
Posts: 87 | Thanked: 14 times | Joined on Jan 2012
#393
Originally Posted by thp View Post
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's Avatar
Community Council | Posts: 664 | Thanked: 1,648 times | Joined on Apr 2012 @ Hamburg
#394
^ 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!
__________________
Nokia 5110 > 3310 > 6230 > N70 > N9 BLACK 64GB
Hildon Foundation Board member
Maemo Community e.V. co-creator, founder and director since Q4/2016
Current Maemo Community Council member
 

The Following User Says Thank You to Win7Mac For This Useful Post:
knobtviker's Avatar
Posts: 665 | Thanked: 2,388 times | Joined on Feb 2012 @ Zagreb, Croatia
#395
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?
 

The Following 3 Users Say Thank You to knobtviker For This Useful Post:
coderus's Avatar
Posts: 6,436 | Thanked: 12,701 times | Joined on Nov 2011 @ Ängelholm, Sweden
#396
@knobtviker yup. just render python script. and no, digital cant be disabled any way
__________________
Telegram | Openrepos | GitHub | Revolut donations
 
Win7Mac's Avatar
Community Council | Posts: 664 | Thanked: 1,648 times | Joined on Apr 2012 @ Hamburg
#397
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.

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.
__________________
Nokia 5110 > 3310 > 6230 > N70 > N9 BLACK 64GB
Hildon Foundation Board member
Maemo Community e.V. co-creator, founder and director since Q4/2016
Current Maemo Community Council member
 

The Following User Says Thank You to Win7Mac For This Useful Post:
EmaNymton's Avatar
Posts: 141 | Thanked: 267 times | Joined on May 2010 @ Germany
#398
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.

Last edited by EmaNymton; 2012-12-31 at 11:10.
 

The Following 3 Users Say Thank You to EmaNymton For This Useful Post:
MK99's Avatar
Posts: 644 | Thanked: 480 times | Joined on Jul 2012 @ Finland
#399
Thanks so much! printf works.
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]}'
Attached Images
 

Last edited by MK99; 2012-12-31 at 11:51.
 

The Following User Says Thank You to MK99 For This Useful Post:
Win7Mac's Avatar
Community Council | Posts: 664 | Thanked: 1,648 times | Joined on Apr 2012 @ Hamburg
#400
Originally Posted by EmaNymton View Post
Try printf instead of print.
Yeah, that works! Thanks a lot!
__________________
Nokia 5110 > 3310 > 6230 > N70 > N9 BLACK 64GB
Hildon Foundation Board member
Maemo Community e.V. co-creator, founder and director since Q4/2016
Current Maemo Community Council member
 
Reply


 
Forum Jump


All times are GMT. The time now is 19:09.