Active Topics

 



Notices


Reply
Thread Tools
Posts: 277 | Thanked: 319 times | Joined on Jan 2010
#741
Thanks for the screenshots and icons!

Originally Posted by Win7Mac View Post
My remaining issues:
- {cell-signal-strength?{script: develsh signalbar.sh}}{{red}}{cell-signal-strength!Flugmodus an ✈} and
{{red}}{cell-signal-strength!Flugmodus an ✈}{cell-signal-strength?{script: develsh signalbar.sh} gives a "}" only when in flightmode

- {network-name}{network-name? {script: develsh /home/user/data-mode.sh}} also gives a "}" only when no network present
I have no idea why it behaves this way.

Originally Posted by Win7Mac View Post
- <</usr/share/...path-to-icon.png>> won't show up if put in BB directly or in python scripts, only from shell scripts
Probably I'm doing sth wrong, I tried
Code:
print ('{{blue}}'+event_date+' '+event_time+' '+title+' '+<</usr/share/themes/blanco/meegotouch/icons/icon-s-calendar.png>>)
as the last line in slartis' events.py
Put quotes around it.

Remember, the output of the script is just a string that gets interpreted by BB. There isn't a variable named <</usr/share/themes/blanco/meegotouch/icons/icon-s-calendar.png>> defined in the script. The python interpreter would probably have told you this, if you had ran it in terminal.

Originally Posted by Win7Mac View Post
- what about emoji icons in python scripts, possible (not really needed if images would work)?
Don't know. Try adding one to an output of a script. The script can be as simple as print 'character here' See what happens and what the python interpreter tells you.
 

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
#742
Oh boy, my eyes are getting old or my brain is getting dizzy when looking at code all the time... I simply forgot the "/" before <<user/path-to-script>>. Sorry. Now images work directly in BB.

Originally Posted by slarti View Post
Put quotes around it.
Ahh... edited last line of the events.py to
Code:
print ('{{blue}}'+event_date+' '+event_time+' '+title+' '+'<</usr/share/themes/blanco/meegotouch/icons/icon-s-status-calendar-blue.png>>')
and now everything gets cut off and looks like this:
Icon is same size as the others - what have I done wrong again?
Attached Images
 
__________________
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
 
coderus's Avatar
Posts: 6,436 | Thanked: 12,699 times | Joined on Nov 2011 @ Ängelholm, Sweden
#743
@Win7Mac nothing. too long line. edit css.

and about emoji: you can use arguments in scripts to define emojis insige Billboard config
__________________
Telegram | Openrepos | GitHub | Revolut donations
 

The Following User Says Thank You to coderus For This Useful Post:
TMavica's Avatar
Posts: 2,021 | Thanked: 1,060 times | Joined on Apr 2010 @ Hong Kong
#744
whats the purpose of Meecast Icon?
__________________
The Glorious Lady T.Mavica
Twitter https://twitter.com/TMavica
 
Win7Mac's Avatar
Community Council | Posts: 664 | Thanked: 1,648 times | Joined on Apr 2012 @ Hamburg
#745
Originally Posted by coderus View Post
@Win7Mac nothing. too long line. edit css.
+1! Whow, that was close to visionary... I cut of the next event which indeed was a bit too long...
But I shortened the event name instead of messing with the css, I think it's good as is.

Originally Posted by coderus View Post
and about emoji: you can use arguments in scripts to define emojis insige Billboard config
Since I managed to use images correctly, I actually don't need it anymore. But who knows what comes around the corner, so if you don't mind, please give an example. E.g. take slartis' customizable_event_lister.py and replace the last few lines.

Now I'll look at the nasty closing brackets that appear along with {cell-signal-strength}.
__________________
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
 
coderus's Avatar
Posts: 6,436 | Thanked: 12,699 times | Joined on Nov 2011 @ Ängelholm, Sweden
#746
bash:
Code:
....
echo -n $1
...
python:
Code:
import sys
....
print sys.argv[1]
....
in Billboard:
Code:
{script:/path/to/script EMOJI}
__________________
Telegram | Openrepos | GitHub | Revolut donations
 

The Following User Says Thank You to coderus For This Useful Post:
Posts: 87 | Thanked: 14 times | Joined on Jan 2012
#747
Originally Posted by slarti View Post
Both of these have to be called with develsh instead of sh...
I don't know how to do that, can you tell me?. Thanks in advance!.
 
TMavica's Avatar
Posts: 2,021 | Thanked: 1,060 times | Joined on Apr 2010 @ Hong Kong
#748
for who cant use {messcast-icon}, try use <<messcast-icon-src}>>

__________________
The Glorious Lady T.Mavica
Twitter https://twitter.com/TMavica
 

The Following 3 Users Say Thank You to TMavica For This Useful Post:
coderus's Avatar
Posts: 6,436 | Thanked: 12,699 times | Joined on Nov 2011 @ Ängelholm, Sweden
#749
Originally Posted by herno24 View Post
I don't know how to do that, can you tell me?. Thanks in advance!.
just read some posts before your question.
__________________
Telegram | Openrepos | GitHub | Revolut donations
 
Posts: 277 | Thanked: 319 times | Joined on Jan 2010
#750
Originally Posted by herno24 View Post
I don't know how to do that, can you tell me?. Thanks in advance!.
Coderus showed one way here and win7mac showed another way here.
 
Reply


 
Forum Jump


All times are GMT. The time now is 07:28.