gpmartinson
|
2009-05-04
, 23:52
|
Posts: 43 |
Thanked: 6 times |
Joined on Feb 2009
@ Saint Paul, mn
|
#21
|
|
2009-05-05
, 01:14
|
|
Posts: 229 |
Thanked: 108 times |
Joined on Oct 2007
@ Sacramento, California
|
#22
|
Code:#!/bin/sh if [ -r /etc/osso-af-init/af-defines.sh ]; then source /etc/osso-af-init/af-defines.sh fi if [ -x /usr/bin/dbus-send -a -x /usr/bin/gtk-update-icon-cache ]; then dbus-send --type=method_call --dest=org.freedesktop.Notifications /org/freedesktop/Notifications org.freedesktop.Notifications.SystemNoteInfoprint string:"Updating icon cache" || true fi if [ -x /usr/bin/gtk-update-icon-cache ]; then gtk-update-icon-cache -f /usr/share/icons/hicolor || true fi
Maintaining cross-platform compatibility is always cool, but just remember that you're probably missing out on some of the great features of the tablets. That being said, it's entirely possible to write an app that takes advantage of things like power savings, alarmD etc AND still functions normally on other OS's, you just have to be really cautious in your coding that's all.
1) Power management is IMPORTANT. Don't overlook this; don't ignore it; don't pretend that on a tablet it won't matter. Any app that has a clock and alarm functionality should either A) implement power management or B) make sure the user is aware of the possibility that the tablet will run out of juice if left on battery only over night with the app running. The first version of FC that we had drained a full battery in about 5-6 hours; the most recent version I've left running on my tablet for about 4-5 days without noticing any significant change in load between having the app on and not having anything running... this makes a big difference esp. when travelling or having alarms/etc.
2) AlarmD is your friend on the tablets. You don't have to rely on it, and for cross-platform compatibility you can always just have a little option to detect if it's there and do things normally if it's missing (I've got a config setting in FC for this, but detection will be in the next version); but it does give you some pretty awesome advantages; namely helps with the power consumption thing, and lets your app auto launch at alarm times.
|
2009-05-05
, 01:15
|
|
Posts: 229 |
Thanked: 108 times |
Joined on Oct 2007
@ Sacramento, California
|
#23
|
If you are talking about the application icon on the Navigation Bar, Task Switcher, etc. then you can add this line to the postinst script:
...and that will update the cache.Code:gtk-update-icon-cache -f /usr/share/icons/hicolor/
|
2009-05-05
, 01:21
|
|
Posts: 229 |
Thanked: 108 times |
Joined on Oct 2007
@ Sacramento, California
|
#24
|
Wowww.. Nice and polished app. I am all set to grab it as soon as the fix is available for directory structure.
Something to think about to be added at a later point (feature request) If you can find sounds of ocean, rain, forest, white noise, birds, then you can have option to play that sound whenever you go to sleep at a press of a button. A device for which people pay $$ to get it in store. something similar to http://www.brookstone.com/store/prod...ry&prodtemp=t2
|
2009-05-05
, 01:25
|
|
Posts: 229 |
Thanked: 108 times |
Joined on Oct 2007
@ Sacramento, California
|
#25
|
Munk, with latest deb I get an icon in extras and a splash screen but then the splash screen disappears and no program has been opened. (And I'd rebooted before trying to launch the program.)
exec python2.5 -O /usr/share/traveller/traveller.pyc
|
2009-05-05
, 01:50
|
|
Posts: 229 |
Thanked: 108 times |
Joined on Oct 2007
@ Sacramento, California
|
#26
|
People have discussed this before, and I agree that the most interesting part of this app to me is the "Atmosphere" section. I'm curious to see how many sounds it has and how straightforward it will be to add new sounds (it looks pretty straightforward).
|
2009-05-05
, 01:54
|
|
Posts: 229 |
Thanked: 108 times |
Joined on Oct 2007
@ Sacramento, California
|
#27
|
This looks great! I have waited so long for a good alarm clock for my n800, this seems to be it! I just installed the new .deb and all went fine, installation of the waves was easy, too.
A silly questions, though: How do I change the location to a European one? The location code taken from Accuweather.com looks like this: EUR|DE|GM011|DORTMUND. Am I missing the numeral code?
And a feature request, one that Maemo hasn't implemented to this day: Will I be able to choose a sound file AND THE VOLUME of the alam in a future version of Traveller? Maemo alarms blast so loud they distort my soundfiles!
The Following User Says Thank You to Munk For This Useful Post: | ||
|
2009-05-05
, 02:00
|
|
Posts: 229 |
Thanked: 108 times |
Joined on Oct 2007
@ Sacramento, California
|
#28
|
now I have it installed, but alas. Launching it slows the n800 down but no traveller appears. Still really interested. It would make a nice alarm clock.
|
2009-05-05
, 04:13
|
Posts: 1,950 |
Thanked: 1,174 times |
Joined on Jan 2008
@ Seattle, USA
|
#29
|
Oh boy, I'm not sure why this has happened. Could you try to launch it directly from xterminal and see if it gives you any kind of error messages?
To do this, you would start up xterminal and type:
Let me know what error message you get.
|
2009-05-05
, 05:31
|
|
Posts: 229 |
Thanked: 108 times |
Joined on Oct 2007
@ Sacramento, California
|
#30
|
python2.5: can't open file '/usr/share/traveller/traveller.pyc': [Errno 2] No such file or directory
It hasn't mattered for anything else yet, but I'm stuck in maemo version 4.2008.23-14 (result of installing Screen Rotation) rather than in the latest (43-7 or whatever it is); I doubt that's the problem, but I thought maybe it's worth mentioning if my problem isn't common.
Also, I checked and I don't have libxml2 in installed apps; but it also doesn't show up in installable apps, even though I have maemo Extras enabled. (I haven't checked installable apps in Red Pill Mode.)
Tags |
atmosphere, horoscope, python, traveller, weather |
|