dukus/digiCamControl

SingleCommand does not seem as a web interface

shlomiv opened this issue · 1 comments

Trying to follow http://digicamcontrol.com/doc/userguide/singlecmd#web-interface but I am not able to make the bulb calls, which do work from the command line, such as >CameraControlRemote.exe /host localhost /c do StartBulb.

Tried http://localhost:5513/?slc=do&StartBulb= and many other variations, but I am getting Object reference not set to an instance of an object.

I finished writing the ASCOM wrapper, super simple code, you can check it out here https://github.com/shlomiv/dcc-ascom/blob/master/src/dcc_ascom/handler.clj and maybe just add it to DCC itself, but in the meantime it will make life much easier to be able to call StartBulb and EndBulb directly through rest instead of executing shell commands and parsing stdout.

Ok, after reading the code I realized I was using the wrong path. This now seems to work:

> curl -X GET "http://192.168.1.78:5513/?slc=do&param1=StartBulb"                                
OK%
> curl -X GET "http://192.168.1.78:5513/?slc=do&param1=EndBulb"    
OK%

Having a do example in the wiki linked above could really be useful.