INDIGO Utilities

New software versions announcement.
Post Reply
User avatar
Peter Polakovic
Posts: 2691
Joined: Thu Apr 21, 2016 9:38 am

INDIGO Utilities

Post by Peter Polakovic »

A nice script provided by Johan! Peter

unnamed.png
unnamed.png (226.33 KiB) Viewed 1401 times
Attachments
indigo.py
(10.54 KiB) Downloaded 77 times
JohanB
Posts: 267
Joined: Thu Apr 21, 2016 5:55 pm

Re: INDIGO Utilities

Post by JohanB »

Hi Peter,

Thanks for putting it on-line! Posting an update to the script; made it a bit more configurable and added some features.

To all potential users; i was bored this week and decided to learn python, just for the heck of it :-) What came out was a useful little tool that i'm using myself now. If you want to use it, you may need to tailor it a bit to your needs; most of the code speaks for itself.

Before using it, you have to set some values regarding your interfaces and devices in the header, help is provided in the comments.

To any hard-core python programmer; feel free to educate me :-)

Have fun with it,

Johan
Attachments
indigo.py
(13.69 KiB) Downloaded 68 times
JohanB
Posts: 267
Joined: Thu Apr 21, 2016 5:55 pm

Re: INDIGO Utilities

Post by JohanB »

Latest version;

- removed a bug with the process list
- made generic, fully based on config in header
- added a GUI
- made it refresh real time (±1s delay)

Have fun with it, Johan
Screen Shot 2018-06-28 at 06.21.47.png
Screen Shot 2018-06-28 at 06.21.47.png (289.17 KiB) Viewed 1370 times
Attachments
indistatus.py
(17.84 KiB) Downloaded 74 times
JohanB
Posts: 267
Joined: Thu Apr 21, 2016 5:55 pm

Python function for indi_prop_tool

Post by JohanB »

Have been playing with the indigo_prop_tool, which can be used to script indigo servers. So i wrote a function in python to set and list properties. The code here contains the function and some examples with the PegasusAstro powerbox running on Indigo and a Joystick running on Indi.

There has to be a proper path to the indigo_prop_tool executable for it to work (or put it in the same directory as the script).

Have fun with it!
Attachments
indigo_prop.py
(2.57 KiB) Downloaded 54 times
Last edited by JohanB on Thu Dec 06, 2018 6:02 pm, edited 1 time in total.
JohanB
Posts: 267
Joined: Thu Apr 21, 2016 5:55 pm

Python script using indi_prop_tool (restart server)

Post by JohanB »

Next i used the python function posted above, to make a practical application; a script to restart an indigo server on a given port.

Usage: restart_server.py <port>
Attachments
restart_server.py
(1.21 KiB) Downloaded 54 times
Post Reply