Astronomo

Mission: Help amateur astronomers contribute meaningfully to real science.

  • Python
  • LangGraph
  • FastAPI
  • React
  • SQLite
  • Astropy
  • Photutils
  • ASCOM Alpaca

What it is

Astronomo is an open source, auditable, extendable pipeline that points a small telescope at a star the networks have asked amateurs to measure, captures frames, reduces the data, checks its findings against a professional catalogue, and writes a file in the correct format to be submitted to the network. Astronomo's core is the scientific loop.

  1. Fetch a network's targets
  2. Check weather
  3. Observe
  4. Reduce
  5. Cross-reference
  6. Prepare upload file
  7. Screen for anomalies
  8. Keep a mission log

Different science cases are built as plugins on top of the core. Variable stars, whose brightness changes over time, are the first science case and shipped as a complete plugin. Exoplanet transits, where a planet passes in front of its star, is the next planned plugin and is currently in development.

Targets come from the networks’ own priority lists (the AAVSO Target Tool, ExoClock, NASA Exoplanet Watch). Astronomo does not aim to rediscover targets that are already known.

To add anything to the record, Astronomo's work has to survive the same review as anyone else’s. The error bars have to be true, and what hasn’t been seen yet is listed as prominently as what has.

Why I’m building this

Smart telescopes like the Seestar have only recently made it practical for one person with modest equipment to help meet a real need for more data. I’m building my own small observatory to be part of pushing what we know a little further.

I want amateur astronomers and hobbyists everywhere to be able to participate in the process and contribute to our shared knowledge without building their own pipeline.

I also wanted to work with real hardware and all of the challenges that come with it, flexing my engineering skills beyond the realm of pure software.

The long-term goal

The aim is the whole scientific loop. Propose what to observe, observe it, analyse the data, test the finding, then submit or rework and go around again. A language model takes that on one checked decision at a time. The guardrails, rigour requirements, and safety limits are deterministic and never touched by the model.

What building it takes

  • Designing trustworthy agentic systems

    Autonomy is added one checked decision at a time, and each one has a deterministic fallback that does not need the model.

    See it in the log: The decision behind it →
  • Hardware integration and debugging

    The Seestar is driven over ASCOM Alpaca. A driver that had only seen a fake server was wrong on the first real night.

    See it in the log: First light →
  • Building it so others can run it

    A one-command installer, a roadmap where every phase has exit criteria, and the decisions written down with their reasons. Getting the release process wrong went in the log too.

    See it in the log: Going public →
  • Rigour and honest reporting

    A quoted error is checked against Gaia before it is trusted, and a night that does not count is written down as not counting.

    See it in the log: A night that didn't count →

Where it honestly stands

In simulation, a full mission runs end to end and the tests cover Python 3.10 to 3.13.

Seen on a real telescope

  • Two short variable-star visits on a Seestar S50 Pro. The magnitudes sit inside the quoted error of Gaia.
  • Autofocus, a local plate solve and a corrected slew have worked on the sky.
  • The telescope and the internet reached from one computer over the home network. Bench only, not on the sky.

Not seen yet

  • A clean 40-frame night with nothing assumed.
  • A whole mission over station mode.
  • A live AAVSO file, and a file accepted by a network.
  • A transit. The transit plugin is proven in simulation only.
  • Any discovery claim. “Unidentified” only ever means “not explained by the objects queried.”

Mission log

Newest first. Nights on the sky, what went wrong, and what changed because of it.

  1. Research

    Asking the AAVSO what it wants to receive

    Before putting a file through to the AAVSO, I wanted to know what they actually accept from a Seestar, so I read first and wrote down who said what.

    • Read the community thread on Seestar photometry on the AAVSO forum and recorded which claims are community-reported rather than AAVSO statements.
    • Posted a question in that thread. At the time of writing there was no reply from AAVSO staff and the post had not been approved.
    • Found no announcement of a new intake tool or file format. The belief that one exists has no source yet, so it is written down as unconfirmed.

    What it changedNo file format gets targeted until there is an answer. Guessing at an intake format is how you build the wrong thing carefully.

  2. Release

    Going public, and what the CI matrix caught

    The repository went public under Apache-2.0 with branch protection that requires the tests.

    • A fresh install on Python 3.12 and 3.13 failed 20 tests. NumPy 2.5 no longer turns a one-element array into a float, in the pointing check that runs before a real capture. It was a two-line fix, and the 3.10 runs could never have seen it because NumPy 2.3+ will not install there.
    • CI now runs Python 3.10 to 3.13 daily, each with a clean install of the newest libraries the requirements allow.
    • The README went from 341 to 144 lines. History moved into a field journal, and every topic got one home.
    • What went wrong: the branch ruleset was first set with no required checks, so a pull request merged while its tests were still running. The owner bypass was also too loose and let two docs-only commits straight to main. Both are fixed and written down.

    What it changedRequirements that list only minimums mean new users get the newest libraries, not the ones you tested. A matrix on clean installs is what finds that.

  3. Hardware

    The telescope on the home network

    Bench only, no sky, no frames. The goal was to reach the telescope and the internet at the same time.

    • Station mode joined the Wi-Fi and then failed with “network connect failed.” The router used 10.0.0.x, a range ZWO restricts for station mode because the telescope's own hotspot uses it.
    • Moving the router to 192.168.1.x fixed it. The telescope joined, the Alpaca server answered, and Open-Meteo and the Harvard VizieR mirror were reachable from the same computer.
    • The hardware check passed over the home network.
    • Decided to move forward without an MPC observatory code, and to keep the asteroid and Rubin plugins as drafts that are refused on a real telescope unless you opt in.

    What it changedThe blocker on every earlier night was internet or telescope, never both. Station mode removes that split, so the next real night can run with nothing assumed.

  4. Build

    Making the data usable

    The V0381 And runs gave me results I could not trust, so I built the tools to find out why.

    • A frame watch measures every frame's star flux, sky level, star width and drift. On the 40-frame night it showed a smooth fade of about 40% in sky and star flux together, which is thin cloud or dew, not tracking.
    • A maximum-altitude limit (default 70°) keeps targets away from the zenith, where field rotation made every star's flux swing by up to 35% between frames.
    • A colour term fitted against the comparison stars' Gaia BP-RP cut the zero-point scatter from 0.14 to 0.04 mag on the good night. The magnitude moved from 7.11 to 7.32 ± 0.04, against Gaia's mean G of 7.33.
    • Tried a flat built from the night's own frames and removed it, because it did nothing for the trend.

    What it changedMeasure what went wrong before fixing it. The 35% swings looked like noise and were transparency.

  5. On the sky

    Two visits that match Gaia

    Two 12-frame variable-star visits on Hat-P-23 finished on the telescope, and both missions reached COMPLETE.

    • Autofocus ran. The first slews landed 161 and 56.6 arcmin off, with the target off the chip. One pointing correction each put it back on.
    • Reanalysed magnitudes: 12.145 ± 0.057 and 12.139 ± 0.042, both inside the quoted error of Gaia G 12.162.
    • Caveats, because they matter: these were short visits under an assumed-clear sky, and the live AAVSO file was held because the VizieR host did not resolve on the telescope's own Wi-Fi.
    • The second sequence drifted +0.12 mag, more than twice its quoted error, on a steady sky. That is logged as open, not explained away.

    What it changedA magnitude that matches the catalogue is the first honest signal, not the finish line. The clean 40-frame night is still ahead.

  6. On the sky

    Autofocus worked, and then I couldn't find the star

    Autofocus moved a real focuser and sharpened the stars from 4.1 to 2.2 px. Then the photometry found nothing at the target.

    • At 2.2 px, a star on the raw colour mosaic is four bright green pixels around a dead centre, which the star finder could not see.
    • Fix: narrow Seestar frames are averaged 2×2 before measuring, and the first-frame check now reports whether a star is detected at the target.
    • The first night's stars had been about 8.5 px wide when 3 to 4 px is expected at this scale, which is what the focus work was for.

    What it changedFixing one problem exposed the next. Sharper frames broke a finder that had only ever seen soft ones.

  7. On the sky

    Forty frames of the wrong field

    Plan #4 (HD 189733) took all 40 frames and measured nothing, because the telescope was pointing at a different patch of sky.

    • Gaia could not be reached that night, so the stars were not matched and nobody noticed until later.
    • Plate-solving the frames the next day showed the camera centre about 87 arcmin from the command, with the target off the chip.
    • The header said 1.195 arcsec/pixel because the 2160×3840 frame had been treated as half-scale. The solved scale was 2.24, so a search around 1.195 could never match.
    • This night does not count toward any goal, and it is written down as not counting.

    What it changedA pointing check has to be able to stop a night. It now solves locally and slews again, up to two corrections, when the target is off the chip.

  8. Build

    Make it installable, make it testable

    Groundwork so someone other than me could run it.

    • Packaging, a one-command installer (python3 install.py) that ends with a simulated run as a self-test, and startup checks that name what is wrong instead of failing deep in a mission.
    • CI went green for the first time. The interlock tests (Sun, Moon, altitude, observing window) protect real equipment, so a break has to be visible.
    • Variable-star plans a person can rehearse or start, and a scheduler that lists due plans and resumes weather waits but never starts a night by itself.

    What it changedAnything that can move a real telescope should be hard to start by accident.

  9. On the sky

    First light, sort of

    A Seestar S50 Pro on firmware 9.75, driven over ASCOM Alpaca. The hardware check passed: connect, location match, park.

    • The first capture, WASP-181 b, saved 32 of 480 frames, all before ingress and through a tree, and then the computer left the telescope's Wi-Fi.
    • Two driver fixes came out of it: ImageBytes element type 8 is uint16, and tracking has to be enabled after the slew because the mount refuses it while the arm is down.
    • Chose Alpaca over the authentication handshake that firmware 7.18+ uses for its other control channel. Whether to use a key taken from the vendor's app is a legal and ethical call for the owner, so it is left out on purpose.

    What it changedA driver tested only against a fake server is self-consistent and can still be wrong. The first real night found two bugs that tests could not.

  10. Decision

    Participate, don't discover. Keep the graph deterministic.

    Two decisions that shaped everything after: what to observe, and who is in charge.

    • A discovery goal was rejected. A 50 mm telescope cannot out-discover a survey, so the work is to measure what the networks ask for.
    • A free-roaming agent was rejected. The mission is a deterministic graph, because the optics are real.
    • A model gets one checked decision at a time, with a fallback that does not need it.

    What it changedToday the model writes one piece of advisory prose and controls nothing.