0 again
in the webrequest, I use the âexpressionâ option, is there another way of doing it?
Web request with variable in the url
I m able to get the first variable but the second one still shown as text⌠like:
http/myurl?lat=45.55555lon=@longitudeâŚ
It should have a transition between âŚmaybe a formula to merge text? concatenate?
I make it works this way:
âhttps://api.openweathermap.org/data/2.5/onecall?lat=â@actual_latitude + â&lon=â@actual_longitude â&units=metric&exclude=hourly,daily,minutely&lang=fr&appid=xxxxxxxxxxâ
Looks like I was using & at the place of + and I also notice that the + is not even needed after a variable, it miss one and still workingâŚ
Thanks again! You found it!
Glad you got it working.
If you just type the URL as a âvalueâ rather than an âexpressionâ, using {@curly_brackets} for your variables, you would save yourself the whole ââŚâ+@xyz+"âŚ"+@abc mess
I am trying to send a text request to my AV receiver.
Instruction manual saysâŚ
âThe RIO Command Set is available as ASCII text via IP (using port 9621)â
My IP is 192.168.0.39
My variable name is Russound_Command and is VERSION
That should return the version of software my receiver is using.
This does not seem to workâŚ
Have you tried a get request? Then see if the version details are returned in $response
I use the above method to access the admin page of my nas to check its status
Can you use https? Itâs coming back to me, and I had issues with http when I moved to HE from ST. My nas connection uses https.
Can you test from another platform? Not sure you could send the message from a browser url line, and see if you get a response. Iâve used nodered in the past to test such things, if you have a raspberry pi its installed, and is very easy to set up a simple flow to test the http response
You and I have had this conversation before. And as I recall, what I am trying to do is not possible with webcore. I admit, I do not understand UDP, TCP and making http calls to devices. So, my own ignorance in this arena is the rate limiting step!
I thought it sounded familiar!
I think itâs worth trying to get a solution working with nodered (not node.js) nodered is so much simpler. If you can get that to work you could then look at triggering the nodered flow from webcore.
Other solutions that may work -
There is an app (VM) homebridge that brings non apple homekit devices into homekit. There is a plugin to control marantz/denon amps, there maybe one for yours. Youâd then have to get homekit & webcore integrated. Its a lot of work & rather convoluted, but may depend on how much you need the functionality.
Greatly appreciate the help, this time and last. I have long wanted to start using node-red. I just have not jumped in yet. Presently, I am using a telnet driver on Hubitat to control my Russound, and that is workingâŚmost of the time. I was hoping to switch to IP control, or at least evaluate it. BUT, if I did switch to IP control, I would have to modify all of my telnet pistonsâŚabout 25. SO, maybe not the best idea.
Nodered is well worth getting into! A few things I use if for:-
-Monitor/graph power & temp usage over time
-scrapes the local authority website to tell me when to put the correct refuse bin out (uses WC too)
-When I play movie/tv show on apple tv, pauses, speaks synopsis through sonos, then resumes (I used to do this with WC, but the nodered solution is more reliable and simpler)
many times this is a telnet connection, not an http rest request
If it is telnet, you may need an app to do this.
I use a modified Hubitat telnet driver now that works well. I was just hoping that I could move away from that to http for future-proofing.