Active Topics

 



Notices


Reply
Thread Tools
coderus's Avatar
Posts: 6,436 | Thanked: 12,699 times | Joined on Nov 2011 @ Ängelholm, Sweden
#341
@bioman sure, just write application data counter and export data via context
__________________
Telegram | Openrepos | GitHub | Revolut donations
 
Reflektorfalke's Avatar
Posts: 597 | Thanked: 490 times | Joined on Dec 2009 @ Germany
#342
Originally Posted by herno24 View Post
It doesn't work, i edited the file on my Windows pc, is that the problem?. Thanks.

PD: it worked for a moment, but now it isn't, i don't know why.
PD2: Ok, this seems like a joke, but it works (but sometimes it shows nothing for a moment).
Yes, I also had this behavior a couple of times, assume this is due to a timeout for scripts in Billboard. Seems to be a pretty tight timeout though as the script executes pretty fast.
(EDIT: See this Post, there is a 1000ms timeout)

Regarding {events-today}, it is now showing events from yesterday, can anyone confirm this?
__________________
------------------------------------------------------------
Bluetooth PBAP-Profile/Carkit support - Check Wiki-Page
Sociality FB-Client, MAG strikes again - Check Wiki-Page

QNeptunea -
Best Twitter Client for N9/N950 - HowTo Create Themes

Last edited by Reflektorfalke; 2012-12-15 at 09:35.
 
Posts: 32 | Thanked: 7 times | Joined on Jun 2012 @ Russian Federation
#343
Thomas, add alarm icon string in app, please. If alarm is on - icon shows, if off - no.

Sorry, but my english is not good )))
 
coderus's Avatar
Posts: 6,436 | Thanked: 12,699 times | Joined on Nov 2011 @ Ängelholm, Sweden
#344
for alarm:
Code:
#!/bin/sh

reply=$(qdbus --system com.nokia.time /org/maemo/contextkit/Alarm/Present org.maemo.contextkit.Property.Get | sed -n 1p)
if [ "$reply" == "true" ]; then
echo -n "/usr/share/themes/blanco/meegotouch/icons/icon-s-alarm-inverse.png"
fi
usage:
<<{script:sh /path/to/script.sh}>>
__________________
Telegram | Openrepos | GitHub | Revolut donations
 

The Following 9 Users Say Thank You to coderus For This Useful Post:
Posts: 87 | Thanked: 14 times | Joined on Jan 2012
#345
Originally Posted by coderus View Post
for alarm:
Code:
#!/bin/sh

reply=$(qdbus --system com.nokia.time /org/maemo/contextkit/Alarm/Present org.maemo.contextkit.Property.Get | sed -n 1p)
if [ "$reply" == "true" ]; then
echo -n "/usr/share/themes/blanco/meegotouch/icons/icon-s-alarm-inverse.png"
fi
usage:
<<{script:sh /path/to/script.sh}>>
It doesn't work for me. I'm using a Windows pc to save the code into a .sh file, is that the problem?.
 
Posts: 63 | Thanked: 75 times | Joined on Jul 2012 @ Austria
#346
Originally Posted by herno24 View Post
It doesn't work for me. I'm using a Windows pc to save the code into a .sh file, is that the problem?.
check if the script is executable (use "chmod +x /path/to/yourscript.sh" to make it executable).
 
Moderator | Posts: 6,215 | Thanked: 6,400 times | Joined on Nov 2011
#347
its the line endings being set to Windows instead of Unix most probably...
 
Posts: 87 | Thanked: 14 times | Joined on Jan 2012
#348
Originally Posted by thedead1440 View Post
its the line endings being set to Windows instead of Unix most probably...
Ah ok, and how to fix that?.
 
coderus's Avatar
Posts: 6,436 | Thanked: 12,699 times | Joined on Nov 2011 @ Ängelholm, Sweden
#349
lol, how?
nano /path/to/script.sh
and then do paste
__________________
Telegram | Openrepos | GitHub | Revolut donations
 
Posts: 443 | Thanked: 282 times | Joined on Oct 2011 @ Grenoble, France
#350
Originally Posted by coderus View Post
for alarm:
Code:
#!/bin/sh

reply=$(qdbus --system com.nokia.time /org/maemo/contextkit/Alarm/Present org.maemo.contextkit.Property.Get | sed -n 1p)
if [ "$reply" == "true" ]; then
echo -n "/usr/share/themes/blanco/meegotouch/icons/icon-s-alarm-inverse.png"
fi
usage:
<<{script:sh /path/to/script.sh}>>
Is there a way to add the alarm time?
 
Reply


 
Forum Jump


All times are GMT. The time now is 03:32.