App development and access to LoxBerry using JSON-RPC and/or webservices
Einklappen
X
-
App development and access to LoxBerry using JSON-RPC and/or webservices
I am considering creating a mobile App to access LoxBerry data/settings. I noticed that LoxBerry supports JSON-RPC (loxwiki). Is this the recommended approach/API to remotely access LoxBerry? Or are there alternative interfaces available (e.g. REST)? I would (also) prefer a websocket-based API so we can receive LoxBerry notifications without the need to continuous poll for a status change (similar to the Miniserver).Stichworte: - -
The JsonRpc Interface can be used. You might be the first or second that it ever used, therefore it is not managed well, and I am happy about feedback and pull requests. Currently, please use the lb30 branch for pulls.
We have no Websocket interface currently, as this is quite impossible with Apache.
I don’t know if this is sensible, but Mosquitto offers a Websocket interface. MQTT will be standard in LoxBerry 3.0. Connection details will be available in general.json or - jsonrpc mqtt_connectiondetails.
Give me a pm with WhatsApp phone number for private talk and/or adding you to the Plugin developers group.
Christian
Hilfe für die Menschen der Ukraine: https://www.loxforum.com/forum/proje...Cr-die-ukraine
Kommentar