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)

Win7Mac 2013-02-18 17:09

Re: [Support thread] Billboard Standby Screen
 
Quote:

Originally Posted by slarti (Post 1323660)
the condition you're looking for is:

Code:

if [$percent -eq -1]
then echo -n "flightmode on"
fi

Or something like that...:D

Doesn't work, still looks like in the picture above.
So you're absolutely right, must be something like that... :p

slarti 2013-02-18 17:12

Re: [Support thread] Billboard Standby Screen
 
Exactly. That was off the top of my head. How do you test for -1 in sh? Because that's what the percentage is when in flight mode.

Win7Mac 2013-02-18 17:14

Re: [Support thread] Billboard Standby Screen
 
Quote:

Originally Posted by slarti (Post 1323663)
Exactly. That was off the top of my head. How do you test for -1 in sh? Because that's what the percentage is when in flight mode.

I edited the sript to
Code:

#!/bin/sh

percent=$(qdbus --system com.nokia.csd /com/nokia/csd/csnet com.nokia.csd.CSNet.SignalStrength.SignalPercent)
if [[ $percent -ge 25 ]]
then printf "{{yellow}}{{=$(($percent/100)).$((($percent%100)/10))$(($percent%10))}}"
else if [[ $percent -le 24 ]]
then printf "{{red}}{{=$(($percent/100)).$((($percent%100)/10))$(($percent%10))}}"
else if [[$percent -eq -1]]
then echo -n "{{red}}flightmode on"
fi
fi
fi

E: But it's not working... ;)

coderus 2013-02-18 17:22

Re: [Support thread] Billboard Standby Screen
 
this is how my signal bar script looks like:
Code:

#!/bin/sh

percent=$(qdbus --system com.nokia.csd /com/nokia/csd/csnet com.nokia.csd.CSNet.SignalStrength.SignalPercent)
if [ $percent -eq -1 ]; then percent=0; fi
echo -n "{{white}}"
echo -n $percent
color="green"
if [ $percent -le 50 ]; then color="yellow"; fi
if [ $percent -le 20 ]; then color="red"; fi
echo -n "% {{$color}}{{="
echo -n $(($percent/100)).$((($percent%100)/10))$(($percent%10))
echo -n "}}"


Win7Mac 2013-02-18 18:46

Re: [Support thread] Billboard Standby Screen
 
Quote:

Originally Posted by coderus (Post 1323665)
this is how my signal bar script looks like

Fantastic.
What would it look like if it was supposed to show "flightmode" instead of the bar when flightmode is active?

coderus 2013-02-18 19:07

Re: [Support thread] Billboard Standby Screen
 
replace line to
Code:

if [ $percent -eq -1 ]; then echo -n "flight mode"; exit; fi

slarti 2013-02-18 19:12

Re: [Support thread] Billboard Standby Screen
 
Quote:

Originally Posted by Win7Mac (Post 1323664)
E: But it's not working... ;)

The reason it's not working is that you're evaluating first if something is greater or equal to 25. If it isn't, then you evaluate if it's lower or equal to 24. -1 is lower than 24 so that's what your script picks. It never gets around to evaluating if it's -1. So put that evaluation first. Also, add spaces around the evaluation and correct my mistake.

or something like that...

Win7Mac 2013-02-18 20:09

Re: [Support thread] Billboard Standby Screen
 
Quote:

Originally Posted by slarti (Post 1323681)
The reason it's not working is that you're evaluating first if something is greater or equal to 25.
If it isn't, then you evaluate if it's lower or equal to 24.

So that's the difference between "if" and "else if"?

And yeah, that did the trick, great!
Nice, a new feature out of a failure... :D
Here it is:
Code:

#!/bin/sh

percent=$(qdbus --system com.nokia.csd /com/nokia/csd/csnet com.nokia.csd.CSNet.SignalStrength.SignalPercent)
if [[ $percent -eq -1 ]]
then echo -n "{{red}}Flightmode on"
else if [[ $percent -ge 25 ]]
then printf "{{yellow}}{{=$(($percent/100)).$((($percent%100)/10))$(($percent%10))}}"
else if [[ $percent -le 24 ]]
then printf "{{red}}{{=$(($percent/100)).$((($percent%100)/10))$(($percent%10))}}"
fi
fi
fi

I'm shure coderus would only need 300 bytes max. to achieve the same, but it does the job. ;)

herno24 2013-02-20 02:28

Re: [Support thread] Billboard Standby Screen
 
I have a problem since this morning. The billboard text box is blank after a while of having written something, all text is deleted and the screen shows nothing. What could be happening?. Thanks in advence.

coderus 2013-02-20 05:38

Re: [Support thread] Billboard Standby Screen
 
is billboard settings show text?

lorenzo 2013-02-26 18:29

Re: [Support thread] Billboard Standby Screen
 
is it possible to show cpu usage, cpu clock and voltage?

coderus 2013-02-26 19:22

Re: [Support thread] Billboard Standby Screen
 
cpu usage in idle? really useful info?

nicodonte 2013-03-05 14:31

Re: [Support thread] Billboard Standby Screen
 
I have an issue, in random times, billboard clear the scritp, so the LPM never refresh again, is annoying, but for now I fixed using a notepad a paste into billboard script editor, then instantly works perfect again.

Is possible to add an option to save a new preset directly?
Also, could you improves the script editor/preview, when we are making a script and I want to see a preview, the script editor lose focus and every time a back again to the editor never returns to the position was editing.

And last, I'm running a python script uptime.py, works great, but without any reason it dissapear, so I have to edit de billborad script and appear again. Also, how can a put that script in spanish?

Thanks.

sponka 2013-03-05 19:48

Re: [Support thread] Billboard Standby Screen
 
Hello,

I completely formatted phone (root & emmc), installed N9 QTweak and through this app installed inception.

When I try to install Billboard from store I got an error. Pics will tell more than 100 words :)

https://dl.dropbox.com/u/1420887/board_02.png

https://dl.dropbox.com/u/1420887/board_01.png

Any suggestion very wellcome!

thedead1440 2013-03-05 19:57

Re: [Support thread] Billboard Standby Screen
 
The mp-harmattan metapackage seems affected. Did you try uninstalling some stock apps or installing the n950 updated twitter?

sponka 2013-03-05 20:34

Re: [Support thread] Billboard Standby Screen
 
No, phone is really fresh flashed.

But i tried to install wazzap and fennec from coderus's repo and I got same error.

What have I done until now:
- flashed main and emmc
- installed N9Qtweak
- installed inception via N9QTweak
- done some UI mods
- tried mod T-2 (status menu extensions) and later uninstalled them
- tried mod T-1 which was unsuccesfull as package mt-toggles (IIRC) was not downloaded and installed.

I belive I gave up at this point (went to sleep :P) and tried to install Billboard as 1st thing in the morning.

Thanks,
b.

sponka 2013-03-05 21:47

Re: [Support thread] Billboard Standby Screen
 
This might be not right place to ask this ... before flash I had manually installed unrestricted-system-ui, mt-toggles, also inception and aegisctl were installed "by hand".

I wanted to skip this and as N9 Qtweak has options to install all this, use just an application.

As far as I see inception and aegisctl installed OK, but unrestricted-system-ui and mt-toggles were not installed.

Can this error be related to "unrestricted-system-ui"?

thedead1440 2013-03-05 21:51

Re: [Support thread] Billboard Standby Screen
 
Yup could you please remove the unrestricted system-ui and mt-toggles and try again?

sponka 2013-03-05 22:06

Re: [Support thread] Billboard Standby Screen
 
Sorry, I was not clear -- that was previous install.

Have no idea what I have done now but I seriousely f***d this install -- i actually can't install anything from store, so it's not related to Billboard.

I'll stop spamming here and sorry for inconveniance and thanks for help.
---
Edit: went through last installed apps and removed 2x .deb -- smsbackuprestore and callbackuprestore. To my surprise Store is working, Billboard installed & working :)

Lehning 2013-03-07 20:00

Re: [Support thread] Billboard Standby Screen
 
Hi guys! I have tried to install Billboard, no problem! But all the text is kind of hidden on the screen, just seeing a couple of letters. Saw in the first post, that i should open the .css file in nano and change the value, but when i do that all I get is an empty window. How do i find the file-value that i must change?

Plz help a n00b like me get Billboard working properly :)

so please tell me step-by-step how i can change those value-numbers so i can see the whole text :)

this is what i am talking about:


you need to edit some values.

1. use terminal
2. devel-su
3. password (default is rootme)
4. apt-get install nano (do this if you havent installed nano already)
5. nano /usr/share/themes/base/libsysuid-screenlock-nokia/style/libsysuid-screenlock-nokia.css
6. scroll down to the following lines and edit the maximum size like i've done. the default should be 12mm 12mm.
Code:

LockScreen MImageWidgetStyle#LockScreenLowPowerModeOperatorLo go {
padding-top: 0;
padding-bottom: 0;
padding-left: 0;
padding-right: 0;
margin-top: 6mm;
margin-bottom: 0;
margin-left: 0;
margin-right: 0;
maximum-size: 45mm 45mm;

7. reboot and enjoy.

But all i get is an empty window, cant scroll down and find any of those lines??:confused:

jeherreracm 2013-03-08 14:12

Re: [Support thread] Billboard Standby Screen
 
I have a problem with Billboard, I´m create de script normal, but to time a time when enter to billboard to change my configuration, the content is blank no exist my sript, any idea for this situation.

Lehning 2013-03-10 13:21

Re: [Support thread] Billboard Standby Screen
 
]you need to edit some values.

1. use terminal
2. devel-su
3. password (default is rootme)
4. apt-get install nano (do this if you havent installed nano already)
5. nano /usr/share/themes/base/libsysuid-screenlock-nokia/style/libsysuid-screenlock-nokia.css
6. scroll down to the following lines and edit the maximum size like i've done. the default should be 12mm 12mm.
Code:

LockScreen MImageWidgetStyle#LockScreenLowPowerModeOperatorLo go {
padding-top: 0;
padding-bottom: 0;
padding-left: 0;
padding-right: 0;
margin-top: 6mm;
margin-bottom: 0;
margin-left: 0;
margin-right: 0;
maximum-size: 45mm 45mm;
7. reboot and enjoy.

I have followed this guide, BUT I dont have the line that say "maximum-size"

what do I have to do to make it work properly without missing letters on the screen???

thedead1440 2013-03-10 13:26

Re: [Support thread] Billboard Standby Screen
 
Lehning,

If you don't have it then add it and reboot :)

Lehning 2013-03-10 13:47

Re: [Support thread] Billboard Standby Screen
 
Quote:

Originally Posted by thedead1440 (Post 1328101)
Lehning,

If you don't have it then add it and reboot :)

If i add it in nano, how do i save then?

thedead1440 2013-03-10 13:49

Re: [Support thread] Billboard Standby Screen
 
Quote:

Originally Posted by Lehning (Post 1328107)
If i add it in nano, how do i save then?

Ctrl+X then Y for yes

Lehning 2013-03-10 13:54

Re: [Support thread] Billboard Standby Screen
 
Quote:

Originally Posted by thedead1440 (Post 1328109)
Ctrl+X then Y for yes

THANX!!! I will try it :)

Lehning 2013-03-10 14:08

Re: [Support thread] Billboard Standby Screen
 
Didnt work.... still missing a lot of letters and symbols :mad:

thedead1440 2013-03-10 14:12

Re: [Support thread] Billboard Standby Screen
 
Quote:

Originally Posted by Lehning (Post 1328115)
Didnt work.... still missing a lot of letters and symbols :mad:

Are you using a custom theme? Did you check it was saved?

Lehning 2013-03-10 14:21

Re: [Support thread] Billboard Standby Screen
 
Quote:

Originally Posted by thedead1440 (Post 1328117)
Are you using a custom theme? Did you check it was saved?


stock theme. And when i open the .css file in nano after reboot, the maximum-size line is still there. So its saved, but dont work.

thedead1440 2013-03-10 14:26

Re: [Support thread] Billboard Standby Screen
 
hmm the file name in instructions is: /usr/share/themes/base/libsysuid-screenlock-nokia/style/libsysuid-screenlock-nokia.css however its actually "/usr/share/themes/base/meegotouch/libsysuid-screenlock-nokia/style/libsysuid-screenlock-nokia.css"

Could you check if the above is responsible...

Lehning 2013-03-10 14:37

Re: [Support thread] Billboard Standby Screen
 
yes its the one with meego that you wrote.

i added maximum-size 45mm 45mm, saved it, reboot! still looks like **** :/

If I use the full date of today in swedish : Söndagen 10:e mars, 2013. All i see is just "Sönda" all the rest is missing

thedead1440 2013-03-10 14:43

Re: [Support thread] Billboard Standby Screen
 
Hmm its very weird; i haven't seen anyone have such an issue once the modification is done... Could you just copy and post your file here? Maybe a double-check can be done?

coderus 2013-03-10 15:31

Re: [Support thread] Billboard Standby Screen
 
you can just reinstall billboard. postinst script do the job for you.

Lehning 2013-03-10 15:56

Re: [Support thread] Billboard Standby Screen
 
Quote:

Originally Posted by coderus (Post 1328137)
you can just reinstall billboard. postinst script do the job for you.

whats the apt-get command to reinstall billboard?:rolleyes:

coderus 2013-03-10 15:58

Re: [Support thread] Billboard Standby Screen
 
i think you can remove it and go to store :)

Lehning 2013-03-10 16:00

Re: [Support thread] Billboard Standby Screen
 
ok I will go that way :) Update will come if it works, doubt that :/

thedead1440 2013-03-10 16:01

Re: [Support thread] Billboard Standby Screen
 
Quote:

Originally Posted by Lehning (Post 1328140)
whats the apt-get command to reinstall billboard?:rolleyes:

Do a manual uninstallation then installation again from the store but iirc once you have paid for an app you can do "apt-get install billboard --reinstall" and it'll work...

Lehning 2013-03-10 16:06

Re: [Support thread] Billboard Standby Screen
 
I have to buy it again?? hmmm

thedead1440 2013-03-10 16:07

Re: [Support thread] Billboard Standby Screen
 
Quote:

Originally Posted by Lehning (Post 1328147)
I have to buy it again?? hmmm

Nope it allows upto 5 downloads...

Lehning 2013-03-10 16:09

Re: [Support thread] Billboard Standby Screen
 
I will get v 1.0.7... its that the latest?


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

vBulletin® Version 3.8.8