maemo.org - Talk

maemo.org - Talk (https://talk.maemo.org/index.php)
-   Applications (https://talk.maemo.org/forumdisplay.php?f=41)
-   -   [Announce] USbS for N9 (https://talk.maemo.org/showthread.php?t=84244)

ejasmudar 2012-05-13 10:21

[Announce] USbS for N9
 
1 Attachment(s)
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
http://i.imgur.com/L2JE2.pnghttp://i.imgur.com/iQB8E.png
http://i.imgur.com/oaUfl.jpghttp://i.imgur.com/AEyN0.jpg
http://i.imgur.com/heVNw.jpghttp://i.imgur.com/OfuBm.jpg


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.

ejasmudar 2012-05-13 10:25

Re: [Announce] USbS for N9
 
As an example of user created scripts, this is something created by P4d0uch:
http://talk.maemo.org/attachment.php...1&d=1336889015

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.

Saturn 2012-05-13 12:45

Re: [Announce] USbS for N9
 
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

Mohammed Muid 2012-05-13 12:51

Re: [Announce] USbS for N9
 
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.

P4d0uch 2012-05-13 13:13

Re: [Announce] USbS for N9
 
Quote:

Originally Posted by Mohammed Muid (Post 1206026)
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

rainisto 2012-05-13 20:07

Re: [Announce] USbS for N9
 
zip had lot of ^M dos line-endings that I had to clean out before using.

Saturn 2012-05-13 20:48

Re: [Announce] USbS for N9
 
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.

rainisto 2012-05-14 05:13

Re: [Announce] USbS for N9
 
1 Attachment(s)
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.

Dousan 2012-05-14 06:50

Re: [Announce] USbS for N9
 
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...

rainisto 2012-05-14 06:52

Re: [Announce] USbS for N9
 
Quote:

Originally Posted by Dousan (Post 1206355)

What to do, please advise.

Regards Dousan...

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


All times are GMT. The time now is 22:52.

vBulletin® Version 3.8.8