My History

Extending the system, interesting uses and API twiddling.
Post Reply
gadgethome
Posts: 11
Joined: Thu May 09, 2013 12:00 pm

My History

Post by gadgethome » Thu Jan 16, 2014 10:43 pm

Hi,

Would like some advice please on how to retrieve My History alerts. I would like to use my Raspberry Pi to get realtime updates from the security hub, motion detectors etc. My History shows all the alerts and need a way to retrieve.

There are API's in github and currently using one to turn on/off smart plugs but not sure on how to get realtime updates.

Any help would be much appreciated.

Thanks

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

Re: My History

Post by roobarb! » Mon Jan 20, 2014 12:53 pm

Real-time updates are... tricky. Really, the only way to do it is to use one of the API interfaces available on GitHub and run it in a loop in your own script. Then configure the devices you are interested in to write a log message that your script looks for. It's not exactly real-time, as you would need a delay between each loop of your script, otherwise you're going to get rate limited by the server.

My AlertMePI script has a log retrieval method in it.
Alerty - control your AlertMe system with my third-party app for iPhone and iPod Touch. Available on iTunes!

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

Re: My History

Post by gadgethome » Mon Jan 20, 2014 1:35 pm

Thanks your suggestions. I did try AlertMePI last year but it failed on my Raspberry Pi on these steps:

sudo /usr/bin/cpan -i Crypt::SSLeay
sudo /usr/bin/cpan -i RPC::XML::Client

Instead I'm using your other AlertMePy module. Could you give me an example on how to call the history? It keeps complaining about the time something like * 60 * 60.

Thanks

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

Re: My History

Post by roobarb! » Tue Jan 21, 2014 10:43 am

gadgethome wrote:Thanks your suggestions. I did try AlertMePI last year but it failed on my Raspberry Pi on these steps:

sudo /usr/bin/cpan -i Crypt::SSLeay
sudo /usr/bin/cpan -i RPC::XML::Client

Instead I'm using your other AlertMePy module. Could you give me an example on how to call the history? It keeps complaining about the time something like * 60 * 60.
Hmm, I don't know if I ever got around to adding the history stuff to AlertMePy - that became very much an 'as and when I need it' project!

You should definitely be able to get CPAN on your Pi - perhaps the location is different? Try

Code: Select all

which cpan
to find out.
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