Add a new Switch in Equipment section.

Issue #1121 closed
StarPat created an issue

Hi,

NINA version 1.10.HF3 doesn't seem to be able to interface with my remote controllable electrical outlet. This is an AVIOSYS IP9258FR 4 port web socket (https://aviosys.com/products/9258.php) and in the interface of N.I.N.A. it is missing from the "Equipment / Switch" section. It can be controlled by different methods, one of which seems to me to be implementable in N.I.N.A. : command : Ex. For 4 Ports Control On / Off http://192.168.1.3/set.cmd?cmd=setpower+p61=1+p62=0+p63=1+p64=1 Output: p61=1 p62=0 p63=1 p64=1 I would like to point out that the AVIOSYS supplier does not offer an ASCOM or INDI driver. My question: do you know if there is a procedure to request an evolution of N.I.N.A. so this software integrates this web socket?

I hope I have been clear in my description of this new need and, if you cannot find it on the AVIOSYS site, I have the documentation on the original CD ROM.

Pat

Comments (2)

  1. Stefan B repo owner

    If someone wants to get this a go, the N.I.N.A. architecture now offers plugins to implement device drivers.

    [Export(typeof(IEquipmentProvider))]
    public class MySwitchProvider: IEquipmentProvider<ISwitchHub> {
      [ImportingConstructor]
      public MySwitchProvider([whichever importable interfaces you need]) {
        // your ctor impl.
      }
    
      public IList<ISwitchHub> GetEquipment() {
        // your code to scan for switches and return a list of Switches with your specific implementation
      }
    }
    

    Furthermore you can export a Datatemplate with the key <Fully Qualified Device Type TypeName>_SwitchSettingsto add the switches to the ui.

    These interfaces and changes can be accessed with the nuget or a later one: https://www.nuget.org/packages/NINA.Plugin

  2. Log in to comment