Xymon Mailing List Archive search

Hobbit to IPPhone Beta

list Josh Luthman
Wed, 26 Mar 2008 18:09:51 -0400
Message-Id: <user-ea2d17c59a97@xymon.invalid>

our $IPPHONE = "172.16.0.152";
our $USER = '9375522343';
our $PASSWORD = 'joshisthebestpersonintheworld';
our $display_colors="yellow,red";
our $showgreen=1;
our $BBDISPLAY="bbserver.imaginenetworksllc.com";
our $BB="/home/shire/server/bin/bb";
our $CGI_HOST="74.218.x.x";
our $CGI_URL="http://$CGI_HOST/perl/hobbit.cgi";;
our $refresh_timer=0;
our $alert_sound="ring6.raw";
our $play_alert=1;

Does this configuration look right?  I execute it at the prompt as the cron
job would and I don't get anything on my phone =(


On Wed, Mar 26, 2008 at 5:35 PM, Asif Iqbal <user-6f4b51ac2a40@xymon.invalid> wrote:
On Wed, Mar 26, 2008 at 6:27 AM, Detlef Stracke
<user-89dde35a4903@xymon.invalid> wrote:
 Hi Charles,

 if I execute "execute_push", then I get this Error:

 <CiscoIPPhoneError Number="6" />
I am getting the exact same error too
 Authorization seems to be ok.


 -----Ursprüngliche Nachricht-----
 Von: Charles Jones [mailto:user-e86b4aeade4e@xymon.invalid]
 Gesendet: Freitag, 21. März 2008 22:29
 An: user-ae9b8668bcde@xymon.invalid
 Betreff: Re: [hobbit] Hobbit to IPPhone Beta


 Charles Jones wrote:
I've posted a beta of Hobbit2IPPhone here:
http://www.the-ownage.com/?p=620

This is a stable beta, I'm currently using it daily. There is still
lots of work I need to do to make a real portable release, and a
"services" version as well.

Enjoy!

-Charles
 I just realized that I forgot to mention in the "docs" at the top of
the
 program that for this to work properly, you should run it out of cron
 every minute, ie:

 $ crontab -l
 * * * * * /var/www/perl/hobbit.cgi

 You can run it from command-line manually for testing purposes.
 Explanation of why it is run this way...You cannot just "push" XML to
an
 IPPhone to create menus and such. However, you can push a bit of XML
 that instructs the phone to fetch a remote CGI, and that remote CGI can
 have the XML for menus and such. In other words, the phone will only
act
 on code that IT fetches itself. The only thing you can push to it in
one
 action is the command to execute a remote CGI.

 So, when hobbit.cgi is run from command-line (or cron), it does the
 initial authentication to the IPPhone, and tells it to execute a remote
 CGI, which happens to be the same hobbit.cgi program, except it passes
 along some parameters that tell it to do the Hobbit stuff.

 I know that is kind of confusing...its basically a cgi and command-line
 program all in one.  If run from the command-line, it tells the phone
to
 fetch it via http along with parameters that make it act like a web CGI
 instead.

 Anyhow running it out of cron every minute is the best way to keep it
 running. I am experimenting with using meta-refresh instead, but so far
 I don't like that, because if you exit the hobbit menu, it stops
 refreshing and you have to kick it off again manually.

 Ahh..the fun of beta software :)

 
--
Asif Iqbal
PGP Key: 0xE62693C5 KeyServer: pgp.mit.edu
-- 
Josh Luthman
Office: XXX-XXX-XXXX
Direct: XXX-XXX-XXXX
XXXX Wayne St
Suite XXXX
Troy, OH XXXXX

Those who don't understand UNIX are condemned to reinvent it, poorly.
--- Henry Spencer