|
2013-06-22
, 08:52
|
Moderator |
Posts: 6,215 |
Thanked: 6,400 times |
Joined on Nov 2011
|
#902
|
|
2013-06-22
, 13:25
|
Posts: 239 |
Thanked: 70 times |
Joined on Oct 2010
@ Germany
|
#903
|
|
2013-06-22
, 13:41
|
|
Community Council |
Posts: 664 |
Thanked: 1,648 times |
Joined on Apr 2012
@ Hamburg
|
#904
|
|
2013-06-23
, 17:36
|
Posts: 73 |
Thanked: 35 times |
Joined on Jun 2013
|
#905
|
|
2013-06-24
, 06:53
|
Posts: 2 |
Thanked: 0 times |
Joined on Jun 2013
|
#906
|
|
2013-06-24
, 07:45
|
|
Posts: 1,391 |
Thanked: 4,272 times |
Joined on Sep 2007
@ Vienna, Austria
|
#907
|
Hello
Tell me how to get the status of the SDK (SFTP and SSH)? I want to get into standby mode the number of clients that are connected at the moment.For python or bash.
Thank you.
{script:who}
|
2013-06-25
, 04:55
|
Posts: 2 |
Thanked: 0 times |
Joined on Jun 2013
|
#908
|
Either simply use:
Or postprocess it a bit with Python to get nicer output:Code:{script:who}
https://github.com/harmattan/billboa...ted_clients.py
Note that it only updates every now and then, but using the most recent version of Billboard allows you to e.g. put the battery charge in there (e.g. as a command line parameter that is not used), so that it updates more often.
Feel free to customize it to your needs. HTH
|
2013-06-25
, 14:14
|
Posts: 73 |
Thanked: 35 times |
Joined on Jun 2013
|
#909
|
script for USSD Balance, drawing your balance and colored percentage bar.
Code:#!/bin/sh max_balance=200 mid_balance=90 low_balance=30 echo -n "{{white}}" balance=$(gconftool -g /apps/UssdBalance/currentStrBalance) echo -n $balance balance=${balance%.*} if [ $balance -ge $mid_balance ]; then echo -n "{{green}}" else if [ $balance -ge $low_balance ]; then echo -n "{{yellow}}" else echo -n "{{red}}" fi fi echo -n " {{=" if [ $balance -ge $max_balance ]; then echo -n "1.0" else echo -n "0."$((balance/2)) fi echo -n "}}"
|
2013-06-27
, 10:01
|
Posts: 12 |
Thanked: 16 times |
Joined on May 2010
@ Sweden
|
#910
|
i copy content from the scripts on github to a text file and safe it as alarm.py for example... copy this to home/user and insert the line as said in "about" but nothing apears... what am i doin wrong?