I'm currently looking for a PHP web API to connect to an INDI server and control the devices. If there is none, is it technically possible to control a device via web-based interface? Then I could start developing an API by myself.
The only thing close to what you are requesting is
INDI Lite
by Marco.
it is based on Python for server and React-Redux for client side. I'm not sure if it offers an "API" as well.
Hi,
yes, my webapp does provide a REST API, though it's still in a very early stage and lots of refactoring are incoming.
It's already in a quite good shape though, as you can see in the attached image.
The INDI control panel is more or less complete, the main feature though will be the ability of creating and managing sequences.
The following user(s) said Thank You: Jasem Mutlaq
Hello
I think that it is possible to use PHP. However, you have to use sockets to speak with the Indi Server ; but be careful beacause all PHP servers don't allow that. Look at php.net and sockets functions to get more informations. Look at asynchronous PHP options too ; this is really important to avoid some blocking issues when you will call with the INDI Server. I think this is not the best way. A better solution should be using Node.js (or Python, like Indi Lite) on the backend.
I'm really interested in Marco's job on Indi Lite. I would like to use a web based GUI (made with React, for example) but with an asynchronous server written in Node.js.
Where is it possible to find your REST API ?