View Issue Details

IDProjectCategoryView StatusLast Update
0002500SkyChart1-Softwarepublic22-04-11 10:40
ReporterArmando Beneduce Assigned To 
PrioritynormalSeverityfeatureReproducibilityN/A
Status resolvedResolutionwon't fix 
Summary0002500: Set PC clock time by telescope clock
DescriptionHi Patrick,

several mounts make use of GPS; it could be nice to get time by telescope (manually from the panel that currently allows to get mount coordinates and to set mount clock).
I know that changing PC clock time requires administration rights. But I think a script called by SkyChart itself to set time with admin rights could be feasible.

Thank You and Clear Skies!
Armando Beneduce
TagsNo tags attached.

Activities

Patrick Chevalley

22-01-20 23:43

administrator   ~0007386

I am a bit reluctant to make that available from CdC because changing the system time is a tricky operation due to the variety of possible configuration. I not want to give the impression this can be done by a simple click without be sure this is compatible with the environment.

Why not make the script totally independent of CdC? the advantage is it can be run before to start CdC or other software.

To get the time from the telescope is very simple:

- for ASCOM :
var T = new ActiveXObject("ASCOM.Simulator.Telescope");
T.Connected = true;
WScript.Echo(T.UTCDate);

- for INDI:
indi_getprop "GPS Simulator.TIME_UTC.UTC"

Armando Beneduce

22-01-21 14:20

reporter   ~0007387

Hi Patrick,
I created a script but I had also to make a copy of cscript.exe to assign it admin rights to be able to set system time.
This is the reason why I asked for such a feature.
I'm going to add a command to sync mount to its GPS. So I agree with you: probably it's worth letting the user making his own scripts according to his needs.

Thank you and Clear Skies!
Armando Beneduce

Patrick Chevalley

22-04-11 10:40

administrator   ~0007510

Good a script work for you. I am sure this is a much better solution.
Be sure you run this script early after the system boot when no application is running. A brutal time change can make perturbation in capture or scheduling application.

Issue History

Date Modified Username Field Change
22-01-20 12:10 Armando Beneduce New Issue
22-01-20 23:43 Patrick Chevalley Note Added: 0007386
22-01-21 14:20 Armando Beneduce Note Added: 0007387
22-04-11 10:40 Patrick Chevalley Status new => resolved
22-04-11 10:40 Patrick Chevalley Resolution open => won't fix
22-04-11 10:40 Patrick Chevalley Note Added: 0007510