![]() |
Re: [Support thread] Billboard Standby Screen
i wanted to display icon offline mode when N9 goes offline and network name when online, so i wrote
{cell-network!<<path/to/icon.png>>} now happens that there is no output, what's wrong? |
Re: [Support thread] Billboard Standby Screen
Lorenzo, you need to enter {cell-network} before your text:
{cell-network}{cell-network!<<path/to/icon.png>>} The first {cell-network} shows the network name when there is one. If there is no network then this element will have no output. In that case the second element will show your icon. If there is a network name, the second element will not show anything. |
Re: [Support thread] Billboard Standby Screen
Has anyone developed a script to show profile icons as distinct from the {profile} command in Billboard?
Thanks |
Re: [Support thread] Billboard Standby Screen
Quote:
For example, in BB: Code:
{script:sh profile.sh {profile}} Code:
#!/bin/sh |
Re: [Support thread] Billboard Standby Screen
Slarti, thank you for the idea.
Unfortunately, I have no experience with sh and have difficulty getting it to work. I substituted General, Beep and Silent for your /path strings without the <<>> like this: #!/bin/sh profile=$1 if [ $profile = "general" ] then echo -n "General" else if [ $profile = "meeting" ] then echo -n "Beep" else if [ $profile = "silent" ] then echo -n "Silent" fi;fi;fi It doesn't work with Billboard. So, I tried with opening terminal in my folder /home/user/Billboard and tried to run: sh Profile.sh general I get errors like this: : not found: line 2: : not found: line 3: sh: missing ] sh: missing ] sh: missing ] Where do I go from here? Thanks |
Re: [Support thread] Billboard Standby Screen
I think I found the problem.
I saved and edited the script with windows notepad and caused these errors when I copied the script to the phone. When I edited the script in the phone with MeeTxtEditor, the errors disappeared. The script now works in Billboard also. What editor can I use in windows so I don't have this problem in the future? Thanks |
Re: [Support thread] Billboard Standby Screen
I have another problem.
I like icons on the standby screen. I have the bluetooth status icon and and the power save icon showing. The python scripts are working in that they show the icons, but on different lines. I would like them to be on the same line. Here is the Billboard script I use: {script: python /home/user/Billboard/Bluetoothi.py}{script: python /home/user/Billboard/PSMi.py} Here is the python script for the bluetooti.ph: # Print bluetooth status icon off/disconnected/connected # Show the correct icon for connected or disconnected states. # No icon is shown when BT is off. # When BT is off the word 'off' is shown. # # Author: Slarti # Source: http://talk.maemo.org/showpost.php?p...&postcount=444 import dbus bus = dbus.SystemBus() bluez = bus.get_object('org.bluez', '/') adapter_path = bluez.ListAdapters(dbus_interface='org.bluez.Manag er')[0] adapter = bus.get_object('org.bluez', adapter_path) powered = adapter.GetProperties(dbus_interface='org.bluez.Ad apter')['Powered'] btstatus = bus.get_object('com.nokia.policy.pcfd', '/com/nokia/policy/bluetooth_override') connected = btstatus.Get(dbus_interface='org.maemo.contextkit. Property')[0] if powered: if 'default' in connected: print '<</usr/share/themes/blanco/meegotouch/icons/icon-s-status-bluetooth-active.png>>', else: print '<</usr/share/themes/blanco/meegotouch/icons/icon-s-status-bluetooth.png>>', else: print '<</home/user/Billboard/icon-s-status-bluetooth-off.png>>', I looked on the internet, and found that a comma at the end of the print line should prevent a line feed. I have found it not working and I still get a line feed or carriage return. How do I place these icons from these 2 python scripts on the same line? Thanks |
Re: [Support thread] Billboard Standby Screen
Quote:
|
Re: [Support thread] Billboard Standby Screen
Quote:
|
Re: [Support thread] Billboard Standby Screen
Quote:
The nice thing about Vim (and Emacs, for that matter) is that you can also use it directly on your device through the Terminal, the bad thing about both is that there's a non-trivial learning curve. For editing on-device in a user-friendly way, try KhtSimpleText. |
All times are GMT. The time now is 02:57. |
vBulletin® Version 3.8.8