|
|
Line 278: |
Line 278: |
|
| |
|
| == Using == | | == Using == |
| Add the line
| | Start fgfs with option "--httpd=5701" (the port number is free, but 5701 is used by the showcase HTML script). Enter the URL |
| <syntaxhighlight>
| |
| <canvasimage>/canvasimage</canvasimage>
| |
| </syntaxhighlight >
| |
| to the uri handler defined in file FG_ROOT/httpd-settings.xml
| |
| | |
| <syntaxhighlight lang="xml">
| |
| <uri-handler>
| |
| <screenshot>/screenshot</screenshot>
| |
| <property>/props/</property>
| |
| <json>/json/</json>
| |
| <pkg>/pkg/</pkg>
| |
| <flighthistory>/flighthistory/</flighthistory>
| |
| <run>/run.cgi</run>
| |
| <navdb>/navdb</navdb>
| |
| <canvasimage>/canvasimage</canvasimage>
| |
| </uri-handler>
| |
| | |
| </syntaxhighlight>
| |
| | |
| and start fgfs with option "--httpd=5701" (the port number is free, but 5701 is used by the showcase HTML script). Enter the URL
| |
| <syntaxhighlight> | | <syntaxhighlight> |
| localhost:5701/canvasimage?type=png&canvasindex=0 | | localhost:5701/canvasimage?type=png&canvasindex=0 |