maemo.org - Talk

maemo.org - Talk (https://talk.maemo.org/index.php)
-   Applications (https://talk.maemo.org/forumdisplay.php?f=41)
-   -   [Support thread] Billboard Standby Screen (https://talk.maemo.org/showthread.php?t=84507)

coderus 2012-12-15 09:24

Re: [Support thread] Billboard Standby Screen
 
@bioman sure, just write application data counter and export data via context

Reflektorfalke 2012-12-15 09:28

Re: [Support thread] Billboard Standby Screen
 
Quote:

Originally Posted by herno24 (Post 1304682)
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?

Camerado 2012-12-15 14:17

Re: [Support thread] Billboard Standby Screen
 
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 2012-12-15 15:47

Re: [Support thread] Billboard Standby Screen
 
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}>>

herno24 2012-12-15 17:30

Re: [Support thread] Billboard Standby Screen
 
Quote:

Originally Posted by coderus (Post 1304821)
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?.

N9uwu 2012-12-15 18:20

Re: [Support thread] Billboard Standby Screen
 
Quote:

Originally Posted by herno24 (Post 1304834)
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).

thedead1440 2012-12-15 18:30

Re: [Support thread] Billboard Standby Screen
 
its the line endings being set to Windows instead of Unix most probably...

herno24 2012-12-15 19:07

Re: [Support thread] Billboard Standby Screen
 
Quote:

Originally Posted by thedead1440 (Post 1304843)
its the line endings being set to Windows instead of Unix most probably...

Ah ok, and how to fix that?.

coderus 2012-12-15 19:26

Re: [Support thread] Billboard Standby Screen
 
lol, how?
nano /path/to/script.sh
and then do paste

mousse04 2012-12-15 20:54

Re: [Support thread] Billboard Standby Screen
 
Quote:

Originally Posted by coderus (Post 1304821)
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?


All times are GMT. The time now is 17:47.

vBulletin® Version 3.8.8