Background:
I have a Sony TV (x900e) and via reddit forums learned about using a cURL Command which enables me to interact with the Sony TV via Terminal on my Mac. Specifically Powering ON/OFF the TV.
Goal:
I have not been successful myself at taking the cURL Command I have working via Terminal on my Mac and getting it to work on the New Apple Shortcuts app.I am not even sure if it is currently possible to do this on the Shortcuts app but was hoping someone on this forum may know.
I would love some assistance at taking the attached cURL Command and successfully set it up in the Apple Shortcuts app likely using the ‘Get Contents of URL’ component to run the command.
I am not opposed to using other iOS apps to help run the cURL Command but I am looking specifically to be able to begin running it via the Shortcuts app.
Thank you for your reply! Hopefully when possible you can help me a little more.
I was able to run your Shortcut and place in my IP and PSK but unfortunately it did not work. I tried playing around with it a little as well but still did not work.
I do not know if the output information would be helpful for you or anyone else to diagnose but I have attached it in the case it does or gives you additional ideas of what I can try.
I gave that a try but still resulted in same output as I posted above.
@sylumer here is the cURL Command on my Mac Terminal that was successful. I thought I’d post in in the case it helps you, @supermamon or anyone else get any additional ideas or tweaks to try.
@sylumer I believe so but I am not entirely sure if the -d parameter in my cURL is in the Shortcut’s POST. Hopefully the additional screenshots I have attached clarify if so.
Note also that if you duplicate your shortcut and amend your key, you could safely share your actual shortcut here. It would save a lot of screenshots and missing data because it is effectively truncated on the screenshot.
@sylumer thank you very much for the reply. I am going to give the Shortcut you supplied a go once I am home and report back.
Also, you are definitely right, I should add the a link to the screenshots to the actual Shortcut itself, totally forgot that. I do like to supply screenshots in addition though as some people wont open the Shortcut itself.