rkaczorek / astroberry-diy

Astroberry-DIY provides INDI drivers for Raspberry Pi devices such us Astroberry Focuser - stepper motor driver, Astroberry Board - power switch board for up to 4 devices, Astroberry System - operating system status.
GNU General Public License v3.0
32 stars 16 forks source link

Saving and Loading Multiple Named Configuration Files #19

Closed jctk closed 3 years ago

jctk commented 3 years ago

Could you please implement the ability to save and load different settings into different named settings files?

I am using two different focusers on one Astroberry DIY focuser. Only one of the two focusers can be connected at a time.

The Astroberry Focuser requires different settings for each focuser. This is because the specifications for Reverse motion, Max. Position, Max. Travel, etc. of the two focusers are different.

I believe that if the Astroberry Focuser can handle multiple configuration files, it will greatly simplify and improve the convenience of the settings for me.

rkaczorek commented 3 years ago

I believe that you would have to change the strategy to achieve your goals. Instead of handling two different motors with a single driver you should use two separate drivers, one for each motor. You can run two instances of Astroberry Focuser and assign unique names to each of them. This way you can have two focusers in your system, each with its own configuration. Implementing the feature you requested is a "no-go"

Take a look at INDI server documentation how to run multiple instances of drivers with unique names.

jctk commented 3 years ago

Thanks for the advice. I understand that it will not be implemented.

I'm going to read the INDI documentation you mentioned to me. Maybe I need to learn how to do this with both Indi Web Manager and Kstars.

jctk commented 3 years ago

I have been able to make two different instances by copying indi_astroberry_focuser.xml and defining different names for both INDI Web Manager and Kstars.

This request will be closed. Thanks.