Jump to content
View in the app

A better way to browse. Learn more.

Universal Devices Forum

A full-screen app on your home screen with push notifications, badges and more.

To install this app on iOS and iPadOS
  1. Tap the Share icon in Safari
  2. Scroll the menu and tap Add to Home Screen.
  3. Tap Add in the top-right corner.
To install this app on Android
  1. Tap the 3-dot menu (⋮) in the top-right corner of the browser.
  2. Tap Add to Home screen or Install app.
  3. Confirm by tapping Install.

Run Program Using REST from Batch File

Featured Replies

Is it possible to run programs using the REST from a windows batch file?

 

I've got Tasker working on my Android phone using REST to run several programs so I know the basic setup for it, but I don't know how to do it from a batch file on Windows 7 64-bit.  If it's possible could someone point me in the right direction or is it pretty complicated?

  • Author

Hi zerop,

 

/rest/programs/<id>/<cmd>

 

Example:

 

/rest/programs/0032/runThen

 

<cmd> could be any of the following:

run|runThen|runElse|stop|enable|disable|enableRunAtStartup|disableRunAtStartup

 

With kind regards,

Michel

 

Yes, I understand that but how do you initiate this in the batch file?  In Tasker I use the HTTP Get with the following:

http://username:password@IP:port/rest/programs/programID/runThen 

I can't run this same thing from the command line/batch file, it doesn't work.  Could someone provide example text for a batch file?

Edited by zerop

Batch files cannot themselves call a rest api. You'll need to find a helper binary, such as curl or wget (compiled for windows) and then use that as a command in your batch file to call the api.

Edited by MWareman

Guest
This topic is now closed to further replies.

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.