Page 2 of 2

Notification for Iphone

Posted: Thu Sep 17, 2009 9:22 am
by Bjochems
<blockquote id="quote"><font size="1" face="Verdana, Arial, Helvetica" id="quote">quote:<hr height="1" noshade id="quote"><i>Originally posted by lennart</i>

2) I couldn't get the PHP CURL example to work, as is (of course putting in my own credentials).

<hr height="1" noshade id="quote"></font id="quote"></blockquote id="quote">

I use a normal HTTP POST. Did you changed the credentials key that is displayed in the PHP CURL example? Then it won't work. The credentials key in the example is actually your own personal api key.

So you have one key for the email interface and another credentials key for the HTTP API.

I also use Prowl, but I think I will stop using it because this API has much more options, like sounds and using links in de notification dialog.

During testing I found out some new sounds. Especially 6.caf :-)

Notification for Iphone

Posted: Thu Sep 17, 2009 10:33 am
by Lennart
Thanks Bas, I indeed replaced the credentials in the example by my e-mail credentials, so I guess that will be the problem... I will test this tonight.

Are you also experiencing the problem of not receiving notifications if you don't have them forwarded by e-mail to your registered e-mail address?

Thanks,

Lennart

Notification for Iphone

Posted: Thu Sep 17, 2009 11:10 am
by Bjochems
No I do not have that problem, when I'm sending an email to my personal address I receive the notification on my phone and I do not receive a copy at my registered e-mail address. I have unchecked both checkboxes at the Mail notification settings page.

But I mostly use the API interface and then the messages are also not being forwarded to your e-mail address. Plus when using the API the notification message is not starting with "Mail: ...".

Hope this helps.

Bas

Notification for Iphone

Posted: Thu Sep 17, 2009 11:30 am
by TANE
I'm also receiving the mail in my mailbox.
Message is via filtering directly send to deleted items.
This is okay for me...if there are any problems I can still see the message in my deleted items.


<hr noshade size="1"><font size="1">Enver
http://twitter.com/Chak64%20My%20Domoti ... dware.html<i> My Domotica Hardware Software</i></font id="size1">

Notification for Iphone

Posted: Thu Sep 17, 2009 11:34 am
by Snelvuur
Only good thing about email towards http, if for some reason your internet is down, your mail daemon will retry every xx amount .. http calls dont do that, if they fail.. no retry's later. (although i would believe http calls would be faster)

// Erik (binkey.nl)

Notification for Iphone

Posted: Thu Sep 17, 2009 11:37 am
by TANE
delivery time via mail is less than 3 seconds.



<hr noshade size="1"><font size="1">Enver
http://twitter.com/Chak64%20My%20Domoti ... dware.html<i> My Domotica Hardware Software</i></font id="size1">

Notification for Iphone

Posted: Thu Sep 17, 2009 11:50 am
by Snelvuur
unacceptable! :-)

but thats bloody fast though, compared to a sms, which in ideal conditions take a bit longer i think (send to service, then to provider, provider to base station bla bla)

// Erik (binkey.nl)

Notification for Iphone

Posted: Fri Sep 18, 2009 8:54 pm
by Lennart
Ok, it finally worked for me using the API (through the PHP CURL interface). I had several issues:

1) The user credentials you need for the API are different from the email key, as Bas kindly pointed out. Take the one in the REST examples on the AppNotification site.

2) If you're using PHP and the PHP curl extension on win32, make sure you install ssleay32.dll and libeay32.dll into your path. You can download all CURL stuff from http://curl.haxx.se/ if needed.

3) The PHP example from the REST examples page might give an SSL certificate error (use print curl_error($ch); to find out the errors). Add the following line before the curl_exec($ch); to solve the problem:

curl_setopt($ch, CURLOPT_SSL_VERIFYPEER, false);

(Note: this will stop checking the certificate and is therefore not secure.)

If you want to use the API and don't want to take the PHP route, you might also download a curl.exe from http://curl.haxx.se/ which you could call from Homeseer with the right parameters.

Anyway, it now works as a charm, without generating unwanted e-mail.

Lennart