From a chat with Robert Morgan, author of GSServer, he suggests creating a powershell script (see attachment) that tells GSServer the correct parking position (Flat, Home... more)
Code: Select all
# Clear the console pane
Clear-Host
$parkposition = "Test1" #name of park position
$GSS = New-Object -COMObject "GS.SkyApi" # Create GS.Sky.Api.dll
$parked = $GSS.IsParked # is mount parked
$running = $GSS.IsMountRunning # is mount running
$connected = $GSS.IsMountRunning # is mount connected
$currentparkposition = $GSS.ParkPosition # is mount connected
If($parked -eq $false -And $running -eq $true -And $connected -eq $true)
{
$GSS.ParkPosition = $parkposition
$parkpositionTest = $GSS.ParkPosition
If( $parkposition -eq $parkpositionTest)
{
$GSS.Park()
}
Write-Host "OK"
}
else
{
Write-Host "Mount is parked ("$currentparkposition.Trim()") or not running"
}
Write-Host "Done"
[System.Runtime.Interopservices.Marshal]::ReleaseComObject($GSS)
Remove-Variable GSS # Necessary - Relese the Com Object
Thank you