Call a JSON from Windows Command line

Moderator: leecollings

Post Reply
Evelen
Posts: 234
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 »

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: 407
Joined: Sunday 17 August 2014 21:01
Target OS: Linux
Domoticz version: 4.1x
Location: The Netherlands
Contact:

Re: Call a JSON from Windows Command line

Post 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.
Bosch / Nefit / Buderus / Junkers / Worcester / Sieger EMS bus Wi-Fi MQTT Gateway and interface boards: https://bbqkees-electronics.nl/
User avatar
robpow
Posts: 38
Joined: Friday 19 July 2013 19:28
Target OS: Raspberry Pi / ODroid
Domoticz version: Beta :)
Location: .se
Contact:

Re: Call a JSON from Windows Command line

Post 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
rlschulz
Posts: 20
Joined: Sunday 25 October 2015 16:33
Target OS: Windows
Domoticz version: 3.5877
Contact:

Re: Call a JSON from Windows Command line

Post 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.
Post Reply

Who is online

Users browsing this forum: No registered users and 0 guests