Notification for Iphone

Introduce home automation related software here.....

Notification for Iphone

Postby Bjochems » Thu Sep 17, 2009 8:22 am

<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 :-)
User avatar
Bjochems
Member
Member
 
Posts: 179
Joined: June 2008
Location: Netherlands

Notification for Iphone

Postby Lennart » Thu Sep 17, 2009 9:33 am

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
Lennart
Member
Member
 
Posts: 497
Joined: July 2006
Location: Netherlands

Notification for Iphone

Postby Bjochems » Thu Sep 17, 2009 10:10 am

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
User avatar
Bjochems
Member
Member
 
Posts: 179
Joined: June 2008
Location: Netherlands

Notification for Iphone

Postby TANE » Thu Sep 17, 2009 10:30 am

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%20Domotica%20Log%20www.tane.nl/domotica/hardware.html<i> My Domotica Hardware Software</i></font id="size1">
User avatar
TANE
Forum Moderator
Forum Moderator
 
Posts: 4806
Joined: April 2007
Location: Netherlands

Notification for Iphone

Postby Snelvuur » Thu Sep 17, 2009 10:34 am

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)
User avatar
Snelvuur
Forum Moderator
Forum Moderator
 
Posts: 3155
Joined: April 2007
Location: Netherlands

Notification for Iphone

Postby TANE » Thu Sep 17, 2009 10:37 am

delivery time via mail is less than 3 seconds.



<hr noshade size="1"><font size="1">Enver
http://twitter.com/Chak64%20My%20Domotica%20Log%20www.tane.nl/domotica/hardware.html<i> My Domotica Hardware Software</i></font id="size1">
User avatar
TANE
Forum Moderator
Forum Moderator
 
Posts: 4806
Joined: April 2007
Location: Netherlands

Notification for Iphone

Postby Snelvuur » Thu Sep 17, 2009 10:50 am

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)
User avatar
Snelvuur
Forum Moderator
Forum Moderator
 
Posts: 3155
Joined: April 2007
Location: Netherlands

Notification for Iphone

Postby Lennart » Fri Sep 18, 2009 7:54 pm

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
Lennart
Member
Member
 
Posts: 497
Joined: July 2006
Location: Netherlands

Previous

Return to Announcements & News

Who is online

Users browsing this forum: No registered users and 1 guest