Active Topics

 



Notices


Reply
Thread Tools
grog's Avatar
Posts: 546 | Thanked: 85 times | Joined on Feb 2008 @ Winnipeg, Canada
#251
Originally Posted by shapeshifter View Post
There already is a seperate application that does exactly this, although I never tried it. It's called ActionManager
I find that very interesting too . Finding ActionManager actually led me to Shepard, which although I haven't gotten through the whole post yet seems very kewl. Let's see where that takes us .
__________________
GROG!
N900 | ZAGG Body Armour | 16Gb A-DATA micro-sd
N810 | 2 x Patriot 8gb mini-SD | Boxwave Crystal Clear SS | Black Aluminum case | OTG dongle
N800 | 2 x 8gb OCX SD | Boxwave Anti-glare SS | PDAir book-style case
Holux M-1200 bluetooth GPS | iGo 4-row bluetooth keyboard | Linksys USB 10/100 ethernet | Plantronics Voyager 855 BT Headset
 
Posts: 167 | Thanked: 204 times | Joined on Jul 2010
#252
I've just had some problems getting this working, which seem to be down to the way that alarmed calls python. From a default install under PR1.2, alarmed crashed after 7-8 seconds of the progress indicator spinning around, and returned me to the desktop. Based on previous debug instructions, I tried to run /opt/alarmed/alarmed.py, which produced the error
Code:
Nokia-N900:~# /opt/alarmed/alarmed.py 
env: python: No such file or directory
I checked that python was indeed installed; according to dpkg it was, but no binary called 'python' to be found on the system. After some head-scratching, it turns out to be because the python binary is installed as /usr/bin/python2.5 while alarmed is looking for a binary called just python.
Code:
Nokia-N900:~# ln -sf /usr/bin/python2.5 /usr/bin/python
Nokia-N900:~# /opt/alarmed/alarmed.py 
:: Starting alarmed GUI
and it worked. :-)

You may like to consider making alarmed die with a suitable error message if it can't find the python interpreter, or making alarmed look for python2.5, or creating the symlink during installation, if exists /usr/bin/python2.5 and not /usr/bin/python.

Regards,
Keith
 
grog's Avatar
Posts: 546 | Thanked: 85 times | Joined on Feb 2008 @ Winnipeg, Canada
#253
Originally Posted by grog View Post
I find that very interesting too . Finding ActionManager actually led me to Shepard, which although I haven't gotten through the whole post yet seems very kewl. Let's see where that takes us .
While Action Manager looks promising it doesn't do much yet (just headset in/out controls). On the other hand Shepard sounds great but there's not even an app available yet . That seems to be the one to watch though. HTH
__________________
GROG!
N900 | ZAGG Body Armour | 16Gb A-DATA micro-sd
N810 | 2 x Patriot 8gb mini-SD | Boxwave Crystal Clear SS | Black Aluminum case | OTG dongle
N800 | 2 x 8gb OCX SD | Boxwave Anti-glare SS | PDAir book-style case
Holux M-1200 bluetooth GPS | iGo 4-row bluetooth keyboard | Linksys USB 10/100 ethernet | Plantronics Voyager 855 BT Headset
 
Posts: 74 | Thanked: 25 times | Joined on Jan 2010 @ Hong Kong, CHINA
#254
Originally Posted by magick777 View Post
I checked that python was indeed installed; according to dpkg it was, but no binary called 'python' to be found on the system. After some head-scratching, it turns out to be because the python binary is installed as /usr/bin/python2.5 while alarmed is looking for a binary called just python.
On my PR1.2, both /usr/bin/python and /usr/bin/python2.5 are owned (dpkg -S /usr/bin/python{,2.5}) by package python-minimal, so not sure how you got one file and not the other.
 
Posts: 167 | Thanked: 204 times | Joined on Jul 2010
#255
Originally Posted by mdengler View Post
On my PR1.2, both /usr/bin/python and /usr/bin/python2.5 are owned (dpkg -S /usr/bin/python{,2.5}) by package python-minimal, so not sure how you got one file and not the other.
This starts to look like a dependency issue in Alarmed. I installed on a virgin N900 so it would have installed (in theory) whatever python components it depends upon. On checking with dpkg, /usr/bin/python2.5 was owned by package python2.5-minimal (which was installed with alarmed), but python-minimal was not installed. I have installed it myself and Alarmed continues to work fine.

So, I'm guessing that the recent version of Alarmed moved to a dependency on package python2.5-minimal, but that that package does not provide /usr/bin/python, it provides (only) /usr/bin/python2.5. This would only show up on a virgin install to a system that didn't already have python-minimal, which would also explain why it's not a more widely reported issue.
 
Posts: 187 | Thanked: 345 times | Joined on Nov 2009
#256
Thanks for reporting this. I don't depend on any python but only python-alarm and the qt bindings I use because they will pull in wathever python they need. I guess it is best if I'll just use python2.5 then, instead of python.

I'll update the package when I get the chance...
__________________
Author of:
  • The "Alarmed" scheduling and automation app. (Supports alarms, switching profiles, resetting the GPRS counter, setting custom commands to go off, cron syntax and much more. GUI and CLI).
  • "Reaction face-off", a two-player puzzle/knowledge/reaction game.
  • "ytcli", a simple but effective command line youtube client which allows you to play videos from the CLI instantly or download videos on a queue.
 
Posts: 74 | Thanked: 25 times | Joined on Jan 2010 @ Hong Kong, CHINA
#257
Originally Posted by magick777 View Post
This starts to look like a dependency issue in Alarmed. I installed on a virgin N900 so it would have installed (in theory) whatever python components it depends upon. On checking with dpkg, /usr/bin/python2.5 was owned by package python2.5-minimal (which was installed with alarmed), but python-minimal was not installed. I have installed it myself and Alarmed continues to work fine.
That must have just changed because the information I gave was from an n900 I reflashed about two weeks ago or so.
 
kevloral's Avatar
Posts: 134 | Thanked: 247 times | Joined on Sep 2009 @ Spain, EU
#258
Originally Posted by JohnLF View Post
Also a feature request: is it possible for a little tickbox on the command execution entry that says "Run as root" ?
That would be great but, until that is implemented, you can place your commands within a script and use the suid bit to execute it as root. That is what I have done to execute the OptimizeN900 script from alarmed:

http://talk.maemo.org/showpost.php?p...7&postcount=72

Greetings.
 
Posts: 5 | Thanked: 0 times | Joined on Jun 2010
#259
How do I run Media Player with this?

I want to run Media Player as an alarm to wake up to, I can't figure out the exact command to do this.

Thanks!
 
Posts: 187 | Thanked: 345 times | Joined on Nov 2009
#260
If you care enough, You can now vote for Alarmed in the competition:
http://talk.maemo.org/showthread.php?p=764039

:-)




Originally Posted by OSiRiSNZ View Post
I want to run Media Player as an alarm to wake up to, I can't figure out the exact command to do this.
You set a new "commandline execution", and fill in
Code:
/usr/bin/mplayer "/path/to/file/where/the/music/is"
__________________
Author of:
  • The "Alarmed" scheduling and automation app. (Supports alarms, switching profiles, resetting the GPRS counter, setting custom commands to go off, cron syntax and much more. GUI and CLI).
  • "Reaction face-off", a two-player puzzle/knowledge/reaction game.
  • "ytcli", a simple but effective command line youtube client which allows you to play videos from the CLI instantly or download videos on a queue.
 
Reply


 
Forum Jump


All times are GMT. The time now is 21:33.