User Tools

Site Tools


code:json

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revisionPrevious revision
Next revision
Previous revision
Next revisionBoth sides next revision
code:json [2017/01/19 19:17] jtellocode:json [2017/02/07 17:17] jtello
Line 6: Line 6:
 |deviceinfo|[[#devices]]|executor|expose|get| |deviceinfo|[[#devices]]|executor|expose|get|
 |hasimage|inc|labellist|labels|[[#lastimage]]| |hasimage|inc|labellist|labels|[[#lastimage]]|
-|messages|night|obytid|plan|runscript|+|messages|night|obytid|plan|[[#runscript]]|
 |satisfied|script|selval|[[#set]]|[[#status]]| |satisfied|script|selval|[[#set]]|[[#status]]|
 |sunalt|taltitudes|tbydistance|tbyid|tbylabel| |sunalt|taltitudes|tbydistance|tbyid|tbylabel|
Line 15: Line 15:
  
 [[https://github.com/RTS2/rts2/blob/master/src/httpd/httpd.cpp|httpd.cpp]] and [[https://github.com/RTS2/rts2/blob/master/src/httpd/api.cpp|api.cpp]] [[https://github.com/RTS2/rts2/blob/master/src/httpd/httpd.cpp|httpd.cpp]] and [[https://github.com/RTS2/rts2/blob/master/src/httpd/api.cpp|api.cpp]]
-[[https://github.com/RTS2/rts2/blob/master/python/rts2/json.py|json.py]]+[[https://github.com/RTS2/rts2/blob/master/python/rts2/json.py|json.py]], this last one being the most informative
  
 ====== cmd ====== ====== cmd ======
Line 29: Line 29:
   http://observatoryserver/apipath/devbytype?t=2   http://observatoryserver/apipath/devbytype?t=2
 will output mounts attached to this rts2 instance. will output mounts attached to this rts2 instance.
- +Where the differt device types are: 
-2: mounts, 3: cameras, 4: domes, +|1|SERVERD|9|GRB|21|IMGPROC| 
 +|2|MOUNT|10|FOCUS|22|SELECTOR| 
 +|3|CCD|11|MIRROR|23|XMLRPC| 
 +|4|DOME|12|CUPOLA|24|INDI| 
 +|5|WEATHER|13|FW|25|LOGD| 
 +|6|ROTATOR|14|AUGERSH|26|SCRIPTOR| 
 +|7|PHOT|15|SENSOR| | | 
 +|8|PLAN|20|EXECUTOR| | |
  
 ====== devices ====== ====== devices ======
Line 40: Line 47:
 Looking at the status of the camera device will often state the last_image as a value. Looking at the status of the camera device will often state the last_image as a value.
  
 +====== runscript ======
 +Will run script.
 +Example: runscript?d=C0&s=E%201 
 +(in this case the script has a space which is replaced with '%20' to comply with http urls standards).
  
 ====== set ====== ====== set ======
code/json.txt · Last modified: 2017/02/07 00:00 (external edit)