Notices


Reply
Thread Tools
coderus's Avatar
Posts: 6,436 | Thanked: 12,701 times | Joined on Nov 2011 @ Ängelholm, Sweden
#471
you should do {script:sh /home/user/battery.sh} or if want to use {script:/home/user/battery.sh} you should do chmod +x /home/user/battery.sh
__________________
Telegram | Openrepos | GitHub | Revolut donations
 
Posts: 44 | Thanked: 20 times | Joined on May 2012
#472
I can confirm that wazapp-status in 1.0.7 does not do it's job. My wazapp crashed a few minutes ago, and I did not start it again because I'm waiting on the standby screen to see if billboard will understand that wazapp is crashed but no - it still says "online".
 
coderus's Avatar
Posts: 6,436 | Thanked: 12,701 times | Joined on Nov 2011 @ Ängelholm, Sweden
#473
you silly who will update context value if process crashed?
__________________
Telegram | Openrepos | GitHub | Revolut donations
 
Posts: 44 | Thanked: 20 times | Joined on May 2012
#474
Maybe not update but empty it? Return it to the state in which it is after a device reboot, before wazapp launched for the first time.
 
Posts: 44 | Thanked: 20 times | Joined on May 2012
#475
Right now I'm on a WiFi router with broken internet connection. Nothing works, but wazapp thinks he is online, but it's not. Billboard thinks we are online too. Useless plugin? NHF.
 
Win7Mac's Avatar
Community Council | Posts: 664 | Thanked: 1,648 times | Joined on Apr 2012 @ Hamburg
#476
Originally Posted by Zvjer View Post
Billboard thinks we are online too.
It displays the connection to your router, nothing beyond that.
Fix your internet connection, don't blame BB...
__________________
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
 
Win7Mac's Avatar
Community Council | Posts: 664 | Thanked: 1,648 times | Joined on Apr 2012 @ Hamburg
#477
Again, thedead1440 was kind enough to help me with a script.
We extended his script for colored battery %, tested a bit and this seems to work, even with other text in the same line:
Code:
#!/bin/sh

status=$(lshal | grep -v grep | grep battery.charge_level.percentage | awk '{print $3}' | head -1)

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
You only have to put the % in the BB-text, the color for it (and the rest of the line) will be the same as for actual percentage.
This will give you 100-50%, 49-25% and 24-0%.
Now if you want further info in that same line after the "%" in a different color, just add {{color}} before the text to come next.

EDIT: The following is already solved by slartis' *Ultimate Customizable Event + Alarm Attribute Getter*™.
Here's what I can't get to work:
  • - {{blue}}{events}{events? ☚} only works as desired if there's 1 event.
    If there's 2 or more, only the first is shown blue (the rest is white) and only the last has the ☚ (which is obvious)
and
  • - {script: /home/user/alarm.py} is not showing at all with the last line of script edited to
    Code:
    sys.stdout.write('\n'.join(sorted(get_queued_alarms())))
    instead of
    Code:
    print '\n'.join(sorted(get_queued_alarms())) or 'No alarms'
    This modification is supposed to enable special characters in the BB text, but I get nothing at all.

Any help on this would be great.
Would it be possible to get events and alarms via shell script 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-16 at 14:10.
 
Posts: 277 | Thanked: 319 times | Joined on Jan 2010
#478
Originally Posted by Zvjer View Post
Right now I'm on a WiFi router with broken internet connection. Nothing works, but wazapp thinks he is online, but it's not. Billboard thinks we are online too. Useless plugin? NHF.
[rant]

Would the people who complain about a FREE open source whatsapp client developed by talented people in their spare time keep their complaining in the wazapp thread, please.

FFS, the only useless things here are the people who haven't heard of a 20-year old technology called SMS which works very reliably everywhere between ALL phones without the need for a proprietory piece of crap.

[/rant]
 

The Following 3 Users Say Thank You to slarti For This Useful Post:
Posts: 68 | Thanked: 10 times | Joined on Jul 2012
#479
I can not run the script for the battery percentage color
 
Win7Mac's Avatar
Community Council | Posts: 664 | Thanked: 1,648 times | Joined on Apr 2012 @ Hamburg
#480
Originally Posted by Burlone View Post
I can not run the script for the battery percentage color
Coding set to UTF-8 and UNIX? Then put it in /home/user/ and run as user in terminal: chmod +x /home/user/yourscriptname.sh
That should be it.
__________________
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
 
Reply

Thread Tools

 
Forum Jump


All times are GMT. The time now is 20:08.