Jump to content

Create Vars from REST or Nodeserver


simplextech

Recommended Posts

Posted

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?

Posted

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.

Posted
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?

Posted
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.

Posted

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.

Posted (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 by larryllix
  • Like 1
Guest
This topic is now closed to further replies.

×
×
  • Create New...