![]() |
Re: [Support thread] Billboard Standby Screen
Quote:
{script: develsh signalbar.sh} Quote:
It does work when the property is not empty. For example, {battery?{script:sh battery.sh}} works as expected. When the property is empty, the trouble starts. Quote:
Code:
networkname=$(qdbus --system com.nokia.icd2.context /org/maemo/contextkit/Internet/NetworkName org.maemo.contextkit.Property.Get | sed q) |
Re: [Support thread] Billboard Standby Screen
1 Attachment(s)
Quote:
Calling it via script only like in 1.0.7 doesn't update that often. :( Quote:
So I merged {network-name} into data-mode.sh and have a strange output... when no network present: https://dl.dropbox.com/s/digazd1o5mu...etworkname.png With this script Code:
#!/bin/sh Also, I wonder what happens with shades of a color in LPM, like here: |
Re: [Support thread] Billboard Standby Screen
Your strange output seems to be your IMEI that is now posted for all to see :)
|
Re: [Support thread] Billboard Standby Screen
Quote:
But it's not, the number changes randomly. I posted the script, no IMEI gets called, it's the networkname when no data network present. |
Re: [Support thread] Billboard Standby Screen
I've reworked some icons, they're all single color with transparent background now:
https://www.dropbox.com/sh/ry67p8djb4hidcy/tbRlrVTWQd |
Re: [Support thread] Billboard Standby Screen
I don't understand why a data-connection is detected when obviously there isn't/shouldn't be one.
Is it possible to put a condition in the script for network-name that if it's numbers only (like a wildcard for any number-only), it outputs nothing? Other ideas of getting rid of the numbers from network-name? |
Re: [Support thread] Billboard Standby Screen
Win7Mac,
If you want to check for a number in your output and give an empty output while giving a non-empty output when there is an alphabet with the number you could use test this way: Code:
test -z "$NN" -o -n "`echo $NN | tr -d '[0-9]'`" && echo $NN |
Re: [Support thread] Billboard Standby Screen
Code:
state=$(qdbus --system com.nokia.icd2.context /org/maemo/contextkit/Internet/NetworkState org.maemo.contextkit.Property.Get) |
Re: [Support thread] Billboard Standby Screen
^^ Exactly! Thanks coderus. :)
This works as desired: Code:
#!/bin/sh |
Re: [Support thread] Billboard Standby Screen
@Win7Mac this style of coding more intelligent:
Code:
#!/bin/sh |
All times are GMT. The time now is 15:29. |
vBulletin® Version 3.8.8