Remote control of Philips TV with json - Printable Version +- Logic Machine Forum (https://forum.logicmachine.net) +-- Forum: LogicMachine eco-system (https://forum.logicmachine.net/forumdisplay.php?fid=1) +--- Forum: Scripting (https://forum.logicmachine.net/forumdisplay.php?fid=8) +--- Thread: Remote control of Philips TV with json (/showthread.php?tid=527) |
Remote control of Philips TV with json - baggins - 29.12.2016 Hi, I'm trying to write a script to control a Philips TV with json. Based on an example in thread: http://forum.logicmachine.net/showthread.php?tid=509&highlight=POST I'm trying the following: Code: require('json') This fails: Code: {"key":"CursorLeft"} Philips TV use Jointspace. Manual page for POST: http://jointspace.sourceforge.net/projectdata/documentation/jasonApi/1/doc/API-Method-input-key-POST.html Any tips? RE: Remote control of Philips TV with json - admin - 30.12.2016 Can you check if any GET methods are working? RE: Remote control of Philips TV with json - baggins - 30.12.2016 After a long session with Wireshark I gave up on this script... I now use the following script which works: Code: require('json') RE: Remote control of Philips TV with json - admin - 30.12.2016 Probably it didn't work without proper Content-Type header. |