Barionet can push notifications and alarms to iOS devices (iPhone)

A Barionet is a great product to monitor environmental parameters, power useage, contact closures etc.

If the Barionet detects an alarm condition, it will need to notify you. But how?

Sample code for sending email, operating a SMS modem etc is already available from us.

Here is a very nice method to do this via the popular iPhone by using an application called “prowl”. The Prowl makers operate a public server and manage the delivery to the iPhone/iPad/iPod touch “prowl” app via the standard iOS notification scheme (so, very little consumption of power/bandwith on the iOS device).
You need to purchase the prowl app from the app store ($2.99), register and generate an API key on the prowlapp website, and you are good to go!

On the Barionet, you will need a small application which
– opens a TCP connection to the prowl api server, api.prowlapp.com, port 80 (http)
– sends an “add” command with a meaningful notification message to the server (see example below)
– close the connection.

That’s it!
The alarm message will arrive within very short time at your iPhone, where you can configure quiet times, alarm tones etc.

here is an example for a string you would need to send (replace the xxxxx… with the API code you get from the website):

“GET /publicapi/add?apikey=xxxxxxxxxxxxxxxxxxxxxxxxxxxxxx&event=alarm%20temp%3e65F%20too%20high&application=fridge HTTP/1.0” (plus 2x CR/LF)

Note: you will need to do the URL encoding (%20 for space etc) in your program if your message contains blanks or special characters.

We can provide a sample BCL program on request.

Johannes

P.S: Once you have implemented this, let us know so we can feature your application!

Comments are closed.