Messager Céleste

Journal

Voyager, DragScript and RoboTarget: a night with nobody at the controls

Translated from French.

The telescope is in Texas, at the Starfront remote observatory site. The equipment mostly belongs to Renaud Venne-Landry; I take care of acquisition and automation. Nobody is on site. Every evening, the telescope waits for night, checks the sky, powers up, focuses, picks a target, accumulates exposures, puts itself away at dawn and sends an email to say how it went. All of this rests on a single piece of software, Voyager, and two of its tools: DragScript and RoboTarget.

Since August 2025, this setup has recorded 17,878 exposures over 270 nights, a little over 1,740 hours of integration time on about 70 targets and mosaic panels. An average night yields 6.5 hours of exposures; the best, nearly 10.5 hours. Here is how it is organized.

Three layers

Voyager is easiest to understand in three levels.

  • Voyager drives the hardware and knows how to run complete actions: connect the equipment, slew, plate solve an image, focus, start guiding, run a sequence of exposures.
  • DragScript chains these actions together. It is an editor where you assemble blocks with the mouse, without writing code. Each action can have three follow-ups: If OK, If Error and If Timeout. This is where you decide what happens when something fails.
  • RoboTarget is the scheduler. You describe the targets, the filters, the number of exposures wanted and the constraints to respect; each night, it chooses by itself what to shoot and when.

In this setup, the DragScript takes care of everything surrounding the night: waiting, powering up, connecting, preparing, putting away. In the middle, a single block hands over to RoboTarget for the exposures.

The equipment being driven

The equipment is Renaud's. The refractor is a SharpStar 94EDPH with its reducer (409 mm focal length), the camera a cooled monochrome QHY268M, behind an L, R, G, B, Ha, OIII and SII filter wheel. The mount is an iOptron, focusing is motorized and guiding is handled by PHD2. Power for the whole setup goes through smart plugs that the script turns on and off itself.

The DragScript, block by block

The script is "perpetual": its last instruction restarts it. So it runs day and night, and every morning it starts over from the beginning.

  1. Reset. If the equipment is still connected, guiding is stopped and the mount is parked. The night's logs are copied, everything is forcibly disconnected, the mount and guiding software are closed, and the power is cut. The script then waits for dusk.
  2. Waiting for a safe sky. The safety monitor must give its approval. Then a small external program examines the sky and must answer SKY_GO_OK. Otherwise, the script waits one minute and asks again.
  3. Astronomical night. Nothing turns on before this.
  4. Powering up. The plugs are turned on, the script waits one minute, then sets the mount's clock again.
  5. Connection, with retries. PHD2 is prepared, then Voyager connects all the equipment. On failure: an email, PHD2 is closed, thirty seconds of waiting, and another attempt. After three failed attempts, the script starts over from zero.
  6. Zenith and focus. The camera is cooled, the mount points near the zenith and the RoboFire autofocus focuses on the stars in the field, with the L filter.
  7. Synchronization. An image is solved to realign the mount to the sky; if this fails, a "blind" plate solve takes over.
  8. RoboTarget. The script hands over to the scheduler for the whole night. If there is nothing to do for now, it waits ten minutes and asks again.
  9. End of session. The focus returns to its starting position, the mount goes back to its rest position, the equipment is disconnected, the power is cut, the logs are copied. One last email, and the script restarts for the next night.

Alongside this main thread, events can interrupt the script at any time. If the weather deteriorates, guiding stops, the camera warms up and the mount parks; when the sky comes back, the camera is cooled again and the script resumes directly at the RoboTarget block. A serious error triggers an emergency exit: email, log copy, script restart.

RoboTarget: the wish list

RoboTarget works from a database of targets. For each one, you specify the filters, the exposure time and the number of exposures to reach. A mosaic is simply a series of neighboring targets, one panel at a time: four panels for the Heart and Soul, four for the Crescent region, three for the Witch Head.

Exposures last 600 seconds in narrowband and 180 seconds in broadband. The breakdown by filter shows clearly where the telescope time goes:

FilterExposuresHours
Ha3,146532
OIII2,314386
SII1,773296
L2,882147
R2,697133
G2,525126
B2,541127

The point of the scheduler is that nobody has to decide any more, evening after evening, what will be photographed. One target advances when it is well placed, another takes over when it sets, and a 200-hour project builds up over three months without intervention.

What went wrong, and the lessons to draw from it

Automation is only as good as what it does when things go badly. A few lessons:

  • Connection is the fragile moment. In the logs, 19 PHD2 connections out of 158 failed. A half-failed connection left the equipment in a shaky state for the rest of the night. Hence the retry block, which closes PHD2 before trying again, and the forced disconnection at the start of the script.
  • Every action must have its error branch. An action with no planned follow-up in case of failure means a lost night at the first hiccup.
  • Events must be enabled at the right time. They are disabled at the start, then re-enabled once the sky is judged safe.
  • An email at every step. In the morning, the inbox tells the story of the night.
  • External programs are a great help. Turning on the plugs, checking the sky, preparing PHD2, copying the logs: the DragScript calls a small script, waits for its response and decides based on the text returned.

Around Voyager

Voyager writes very detailed logs. Every morning, they are copied to a server at home, where a dashboard analyzes them: exposure quality, guiding, weather, errors. That will be the subject of a future post.

The images in the gallery are the result of this night work, done in collaboration with Renaud Venne-Landry.