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)

Reflektorfalke 2012-12-14 18:59

Re: [Support thread] Billboard Standby Screen
 
Quote:

Originally Posted by Trivium77 (Post 1304612)
how to put the separating black lines ???? :confused:

If you want an empty black line simply enter a <space> without anything else into a line ;)

In the screenshot I used _____ (underscores), guess this is what you mean with black separating line.

Trivium77 2012-12-14 19:26

Re: [Support thread] Billboard Standby Screen
 
Quote:

Originally Posted by Reflektorfalke (Post 1304616)
If you want an empty black line simply enter a <space> without anything else into a line ;)

In the screenshot I used _____ (underscores), guess this is what you mean with black separating line.

i´m such an idiot!!!! tank you :eek:

coderus 2012-12-14 19:28

Re: [Support thread] Billboard Standby Screen
 
for wazapp:
Code:

#!/bin/sh

reply=""
if $(qdbus | grep org.tgalal.wazapp > /dev/null)
then
        reply=`qdbus org.tgalal.wazapp /org/maemo/contextkit/Wazapp/Online org.maemo.contextkit.Property.Get | sed -n 1p`
fi

case $reply in
online) reply="В сети" ;;
connecting) reply="Подключается" ;;
offline) reply="Не в сети" ;;
*) reply="Закрыт" ;;
esac

echo -n $reply


Reflektorfalke 2012-12-14 22:29

Re: [Support thread] Billboard Standby Screen
 
1 Attachment(s)
Quote:

Originally Posted by coderus (Post 1304621)
for wazapp:

Thanks a lot for the script coderus!!!

I modified the script to show a certain symbol for each status returned:
★ = connected
♻ = connecting
☆ = offline
⚠ = closed

For anyone who wants to try see code below/attached file.
- put script in /home/user/
- in terminal do chmod +x /home/user/wabb.sh
- add in Billboard e.g. Wazapp {script:/home/user/wabb.sh}

Code:

#!/bin/sh

reply=""
if $(qdbus | grep org.tgalal.wazapp > /dev/null)
then
    reply=`qdbus org.tgalal.wazapp /org/maemo/contextkit/Wazapp/Online org.maemo.contextkit.Property.Get | sed -n 1p`
fi

case $reply in
online) reply="★" ;;
connecting) reply="♻" ;;
offline) reply="☆" ;;
*) reply="⚠" ;;
esac

echo -n $reply

While it does work, the script based approach seems to be a bit slow with Billboard (at least compared to network status change that is shown in real-time)
It can take quite a while until a changed status is shown.
This is obviously the time gap between Wazapp status change and next time the script is triggered by Billboard.

But its definitely a nice way for monitoring if Wazapp is still running fine in background or if there is an (with recent versions pretty rare :)) issue...

Reflektorfalke 2012-12-14 22:46

Re: [Support thread] Billboard Standby Screen
 
1 Attachment(s)
Oh and btw, attached screenshot not only uses coderus Wazapp monitoring script but also includes another nice example of the possibilities and potential of this amazing app.
EmaNymton added Billboard integration to the latest version of his MeeGoal app.
With a simple toggle you can add the latest/upcoming match of your favorite football team to Billboard and of course standing is updated every x minutes :p

herno24 2012-12-14 23:05

Re: [Support thread] Billboard Standby Screen
 
Quote:

Originally Posted by coderus (Post 1304621)
for wazapp:
Code:

#!/bin/sh

reply=""
if $(qdbus | grep org.tgalal.wazapp > /dev/null)
then
        reply=`qdbus org.tgalal.wazapp /org/maemo/contextkit/Wazapp/Online org.maemo.contextkit.Property.Get | sed -n 1p`
fi

case $reply in
online) reply="В сети" ;;
connecting) reply="Подключается" ;;
offline) reply="Не в сети" ;;
*) reply="Закрыт" ;;
esac

echo -n $reply


Excellent! And how to add a color to each reply?. Is it possible?. Thanks.

Reflektorfalke 2012-12-14 23:13

Re: [Support thread] Billboard Standby Screen
 
Quote:

Originally Posted by herno24 (Post 1304669)
Excellent! And how to add a color to each reply?. Is it possible?. Thanks.

Yes, its possible, simply add {{color}} in front of reply, while "color" can be red, cyan, green, blue, magenta and yellow.
Like this:

reply="{{color}}<replyvalue>"

lancewex 2012-12-14 23:36

Re: [Support thread] Billboard Standby Screen
 
No matter what I chose to put in it, it shows for only a second and then disappears. I have rebooted twice. I have no tweaks or modifications to anything like that that could conflict.
UPDATE: It was the green text choice problem....that's the color I like best. Hope it gets fixed.

herno24 2012-12-14 23:54

Re: [Support thread] Billboard Standby Screen
 
Quote:

Originally Posted by Reflektorfalke (Post 1304670)
Yes, its possible, simply add {{color}} in front of reply, while "color" can be red, cyan, green, blue, magenta and yellow.
Like this:

reply="{{color}}<replyvalue>"

It doesn't work, i edited the file on my Windows pc, is that the problem?. Thanks.

PD: it worked for a moment, but now it isn't, i don't know why.
PD2: Ok, this seems like a joke, but it works (but sometimes it shows nothing for a moment).

bioman 2012-12-15 06:00

Re: [Support thread] Billboard Standby Screen
 
Does anybody know if it is possible to write a script to add a counter with data sent/received for my mobile network?


All times are GMT. The time now is 02:14.

vBulletin® Version 3.8.8