I want to request a public API to add custom/selfmade Flatboxes (like Alnitak). For Example I want to use an Arduino to Emulate the Alnitak Interface for open the dust cover and turning on/off the light. Would be better to implement a common Interface.
This was discussed in this thread where we talked about using ASCOM to control light boxes. Since SGP does not yet support controlling a flat box as an ASCOM switch, Alnitak emulation is the way to go for now. If you implement your light box so that it follows the Alnitak command set (simple and well documented) you’ll be good to go.
Unfortunately the implementation is looking for a COM Port. So to split things you’ll either need to create a virtual com port and forward the commands where needed or you’ll need to create a hardware device that does that for you which could be difficult.
Another possibility is to write a proxy with null modem emulation which redirect the commands to the correct com ports of arduino and dustcover. e.g http://com0com.sourceforge.net/