Skip to content

v2.2: one page, full screen, fixes from real installs

Latest

Choose a tag to compare

@jonassneu jonassneu released this 29 Nov 12:35
· 2 commits to main since this release

The site is now one page that anyone can read on a phone, with the hours in full screen for a wall display. The installer has the fixes that installing on real machines turned up. The model and its forecasts are unchanged: v2.2 uses the model files of v2.0.

Live: https://fra.130-61-13-205.sslip.io

Install

Install uv once. On Windows, in cmd or PowerShell, then open a new terminal:

powershell -ExecutionPolicy ByPass -c "irm https://astral.sh/uv/install.ps1 | iex"

Then, on Windows, Linux or macOS:

git clone --branch v2.2 https://github.com/jonassneu/fraalliance-hackmeck.git
cd fraalliance-hackmeck
./install.sh                    # Windows: .\install.cmd
uv run python -m ops.serve

The page is then on http://localhost:8080/. --service runs it in the background; on Windows, use a terminal opened with "Run as administrator". SETUP.md has the requirements, the network access, the outputs and how to remove it.

Update from v2.0 or v2.1

git checkout -- site
git fetch --tags
git checkout v2.2
./install.sh                    # Windows: .\install.cmd

Then restart the service (SETUP.md). The charts page and the 3D view are removed, and the page shows your installation's newest forecast at once.

What changed

The page

  • One page instead of three. It says in plain words which way planes fly now, when that changes and how sure it is. Below that, the next 48 hours sit on one time axis: our direction, the chance of West, the official forecast, the wind along the runways and Runway 18 West.
  • A ruler under the hours has a tick for every hour and names the times. A finger or the pointer on the hours reads one of them; letting go springs back to now.
  • The hours go full screen: on a phone held on its side, or on a wall display, where each new forecast is drawn in place.
  • Light and dark, by the device's setting or the button in the top corner.
  • The page quotes the live record per flight: of 100 flights in the next 24 hours, how many had the direction forecast right, next to the same figure for the official forecast.
  • The charts page and the 3D view are gone.

Forecast and installer

  • A test forecast or an hourly run that was still going when the clock passed the full hour could stop with KeyError: 'tw25_100m'. It now keeps its live inputs. A forecast issued on time is unchanged.
  • Asking for a past hour on an installation without the weather archives now says which files are missing.
  • Windows: install.cmd --service also works in a remote (OpenSSH) session. The scheduled task is registered under the account's SID instead of a name put together from the environment.
  • The installer says that the first test forecast on a new machine can take a few minutes (5 minutes on our Windows laptop, 7 seconds from then on) and waits up to 15.
  • After an update the installer draws the page again from the installation's newest forecast. Before, the page showed the snapshot from the repository until the next hourly run.
  • The live scoring no longer stops on times without a time zone.

In the repository, not part of an installation

  • Two candidate versions run next to the official forecast on the live server since 29 Nov. They start from the direction flown right now, read from aircraft positions; one of them also holds the night hours at the last evening value. They are judged after about a month.
  • node web/check.mjs checks the page in a browser on eight screen sizes, light and dark.
  • The README explains why the forecast does not get much better than this.

Checked

  • GitHub runners with Windows, macOS and Linux: a clean install, a test forecast, one hourly run, the page, the hourly loop, the background service on Windows, and the update steps.
  • A Windows 11 laptop: an update from v2.1, the background service, and a clean install with one hourly run.