We have moved at community.getvera.com

Author Topic: Send Alert via http request  (Read 1511 times)

Offline Vreo

  • Sr. Member
  • ****
  • Posts: 338
  • Karma: +6/-4
Send Alert via http request
« on: June 06, 2013, 04:06:03 pm »
Richard, is there a way to send an alert via Http from a local computer? This is because I want to program some triggers in my computer that alert me via Alert Plugin, for example when it is restarted. Thank you!

Offline lucbosmans

  • Newbie
  • *
  • Posts: 10
  • Karma: +0/-0
Re: Send Alert via http request
« Reply #1 on: June 06, 2013, 05:21:05 pm »
Hi Vero,
You can use Automation/LUUP for this:
local status, result = luup.inet.wget('http://192.168.0.100/vera/logger.php?id=Alarm&item=Full&val=Prepare', 15)
Best regards,
Luc.

Offline Vreo

  • Sr. Member
  • ****
  • Posts: 338
  • Karma: +6/-4
Re: Send Alert via http request
« Reply #2 on: June 06, 2013, 05:39:41 pm »
Luc,

Thank you very much, it was not what I was looking for, but I figured out. If someone needs it, I use the following request:

http://192.168.0.100:3480/data_request?id=action&DeviceNum=35&serviceId=urn:richardgreen:serviceId:VeraAlert1&action=SendAlert&Message=test+message&Recipients=xxxxxxxxx

Offline RichardTSchaefer

  • Moderator
  • Master Member
  • *****
  • Posts: 10091
  • Karma: +764/-143
Re: Send Alert via http request
« Reply #3 on: June 07, 2013, 07:58:10 pm »

Offline Vreo

  • Sr. Member
  • ****
  • Posts: 338
  • Karma: +6/-4
Re: Send Alert via http request
« Reply #4 on: June 11, 2013, 12:59:44 pm »
Richard, thank you very much, I try it and it works perfect. So in that way, I am skipping my Vera, right? I am sending the Alert directly from the PC to the exchange server and to the phone? Thanks, this is great.

Offline garrettwp

  • Master Member
  • *******
  • Posts: 6371
  • Karma: +227/-128
  • Vera 3, Lite, ISY994
Re: Send Alert via http request
« Reply #5 on: June 11, 2013, 01:26:54 pm »
That is correct, you are directly calling the server the relays the alerts to your phone.

- Garrett

Offline Vreo

  • Sr. Member
  • ****
  • Posts: 338
  • Karma: +6/-4
Re: Send Alert via http request
« Reply #6 on: June 11, 2013, 03:54:30 pm »
Great, thanx to everyone.