ioBroker.simple-api icon indicating copy to clipboard operation
ioBroker.simple-api copied to clipboard

add Option &noanswer

Open mcuiobroker opened this issue 2 years ago • 3 comments

To send onclick-command with simpleApi directly from html there is the problem, that then a new html-Page are opened to display the answer. For setting a value from a html-page directly it would be very comfortable, when no answer would be send. This should only set, when the option is set.

Example: http://192.168.178.32:8087/set/0_userdata.0.TestNumber?value=123&prettyPrint&noanswer jarvis-v3-Beispiel spotify mit simpleApi

mcuiobroker avatar Jul 17 '22 23:07 mcuiobroker

Always interesting how such adapters are (mis)used ;) Normally simple-api shpould be used with Javascript and HTTPRequest or such ...

BTW: prettyprint AND a noanswer parametr should never come together because who would win? "printing a pretty response" or "printing no response" ? ;-)

Apollon77 avatar Jul 18 '22 06:07 Apollon77

genau diese Funktion würde ich auch sehr gerne haben. Kommt das vielleicht noch?

stenmic avatar Sep 02 '24 16:09 stenmic

mabe it makes more sense to switch to XHTTPRequests in the browser and use the reast-api adapter?

Apollon77 avatar Sep 02 '24 16:09 Apollon77