Page 1 of 1

Call a JSON from Windows Command line

Posted: Tuesday 24 May 2016 18:59
by Evelen
Hei.
I want to turn on lights ect by calling the JSON with Windows command line.
Is this somthing I can do? and how?

Re: Call a JSON from Windows Command line

Posted: Tuesday 24 May 2016 20:13
by bbqkees
Not sure if that is possible without additional software.

you can also just type it into the browser. That will work for sure.

Re: Call a JSON from Windows Command line

Posted: Tuesday 24 May 2016 21:35
by robpow
Here are two options

Download 'curl' for Windows here:
https://curl.haxx.se/dlwiz/?type=bin&os ... cpu=x86_64

Or try and run the Windows PowerShell command 'Invoke-WebRequest':
https://technet.microsoft.com/en-us/lib ... .620).aspx

Re: Call a JSON from Windows Command line

Posted: Thursday 23 March 2017 16:44
by rlschulz
I did this to send an off to a switch to make an actual momentary switch for a garage door opener.
x= IP
y=IDX number of device.

That works well.