Hi Robin, Hi Jean-Francois,
Thank you Robin. Sorry, I got caught up coding and forgot to say your solution worked. Thank you Jean-Francois for checking as well.
Why?
I use SharpCap, Stellarium and AstroPlanner, all of which have scripting built-in. However, Stellarium (via Remote Control Plugin) and AstroPlanner both have webservices exposed to access the object model or run scripts. For a while now, I have been using scripts and the web services interface to control my EAA workflow, within the individual applications. I wanted to go further and created a c# windows app to eventually orchestrate everything. From object selection in AstroPlanner and syncing the object in Stellarium to capturing the image in SharpCap and then logging the observation back in AstroPlanner and copying/attaching the stacked image to the observation. A few simple clicks, that at 3am in the morning stop my tired brain from making mistakes!
Currently, the UI looks like the image below (WIP).
EAAControlPanel.png
So, I really needed a way of controlling SharpCap remotely via a webservice. It would be nice if this feature was bulit in to SharpCap. I prefer AstroPlanner's webservices interface, where via a URL I can run a specified script and pass parameters in JSON format and receive a JSON formatted response from the script. TheSky requires you to send the javascript you want to run. While a lot of other apps Cartes du Ciel, C2A, SkyTechX, Stellarium etc allow you to send commands via sockets or web get and post.
Thank you both for your help.
Have fun
Pete
You do not have the required permissions to view the files attached to this post.