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)

coderus 2012-12-21 13:51

Re: [Support thread] Billboard Standby Screen
 
and i see all of user's requests.can be solved with simple scripts. you really dont want to learn scripting and only want to ask any simple things to do?

Loepoes 2012-12-21 13:52

Re: [Support thread] Billboard Standby Screen
 
Quote:

Originally Posted by coderus (Post 1306604)
ask in wazapp thread or use script, placed some pages ago.


Thanks so much my friend. Found the answer on page 32... All is well now!! :)

Loepoes 2012-12-21 14:01

Re: [Support thread] Billboard Standby Screen
 
Quote:

Originally Posted by coderus (Post 1306615)
and i see all of user's requests.can be solved with simple scripts. you really dont want to learn scripting and only want to ask any simple things to do?

I understand your frustration but not all of us are capable of finding solutions to a particular problem. And I just didn't realise how simple the answer really was. Sorry for asking!;)

MK99 2012-12-21 14:03

Re: [Support thread] Billboard Standby Screen
 
Coderus
I know that simple script about short weekday, but how can i make it own language? It print only english.
(How: if 'Mon', print 'Ma'?)

coderus 2012-12-21 16:21

Re: [Support thread] Billboard Standby Screen
 
where is it?

thp 2012-12-21 17:31

Re: [Support thread] Billboard Standby Screen
 
Turns out that it might make sense to have a central repository for all Billboard scripts spread out over this thread, so here it is:

https://github.com/harmattan/billboard-scripts

Contributions, updates and patches welcome (pull request if possible).

coderus 2012-12-21 17:39

Re: [Support thread] Billboard Standby Screen
 
okay :)
will push my scripts soon :)

MK99 2012-12-21 18:32

Re: [Support thread] Billboard Standby Screen
 
Quote:

Originally Posted by coderus (Post 1306640)
where is it?

Now it is very very simple, becouse i never find solution.:p
Code:

#!/bin/sh
date +"%a %e.%m"


slarti 2012-12-21 19:01

Re: [Support thread] Billboard Standby Screen
 
Quote:

Originally Posted by MK99 (Post 1306621)
Coderus
I know that simple script about short weekday, but how can i make it own language? It print only english.
(How: if 'Mon', print 'Ma'?)

It should translate things by set locale but for some reason it doesn't. Only thing left to do is to "translate" the output of date +%u

Code:

#!/bin/sh

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

This will give out the abbreviated finnish weekday.

Edit: Changed this to use printf to avoid a line break. Thanks, EmaNymton.

shma 2012-12-21 21:34

Re: [Support thread] Billboard Standby Screen
 
Is it at all possible to see estimated batterytime left? And where would i start researching scripting?


All times are GMT. The time now is 08:44.

vBulletin® Version 3.8.8