|
|
05-14-2013
, 05:47 AM
|
|
|
Posts: 1,310 |
Thanked: 3,732 times |
Joined on Sep 2007
@ Vienna, Austria
|
#872
|
| The Following 2 Users Say Thank You to thp For This Useful Post: | ||
|
|
05-14-2013
, 05:56 AM
|
|
|
Posts: 3,448 |
Thanked: 2,289 times |
Joined on Jan 2010
@ Israel
|
#874
|
(28x11). Maybe you can add option in the setting that user can choose the different sizes for image, or better one is a blank fields that user can write the correct size for his image and if user will leave this fields blank it will use your default size max 20x12 ?|
|
05-16-2013
, 07:04 AM
|
|
|
Posts: 1,310 |
Thanked: 3,732 times |
Joined on Sep 2007
@ Vienna, Austria
|
#875
|

|
|
05-17-2013
, 04:28 PM
|
|
Posts: 18 |
Thanked: 5 times |
Joined on Aug 2010
|
#876
|
mybattery.py:Code:{script:python /home/user/mybattery.py {battery}}
Code:import sys battery = int(sys.argv[1]) if battery < 50: print 'Battery getting low' else: print 'You should be fine'
import sys
battery = int(sys.argv[1])
if battery < 10:
print '<</home/user/billboard/icons/battery10-yellow.png>>'
elif battery < 20:
print '<</home/user/billboard/icons/battery10-red.png>>'
elif battery < 30:
print '<</home/user/billboard/icons/battery20-red.png>>'
elif battery < 40:
print '<</home/user/billboard/icons/battery30-red.png>>'
elif battery < 50:
print '<</home/user/billboard/icons/battery40-red.png>>'
elif battery < 60:
print '<</home/user/billboard/icons/battery50-red.png>>'
elif battery < 70:
print '<</home/user/billboard/icons/battery60-red.png>>'
elif battery < 80:
print '<</home/user/billboard/icons/battery70-red.png>>'
elif battery < 90:
print '<</home/user/billboard/icons/battery80-red.png>>'
else:
print '<</home/user/billboard/icons/battery90-red.png>>'
import sys
battery = int(sys.argv[1])
print "<</home/user/billboard/icons/battery/battery_{0:03d}.png>>".format(battery)
|
|
Yesterday
, 02:33 AM
|
|
Posts: 208 |
Thanked: 91 times |
Joined on Jan 2012
|
#877
|
Thanks
![]() |
| Thread Tools | Search this Thread |
|
ThaNks For HelP...