en:documentation:server_commands
Differences
This shows you the differences between two versions of the page.
| Both sides previous revisionPrevious revisionNext revision | Previous revision | ||
| en:documentation:server_commands [2018/12/06 09:16] – [Main Commands] pch | en:documentation:server_commands [2022/12/08 09:56] (current) – [Chart drawing] pch | ||
|---|---|---|---|
| Line 13: | Line 13: | ||
| You can use any socket library or object to connect to Skychart from your software, or use the commands telnet or netcat from a script.\\ | You can use any socket library or object to connect to Skychart from your software, or use the commands telnet or netcat from a script.\\ | ||
| To send a command, write to the socket the command, any parameter separated by a blank space, and finally a CR-LF termination.\\ | To send a command, write to the socket the command, any parameter separated by a blank space, and finally a CR-LF termination.\\ | ||
| - | For examples with various languages, see https://sourceforge.net/p/skychart/code/HEAD/tree/trunk/ | + | For examples with various languages, see https://github.com/pchev/ |
| The standard port is 3292, this can be changed by the user in the configuration menu. The program can also choose to listen to another random port if the configured port is busy. | The standard port is 3292, this can be changed by the user in the configuration menu. The program can also choose to listen to another random port if the configured port is busy. | ||
| Line 26: | Line 26: | ||
| - | ===== Main Commands ===== | + | ===== Global |
| ^ Command ^ Parameters ^ Comment or GUI Equivalent ^ | ^ Command ^ Parameters ^ Comment or GUI Equivalent ^ | ||
| + | | ? | | No GUI equivalent, list the available commands | | ||
| | NEWCHART | chart_name | File -> New Chart | | | NEWCHART | chart_name | File -> New Chart | | ||
| | CLOSECHART | chart_name | File -> Close Chart | | | CLOSECHART | chart_name | File -> Close Chart | | ||
| | SELECTCHART | chart_name | Window -> chart_name | | | SELECTCHART | chart_name | Window -> chart_name | | ||
| | LISTCHART | | Window | | | LISTCHART | | Window | | ||
| - | | SEARCH | object_name | Search tool (Main Bar) | | ||
| - | | GETMSGBOX | | Returns the status bar content | | ||
| - | | GETCOORBOX | | Returns the coordinates shown in the status bar | | ||
| - | | GETINFOBOX | | Setup -> Display -> Labels - Display the chart information in the menu bar | | ||
| - | | FIND | object_class object_name | Same as search, but lets you specify the class of object you want: 0=nebula, 1=na, 2=star, 3=star, 4=variable, 5=double, 6=comet, 7=asteroid, 8=planet, 9=constellation, | ||
| | SAVE | saved_file_name | Save the current chart to the specified file | | | SAVE | saved_file_name | Save the current chart to the specified file | | ||
| | LOAD | saved_file_name | Load the chart from the file | | | LOAD | saved_file_name | Load the chart from the file | | ||
| | LOADDEFAULT | option_file_name | Use this command to load an extract of the configuration file that temporarily replace some option from skychart.ini. | | | LOADDEFAULT | option_file_name | Use this command to load an extract of the configuration file that temporarily replace some option from skychart.ini. | | ||
| | SETCAT | | SETCAT | ||
| + | | LOADMPCORB | file_name | Load the specified file with asteroid element in MPCORB format. Detail result is available in file [[directories_and_files|[user_data]]]/ | ||
| + | | PLANETINFO |page_number | Open the Solar system information window at the given page | | ||
| + | | GETMSGBOX | | Returns the status bar content | | ||
| + | | GETCOORBOX | | Returns the coordinates shown in the status bar | | ||
| + | | GETINFOBOX | | Setup -> Display -> Labels - Display the chart information in the menu bar | | ||
| + | | RESET | | Reload the default chart and options (same as signal HUP)| | ||
| | SHUTDOWN | | SHUTDOWN | ||
| - | | RESET | | Reload the default chart and options (same as signal HUP)| | ||
| - | | PLANETINFO |page_number | Open the Solar system information window at the given page | | ||
| - | | GETSELECTEDOBJECT | | Return information about the last selected object | | ||
| - | | LOADMPCORB | file_name | Load the specified file with asteroid element in MPCORB format. Detail result is available in file [[directories_and_files|[user_data]]]/ | ||
| - | | ? | | No GUI equivalent, list of available commands | | ||
| Line 53: | Line 50: | ||
| ===== Chart Commands ===== | ===== Chart Commands ===== | ||
| ^ Command ^ Parameters ^ Comment or GUI Equivalent ^ | ^ Command ^ Parameters ^ Comment or GUI Equivalent ^ | ||
| + | | REDRAW | | Follows a modification command, mandatory to update chart | | ||
| | ZOOM+ | | View -> Zoom in | | | ZOOM+ | | View -> Zoom in | | ||
| | ZOOM- | | View -> Zoom out | | | ZOOM- | | View -> Zoom out | | ||
| + | | ZOOM+MOVE | | Right-clic -> Zoom + Move | | ||
| + | | ZOOM-MOVE | | Right-clic -> Zoom - Move | | ||
| | MOVEEAST | | Keyboard Left arrow | | | MOVEEAST | | Keyboard Left arrow | | ||
| | MOVEWEST | | Keyboard Right arrow | | | MOVEWEST | | Keyboard Right arrow | | ||
| Line 63: | Line 63: | ||
| | MOVESOUTHEAST | | Numpad 1 (Ver num off) | | | MOVESOUTHEAST | | Numpad 1 (Ver num off) | | ||
| | MOVESOUTHWEST | | Numpad 3 (Ver num off) | | | MOVESOUTHWEST | | Numpad 3 (Ver num off) | | ||
| + | | SETNORTH | | Chart -> View Horizon -> North | | ||
| + | | SETSOUTH | | Chart -> View Horizon -> South | | ||
| + | | SETEAST | | Chart -> View Horizon -> East | | ||
| + | | SETWEST | | Chart -> View Horizon -> West | | ||
| + | | SETZENITH | | {{en: | ||
| + | | ALLSKY | | {{en: | ||
| | FLIPX | | Chart > Tranformation > Mirror Horizontally | | | FLIPX | | Chart > Tranformation > Mirror Horizontally | | ||
| | FLIPY | | Chart > Tranformation > Mirror Vertically | | | FLIPY | | Chart > Tranformation > Mirror Vertically | | ||
| - | | SETCURSOR | pixX pixY | | | ||
| - | | CENTRECURSOR | | Right-clic -> Center | | ||
| - | | ZOOM+MOVE | | Right-clic -> Zoom + Move | | ||
| - | | ZOOM-MOVE | | Right-clic -> Zoom - Move | | ||
| | ROT+ | | Chart -> Tranformation -> Rotate Right | | | ROT+ | | Chart -> Tranformation -> Rotate Right | | ||
| | ROT- | | Chart -> Tranformation -> Rotate Left | | | ROT- | | Chart -> Tranformation -> Rotate Left | | ||
| - | | SETEQGRID | ON/OFF | Chart -> Lines, Grid -> Add Equatorial Grid | | + | | SETFOV | 00d00m00s or 00.00 | {{en: |
| - | | SETGRID | ON/OFF | Chart -> Lines, Grid -> Show Coordinate Grid | | + | | SETFIELDNUMBER | 1..10 | Set the FOV to one of the predefined field number | |
| - | | SETSTARMODE | 0/1/2 | Setup -> Display -> Display -> Star Display | | + | | GETFOV | S/F | |
| - | | SETNEBMODE | 0/1 | Setup > Display -> Display -> Deep Sky Objects Display | | + | | SETRA | RA: |
| - | | SETAUTOSKY | ON/OFF | Setup -> Display -> Sky Colour | | + | | GETRA | S/F | Chart center RA, S -> 17h07m12s\\ F -> 17.11991 |
| - | | UNDO | | Edit -> Undo | | + | | SETDEC | DEC: |
| - | | REDO | | Edit -> Redo | | + | | GETDEC | S/F | Chart center RA | |
| - | | SETPROJ | ALTAZ/ | + | | SETOBS | LAT: |
| - | | SETFOV | 00d00m00s or 00.00 | {{en: | + | | GETOBS | LAT: |
| - | | SETRA | RA: | + | | SETDATE | yyyy-mm-ddThh: |
| - | | SETDEC | DEC: | + | | GETDATE |
| - | | SETOBS | LAT: | + | | SETTZ | Etc/GMT | Setup -> Observatory (Country Timezone) | |
| - | | IDCURSOR | + | | GETTZ | | | |
| + | | RESIZE | width height | Resize the chart | | ||
| + | | SETCURSOR | pixX pixY | Set the cursor position at the x,y coordinates | | ||
| + | | GETCURSOR | | Current cursor x,y coordinates | | ||
| + | | CENTRECURSOR | | center the chart atthe cursor position, Right-clic -> Center | ||
| | SAVEIMG | PNG/ | | SAVEIMG | PNG/ | ||
| | PRINT | PRT/PS/BMP PORTRAIT/ | | PRINT | PRT/PS/BMP PORTRAIT/ | ||
| - | | SETNORTH | + | | UNDO | | Edit -> Undo | |
| - | | SETSOUTH | + | | REDO | | Edit -> Redo | |
| - | | SETEAST | | Chart -> View Horizon -> East | | + | |
| - | | SETWEST | + | ===== Chart drawing ===== |
| - | | SETZENITH | + | ^ Command ^ Parameters ^ Comment or GUI Equivalent ^ |
| - | | ALLSKY | + | | CLEANUPMAP |
| - | | REDRAW | + | | SETFOVPROJECTION |
| - | | GETCURSOR | + | | SHOWONLYMERIDIAN |
| + | | SHOWALWAYSMERIDIAN | ||
| + | | SETEQGRID | ||
| | GETEQGRID | | | | | GETEQGRID | | | | ||
| + | | SETGRID | ON/OFF | Chart -> Lines, Grid -> Show Coordinate Grid | | ||
| | GETGRID | | | | | GETGRID | | | | ||
| + | | SETSTARMODE | 0/1/2 | Setup -> Display -> Display -> Star Display | | ||
| | GETSTARMODE | | | | | GETSTARMODE | | | | ||
| + | | SETNEBMODE | 0/1 | Setup > Display -> Display -> Deep Sky Objects Display | | ||
| | GETNEBMODE | | | | | GETNEBMODE | | | | ||
| + | | SETAUTOSKY | ON/OFF | Setup -> Display -> Sky Colour | | ||
| | GETAUTOSKY | | | | | GETAUTOSKY | | | | ||
| + | | SETPROJ | ALTAZ/ | ||
| | GETPROJ | | | | | GETPROJ | | | | ||
| - | | GETFOV | + | | SETCHARTEQUINOX |
| - | | GETRA | S/F | S -> 17h07m12s\\ F -> 17.11991 | + | |
| - | | GETDEC | S/F | | | + | |
| - | | GETDATE | | | | + | |
| - | | GETOBS | | | | + | |
| - | | SETDATE | yyyy-mm-ddThh: | + | |
| - | | SETTZ | Etc/GMT | Setup -> Observatory (Country Timezone) | | + | |
| - | | GETTZ | | + | |
| | SETGRIDNUM | ON/OFF | Setup -> Display -> Lines - Show Grid Label | | | SETGRIDNUM | ON/OFF | Setup -> Display -> Lines - Show Grid Label | | ||
| | SETCONSTLINE | ON/OFF | Setup -> Display -> Lines - Show Constellation Figure | | | SETCONSTLINE | ON/OFF | Setup -> Display -> Lines - Show Constellation Figure | | ||
| | SETCONSTBOUNDARY | ON/OFF | Setup -> Display -> Lines - Show Constellation Boundary | | | SETCONSTBOUNDARY | ON/OFF | Setup -> Display -> Lines - Show Constellation Boundary | | ||
| - | | RESIZE | width height | Resize the chart | | ||
| - | | GETRISESET | | Get rise/ | ||
| - | | MOVESCOPE | RA Dec [00.00] | Move the telescope cursor to coordinates. RA in decimal hours. | | ||
| - | | MOVESCOPEH | HourAngle Dec [00.00] | Same as MOVESCOPE but hourangle instead of RA. Hourangle in decimal hours. | | ||
| - | | IDCENTER | | Identify object at chart center | | ||
| - | | IDSCOPE | | Identify object at telescope cursor position | | ||
| | SHOWPICTURE | ON/OFF | Chart -> Show objects -> Show pictures | | | SHOWPICTURE | ON/OFF | Chart -> Show objects -> Show pictures | | ||
| - | | SHOWBGIMAGE | ON/OFF | Show background image | | + | | SHOWBGIMAGE | ON/ |
| | LOADBGIMAGE | fits_filename | Load new background image FITS file, also force reload of updated file if the name is the same. | | | LOADBGIMAGE | fits_filename | Load new background image FITS file, also force reload of updated file if the name is the same. | | ||
| | LOADCIRCLE | file_name | Load a list of finder mark, same as right click - Finder circle - Load from file | | | LOADCIRCLE | file_name | Load a list of finder mark, same as right click - Finder circle - Load from file | | ||
| Line 126: | Line 126: | ||
| | SHOWRECTANGLE | num_list | Set a comma separated list of rectangle to be activated 1,2,...,10 | | | SHOWRECTANGLE | num_list | Set a comma separated list of rectangle to be activated 1,2,...,10 | | ||
| | MARKCENTER | ON/OFF | Show a mark at the chart center, same as Show mark | | | MARKCENTER | ON/OFF | Show a mark at the chart center, same as Show mark | | ||
| - | | GETSCOPERADEC | + | | GETFRAMES |
| - | | TRACKTELESCOPE | + | | PLANISPHEREDATE |
| - | | CONNECTINDI | + | | PLANISPHERETIME | ON/OFF | Show or hide the planisphere time scale | |
| - | | DISCONNECTINDI | + | |
| - | | SLEWINDI | + | ===== Object selection ===== |
| - | | ABORTSLEWINDI | + | ^ Command ^ Parameters ^ Comment or GUI Equivalent ^ |
| - | | SYNCINDI | + | | GETCHARTEQSYS |
| + | | SEARCH | ||
| + | | FIND | ||
| + | | IDCENTER | | Identify object at chart center | ||
| + | | IDCURSOR | ||
| + | | IDSCOPE | ||
| + | | GETSELECTEDOBJECT | | Return information about the last selected object | ||
| + | | GETRISESET | | Get rise/ | ||
| + | |||
| + | ===== Telescope ===== | ||
| + | ^ Command ^ Parameters ^ Comment or GUI Equivalent ^ | ||
| | CONNECTTELESCOPE | | Connect to the default telescope. | | | CONNECTTELESCOPE | | Connect to the default telescope. | | ||
| | DISCONNECTTELESCOPE | | Disconnect the default telescope. | | | DISCONNECTTELESCOPE | | Disconnect the default telescope. | | ||
| Line 138: | Line 148: | ||
| | ABORTSLEW | | Abort the current slewing command. | | | ABORTSLEW | | Abort the current slewing command. | | ||
| | SYNC | RAhr Dec [in decimal] | Sync the default telescope at the specified coordinates. | | | SYNC | RAhr Dec [in decimal] | Sync the default telescope at the specified coordinates. | | ||
| - | | OBSLISTLOAD | + | | GETSCOPERADEC |
| - | | OBSLISTFIRST | | | | + | | TRACKTELESCOPE |
| - | | OBSLISTLAST | | | | + | | SETSCOPEREFRESHRATE |
| - | | OBSLISTNEXT | | | | + | |
| - | | OBSLISTPREV | | | | + | |
| - | | OBSLISTLIMIT | + | |
| - | | OBSLISTAIRMASSLIMIT | + | |
| - | | OBSLISTTRANSITLIMIT | [hours] | | | + | |
| - | | OBSLISTTRANSITSIDE | EAST/ | + | |
| | GETSCOPERATES | | Return a list of movement rate supported by the telescope | | | GETSCOPERATES | | Return a list of movement rate supported by the telescope | | ||
| | SCOPEMOVEAXIS |axis(0/1) rate | Start moving the telescope along (axis) using (rate) | | | SCOPEMOVEAXIS |axis(0/1) rate | Start moving the telescope along (axis) using (rate) | | ||
| - | | SETSCOPEREFRESHRATE | + | ^ Obsolete command specific for a INDI telescope, prefer the command above^^^ |
| - | | PLANISPHEREDATE | + | | CONNECTINDI |
| - | | PLANISPHERETIME | + | | DISCONNECTINDI | | Redirect to DISCONNECTTELESCOPE | |
| - | | SETFOVPROJECTION | + | | SLEWINDI | RAhr Dec [in decimal] | Redirect to SLEW | |
| - | | SHOWONLYMERIDIAN | + | | ABORTSLEWINDI | | Redirect to ABORTSLEW | |
| - | | SHOWALWAYSMERIDIAN | + | | SYNCINDI | RAhr Dec [in decimal] | Redirect to SYNC | |
| - | | CLEANUPMAP | + | ^ This command show a cursor on the chart for a telescope |
| - | | GETCHARTEQSYS | + | | MOVESCOPE | RA Dec [00.00] | Move the telescope cursor to coordinates. RA in decimal hours. |
| + | | MOVESCOPEH | ||
| + | |||
| + | ===== Observing list ===== | ||
| + | ^ Command ^ Parameters ^ Comment | ||
| + | | OBSLISTLOAD | list_file_name | load the observing list | | ||
| + | | OBSLISTFIRST | ||
| + | | OBSLISTLAST | ||
| + | | OBSLISTNEXT | ||
| + | | OBSLISTPREV | | select previous object | | ||
| + | | OBSLISTLIMIT | ||
| + | | OBSLISTAIRMASSLIMIT | ||
| + | | OBSLISTTRANSITLIMIT | ||
| + | | OBSLISTTRANSITSIDE | EAST/ | ||
| ===== V2.7 compatibility DDE command ===== | ===== V2.7 compatibility DDE command ===== | ||
| + | Avoid to use this command that exist to help the migration for older application. | ||
| ^ Command ^ Parameters ^ Comment or GUI Equivalent ^ | ^ Command ^ Parameters ^ Comment or GUI Equivalent ^ | ||
| | MOVE | obsolete RA: 00h00m00.00s DEC: | | MOVE | obsolete RA: 00h00m00.00s DEC: | ||
| Line 184: | Line 203: | ||
| | CONB | obsolete, use SETCONSTBOUNDARY | | | | CONB | obsolete, use SETCONSTBOUNDARY | | | ||
| | EQAZ | obsolete, use SETPROJ | | | | EQAZ | obsolete, use SETPROJ | | | ||
| + | |||
| + | ===== Information about selected object ===== | ||
| + | |||
| + | The following information are returned when an object is selected on the chart, either by a mouse click or as a result of a search. Each field is separated by the <tab> character. | ||
| + | |||
| + | < | ||
| + | |||
| + | * **>** indicate the start of a message. | ||
| + | * **Chart_1 :** the name of the chart the object was selected. | ||
| + | * **23h21m39.85s** RA of the object using current chart equinox. | ||
| + | * **+61°19' | ||
| + | * **Nb** the type of object | ||
| + | * **NGC 7635** the name of the object | ||
| + | Then follow a number of fields whose content depend on the object type and the catalog in use. | ||
| + | |||
| + | If the selection is from a mouse click you can also get this information about the distance from the last selected object: | ||
| + | < | ||
| + | |||
| + | |||
en/documentation/server_commands.1544084165.txt.gz · Last modified: 2018/12/06 09:16 by pch
