We have moved at community.getvera.com

Author Topic: Sending Vera Alert from Windows Scheduler  (Read 570 times)

Offline clippermiami

  • Hero Member
  • *****
  • Posts: 1394
  • Karma: +27/-6
Sending Vera Alert from Windows Scheduler
« on: August 23, 2015, 05:20:56 pm »
I have a Windows Scheduler configured to Backup Vera every night and it works fine. But I'd like to add a notification function when the  backup runs.

I've tried what I think should work but i keep getting a " no service/action" error if I enter it from a web browser
Code: [Select]
http://192.168.xx1xxx:3480/data_request?id=lu_action&DeviceNum=yy&serviceId=urn:richardgreen:serviceId:VeraAlert1", "SendAlert",{Message = "Test Alert{tone:1}", Recipients = "Pushover"})

Where have I gone wrong?
Two Vera Plus UI7 Linked via HTTP, 90+ Devices. PlugIns: PLEG, DSC, Blue Iris, MySensors,  AutoVera, ImperiHome, VeraAlerts, EventWatcher

Offline RichardTSchaefer

  • Moderator
  • Master Member
  • *****
  • Posts: 10091
  • Karma: +764/-143
Re: Sending Vera Alert from Windows Scheduler
« Reply #1 on: August 23, 2015, 07:40:25 pm »
Incorrect Syntax/Semantics:

Try:
Code: [Select]
http://192.168.xx.xxx:3480/data_request?id=lu_action&DeviceNum=123&serviceId=urn:richardgreen:serviceId:VeraAlert1&action=SendAlert&Message=Test%20Alert%7Btone:1%7D&Recipients=Pushover
You have to URL encode arguments passed in the Message

Url's  ALWAYS have arguments in the form of
   VarName=URLEncodedVarValue

The first val is separate from the URL with ? and the rest are separated by an &.
URL Encoding is needed so you do not confuse the URL syntax (like having a ? or & in the message!)


Offline clippermiami

  • Hero Member
  • *****
  • Posts: 1394
  • Karma: +27/-6
Re: Sending Vera Alert from Windows Scheduler
« Reply #2 on: August 23, 2015, 07:43:37 pm »
Incorrect Syntax/Semantics:

Try:
Code: [Select]
http://192.168.xx.xxx:3480/data_request?id=lu_action&DeviceNum=123&serviceId=urn:richardgreen:serviceId:VeraAlert1&action=SendAlert&Message=Test%20Alert%7Btone:1%7D&Recipients=Pushover
You have to URL encode arguments passed in the Message

Url's  ALWAYS have arguments in the form of
   VarName=URLEncodedVarValue

The first val is separate from the URL with ? and the rest are separated by an &.
URL Encoding is needed so you do not confuse the URL syntax (like having a ? or & in the message!)
Duh. I knew that :-)

Thanks
John
Two Vera Plus UI7 Linked via HTTP, 90+ Devices. PlugIns: PLEG, DSC, Blue Iris, MySensors,  AutoVera, ImperiHome, VeraAlerts, EventWatcher