View Issue Details
| ID | Project | Category | View Status | Date Submitted | Last Update |
|---|---|---|---|---|---|
| 0000964 | SkyChart | 1-Software | public | 12-03-25 16:03 | 13-05-06 14:32 |
| Reporter | Armando Beneduce | Assigned To | Patrick Chevalley | ||
| Priority | low | Severity | tweak | Reproducibility | N/A |
| Status | closed | Resolution | fixed | ||
| Platform | All | OS | All | OS Version | All |
| Target Version | 3.8 | Fixed in Version | 3.7 SVN | ||
| Summary | 0000964: making getline server command return also culmination time | ||||
| Description | Hi 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 | ||||
| Tags | No tags attached. | ||||
|
|
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 |
|
|
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 |
|
|
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 |
|
|
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 |
|
|
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 |
|
|
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 ? |
|
|
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 |
|
|
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/ |
| 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 |