Author Topic: Visit website on scene  (Read 445 times)

Offline simonb

  • Newbie
  • *
  • Posts: 5
  • Karma: +0/-0
Visit website on scene
« on: May 14, 2016, 05:21:21 am »
Hi

I want to set a scene so when I activate, Night/Vacation/Away mode my camera will auto Patrol (i.e. PTZ camera will move around)

Now the Patrol setup is done via my Diskstation and all i need to do is quite simple i think.

I want to set a scene so if mode 2/3/4 is triggered then visit/ping/run this address:

https://MYIPADDRESS/webapi/entry.cgi?api=SYNO.SurveillanceStation.ExternalEvent&method="Trigger"&version=1&eventId=1&eventName="This is external event1"

My disk station will then pick up on this and trigger everything else automatically.

So my question is how do i create a scene which will ping/visit this web address upon trigger?
Modify message

Offline homeuser

  • Jr. Member
  • **
  • Posts: 54
  • Karma: +2/-0
Re: Visit website on scene
« Reply #1 on: March 17, 2017, 09:04:49 am »
Doing something similar to turn on motion detecting on my camera.



  Luup.inet.wget( 'http://link needed to run cgi script')

Ipaddress is your ip, user and password example is vera