maemo.org - Talk

maemo.org - Talk (https://talk.maemo.org/index.php)
-   Applications (https://talk.maemo.org/forumdisplay.php?f=41)
-   -   [Announce] "Alarmed" scheduling App (supports automatic GPRS data counter resetting) (https://talk.maemo.org/showthread.php?t=46594)

grog 2010-07-13 14:47

Re: [Announce] "Alarmed" scheduling App (supports automatic GPRS data counter resetting)
 
Quote:

Originally Posted by shapeshifter (Post 750365)
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 :).

magick777 2010-07-15 15:14

Re: [Announce] "Alarmed" scheduling App (supports automatic GPRS data counter resetting)
 
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 2010-07-15 15:19

Re: [Announce] "Alarmed" scheduling App (supports automatic GPRS data counter resetting)
 
Quote:

Originally Posted by grog (Post 750394)
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

mdengler 2010-07-15 17:45

Re: [Announce] "Alarmed" scheduling App (supports automatic GPRS data counter resetting)
 
Quote:

Originally Posted by magick777 (Post 752911)
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.

magick777 2010-07-16 11:48

Re: [Announce] "Alarmed" scheduling App (supports automatic GPRS data counter resetting)
 
Quote:

Originally Posted by mdengler (Post 753052)
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.

shapeshifter 2010-07-16 12:32

Re: [Announce] "Alarmed" scheduling App (supports automatic GPRS data counter resetting)
 
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...

mdengler 2010-07-16 16:45

Re: [Announce] "Alarmed" scheduling App (supports automatic GPRS data counter resetting)
 
Quote:

Originally Posted by magick777 (Post 753811)
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 2010-07-22 16:35

Re: [Announce] "Alarmed" scheduling App (supports automatic GPRS data counter resetting)
 
Quote:

Originally Posted by JohnLF (Post 569845)
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.

OSiRiSNZ 2010-07-25 15:02

Re: [Announce] "Alarmed" scheduling App (supports automatic GPRS data counter resetting)
 
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!

shapeshifter 2010-07-25 15:33

Re: [Announce] "Alarmed" scheduling App (supports automatic GPRS data counter resetting)
 
If you care enough, You can now vote for Alarmed in the competition:
http://talk.maemo.org/showthread.php?p=764039

:-)




Quote:

Originally Posted by OSiRiSNZ (Post 764165)
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"


All times are GMT. The time now is 23:15.

vBulletin® Version 3.8.8