AlertMe API version? Still v2?

Extending the system, interesting uses and API twiddling.
Post Reply
kit
Posts: 3
Joined: Tue Feb 07, 2012 7:20 pm

AlertMe API version? Still v2?

Post by kit » Tue Feb 07, 2012 7:37 pm

Wow, it's been a while since I've checked out AM and I've noticed what they meant by 'forum updates' translated to 'removal of posts due to too many complaints' (how I saw it anyway).

Regardless, on topic: any one know if there is a newer version of the web API? I've been using version 2 (which is relatively ancient: https://api.alertme.com/webapi/v2) and have no idea what the AM guys are doing/care about third-party development. The reason is I've found a bug lately with one of the functions due to the colder weather: getDeviceChannel fails to report negative temperatures (whereas getAllDeviceChannelValues does cope.)
AlertMe for Android - a simple AlertMe interface:
http://darkgoddess.org/projects/android/alertme/latest/ (for the latest apk)

phil4
Posts: 34
Joined: Fri Nov 25, 2011 11:27 pm
Location: Oxfordshire
Contact:

Re: AlertMe API version? Still v2?

Post by phil4 » Wed Feb 08, 2012 8:39 am

Hi, nothing I ever saw saying there was any later version. In fact practically nothing at all about the API whatsoever.

User avatar
roobarb!
Site Admin
Posts: 225
Joined: Mon Nov 21, 2011 4:56 pm
Location: Manchester, UK
Contact:

Re: AlertMe API version? Still v2?

Post by roobarb! » Thu Feb 09, 2012 9:50 pm

kit wrote:Regardless, on topic: any one know if there is a newer version of the web API? I've been using version 2 (which is relatively ancient: https://api.alertme.com/webapi/v2) and have no idea what the AM guys are doing/care about third-party development. The reason is I've found a bug lately with one of the functions due to the colder weather: getDeviceChannel fails to report negative temperatures (whereas getAllDeviceChannelValues does cope.)
There was a v2.02, the PDF for which I've just linked to. That's dated 7th May 2009 and I believe that's the last revision.

But you have just answered something that's been bugging me - I knew getDeviceChannel fails on negative temps, but I never knew that getAllDeviceChannelValues actually worked. I've been promising I'd update the perl script one day... when that day finally rolls around, I'll incorporate that. Because I doubt there'll be a fix. ;)
Alerty - you could control your AlertMe system with my third-party app for iPhone and iPod Touch. Used to be available on iTunes!

kit
Posts: 3
Joined: Tue Feb 07, 2012 7:20 pm

Re: AlertMe API version? Still v2?

Post by kit » Fri Apr 13, 2012 12:54 pm

@phil4: I think I poked around the source/assets for the web interface and found that the API version was something like > 5

@roobarb: Thanks for the link - that date sounds like the last time they did seem to care about things (you know, before joining the eco/energy/green-is-so-hot-right-now bandwagon.)

Nothing like having fingers crossed and testing all the possible device-related functions in the hopes of finding something that *does* work..

So you are the face behind http://code.google.com/p/alertmepi/ ? Thanks for that - it helped with writing my app :)
AlertMe for Android - a simple AlertMe interface:
http://darkgoddess.org/projects/android/alertme/latest/ (for the latest apk)

User avatar
roobarb!
Site Admin
Posts: 225
Joined: Mon Nov 21, 2011 4:56 pm
Location: Manchester, UK
Contact:

Re: AlertMe API version? Still v2?

Post by roobarb! » Fri Apr 13, 2012 11:22 pm

kit wrote:So you are the face behind http://code.google.com/p/alertmepi/ ? Thanks for that - it helped with writing my app :)
Yup, that's me. I almost uploaded an update yesterday - but then realised I broke more than I fixed. One day! :)
Alerty - you could control your AlertMe system with my third-party app for iPhone and iPod Touch. Used to be available on iTunes!

User avatar
roobarb!
Site Admin
Posts: 225
Joined: Mon Nov 21, 2011 4:56 pm
Location: Manchester, UK
Contact:

Re: AlertMe API version? Still v2?

Post by roobarb! » Mon Feb 18, 2013 2:30 pm

Thread resurrection; I have just discovered that there is indeed a new API - or at least, it's newer than the one I knew about previously. I haven't tested it yet, but the documentation is here:

https://api.alertme.com/v5/docs/

A great project which uploads energy data to the PlotWatt service is alertme2plotwatt and the API works with the Energy-only system as well as the Monitoring system.
Alerty - you could control your AlertMe system with my third-party app for iPhone and iPod Touch. Used to be available on iTunes!

User avatar
roobarb!
Site Admin
Posts: 225
Joined: Mon Nov 21, 2011 4:56 pm
Location: Manchester, UK
Contact:

Re: AlertMe API version? Still v2?

Post by roobarb! » Tue Feb 19, 2013 10:49 am

roobarb! wrote:I haven't tested it yet...
I have now tested it. It works really well. :)

Rather than trying to repeat my efforts with the AlertMePI script, I think I'll post a bare-bones script for v5 that covers the basics of getting authenticated. The API v5 documentation is really good, so once you've got one function working, it's really just a case of tweaking the URI path to match the details the API requires and pow! Results come out!

I had started a rewrite in Python of AlertMePI (as I much prefer Python to Perl these days), but I will upload the latest version of that for people to tweak. It has all of the basics using API v2, so it may well be useful to someone.
Alerty - you could control your AlertMe system with my third-party app for iPhone and iPod Touch. Used to be available on iTunes!

kit
Posts: 3
Joined: Tue Feb 07, 2012 7:20 pm

Re: AlertMe API version? Still v2?

Post by kit » Sat Mar 09, 2013 10:41 pm

roobarb! wrote: have now tested it. It works really well. :)
Bugger, looks like I can't put off an app update to next year then ;)

Thanks for the API link - hope they update that status 'draft' to 'current' some time while we're still young..
AlertMe for Android - a simple AlertMe interface:
http://darkgoddess.org/projects/android/alertme/latest/ (for the latest apk)

gadgethome
Posts: 11
Joined: Thu May 09, 2013 12:00 pm

Re: AlertMe API version? Still v2?

Post by gadgethome » Thu May 09, 2013 12:03 pm

roobarb! wrote:
roobarb! wrote:I haven't tested it yet...
I have now tested it. It works really well. :)

Rather than trying to repeat my efforts with the AlertMePI script, I think I'll post a bare-bones script for v5 that covers the basics of getting authenticated. The API v5 documentation is really good, so once you've got one function working, it's really just a case of tweaking the URI path to match the details the API requires and pow! Results come out!

I had started a rewrite in Python of AlertMePI (as I much prefer Python to Perl these days), but I will upload the latest version of that for people to tweak. It has all of the basics using API v2, so it may well be useful to someone.
Hi, Just wondered when you think the python module would be available? I'm interested in testing on my Raspberry Pi.

Thanks

User avatar
roobarb!
Site Admin
Posts: 225
Joined: Mon Nov 21, 2011 4:56 pm
Location: Manchester, UK
Contact:

Re: AlertMe API version? Still v2?

Post by roobarb! » Fri May 10, 2013 10:56 am

gadgethome wrote:Hi, Just wondered when you think the python module would be available? I'm interested in testing on my Raspberry Pi.
It's up on Github if you'd like to have a play with it:

https://github.com/birdslikewires/AlertMePy

There's some documentation and I think everything works as advertised!

Please post back and let us know how you get on with it. I wrote it with little devices like the Pi in mind, but I'm now messing around in Objective-C and not been back to do anything useful with it as yet.
Alerty - you could control your AlertMe system with my third-party app for iPhone and iPod Touch. Used to be available on iTunes!

User avatar
APrettyBee
Posts: 5
Joined: Mon May 20, 2013 10:44 pm
Location: Hartlepool
Contact:

Re: AlertMe API version? Still v2?

Post by APrettyBee » Mon May 20, 2013 10:50 pm

For anyone interested in getting started with php and the V5 API, have a look here http://www.peterbatey.com/articles/alertme-api.html

User avatar
roobarb!
Site Admin
Posts: 225
Joined: Mon Nov 21, 2011 4:56 pm
Location: Manchester, UK
Contact:

Re: AlertMe API version? Still v2?

Post by roobarb! » Wed May 29, 2013 4:29 pm

APrettyBee wrote:For anyone interested in getting started with php and the V5 API, have a look here http://www.peterbatey.com/articles/alertme-api.html
That's great stuff. I was going to start looking at baking some AlertMe stuff into a site and this has really saved me some time!
Alerty - you could control your AlertMe system with my third-party app for iPhone and iPod Touch. Used to be available on iTunes!

User avatar
APrettyBee
Posts: 5
Joined: Mon May 20, 2013 10:44 pm
Location: Hartlepool
Contact:

Re: AlertMe API version? Still v2?

Post by APrettyBee » Thu May 30, 2013 10:51 pm

Happy to help! I've also got a java implementation if there's any interest.

User avatar
roobarb!
Site Admin
Posts: 225
Joined: Mon Nov 21, 2011 4:56 pm
Location: Manchester, UK
Contact:

Re: AlertMe API version? Still v2?

Post by roobarb! » Fri May 31, 2013 1:54 pm

APrettyBee wrote:Happy to help! I've also got a java implementation if there's any interest.
Fancy! :)

Just a quick question - with API v5, do you have any problems with the 'caller' parameter? No matter what I do, my caller property never shows up in the logs. All I get instead is 'disarmed from the api' and never the actual name. :roll:
Alerty - you could control your AlertMe system with my third-party app for iPhone and iPod Touch. Used to be available on iTunes!

User avatar
APrettyBee
Posts: 5
Joined: Mon May 20, 2013 10:44 pm
Location: Hartlepool
Contact:

Re: AlertMe API version? Still v2?

Post by APrettyBee » Mon Jun 03, 2013 12:52 pm

Hmm. I don't have any devices that log anything - so I can't see. The implementation is as per the API doc, so it should work.

User avatar
roobarb!
Site Admin
Posts: 225
Joined: Mon Nov 21, 2011 4:56 pm
Location: Manchester, UK
Contact:

Re: AlertMe API version? Still v2?

Post by roobarb! » Mon Jun 03, 2013 2:46 pm

APrettyBee wrote:Hmm. I don't have any devices that log anything - so I can't see. The implementation is as per the API doc, so it should work.
Sorry, I should have been a little clearer in that I don't blame your code - I've got a method in C that's written in precisely the same way, as per the docs, but it still just shows 'from the api'! ;)
Alerty - you could control your AlertMe system with my third-party app for iPhone and iPod Touch. Used to be available on iTunes!

User avatar
APrettyBee
Posts: 5
Joined: Mon May 20, 2013 10:44 pm
Location: Hartlepool
Contact:

Re: AlertMe API version? Still v2?

Post by APrettyBee » Tue Jun 04, 2013 10:29 am

Draft API.... There's probably a few of these nuances in there.

djh
Posts: 2
Joined: Wed Feb 13, 2013 11:19 am

Re: AlertMe API version? Still v2?

Post by djh » Tue Jun 04, 2013 2:23 pm

roobarb! wrote:Thread resurrection; I have just discovered that there is indeed a new API - or at least, it's newer than the one I knew about previously. I haven't tested it yet, but the documentation is here:

https://api.alertme.com/v5/docs/
Thanks for the pointer to the latest APIs, very useful indeed.

It might also go some way to explain why the 'History' section of https://mobile.alertme.com/ doesn't work (it just returns "Array").

The API docs linked above are blank when you click on Devices -> Events, so I guess they never got around to implementing them!

User avatar
roobarb!
Site Admin
Posts: 225
Joined: Mon Nov 21, 2011 4:56 pm
Location: Manchester, UK
Contact:

Re: AlertMe API version? Still v2?

Post by roobarb! » Tue Jun 04, 2013 5:33 pm

APrettyBee wrote:Draft API.... There's probably a few of these nuances in there.
Hehe, they've been 'draft' for years. ;)
Alerty - you could control your AlertMe system with my third-party app for iPhone and iPod Touch. Used to be available on iTunes!

Post Reply