simplextech Posted January 1, 2020 Share Posted January 1, 2020 I don't see it documented in the wiki but is there a way to create Variables either via the REST interface or from a Nodeserver via Polyglot api? Link to comment
Chris Jahn Posted January 3, 2020 Share Posted January 3, 2020 You can't modify or create individual variables, instead, you have to download the XML file containing all the variable definitions, add your variables to it, and then upload the XML file back into the ISY. Link to comment
simplextech Posted January 3, 2020 Author Share Posted January 3, 2020 46 minutes ago, Chris Jahn said: You can't modify or create individual variables, instead, you have to download the XML file containing all the variable definitions, add your variables to it, and then upload the XML file back into the ISY. Oh that easy huh? Smells like a recipe for disaster of a single oops and that's all she wrote... The download of the xml is it available to any local machine? How about the upload process? Or does that require uploading through the admin console? Link to comment
MWareman Posted January 4, 2020 Share Posted January 4, 2020 I believe this is achieved via the SOAP API rather than REST.... Link to comment
simplextech Posted January 4, 2020 Author Share Posted January 4, 2020 5 minutes ago, MWareman said: I believe this is achieved via the SOAP API rather than REST.... Probably. However I've been told SOAP is being replaced by the REST interface and websocket. So why develop something new for something that's supposed to be going away. Of course that "going away" is probably like 5 years from now. But wanting to find out and mostly to see if it's possible from a nodeserver. I'm thinking it's not. Link to comment
MWareman Posted January 4, 2020 Share Posted January 4, 2020 You are correct.The Java based admin console uses the SOAP interface - and UDI is reimplementing everything with REST so that a native HTML5 admin UI will become possible - and the need for Java will (finally) die.I thing that this is one of the functions still only available over SOAP - but I’ve been wrong on this before as REST endpoints are being added with every release - and not all appear to be well documented yet. Link to comment
larryllix Posted January 4, 2020 Share Posted January 4, 2020 (edited) 10 hours ago, MWareman said: <snipped> The Java based admin console uses the SOAP interface - and UDI is reimplementing everything with REST so that a native HTML5 admin UI will become possible - and the need for Java will (finally) die. <snipped> ...and replaced by at least four different implementations each, of javascript, HTML5, and CSS, by non-co-operative hostile browser companies, We may want to return to a single sourced java by the time it is done. Edited January 4, 2020 by larryllix 1 Link to comment
Recommended Posts