Problem with HTTP POST request body


#1

1) Give a description of the problem
I want to send and HTTP request from webCoRE to Home Assistant with several information regarding my TV. I’m hoping to send a JSON object to NR and work that message there.

3) What is happening/not happening?
So far I’ve been able to send a message with a single attribute like volume or on/off status, but I’d like to send a complete message

Thanks in advanced!


#2

Will a url call with multiple values work on the NR receiving side like http://nr_address/?data1=value1&data2=value2


#3

I figured out aother/easier way of doing this. I appreciate though!


#4

and what about the other way around? making a request from outside webcore to webcore and use the information of the body of the http request whithin webCoRE? I wan’t to use the launchApp command for my tv. Create just one piston with the app name as a variable coming from the body of the http request… I hope I explained myself properly.

I do know how to execute a piston from outside, what I don’t know is how to use the information from the body of the request in the piston itself.

Thanks in advanced


#5

You can call the piston’s external URL and within the piston create a task to log the contents of $args so you can inspect what webcore is receiving. Post that here so someone can maybe help you extract the information you need and use it for other tasks.