AlertMe API version? Still v2?

Extending the system, interesting uses and API twiddling.
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: 205
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 - control your AlertMe system with my third-party app for iPhone and iPod Touch. 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: 205
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 - control your AlertMe system with my third-party app for iPhone and iPod Touch. Available on iTunes!

User avatar
roobarb!
Site Admin
Posts: 205
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 - control your AlertMe system with my third-party app for iPhone and iPod Touch. Available on iTunes!

User avatar
roobarb!
Site Admin
Posts: 205
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 - control your AlertMe system with my third-party app for iPhone and iPod Touch. 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: 205
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 - control your AlertMe system with my third-party app for iPhone and iPod Touch. Available on iTunes!

Post Reply

Who is online

Users browsing this forum: No registered users and 1 guest