Notices


Reply
Thread Tools
ejasmudar's Avatar
Posts: 800 | Thanked: 955 times | Joined on Sep 2010 @ India
#1
Background
I've been waiting for long for LPSMagic 2.0 with plugin system and there seems to be very less news on that. So tired of waiting, I've rewritten my old LockScreenQuotes app from the groud up with a modular structure. I have been struggling with packaging this for the past one week to no avail. So now, I am releasing this app with a simple installation script.

Now onto the app

What is USbS?
The app is named USbS (Useful Standby Screen). It can display the output of any script placed in /home/user/USbS/Scripts/ on the LowPower Screen (when the device is sleeping). It works somewhat like a single widget of QBW on the n900 (albeit not as advanced!).

PREREQUISITE
1. The device must be in developer mode.
2. Operator logo must be enabled (follow this post)

Installation
1. Unzip the attached file to your N9.
2. Open terminal and cd to wherever you've unzipped the file (eg: cd /home/user/MyDocs/usbs)
3. Enter in terminal:
Code:
sh install.sh
4. Enter root password when prompted


CONFIGURING
Out of the box, I've included 4 scripts- random_line.sh, daydate.sh, weather.sh and iplresults.sh (the first 3 were written for this app, while the last was taken directly from a script I made fr Queen Beecon Widget on my N900 during the cricket world cup)

For configuration, a new menu item will be available under Settings>Applications>USbS. This is where the behaviour of the app can be controlled.

The following are sample values that can be used in the settings panel

Code:
Plugin Name: random_line.sh
Color Name: white
Time Interval: any one
Random File Name: Scripts/tagline.txt
Location: any one, eg London
You can change these values as required.


RUNNING
You can run the app by typing USbS.sh into the terminal. Right now, I've made it not run on boot or run silently. This is so that bugs can be caught and identified. This means that the terminal must not be closed while running the app. (However, if required, it can be run silently by entering "USbS.sh &")



SCREENSHOTS





FEATURES PLANNED FOR FUTURE
  • Image Rendering
  • Running Multiple Scripts at once, one below the other.
  • More flexible refresh timing options

If you've created a script to show some info on the screen with this app, please post it here for others also.

Do let me know what you think.
Attached Files
File Type: zip USbS_Installation.zip (439.3 KB, 689 views)
__________________
My Device History:Nokia 3510 > SE T230 > Nokia 6600 > HP2210 > SE p910i > SE p990i > N95 > I-mate 9502 > itouch > Nokia N900 > ? N9
My apps for N900:
Conversation Modder

My apps for N9:
LockScreenQuotes
USbS


If you feel I have helped you, don't forget to press Thanks!

Last edited by ejasmudar; 2012-05-13 at 11:48.
 

The Following 33 Users Say Thank You to ejasmudar For This Useful Post:
ejasmudar's Avatar
Posts: 800 | Thanked: 955 times | Joined on Sep 2010 @ India
#2
As an example of user created scripts, this is something created by P4d0uch:


from this post: http://talk.maemo.org/showpost.php?p...1&postcount=49

As you can see, he has created a script that shows a lot more info about the device on the screen.
__________________
My Device History:Nokia 3510 > SE T230 > Nokia 6600 > HP2210 > SE p910i > SE p990i > N95 > I-mate 9502 > itouch > Nokia N900 > ? N9
My apps for N900:
Conversation Modder

My apps for N9:
LockScreenQuotes
USbS


If you feel I have helped you, don't forget to press Thanks!
 

The Following 5 Users Say Thank You to ejasmudar For This Useful Post:
Saturn's Avatar
Posts: 1,592 | Thanked: 1,937 times | Joined on Mar 2007 @ UNKLE's Never Never Land
#3
Hi ejasmudar,

Thanks for sharing your work. I've noticed you're using a sleep command to update the screen and this is not ideal for power consumption. If it helps you to improve it in a future version here is info on the recommended way:
http://harmattan-dev.nokia.com/docs/...heartbeat.html

cheers
 

The Following 5 Users Say Thank You to Saturn For This Useful Post:
Posts: 372 | Thanked: 58 times | Joined on Jan 2012
#4
can this be implemented on the N900. since we have no good app for showing barclays premier league or smthng like that. we can use this to show the scores. may be some quotes like the screenshot. or weather etc. it would be great.
 
Posts: 51 | Thanked: 32 times | Joined on Dec 2010
#5
Originally Posted by Mohammed Muid View Post
can this be implemented on the N900. since we have no good app for showing barclays premier league or smthng like that. we can use this to show the scores. may be some quotes like the screenshot. or weather etc. it would be great.
on n900 you can use this http://talk.maemo.org/showthread.php?t=75150
 

The Following User Says Thank You to P4d0uch For This Useful Post:
Posts: 1,014 | Thanked: 2,154 times | Joined on Jan 2012 @ Finland
#6
zip had lot of ^M dos line-endings that I had to clean out before using.
 

The Following User Says Thank You to rainisto For This Useful Post:
Saturn's Avatar
Posts: 1,592 | Thanked: 1,937 times | Joined on Mar 2007 @ UNKLE's Never Never Land
#7
A couple more things:

- in the imager.py, the line "#!/usr/bin/python" needs to be the first line. Then you will be also able to invoke it directly.
- in the main.sh, line 23 is not needed.
 

The Following 2 Users Say Thank You to Saturn For This Useful Post:
Posts: 1,014 | Thanked: 2,154 times | Joined on Jan 2012 @ Finland
#8
Here is the screenshot of custom modification that I did. Shows date, weather, all the active interfaces ip numbers, and battery status and battery consumption and charging mA's.
Attached Images
 

Last edited by rainisto; 2012-05-14 at 05:18.
 

The Following 3 Users Say Thank You to rainisto For This Useful Post:
Dousan's Avatar
Posts: 1,095 | Thanked: 1,408 times | Joined on Jan 2010 @ Denmark
#9
Hi...

I've tried installing it manually (per other thread you posted it in) and with the install.sh from this thread, but no dice, it won't start when writing
*USbS.sh*
I get this

Code:
Installation over. If successful, you can runthe app by entering the command USbS.sh.

~/MyDocs/USbS $ USbS.sh
-/bin/sh: USbS.sh: not found
~/MyDocs/USbS $


What to do, please advise.

Regards Dousan...
__________________
We do not see things as they are; we see things as we are...
My Procreate art:
http://procreate.si/forums/index.php?topic=407.0
My S°ciety6:
http://society6.com/Dousan
My Tumblr:
http://dousan.tumblr.com
 

The Following User Says Thank You to Dousan For This Useful Post:
Posts: 1,014 | Thanked: 2,154 times | Joined on Jan 2012 @ Finland
#10
Originally Posted by Dousan View Post

What to do, please advise.

Regards Dousan...
look at answer #6 and edit the files with vi.
 

The Following 2 Users Say Thank You to rainisto For This Useful Post:
Reply

Tags
harmattan, lowpowerscreen

Thread Tools

 
Forum Jump


All times are GMT. The time now is 00:11.