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)

Mikkosssss 2013-08-28 08:14

Re: [Support thread] Billboard Standby Screen
 
Is there way to make script that tells if phone is locked with security code?
I use long delay+secure device script from N9Qt so I dont alway remember is my phone locked or not and have to check it before I leave it.
This would make it much easier.

Thanks

slarti 2013-08-28 15:50

Re: [Support thread] Billboard Standby Screen
 
Code:

qdbus --system com.nokia.devicelock /request com.nokia.devicelock.getState 1
Will probably get you the current state of devicelock. I'll leave the rest to you.

Schturman 2013-08-28 16:22

Re: [Support thread] Billboard Standby Screen
 
Also, if you already used it with N9QT, you can use profilematic:
Code:

sh -c "sh /opt/N9QTweak/Secure/device_secure.sh"

Mikkosssss 2013-08-28 17:11

Re: [Support thread] Billboard Standby Screen
 
Quote:

Originally Posted by Schturman (Post 1370148)
Also, if you already used it with N9QT, you can use profilematic:
Code:

sh -c "sh /opt/N9QTweak/Secure/device_secure.sh"

Theres build in delay feature in N9 so why would I use profilematic. :p

I just make so that it shows in LPS that device is secured.

And thanks for help Slarti I think that will do. :)

Quaddy 2013-08-28 18:47

Re: [Support thread] Billboard Standby Screen
 
Quote:

Originally Posted by thp (Post 1338731)
Yes, write a Python script and use it using {script:/path/to/yourscript.py} like this:

Code:

import feedparser
f = feedparser.parse('http://example.org/feed.rss')
print f.entries[0].title


this is excellent! i have written a python script with your instructions, and it will work when i probe the script via command, eg python /home/user/rss.py, it shows the news headline output fine in the command window, but for some reason it just never displays in billboard, just blank!

what am i doing wrong? :p

Schturman 2013-08-28 19:03

Re: [Support thread] Billboard Standby Screen
 
Quote:

Originally Posted by Mikkosssss (Post 1370162)
Theres build in delay feature in N9 so why would I use profilematic. :p

I just make so that it shows in LPS that device is secured.

And thanks for help Slarti I think that will do. :)

Sorry, not understanded your question before.. :)

Mikkosssss 2013-08-28 20:17

Re: [Support thread] Billboard Standby Screen
 
Its ready now:

Code:

#!/bin/sh
#Tell if device is secured by security code

reply=$(qdbus --system com.nokia.devicelock /request com.nokia.devicelock.getState 1)
if [ "$reply" == "0" ]; then
    echo "Not Secure"
else
    echo "Secured"
fi

Is there any way to get it update faster?
Now it takes long to change to right.

Edit: Found way from this thread, will test soon. :)

Edit2: Is there good white lock icon in phone or do I need to make my own? :p

Schturman 2013-08-28 20:17

Re: [Support thread] Billboard Standby Screen
 
Noticed that billboard stoped to show my month script:
Code:

#!/bin/sh

month=$(date +%m)
echo | awk -v d=$((month)) '{split("בינואר,בפברואר,במרץ,באפריל,במאי,ביוני,ביולי,באוגוסט,בספטמבר,באוקטובר,בנובמבר,בדצמבר",a,","); printf a[d]}'

I run it like this:
Code:

{script:sh /home/user/my_month.sh}
Don't know what a reason that it stoped to work....
Any help ?
Thanks

lancewex 2013-08-28 23:50

Re: [Support thread] Billboard Standby Screen
 
I want to become more familiar with the Celsius scale. Is there a way to display Fahrenheit and Celsius temperatures at the same time with Billboard/Meecast?

Mikkosssss 2013-08-29 06:33

Re: [Support thread] Billboard Standby Screen
 
You could make script that does multiply C by 1.8, and then add 32.
Then you get F. :)


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

vBulletin® Version 3.8.8