Call a JSON from Windows Command line

Post Reply
Evelen
Posts: 268
Joined: Thursday 09 July 2015 12:03
Target OS: Linux
Domoticz version: 2.4538
Location: Norway
Contact:

Call a JSON from Windows Command line

Post by Evelen » Tuesday 24 May 2016 18:59

Hei.
I want to turn on lights ect by calling the JSON with Windows command line.
Is this somthing I can do? and how?

User avatar
bbqkees
Posts: 436
Joined: Sunday 17 August 2014 21:01
Target OS: Linux
Domoticz version: 3.8x
Location: The Netherlands
Contact:

Re: Call a JSON from Windows Command line

Post by bbqkees » Tuesday 24 May 2016 20:13

Not sure if that is possible without additional software.

you can also just type it into the browser. That will work for sure.
Intel NUC-> Philips Hue, Aeon Zwave stick V2, Qubino, Fibaro, Everspring, Philio, RFXCom, X10, Harmony Hub, Xiaomi Flora + Gateway, BS440. And P1 / Resol VBus / Nefit EMS bus / DHT21 / DS18B20 / Sonoff / I2C display, all via Arduino/ESP8266.

User avatar
robpow
Posts: 83
Joined: Friday 19 July 2013 19:28
Target OS: Raspberry Pi
Domoticz version: Beta :)
Location: .se
Contact:

Re: Call a JSON from Windows Command line

Post by robpow » Tuesday 24 May 2016 21:35

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

rlschulz
Posts: 11
Joined: Sunday 25 October 2015 17:33
Target OS: Windows
Domoticz version: 3.5877
Contact:

Re: Call a JSON from Windows Command line

Post by rlschulz » Thursday 23 March 2017 17:44

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.

Post Reply

Who is online

Users browsing this forum: No registered users and 1 guest