<div dir="ltr"><div>Hi</div><div><br></div><div>The syntax `--dump --filename` is incorrect, it should instead be `--dump <filename>`, e.g.<br>kstars --dump /tmp/test.png --width 600 --height 400<br><br></div><div>But this doesn't work as expected at all -- it produces an image with no stars, only guide lines are shown or something of that sort. I vote for disabling the `--dump` option and instead providing DBus as the only way to generate a star map as of now. This is unfortunate, but a fully booted up KStars is less buggier than a half-booted up KStars. You can also achieve much more control through DBus than with --dump.<br><br></div><div>Example (shell script):<br>qdbus org.kde.kstars /KStars org.kde.kstars.lookTowards "M 31" # Point to M 31<br>qdbus org.kde.kstars /KStars org.kde.kstars.exportImage /tmp/test.svg 1024 768 false # Write SVG graphic of size 1024x768 without legend<br><br></div><div>The syntax of exportImage is exportImage(filename, width, height, includeLegend). The file format is determined from the extension. All arguments except "filename" are optional. You can see this in kstars.h:417<br><br></div><div>If you want to control via Python, you can do that too:<br><br>dbus = QtDBus.QDBusConnection.sessionBus()                                                                                                                                                        <br>kstars_dbus = QtDBus.QDBusInterface(                                                                                                                                                              <br>    "org.kde.kstars",                                                                                                                                                                             <br>    "/KStars",                                                                                                                                                                                    <br>    "org.kde.kstars",                                                                                                                                                                             <br>    dbus                                                                                                                                                                                          <br>)                                                                                                                                                                                                 <br>assert kstars_dbus is not None                                                                                                                                                                    <br>if not kstars_dbus.isValid():                                                                                                                                                                     <br>    raise RuntimeError('Could not connect to KStars DBus interface!')                                                                                                                             <br>                                                                                                                                                                                                  <br>kstars_dbus.call(                                                                                                                                                                                 <br>    QtDBus.QDBus.AutoDetect, "<method-name>", argument1, argument2, ...                                                                                                                           <br>)                                                                                                                                                                                                 </div><div><br></div><div>A useful way to find out what methods KStars exposes on DBus, is to run on a terminal:<br><br>qdbus org.kde.kstars /KStars<br><br></div><div>It'll list the signature of all available methods. There are a few other interfaces, but /KStars is the primary one of most value. If you've set it up, qdbus has tab completion which is extremely helpful.<br><br></div><div>Other methods of interest are:<br></div><div>org.kde.kstars.setRaDecJ2000<br></div><div>org.kde.kstars.setApproxFOV<br><br></div><div>There is a bug with setRaDecJ2000 and setRaDec when atmospheric corrections are enabled.<br></div><div><br></div><div>Regards<br></div><div>Akarsh</div><div><br></div></div>