View Issue Details

IDProjectCategoryView StatusLast Update
0000964SkyChart1-Softwarepublic13-05-06 14:32
ReporterArmando Beneduce Assigned ToPatrick Chevalley  
PrioritylowSeveritytweakReproducibilityN/A
Status closedResolutionfixed 
PlatformAllOSAllOS VersionAll
Target Version3.8Fixed in Version3.7 SVN 
Summary0000964: making getline server command return also culmination time
DescriptionHi Patrick,

could you make getline server command return also culmination time of the last object found due to a search command?

I just wrote a simple VBScript to retrieve GPS coordinates (by bluetooth) and rightly update SkyChart observatory location.
Then a search (for Polaris) and a getline server command call could allow me to quickly polar align my mount...

I'd like to be able to suggest source code changes made by myself without annoying you with my ideas but unfortunately I know only C and C++...

Thank you!
Armando
TagsNo tags attached.

Activities

Patrick Chevalley

12-03-26 08:46

administrator   ~0001996

Last edited: 12-03-26 08:46

I will not change the result of the Search command, to not break the compatibility with other application, but add a new command that return rise/transit/set

Patrick Chevalley

12-03-31 10:48

administrator   ~0002007

Revision 2172 add the GETRISESET command to be called after a SEARCH command. It return rise/transit/set time with the same format as in the status bar.

http://skychart.svn.sourceforge.net/viewvc/skychart?view=revision&revision=2172

Armando Beneduce

12-04-02 16:08

reporter   ~0002012

Hi Patrick,
first of all thank you for the update.
I found that the following VBS code works as expected (by showing culmination time of the centered object with no search command):

Dim cdc
set cdc=CreateObject("Socket.TCP")
cdc.Host = "localhost:3292"
cdc.open
'cdc.sendline "SEARCH M101"
cdc.sendline "GETRISESET"
msg = cdc.getline
msgbox msg
cdc.Close

Anyway if I uncomment the search line command I don't obtain culmination time as expected. Adding cdc.getline between search command call and getrise command call doesn't solve the trouble. Is something wrong in my script?

Thank you again!
Armando

Patrick Chevalley

12-04-02 17:35

administrator   ~0002013

Hi!

The problem is because you need to read every data in the receive queue after each command, including the first cdc.open.

The example vbs I include with the CdC source is not complete because I don't work with this language. The Perl and Java example client are much more complete and you can use it as a reference:
http://skychart.svn.sourceforge.net/viewvc/skychart/trunk/skychart/sample_client/java/

This VBs work for me but it is not efficient because getline do not exit immediately with an empty string if there is nothing to read, so it take a few time to display the result.
Maybe setting cdc.timeout can help. See the socket object reference at
http://www.dimac.net/Products/FreeProducts/w3Sockets/Reference/Refstart.htm

Dim cdc
set cdc = CreateObject("Socket.TCP")
cdc.Host = "localhost:3292"
cdc.open
Do
  msg = cdc.getline
Loop Until (msg="" or msg=".")

cdc.sendline "search M101"
Do
  msg = cdc.getline
Loop Until (msg="" or msg=".")

cdc.sendline "getriseset"
msg = cdc.getline
msgbox msg

cdc.Close

Armando Beneduce

12-06-21 23:55

reporter   ~0002109

Hi Patrick,

the suggested VBs takes a few time to display the result but it works. ;-)
Sorry for the delay in giving a feedback.

CS
Armando

Patrick Chevalley

12-06-22 08:00

administrator   ~0002110

Thank you for the feedback.

A solution for the delay problem is probably to use another socket object with better timeout capability.
Maybe going VB.Net and using System.Net.Sockets ?

Armando Beneduce

13-01-03 02:55

reporter   ~0002379

Hi Patrick,

I'm no more able (on 3.7.2347 release) to get transit time by GETRISESET command after a SEARCH command, as if the search command makes Cartes du Ciel centering on the target but without selecting it (I get no transit time or I get the one related to the last selected object...)

Please note 3.7.2347 is the first upgrade I made since rev 2172.

Happy New Year and thank you again!
Armando

Patrick Chevalley

13-01-03 09:51

administrator   ~0002380

Happy New Year Armando!

Yes, I broke it when adding the new catalog index format.

This is fixed by revision 2352:
https://sourceforge.net/p/skychart/code/2352/

Issue History

Date Modified Username Field Change
12-03-25 16:03 Armando Beneduce New Issue
12-03-26 08:46 Patrick Chevalley Note Added: 0001996
12-03-26 08:46 Patrick Chevalley Assigned To => Patrick Chevalley
12-03-26 08:46 Patrick Chevalley Status new => assigned
12-03-26 08:46 Patrick Chevalley Target Version 0.3.0 => 3.8
12-03-26 08:46 Patrick Chevalley Note Edited: 0001996
12-03-31 10:48 Patrick Chevalley Note Added: 0002007
12-03-31 10:48 Patrick Chevalley Status assigned => resolved
12-03-31 10:48 Patrick Chevalley Resolution open => fixed
12-03-31 10:48 Patrick Chevalley Fixed in Version 0.3.0 => 3.7 SVN
12-04-02 16:08 Armando Beneduce Note Added: 0002012
12-04-02 16:08 Armando Beneduce Status resolved => feedback
12-04-02 16:08 Armando Beneduce Resolution fixed => reopened
12-04-02 17:35 Patrick Chevalley Note Added: 0002013
12-06-21 23:55 Armando Beneduce Note Added: 0002109
12-06-21 23:55 Armando Beneduce Status feedback => assigned
12-06-22 08:00 Patrick Chevalley Note Added: 0002110
12-06-22 08:00 Patrick Chevalley Status assigned => resolved
12-06-22 08:00 Patrick Chevalley Resolution reopened => fixed
13-01-03 02:55 Armando Beneduce Note Added: 0002379
13-01-03 02:55 Armando Beneduce Status resolved => feedback
13-01-03 02:55 Armando Beneduce Resolution fixed => reopened
13-01-03 09:51 Patrick Chevalley Note Added: 0002380
13-01-03 09:51 Patrick Chevalley Status feedback => resolved
13-01-03 09:51 Patrick Chevalley Resolution reopened => fixed
13-05-06 14:32 Patrick Chevalley Status resolved => closed