A nice script provided by Johan! Peter
INDIGO Utilities
- Peter Polakovic
- Posts: 2115
- Joined: Thu Apr 21, 2016 9:38 am
INDIGO Utilities
- Attachments
-
indigo.py
- (10.54 KiB) Downloaded 53 times
Re: INDIGO Utilities
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
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

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 45 times
Re: INDIGO Utilities
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
- 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
- Attachments
-
indistatus.py
- (17.84 KiB) Downloaded 50 times
Python function for indi_prop_tool
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!
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 36 times
Last edited by JohanB on Thu Dec 06, 2018 6:02 pm, edited 1 time in total.
Python script using indi_prop_tool (restart server)
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>
Usage: restart_server.py <port>
- Attachments
-
restart_server.py
- (1.21 KiB) Downloaded 34 times