Welcome, Guest
Username: Password: Remember me
25 Jul 2018
Glad to announce of release of INDI Library v1.7.4 on 2018-07-25. A few drivers were added in this release as we continue to improve & stabilize existing drivers.
Read More...
  • Page:
  • 1

TOPIC: PHP web API

PHP web API 5 months 3 weeks ago #24526

  • bekro
  • bekro's Avatar Topic Author
  • Offline
  • Fresh Boarder
  • Fresh Boarder
  • Posts: 2
  • Thank you received: 0
Hello there,

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.

Greetings,
bekro

Please Log in or Create an account to join the conversation.

PHP web API 5 months 3 weeks ago #24528

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.

Please Log in or Create an account to join the conversation.

Jasem Mutlaq
Support INDI & Ekos; Get StellarMate Astrophotography Gadget.
How to Submit Logs when you have problems?
Add your observatory info

PHP web API 5 months 3 weeks ago #24530

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.
Attachments:
The following user(s) said Thank You: knro

Please Log in or Create an account to join the conversation.

PHP web API 5 months 3 weeks ago #24533

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 ?

Vincent

Please Log in or Create an account to join the conversation.

PHP web API 5 months 3 weeks ago #24536

Well, as I mentioned, it's still very work in progress, so there isn't a public apidocs for the REST API.

However a good starting point is this file: github.com/GuLinux/indi-lite-tools/blob/...backend/indi-lite.py
where you can see all the routes.
('events' in particular is a Server Sent Events route, to get asynchronous messages from the server)

Please Log in or Create an account to join the conversation.

PHP web API 5 months 3 weeks ago #24543

Thank you Marco,

Your work is more than "in progress". So it will be a really good starting point. I will look at it deeply.
I will try to make something with Node.js.

Vincent
The following user(s) said Thank You: knro

Please Log in or Create an account to join the conversation.

PHP web API 5 months 3 weeks ago #24572

  • bekro
  • bekro's Avatar Topic Author
  • Offline
  • Fresh Boarder
  • Fresh Boarder
  • Posts: 2
  • Thank you received: 0
That looks really promising. I will definitely have a closer look on that and try to keep you up to date with my progress.

Greetings,
bekro

Please Log in or Create an account to join the conversation.

PHP web API 5 months 2 weeks ago #24791

FYI, I just renamed the project to StarQueW, and moved it to a separate repository: github.com/GuLinux/StarQueW

The INDI control panel module is much more stable and fast now, so it kinda deserved to be in its own repo :D
The following user(s) said Thank You: tkottary, bekro, gavntery

Please Log in or Create an account to join the conversation.

  • Page:
  • 1
Time to create page: 0.527 seconds

Login



3rd Party

Choose from the numerous 3rd party INDI drivers to suit your needs!

Got Problem?

Check out the FAQ, the forum, and the bug tracking system to resolve any issues you might have!
You can also subscribe to INDI newsletter and development mailing lists to get the latest updates on INDI!


Gallery

Replica

Why INDI

Replica