Active Topics

 



Notices


Reply
Thread Tools
Posts: 277 | Thanked: 319 times | Joined on Jan 2010
#531
Here is a better version but it (like the first one) has one major drawback:



It won't show an event if it doesn't have an alarm!!!



- It won't show todos at the moment (easy to fix). Fixed

- It won't show the location because I'm not sure how to silently handle the KeyError exception when there is no 'location' key in the attribute dict.Fixed

- It won't show the calendar name because I don't know where to get a match for the 'notebook' value. It's easy to match manually, but to get it with the script, I don't know where to look for the calendar name.



The others won't be fixed unless someone knows how to access the calendar database, if there is one.



This can be found in https://github.com/harmattan/billboard-scripts.

Last edited by slarti; 2013-01-18 at 19:57.
 

The Following User Says Thank You to slarti For This Useful Post:
Win7Mac's Avatar
Community Council | Posts: 664 | Thanked: 1,648 times | Joined on Apr 2012 @ Hamburg
#532
@slarti: The things you list that are not supported, personally I don't really need them. Integrating todos is nice though.
Space is limited, all those infos wouldn't fit in one line anyway. The important info is there, so I think it's fine. But having choice and customizability is always good, of course.
Remember the text needs to move around, it's a screensaver to avoid burn-in...


Is anybody using the 3-color-battery-percentage-script?
I have an issue that sometimes (approx. every 2nd refresh) it stays blank. Can somebody confirm?
__________________
Nokia 5110 > 3310 > 6230 > N70 > N9 BLACK 64GB
Hildon Foundation Board member
Maemo Community e.V. co-creator, founder and director since Q4/2016
Current Maemo Community Council member

Last edited by Win7Mac; 2013-01-19 at 11:05.
 

The Following User Says Thank You to Win7Mac For This Useful Post:
Posts: 24 | Thanked: 13 times | Joined on Oct 2011
#533
Could we have support for tags/comments? Something that doesn't render on screen, but can be used by programs to push text onto screen
(say using the method in http://talk.maemo.org/showpost.php?p...&postcount=428)?

Basically do a gconftool get, followed by replacing something within custom tags say {tag:customName1}ABCD{endtag} with {tag:customName1}WXYZ{endtag}, and set that.
This would allow a script to search for the customName1 tag and display 'WXYZ' instead of 'ABCD' while keeping the rest of it the same.

Last edited by stats0; 2013-01-19 at 03:11.
 

The Following User Says Thank You to stats0 For This Useful Post:
coderus's Avatar
Posts: 6,436 | Thanked: 12,699 times | Joined on Nov 2011 @ Ängelholm, Sweden
#534
@stats0 i didnt understand the purpose.
__________________
Telegram | Openrepos | GitHub | Revolut donations
 
Win7Mac's Avatar
Community Council | Posts: 664 | Thanked: 1,648 times | Joined on Apr 2012 @ Hamburg
#535
So it turns out that the 3-color-% script quite often suffers a timeout. Thanks to slarti this is fixed now:
Code:
#!/bin/sh
status=$(qdbus --system org.freedesktop.Hal /org/freedesktop/Hal/devices/bme org.freedesktop.Hal.Device.GetProperty battery.charge_level.percentage)
if [[ $status -ge 50 ]]
then printf "{{green}} $status"
fi
if [[ $status -ge 25 && $status -le 49 ]]
then printf "{{yellow}} $status"
fi
if [[ $status -le 24 ]]
then printf "{{red}} $status"
fi
This script utilizes qdbus instead of lshal and is much faster.
It also works while charging.
Nice, thanks!

[EDIT] and its complete now, too...
__________________
Nokia 5110 > 3310 > 6230 > N70 > N9 BLACK 64GB
Hildon Foundation Board member
Maemo Community e.V. co-creator, founder and director since Q4/2016
Current Maemo Community Council member

Last edited by Win7Mac; 2013-01-19 at 20:52.
 

The Following User Says Thank You to Win7Mac For This Useful Post:
coderus's Avatar
Posts: 6,436 | Thanked: 12,699 times | Joined on Nov 2011 @ Ängelholm, Sweden
#536
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 "}}"
__________________
Telegram | Openrepos | GitHub | Revolut donations
 

The Following User Says Thank You to coderus For This Useful Post:
coderus's Avatar
Posts: 6,436 | Thanked: 12,699 times | Joined on Nov 2011 @ Ängelholm, Sweden
#537
signal percentage with bar bar
Code:
#!/bin/sh

percent=$(qdbus --system com.nokia.csd /com/nokia/csd/csnet com.nokia.csd.CSNet.SignalStrength.SignalPercent)
echo -n "{{white}}"
echo -n $percent
echo -n "% {{green}}{{="
if [ $percent -eq 100 ]
then
	echo -n "1.0"
else
	echo -n "0.$percent"
fi
echo -n "}}"
exit
__________________
Telegram | Openrepos | GitHub | Revolut donations
 

The Following 2 Users Say Thank You to coderus For This Useful Post:
coderus's Avatar
Posts: 6,436 | Thanked: 12,699 times | Joined on Nov 2011 @ Ängelholm, Sweden
#538
screen photo
Attached Images
 
__________________
Telegram | Openrepos | GitHub | Revolut donations
 

The Following 2 Users Say Thank You to coderus For This Useful Post:
Posts: 277 | Thanked: 319 times | Joined on Jan 2010
#539
How did I miss the {{=decimal}} tag!?

I was just about to start learning how to draw stuff with python but this makes things a "little" easier.

win7mac's script with a couple of tweaks (I didn't bother with the 100% special case because my device never shows 100%):

Code:
#!/bin/sh
status=$(qdbus --system org.freedesktop.Hal /org/freedesktop/Hal/devices/bme org.freedesktop.Hal.Device.GetProperty battery.charge_level.percentage)
if [[ $status -ge 50 ]]
then echo -n "{{green}} $status % {{=0.$status}}"
fi
if [[ $status -ge 25 && $status -le 49 ]]
then echo -n "{{yellow}} $status % {{=0.$status}}"
fi
if [[ $status -le 24 ]]
then echo -n "{{red}} $status % {{=0.$status}}"
fi

Last edited by slarti; 2013-01-19 at 19:30.
 
coderus's Avatar
Posts: 6,436 | Thanked: 12,699 times | Joined on Nov 2011 @ Ängelholm, Sweden
#540
@slarti you missed 100%
__________________
Telegram | Openrepos | GitHub | Revolut donations
 
Reply


 
Forum Jump


All times are GMT. The time now is 09:43.