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!

Barionet can tweet alarms via Twitter
icon4 07 6th, 2010| icon3Comments Off

What if …

the Barionet, the IP Automation device from Barix, would tweet ?

This is quite simple to achieve. We have sample BCL code, which allows you to do just that. Being it contact closures or temp sensors, these can be monitored, and in case of out-of bound data, the Barionet can directly talk to the twitter servers and “tweet” an alarm message.

Contact us for the source code (and beware, it’s sample code ..)

Johannes