AlertMe
Posted: Wed Nov 13, 2013 3:00 pm
Hi, wondering if anyone has any experience with AlertMe, specifically using their web APi? It's for monitoring home energy and I have a hub receiving readings from a CT on the mains electricity supply and there is a display connected wirelessly to the hub. I willing be getting a smartplug from them when they're back in stock, the idea being I can poll its status in Demopad and I will have the TV plugged-in to the smartplug and therefore have TV power status feedback....
The Api are well described at https://api.alertme.com/v5/docs but I must be missing something I've contacted AlertMe for help but there may be things specific to Demopad I need to know. I'm using Hercules to test commands using the LAN IP address for the AlertMe hub and port 80, though I don't know if 80 is correct. It seems you have to LOGIN and LOGOUT for each session using the initial command /users/:username/hubs/:hubId filling-in the relevant username and hubid followed by POST /login but all I get in response is HTTP/1.1 200 OK{0D}{0A}{0D}{0A} when I should get something like;
Sample response
{
"hubIds": ["2029717203900694529"],
"ApiSession": "13feba258e84ff4646ce5b4e124836fe"
}
Thing is, I get the response HTTP/1.1 200 OK{0D}{0A}{0D}{0A} whatever I send, even "sausages"!!!
Thanks
Chris
The Api are well described at https://api.alertme.com/v5/docs but I must be missing something I've contacted AlertMe for help but there may be things specific to Demopad I need to know. I'm using Hercules to test commands using the LAN IP address for the AlertMe hub and port 80, though I don't know if 80 is correct. It seems you have to LOGIN and LOGOUT for each session using the initial command /users/:username/hubs/:hubId filling-in the relevant username and hubid followed by POST /login but all I get in response is HTTP/1.1 200 OK{0D}{0A}{0D}{0A} when I should get something like;
Sample response
{
"hubIds": ["2029717203900694529"],
"ApiSession": "13feba258e84ff4646ce5b4e124836fe"
}
Thing is, I get the response HTTP/1.1 200 OK{0D}{0A}{0D}{0A} whatever I send, even "sausages"!!!
Thanks
Chris