twobells 0.2.1__tar.gz → 0.2.2__tar.gz
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- {twobells-0.2.1/src/twobells.egg-info → twobells-0.2.2}/PKG-INFO +1 -1
- {twobells-0.2.1 → twobells-0.2.2}/pyproject.toml +1 -1
- {twobells-0.2.1 → twobells-0.2.2}/src/twobells/dashboard/config.py +2 -2
- {twobells-0.2.1 → twobells-0.2.2}/src/twobells/dashboard/enrich.py +25 -14
- {twobells-0.2.1 → twobells-0.2.2}/src/twobells/settings/schema.py +1 -1
- {twobells-0.2.1 → twobells-0.2.2}/src/twobells/sources/livebus.py +60 -33
- {twobells-0.2.1 → twobells-0.2.2}/src/twobells/timetable/build.py +40 -28
- {twobells-0.2.1 → twobells-0.2.2/src/twobells.egg-info}/PKG-INFO +1 -1
- {twobells-0.2.1 → twobells-0.2.2}/LICENSE +0 -0
- {twobells-0.2.1 → twobells-0.2.2}/README.md +0 -0
- {twobells-0.2.1 → twobells-0.2.2}/setup.cfg +0 -0
- {twobells-0.2.1 → twobells-0.2.2}/src/twobells/__init__.py +0 -0
- {twobells-0.2.1 → twobells-0.2.2}/src/twobells/__main__.py +0 -0
- {twobells-0.2.1 → twobells-0.2.2}/src/twobells/board/__init__.py +0 -0
- {twobells-0.2.1 → twobells-0.2.2}/src/twobells/board/app.py +0 -0
- {twobells-0.2.1 → twobells-0.2.2}/src/twobells/board/displays/__init__.py +0 -0
- {twobells-0.2.1 → twobells-0.2.2}/src/twobells/board/displays/display.py +0 -0
- {twobells-0.2.1 → twobells-0.2.2}/src/twobells/board/displays/screen.py +0 -0
- {twobells-0.2.1 → twobells-0.2.2}/src/twobells/board/displays/waveshare.py +0 -0
- {twobells-0.2.1 → twobells-0.2.2}/src/twobells/board/dotfont.py +0 -0
- {twobells-0.2.1 → twobells-0.2.2}/src/twobells/board/flaps.py +0 -0
- {twobells-0.2.1 → twobells-0.2.2}/src/twobells/board/fonts/Inter-ExtraBold.ttf +0 -0
- {twobells-0.2.1 → twobells-0.2.2}/src/twobells/board/fonts/Inter-Regular.ttf +0 -0
- {twobells-0.2.1 → twobells-0.2.2}/src/twobells/board/fonts/LICENSE +0 -0
- {twobells-0.2.1 → twobells-0.2.2}/src/twobells/board/fonts/SHA256SUMS +0 -0
- {twobells-0.2.1 → twobells-0.2.2}/src/twobells/board/panel.py +0 -0
- {twobells-0.2.1 → twobells-0.2.2}/src/twobells/board/platformclock.py +0 -0
- {twobells-0.2.1 → twobells-0.2.2}/src/twobells/board/positions.py +0 -0
- {twobells-0.2.1 → twobells-0.2.2}/src/twobells/board/render.py +0 -0
- {twobells-0.2.1 → twobells-0.2.2}/src/twobells/board/route.py +0 -0
- {twobells-0.2.1 → twobells-0.2.2}/src/twobells/board/scroll.py +0 -0
- {twobells-0.2.1 → twobells-0.2.2}/src/twobells/board/sign.py +0 -0
- {twobells-0.2.1 → twobells-0.2.2}/src/twobells/board/speaker.py +0 -0
- {twobells-0.2.1 → twobells-0.2.2}/src/twobells/board/splitflap.py +0 -0
- {twobells-0.2.1 → twobells-0.2.2}/src/twobells/board/state.py +0 -0
- {twobells-0.2.1 → twobells-0.2.2}/src/twobells/board/tft.py +0 -0
- {twobells-0.2.1 → twobells-0.2.2}/src/twobells/board/themes.py +0 -0
- {twobells-0.2.1 → twobells-0.2.2}/src/twobells/board/view.py +0 -0
- {twobells-0.2.1 → twobells-0.2.2}/src/twobells/cli/__init__.py +0 -0
- {twobells-0.2.1 → twobells-0.2.2}/src/twobells/cli/common.py +0 -0
- {twobells-0.2.1 → twobells-0.2.2}/src/twobells/cli/dev.py +0 -0
- {twobells-0.2.1 → twobells-0.2.2}/src/twobells/cli/main.py +0 -0
- {twobells-0.2.1 → twobells-0.2.2}/src/twobells/cli/run.py +0 -0
- {twobells-0.2.1 → twobells-0.2.2}/src/twobells/cli/serve.py +0 -0
- {twobells-0.2.1 → twobells-0.2.2}/src/twobells/cli/setup.py +0 -0
- {twobells-0.2.1 → twobells-0.2.2}/src/twobells/cli/timetable.py +0 -0
- {twobells-0.2.1 → twobells-0.2.2}/src/twobells/core/__init__.py +0 -0
- {twobells-0.2.1 → twobells-0.2.2}/src/twobells/core/announce.py +0 -0
- {twobells-0.2.1 → twobells-0.2.2}/src/twobells/core/budget.py +0 -0
- {twobells-0.2.1 → twobells-0.2.2}/src/twobells/core/calling.py +0 -0
- {twobells-0.2.1 → twobells-0.2.2}/src/twobells/core/errors.py +0 -0
- {twobells-0.2.1 → twobells-0.2.2}/src/twobells/core/files.py +0 -0
- {twobells-0.2.1 → twobells-0.2.2}/src/twobells/core/model.py +0 -0
- {twobells-0.2.1 → twobells-0.2.2}/src/twobells/core/net.py +0 -0
- {twobells-0.2.1 → twobells-0.2.2}/src/twobells/core/osgb.py +0 -0
- {twobells-0.2.1 → twobells-0.2.2}/src/twobells/core/polling.py +0 -0
- {twobells-0.2.1 → twobells-0.2.2}/src/twobells/core/safexml.py +0 -0
- {twobells-0.2.1 → twobells-0.2.2}/src/twobells/core/walk.py +0 -0
- {twobells-0.2.1 → twobells-0.2.2}/src/twobells/core/words.py +0 -0
- {twobells-0.2.1 → twobells-0.2.2}/src/twobells/dashboard/__init__.py +0 -0
- {twobells-0.2.1 → twobells-0.2.2}/src/twobells/dashboard/area.py +0 -0
- {twobells-0.2.1 → twobells-0.2.2}/src/twobells/dashboard/collector.py +0 -0
- {twobells-0.2.1 → twobells-0.2.2}/src/twobells/dashboard/history.py +0 -0
- {twobells-0.2.1 → twobells-0.2.2}/src/twobells/dashboard/performance.py +0 -0
- {twobells-0.2.1 → twobells-0.2.2}/src/twobells/dashboard/repay.py +0 -0
- {twobells-0.2.1 → twobells-0.2.2}/src/twobells/dashboard/snapshot.py +0 -0
- {twobells-0.2.1 → twobells-0.2.2}/src/twobells/dashboard_static/alerts.js +0 -0
- {twobells-0.2.1 → twobells-0.2.2}/src/twobells/dashboard_static/api.js +0 -0
- {twobells-0.2.1 → twobells-0.2.2}/src/twobells/dashboard_static/app.css +0 -0
- {twobells-0.2.1 → twobells-0.2.2}/src/twobells/dashboard_static/area.js +0 -0
- {twobells-0.2.1 → twobells-0.2.2}/src/twobells/dashboard_static/board.js +0 -0
- {twobells-0.2.1 → twobells-0.2.2}/src/twobells/dashboard_static/disruptions.js +0 -0
- {twobells-0.2.1 → twobells-0.2.2}/src/twobells/dashboard_static/dom.js +0 -0
- {twobells-0.2.1 → twobells-0.2.2}/src/twobells/dashboard_static/extras.js +0 -0
- {twobells-0.2.1 → twobells-0.2.2}/src/twobells/dashboard_static/flap.js +0 -0
- {twobells-0.2.1 → twobells-0.2.2}/src/twobells/dashboard_static/fonts/DepartureboardDots.woff2 +0 -0
- {twobells-0.2.1 → twobells-0.2.2}/src/twobells/dashboard_static/fonts/LICENSE +0 -0
- {twobells-0.2.1 → twobells-0.2.2}/src/twobells/dashboard_static/fonts/SHA256SUMS +0 -0
- {twobells-0.2.1 → twobells-0.2.2}/src/twobells/dashboard_static/header.js +0 -0
- {twobells-0.2.1 → twobells-0.2.2}/src/twobells/dashboard_static/hero.js +0 -0
- {twobells-0.2.1 → twobells-0.2.2}/src/twobells/dashboard_static/history.js +0 -0
- {twobells-0.2.1 → twobells-0.2.2}/src/twobells/dashboard_static/icons/apple-touch-icon.png +0 -0
- {twobells-0.2.1 → twobells-0.2.2}/src/twobells/dashboard_static/icons/icon-192.png +0 -0
- {twobells-0.2.1 → twobells-0.2.2}/src/twobells/dashboard_static/icons/icon-512.png +0 -0
- {twobells-0.2.1 → twobells-0.2.2}/src/twobells/dashboard_static/icons/icon.svg +0 -0
- {twobells-0.2.1 → twobells-0.2.2}/src/twobells/dashboard_static/icons.js +0 -0
- {twobells-0.2.1 → twobells-0.2.2}/src/twobells/dashboard_static/index.html +0 -0
- {twobells-0.2.1 → twobells-0.2.2}/src/twobells/dashboard_static/kiosk.js +0 -0
- {twobells-0.2.1 → twobells-0.2.2}/src/twobells/dashboard_static/live.js +0 -0
- {twobells-0.2.1 → twobells-0.2.2}/src/twobells/dashboard_static/look.js +0 -0
- {twobells-0.2.1 → twobells-0.2.2}/src/twobells/dashboard_static/main.js +0 -0
- {twobells-0.2.1 → twobells-0.2.2}/src/twobells/dashboard_static/manifest.webmanifest +0 -0
- {twobells-0.2.1 → twobells-0.2.2}/src/twobells/dashboard_static/map.js +0 -0
- {twobells-0.2.1 → twobells-0.2.2}/src/twobells/dashboard_static/measures.js +0 -0
- {twobells-0.2.1 → twobells-0.2.2}/src/twobells/dashboard_static/pa.js +0 -0
- {twobells-0.2.1 → twobells-0.2.2}/src/twobells/dashboard_static/performance.html +0 -0
- {twobells-0.2.1 → twobells-0.2.2}/src/twobells/dashboard_static/performance.js +0 -0
- {twobells-0.2.1 → twobells-0.2.2}/src/twobells/dashboard_static/platformclock.js +0 -0
- {twobells-0.2.1 → twobells-0.2.2}/src/twobells/dashboard_static/sheet.js +0 -0
- {twobells-0.2.1 → twobells-0.2.2}/src/twobells/dashboard_static/show.js +0 -0
- {twobells-0.2.1 → twobells-0.2.2}/src/twobells/dashboard_static/strip.js +0 -0
- {twobells-0.2.1 → twobells-0.2.2}/src/twobells/dashboard_static/theme.js +0 -0
- {twobells-0.2.1 → twobells-0.2.2}/src/twobells/dashboard_static/time.js +0 -0
- {twobells-0.2.1 → twobells-0.2.2}/src/twobells/dashboard_static/train.js +0 -0
- {twobells-0.2.1 → twobells-0.2.2}/src/twobells/dashboard_static/vendor/inter-4.1/InterVariable.woff2 +0 -0
- {twobells-0.2.1 → twobells-0.2.2}/src/twobells/dashboard_static/vendor/inter-4.1/LICENSE +0 -0
- {twobells-0.2.1 → twobells-0.2.2}/src/twobells/dashboard_static/vendor/inter-4.1/SHA256SUMS +0 -0
- {twobells-0.2.1 → twobells-0.2.2}/src/twobells/dashboard_static/vendor/leaflet-1.9.4/LICENSE +0 -0
- {twobells-0.2.1 → twobells-0.2.2}/src/twobells/dashboard_static/vendor/leaflet-1.9.4/SHA256SUMS +0 -0
- {twobells-0.2.1 → twobells-0.2.2}/src/twobells/dashboard_static/vendor/leaflet-1.9.4/leaflet-src.esm.js +0 -0
- {twobells-0.2.1 → twobells-0.2.2}/src/twobells/dashboard_static/vendor/leaflet-1.9.4/leaflet.css +0 -0
- {twobells-0.2.1 → twobells-0.2.2}/src/twobells/dashboard_static/weather.js +0 -0
- {twobells-0.2.1 → twobells-0.2.2}/src/twobells/data/gb_stations.csv +0 -0
- {twobells-0.2.1 → twobells-0.2.2}/src/twobells/data/naptan_area_grid.csv +0 -0
- {twobells-0.2.1 → twobells-0.2.2}/src/twobells/emulator/__init__.py +0 -0
- {twobells-0.2.1 → twobells-0.2.2}/src/twobells/emulator/emulation.py +0 -0
- {twobells-0.2.1 → twobells-0.2.2}/src/twobells/emulator/emulator.html +0 -0
- {twobells-0.2.1 → twobells-0.2.2}/src/twobells/emulator/fake.py +0 -0
- {twobells-0.2.1 → twobells-0.2.2}/src/twobells/emulator/server.py +0 -0
- {twobells-0.2.1 → twobells-0.2.2}/src/twobells/fetch/__init__.py +0 -0
- {twobells-0.2.1 → twobells-0.2.2}/src/twobells/fetch/handoff.py +0 -0
- {twobells-0.2.1 → twobells-0.2.2}/src/twobells/fetch/service.py +0 -0
- {twobells-0.2.1 → twobells-0.2.2}/src/twobells/settings/__init__.py +0 -0
- {twobells-0.2.1 → twobells-0.2.2}/src/twobells/settings/config.py +0 -0
- {twobells-0.2.1 → twobells-0.2.2}/src/twobells/settings/installs.py +0 -0
- {twobells-0.2.1 → twobells-0.2.2}/src/twobells/settings/keyresults.py +0 -0
- {twobells-0.2.1 → twobells-0.2.2}/src/twobells/settings/overlay.py +0 -0
- {twobells-0.2.1 → twobells-0.2.2}/src/twobells/settings/show.py +0 -0
- {twobells-0.2.1 → twobells-0.2.2}/src/twobells/settings/store.py +0 -0
- {twobells-0.2.1 → twobells-0.2.2}/src/twobells/setup/__init__.py +0 -0
- {twobells-0.2.1 → twobells-0.2.2}/src/twobells/setup/api.py +0 -0
- {twobells-0.2.1 → twobells-0.2.2}/src/twobells/setup/discover.py +0 -0
- {twobells-0.2.1 → twobells-0.2.2}/src/twobells/setup/keytest.py +0 -0
- {twobells-0.2.1 → twobells-0.2.2}/src/twobells/setup/lookups.py +0 -0
- {twobells-0.2.1 → twobells-0.2.2}/src/twobells/setup/spool/__init__.py +0 -0
- {twobells-0.2.1 → twobells-0.2.2}/src/twobells/setup/spool/checks.py +0 -0
- {twobells-0.2.1 → twobells-0.2.2}/src/twobells/setup/spool/folder.py +0 -0
- {twobells-0.2.1 → twobells-0.2.2}/src/twobells/setup/spool/runner.py +0 -0
- {twobells-0.2.1 → twobells-0.2.2}/src/twobells/setup/spool/worker.py +0 -0
- {twobells-0.2.1 → twobells-0.2.2}/src/twobells/sources/__init__.py +0 -0
- {twobells-0.2.1 → twobells-0.2.2}/src/twobells/sources/bods.py +0 -0
- {twobells-0.2.1 → twobells-0.2.2}/src/twobells/sources/bodsbus.py +0 -0
- {twobells-0.2.1 → twobells-0.2.2}/src/twobells/sources/darwin.py +0 -0
- {twobells-0.2.1 → twobells-0.2.2}/src/twobells/sources/disruptions.py +0 -0
- {twobells-0.2.1 → twobells-0.2.2}/src/twobells/sources/holidays.py +0 -0
- {twobells-0.2.1 → twobells-0.2.2}/src/twobells/sources/lastbus.py +0 -0
- {twobells-0.2.1 → twobells-0.2.2}/src/twobells/sources/transportapi.py +0 -0
- {twobells-0.2.1 → twobells-0.2.2}/src/twobells/sources/weather.py +0 -0
- {twobells-0.2.1 → twobells-0.2.2}/src/twobells/timetable/__init__.py +0 -0
- {twobells-0.2.1 → twobells-0.2.2}/src/twobells/timetable/model.py +0 -0
- {twobells-0.2.1 → twobells-0.2.2}/src/twobells/timetable/roads.py +0 -0
- {twobells-0.2.1 → twobells-0.2.2}/src/twobells/timetable/routesetup.py +0 -0
- {twobells-0.2.1 → twobells-0.2.2}/src/twobells/version.py +0 -0
- {twobells-0.2.1 → twobells-0.2.2}/src/twobells/web/__init__.py +0 -0
- {twobells-0.2.1 → twobells-0.2.2}/src/twobells/web/auth.py +0 -0
- {twobells-0.2.1 → twobells-0.2.2}/src/twobells/web/formpages.py +0 -0
- {twobells-0.2.1 → twobells-0.2.2}/src/twobells/web/groupform.py +0 -0
- {twobells-0.2.1 → twobells-0.2.2}/src/twobells/web/icons.py +0 -0
- {twobells-0.2.1 → twobells-0.2.2}/src/twobells/web/keyspage.py +0 -0
- {twobells-0.2.1 → twobells-0.2.2}/src/twobells/web/keystate.py +0 -0
- {twobells-0.2.1 → twobells-0.2.2}/src/twobells/web/netguard.py +0 -0
- {twobells-0.2.1 → twobells-0.2.2}/src/twobells/web/overview.py +0 -0
- {twobells-0.2.1 → twobells-0.2.2}/src/twobells/web/places.py +0 -0
- {twobells-0.2.1 → twobells-0.2.2}/src/twobells/web/server.py +0 -0
- {twobells-0.2.1 → twobells-0.2.2}/src/twobells/web/settings.js +0 -0
- {twobells-0.2.1 → twobells-0.2.2}/src/twobells/web/settingsite.py +0 -0
- {twobells-0.2.1 → twobells-0.2.2}/src/twobells/web/status.py +0 -0
- {twobells-0.2.1 → twobells-0.2.2}/src/twobells/web/web.css +0 -0
- {twobells-0.2.1 → twobells-0.2.2}/src/twobells/web/windowrows.py +0 -0
- {twobells-0.2.1 → twobells-0.2.2}/src/twobells/wizard_static/api.js +0 -0
- {twobells-0.2.1 → twobells-0.2.2}/src/twobells/wizard_static/finish.js +0 -0
- {twobells-0.2.1 → twobells-0.2.2}/src/twobells/wizard_static/home.js +0 -0
- {twobells-0.2.1 → twobells-0.2.2}/src/twobells/wizard_static/index.html +0 -0
- {twobells-0.2.1 → twobells-0.2.2}/src/twobells/wizard_static/keys.js +0 -0
- {twobells-0.2.1 → twobells-0.2.2}/src/twobells/wizard_static/maps.js +0 -0
- {twobells-0.2.1 → twobells-0.2.2}/src/twobells/wizard_static/presets.js +0 -0
- {twobells-0.2.1 → twobells-0.2.2}/src/twobells/wizard_static/roads.js +0 -0
- {twobells-0.2.1 → twobells-0.2.2}/src/twobells/wizard_static/say.js +0 -0
- {twobells-0.2.1 → twobells-0.2.2}/src/twobells/wizard_static/state.js +0 -0
- {twobells-0.2.1 → twobells-0.2.2}/src/twobells/wizard_static/station.js +0 -0
- {twobells-0.2.1 → twobells-0.2.2}/src/twobells/wizard_static/steps.js +0 -0
- {twobells-0.2.1 → twobells-0.2.2}/src/twobells/wizard_static/stops.js +0 -0
- {twobells-0.2.1 → twobells-0.2.2}/src/twobells/wizard_static/views.js +0 -0
- {twobells-0.2.1 → twobells-0.2.2}/src/twobells/wizard_static/walk.js +0 -0
- {twobells-0.2.1 → twobells-0.2.2}/src/twobells/wizard_static/wizard.css +0 -0
- {twobells-0.2.1 → twobells-0.2.2}/src/twobells/wizard_static/wizard.js +0 -0
- {twobells-0.2.1 → twobells-0.2.2}/src/twobells.egg-info/SOURCES.txt +0 -0
- {twobells-0.2.1 → twobells-0.2.2}/src/twobells.egg-info/dependency_links.txt +0 -0
- {twobells-0.2.1 → twobells-0.2.2}/src/twobells.egg-info/entry_points.txt +0 -0
- {twobells-0.2.1 → twobells-0.2.2}/src/twobells.egg-info/requires.txt +0 -0
- {twobells-0.2.1 → twobells-0.2.2}/src/twobells.egg-info/top_level.txt +0 -0
- {twobells-0.2.1 → twobells-0.2.2}/tests/test_deploy.py +0 -0
- {twobells-0.2.1 → twobells-0.2.2}/tests/test_docs.py +0 -0
- {twobells-0.2.1 → twobells-0.2.2}/tests/test_version.py +0 -0
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.4
|
|
2
2
|
Name: twobells
|
|
3
|
-
Version: 0.2.
|
|
3
|
+
Version: 0.2.2
|
|
4
4
|
Summary: Two Bells: know when to leave. Train and bus departures for Great Britain, on an e-paper or HDMI board on a Raspberry Pi and on a web dashboard, installed on a Pi, in Docker or on a desktop
|
|
5
5
|
Author: Albert Cornelissen
|
|
6
6
|
License-Expression: MIT
|
|
@@ -4,7 +4,7 @@ build-backend = "setuptools.build_meta"
|
|
|
4
4
|
|
|
5
5
|
[project]
|
|
6
6
|
name = "twobells"
|
|
7
|
-
version = "0.2.
|
|
7
|
+
version = "0.2.2"
|
|
8
8
|
description = "Two Bells: know when to leave. Train and bus departures for Great Britain, on an e-paper or HDMI board on a Raspberry Pi and on a web dashboard, installed on a Pi, in Docker or on a desktop"
|
|
9
9
|
readme = "README.md"
|
|
10
10
|
requires-python = ">=3.11"
|
|
@@ -93,7 +93,7 @@ class DashboardOptions:
|
|
|
93
93
|
|
|
94
94
|
state_dir: str | None = None
|
|
95
95
|
train_rows: int = 10
|
|
96
|
-
bus_rows: int =
|
|
96
|
+
bus_rows: int = 15 # about half an hour across five stops
|
|
97
97
|
train_interval_seconds: int = 60
|
|
98
98
|
bus_interval_seconds: int = 30
|
|
99
99
|
weather_interval_minutes: int = 30
|
|
@@ -174,7 +174,7 @@ def dashboard_options(data: dict) -> DashboardOptions:
|
|
|
174
174
|
return DashboardOptions(
|
|
175
175
|
state_dir=state_dir,
|
|
176
176
|
train_rows=_ranged(section, "train_rows", 10, 1, _MAX_ROWS),
|
|
177
|
-
bus_rows=_ranged(section, "bus_rows",
|
|
177
|
+
bus_rows=_ranged(section, "bus_rows", 15, 1, _MAX_ROWS),
|
|
178
178
|
train_interval_seconds=_whole(section, "train_interval_seconds", 60, _WHERE, least=30),
|
|
179
179
|
bus_interval_seconds=_whole(section, "bus_interval_seconds", 30, _WHERE, least=15),
|
|
180
180
|
weather_interval_minutes=_whole(section, "weather_interval_minutes", 30, _WHERE, least=10),
|
|
@@ -20,7 +20,9 @@ block, or else guessed by line) is shown as a line of its own ("Bus
|
|
|
20
20
|
arriving from Ashton, 4 min late (due 23:29)"), with the facts from its
|
|
21
21
|
tracker: where it is and how late. Either way the departure is live, and
|
|
22
22
|
livebus carries the bus's lateness on to the departure's time; `followed`
|
|
23
|
-
tells the API which it was.
|
|
23
|
+
tells the API which it was. The same journey's later stops of yours have
|
|
24
|
+
the same bus, named arriving where the journey starts ("Bus arriving at
|
|
25
|
+
Henry Street from Ashton, ...").
|
|
24
26
|
|
|
25
27
|
Ghost buses. A bus due within GHOST_WITHIN with no live bus placed on its
|
|
26
28
|
journey is flagged, since trackers usually show up well before then. Not
|
|
@@ -139,8 +141,10 @@ def _origin(placed: LiveJourney, positions: dict[str, StopPosition]) -> str | No
|
|
|
139
141
|
return _clean(placed.vehicle.origin_name)
|
|
140
142
|
|
|
141
143
|
|
|
142
|
-
def _where(placed: LiveJourney,
|
|
143
|
-
"""Where the inbound bus is, as the route strip says it: "4 stops away"
|
|
144
|
+
def _where(placed: LiveJourney, live: LiveDeparture, positions: dict[str, StopPosition]) -> str:
|
|
145
|
+
"""Where the inbound bus is, as the route strip says it: "4 stops away"
|
|
146
|
+
from the end of its journey, then "At your stop", or, for a later stop
|
|
147
|
+
of the departure's journey, at the stop it is in at ("At Henry Street")."""
|
|
144
148
|
calls = placed.journey.calls
|
|
145
149
|
away = (len(calls) - 1) - math.floor(placed.progress.at + 0.02)
|
|
146
150
|
if away == 1:
|
|
@@ -148,35 +152,42 @@ def _where(placed: LiveJourney, stop: str, positions: dict[str, StopPosition]) -
|
|
|
148
152
|
if away > 1:
|
|
149
153
|
return f"{away} stops away"
|
|
150
154
|
end = calls[-1].atco
|
|
151
|
-
if end ==
|
|
155
|
+
if live.call_index == 0 and (end == live.journey.origin.atco or end not in positions):
|
|
152
156
|
return "At your stop"
|
|
153
|
-
|
|
157
|
+
for atco in (end, live.journey.origin.atco):
|
|
158
|
+
if atco in positions:
|
|
159
|
+
return f"At {positions[atco].name}"
|
|
160
|
+
return "Waiting to start"
|
|
154
161
|
|
|
155
162
|
|
|
156
163
|
def inbound(live: LiveDeparture, positions: dict[str, StopPosition]) -> dict | None:
|
|
157
|
-
"""The bus coming in to work a departure that starts at your stop,
|
|
158
|
-
livebus found it, or None
|
|
159
|
-
|
|
160
|
-
line; either makes the
|
|
164
|
+
"""The bus coming in to work a departure that starts at your stop, or a
|
|
165
|
+
later stop of yours on the same journey, as livebus found it, or None
|
|
166
|
+
(see the module's notes). `followed` says whether it was followed by
|
|
167
|
+
the timetable's block rather than guessed by line; either makes the
|
|
168
|
+
departure live."""
|
|
161
169
|
coming = live.inbound
|
|
162
170
|
if coming is None:
|
|
163
171
|
return None
|
|
164
172
|
origin = _origin(coming.bus, positions)
|
|
165
173
|
due = coming.arrives.strftime("%H:%M")
|
|
174
|
+
start = positions.get(live.journey.origin.atco) if live.call_index > 0 else None
|
|
166
175
|
return {
|
|
167
176
|
"from": origin,
|
|
168
177
|
"due": due,
|
|
169
178
|
"late_min": coming.late,
|
|
170
|
-
"where": _where(coming.bus, live
|
|
171
|
-
"text": inbound_text(origin, coming.late, due),
|
|
179
|
+
"where": _where(coming.bus, live, positions),
|
|
180
|
+
"text": inbound_text(origin, coming.late, due, start.name if start is not None else None),
|
|
172
181
|
"followed": coming.followed,
|
|
173
182
|
}
|
|
174
183
|
|
|
175
184
|
|
|
176
|
-
def inbound_text(origin: str | None, late: int, due: str) -> str:
|
|
185
|
+
def inbound_text(origin: str | None, late: int, due: str, start: str | None = None) -> str:
|
|
177
186
|
"""The inbound bus in words for the row: "Bus arriving from Ashton, 4 min
|
|
178
|
-
late (due 23:29)". Its own lateness and time, never a time for the
|
|
179
|
-
|
|
187
|
+
late (due 23:29)". Its own lateness and time, never a time for the
|
|
188
|
+
departure. `start` names the stop it arrives at, the journey's first, for
|
|
189
|
+
a row at a later stop: "Bus arriving at Henry Street from Ashton, ..."."""
|
|
190
|
+
coming = "Bus arriving" + (f" at {start}" if start else "") + (f" from {origin}" if origin else "")
|
|
180
191
|
return f"{coming}, {f'{late} min late' if late else 'on time'} (due {due})"
|
|
181
192
|
|
|
182
193
|
|
|
@@ -529,7 +529,7 @@ def fields(display: str = "inky", theme: str = "sign") -> tuple[Field, ...]:
|
|
|
529
529
|
"number", hint=_LISTED, default=10, needs="train", page="dashboard", heading="Departures",
|
|
530
530
|
width="2"),
|
|
531
531
|
Field("dashboard_bus_rows", "dashboard", "dashboard", "bus_rows", "Most buses listed", number(1, 20),
|
|
532
|
-
"number", hint=_LISTED, default=
|
|
532
|
+
"number", hint=_LISTED, default=15, needs="bus", page="dashboard", heading="Departures",
|
|
533
533
|
width="2"),
|
|
534
534
|
Field("row_strips", "dashboard", "dashboard", "row_strips", "Position strips in each row", on_off, "radios",
|
|
535
535
|
hint="A small drawing of the stops in each departure row, with the train or bus where it is, while "
|
|
@@ -14,10 +14,14 @@ bus. If that bus is placed (matched to that journey, or sending the same
|
|
|
14
14
|
block as its BlockRef), the departure is live too, marked inbound ("Bus on
|
|
15
15
|
its way, due in 6 min"): expected when that bus gets in plus TURNAROUND,
|
|
16
16
|
never before its time; once in, on time, or, that gone, any minute. Only
|
|
17
|
-
a
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
17
|
+
a journey whose first stop is yours is followed in, and the same bus goes
|
|
18
|
+
with it to its later stops of yours until it is placed on the journey:
|
|
19
|
+
expected at each the timetable's run time from the first stop after it
|
|
20
|
+
is expected to leave there, so never before its time either. Its words
|
|
21
|
+
count down to the bus getting to your stop. A bus still in INBOUND_WINDOW
|
|
22
|
+
after the time at the first stop, still on the journey before, has laid
|
|
23
|
+
over or gone out of service: it is let go at every stop, and the departure
|
|
24
|
+
goes as one with no bus seen would. The block is a hint, never trusted blindly: the
|
|
21
25
|
journey before must be the same operator's, on the same service day, the
|
|
22
26
|
one just before it in the block, and end at the departure's first stop, or
|
|
23
27
|
within NEAR_M of it, up to INBOUND_WINDOW before it leaves. If that bus
|
|
@@ -301,8 +305,9 @@ class LiveJourney:
|
|
|
301
305
|
|
|
302
306
|
@dataclass(frozen=True)
|
|
303
307
|
class Inbound:
|
|
304
|
-
"""The bus coming in to work a
|
|
305
|
-
on the journey before (see the module's notes).
|
|
308
|
+
"""The bus coming in to work a journey that starts at your stop, placed
|
|
309
|
+
on the journey before (see the module's notes). Its times are at the
|
|
310
|
+
end of the journey before, the departure's first stop."""
|
|
306
311
|
|
|
307
312
|
bus: LiveJourney
|
|
308
313
|
# By the block: the same bus. False for a guess by line. Either makes the
|
|
@@ -345,8 +350,8 @@ class LiveDeparture:
|
|
|
345
350
|
expected: datetime # leaves plus any lateness, board-local without a zone
|
|
346
351
|
progress: Progress | None # None when no bus was placed on the journey
|
|
347
352
|
vehicle: Vehicle | None # the bus behind progress
|
|
348
|
-
# The bus coming in to work it, for a
|
|
349
|
-
#
|
|
353
|
+
# The bus coming in to work it, for a journey starting at your stop with
|
|
354
|
+
# no bus placed on it, at that stop and its later ones (see the module's notes).
|
|
350
355
|
inbound: Inbound | None = None
|
|
351
356
|
|
|
352
357
|
@property
|
|
@@ -437,7 +442,8 @@ def live_board(
|
|
|
437
442
|
with its delay and stays on the board however late; one that has passed
|
|
438
443
|
your stop is dropped. A departure whose bus is followed in (see the
|
|
439
444
|
module's notes) is shown as late as that bus makes it, until a minute
|
|
440
|
-
after then, or, once in, until INBOUND_WINDOW after its time
|
|
445
|
+
after then, or, once in, until INBOUND_WINDOW after its journey's time
|
|
446
|
+
at the first stop. Without
|
|
441
447
|
either, the timetabled time is shown as UNKNOWN until a minute after it.
|
|
442
448
|
"""
|
|
443
449
|
if now.tzinfo is None:
|
|
@@ -469,19 +475,24 @@ def live_board(
|
|
|
469
475
|
if journey.inbound_only or not heading_to(journey.destination, directions):
|
|
470
476
|
continue # inbound-only journeys are there to find buses coming in, never as rows
|
|
471
477
|
progress, vehicle = live.get((day, id(journey)), (None, None))
|
|
478
|
+
starts = midnight + timedelta(minutes=journey.origin.minute)
|
|
479
|
+
inbound = None
|
|
480
|
+
if progress is None and journey.origin.atco in labels:
|
|
481
|
+
inbound = follow.bus_in(journey, day)
|
|
482
|
+
if inbound is not None and inbound.is_in and local_now > starts + INBOUND_WINDOW:
|
|
483
|
+
inbound = None # still in long after its time: laid over or out of service
|
|
472
484
|
for k, call in enumerate(journey.calls[:-1]): # the last call is where it terminates
|
|
473
485
|
leaves = midnight + timedelta(minutes=call.minute)
|
|
474
486
|
if progress is not None and progress.at > k + PASSED_MARGIN:
|
|
475
487
|
continue # the bus has been past this stop
|
|
476
|
-
|
|
477
|
-
if inbound is not None and inbound.is_in and local_now > leaves + INBOUND_WINDOW:
|
|
478
|
-
inbound = None # still in long after its time: laid over or out of service
|
|
479
|
-
if progress is None and _expected(leaves, None, inbound, local_now) < local_now - GRACE:
|
|
488
|
+
if progress is None and _expected(leaves, None, inbound, local_now, starts) < local_now - GRACE:
|
|
480
489
|
continue
|
|
481
490
|
if leaves > local_now + HORIZON:
|
|
482
491
|
continue
|
|
483
492
|
for label in labels.get(call.atco, ()):
|
|
484
|
-
found.append(
|
|
493
|
+
found.append(
|
|
494
|
+
_departure(journey, day, k, leaves, progress, vehicle, label, inbound, local_now, starts)
|
|
495
|
+
)
|
|
485
496
|
found.sort(key=lambda live: (live.expected, live.leaves, live.departure.stop, live.journey.line))
|
|
486
497
|
return found[:rows], list(placed.values())
|
|
487
498
|
|
|
@@ -619,18 +630,23 @@ class _Follow:
|
|
|
619
630
|
return bool(block) and all(other.origin.minute >= journey.origin.minute for other in block)
|
|
620
631
|
|
|
621
632
|
|
|
622
|
-
def _expected(
|
|
633
|
+
def _expected(
|
|
634
|
+
leaves: datetime, placed: Progress | None, inbound: Inbound | None, now: datetime, starts: datetime
|
|
635
|
+
) -> datetime:
|
|
623
636
|
"""When a departure is expected: as late as its bus is, or, followed in,
|
|
624
637
|
TURNAROUND after its bus gets in; never before its time. A bus already
|
|
625
638
|
in is no later, however long it has waited: it leaves on time, or, that
|
|
626
|
-
gone, any minute `now` (board-local).
|
|
639
|
+
gone, any minute `now` (board-local). `starts` is when the journey
|
|
640
|
+
leaves its first stop: a bus followed in is expected at a later stop the
|
|
641
|
+
timetable's run time from there after it is expected to leave."""
|
|
627
642
|
if placed is not None:
|
|
628
643
|
return leaves + timedelta(minutes=_late_minutes(placed.delay))
|
|
629
644
|
if inbound is None:
|
|
630
645
|
return leaves
|
|
646
|
+
run = leaves - starts
|
|
631
647
|
if inbound.is_in:
|
|
632
|
-
return max(
|
|
633
|
-
return max(
|
|
648
|
+
return max(starts, now.replace(second=0, microsecond=0)) + run
|
|
649
|
+
return max(starts, inbound.arrives + TURNAROUND) + run
|
|
634
650
|
|
|
635
651
|
|
|
636
652
|
def _departure(
|
|
@@ -643,10 +659,11 @@ def _departure(
|
|
|
643
659
|
label: str,
|
|
644
660
|
inbound: Inbound | None,
|
|
645
661
|
now: datetime,
|
|
662
|
+
starts: datetime,
|
|
646
663
|
) -> LiveDeparture:
|
|
647
664
|
"""A board row for the k-th call of a journey, and what it came from, at
|
|
648
|
-
`now` (board-local)."""
|
|
649
|
-
expected = _expected(leaves, placed, inbound, now)
|
|
665
|
+
`now` (board-local); `starts` is when the journey leaves its first stop."""
|
|
666
|
+
expected = _expected(leaves, placed, inbound, now, starts)
|
|
650
667
|
if placed is None and inbound is None:
|
|
651
668
|
status = Status.UNKNOWN
|
|
652
669
|
else:
|
|
@@ -707,14 +724,27 @@ def _along(picked: list[int], at: float) -> float | None:
|
|
|
707
724
|
return len(picked) - 1 + (at - picked[-1])
|
|
708
725
|
|
|
709
726
|
|
|
710
|
-
def inbound_words(
|
|
711
|
-
"""
|
|
712
|
-
|
|
713
|
-
|
|
714
|
-
|
|
715
|
-
|
|
727
|
+
def inbound_words(live: LiveDeparture, now: datetime, short: bool = False) -> str:
|
|
728
|
+
"""The bus followed in for a departure, in words, "due" counting down to
|
|
729
|
+
it getting to your stop. At the stop its journey starts: "Bus on its
|
|
730
|
+
way, due in 6 min" at the end of the journey before, then "Bus in,
|
|
731
|
+
waiting to leave". At a later stop: "Bus on its way, due in 9 min", when
|
|
732
|
+
the departure is expected there, then, in at the first stop, "Bus
|
|
733
|
+
waiting to start, due in 4 min". `short` for a board's row, which has
|
|
734
|
+
room for eighteen letters: "On its way, 6 min", "Bus in, waiting",
|
|
735
|
+
"Waiting to start". `now` is board-local without a zone, as the
|
|
736
|
+
departure's times are."""
|
|
737
|
+
inbound = live.inbound
|
|
738
|
+
if inbound is None:
|
|
739
|
+
return "No live position"
|
|
740
|
+
first = live.call_index == 0
|
|
741
|
+
if inbound.is_in and first:
|
|
716
742
|
return "Bus in, waiting" if short else "Bus in, waiting to leave"
|
|
717
|
-
minutes = int((inbound.arrives - now).total_seconds() // 60)
|
|
743
|
+
minutes = int(((inbound.arrives if first else live.expected) - now).total_seconds() // 60)
|
|
744
|
+
if inbound.is_in:
|
|
745
|
+
if short:
|
|
746
|
+
return "Waiting to start"
|
|
747
|
+
return f"Bus waiting to start, due in {minutes} min" if minutes >= 1 else "Bus waiting to start, due now"
|
|
718
748
|
if short:
|
|
719
749
|
return f"On its way, {minutes} min" if minutes >= 1 else "On its way, due"
|
|
720
750
|
return f"Bus on its way, due in {minutes} min" if minutes >= 1 else "Bus on its way, due now"
|
|
@@ -726,9 +756,7 @@ def where_words(live: LiveDeparture, found: Approach | None, now: datetime) -> s
|
|
|
726
756
|
in is (inbound_words). `found` is its approach; `now` is board-local
|
|
727
757
|
without a zone."""
|
|
728
758
|
if live.progress is None:
|
|
729
|
-
|
|
730
|
-
return inbound_words(live.inbound, now)
|
|
731
|
-
return "No live position"
|
|
759
|
+
return inbound_words(live, now)
|
|
732
760
|
if found is None:
|
|
733
761
|
return "Live position known"
|
|
734
762
|
names = tuple(stop.name for stop in found.stops)
|
|
@@ -745,11 +773,10 @@ def row_strip(live: LiveDeparture, positions: dict[str, StopPosition], now: date
|
|
|
745
773
|
if not live.live or found is None:
|
|
746
774
|
return None
|
|
747
775
|
if live.progress is None:
|
|
748
|
-
|
|
749
|
-
if inbound is None:
|
|
776
|
+
if live.inbound is None:
|
|
750
777
|
return None
|
|
751
778
|
try:
|
|
752
|
-
return Strip(inbound_words(
|
|
779
|
+
return Strip(inbound_words(live, now, short=True), len(found.stops), found.yours, None)
|
|
753
780
|
except ValueError:
|
|
754
781
|
return None
|
|
755
782
|
last = len(found.stops) - 1
|
|
@@ -81,10 +81,13 @@ none (Bee Network's and High Peak's timetables, in October 2026); then
|
|
|
81
81
|
|
|
82
82
|
Versions. BODS keeps an old version of a service (its ServiceCode, line and
|
|
83
83
|
operator) beside the one replacing it, often open-ended, so both would run.
|
|
84
|
-
As bustimes.org
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
84
|
+
As bustimes.org decides, only a higher RevisionNumber replaces: a version
|
|
85
|
+
ends the day before one of a higher revision, open-ended, starts (or never
|
|
86
|
+
runs, if that one starts first). One of a higher revision with an end
|
|
87
|
+
(roadworks, say) only switches it off while it runs, as days of
|
|
88
|
+
non-operation, so it runs again after. Versions of the same revision are
|
|
89
|
+
halves of one timetable, each with a start of its own (High Peak's 393 in
|
|
90
|
+
October 2026: Saturdays from 2024, weekdays from 2026), and all run.
|
|
88
91
|
|
|
89
92
|
Calendars. runs_on() decides, in this order:
|
|
90
93
|
1. outside the service's OperatingPeriod: no;
|
|
@@ -144,7 +147,9 @@ _FAILED_FILE_BYTES = 200
|
|
|
144
147
|
# 3: the roads between stops, for the dashboard's maps (shapes).
|
|
145
148
|
# 4: the block each journey is worked in (Journey.block), to follow its bus.
|
|
146
149
|
# 5: the stops placed only for a bus turning round (Schedule.turning_only).
|
|
147
|
-
|
|
150
|
+
# 6: only a higher RevisionNumber replaces a version (_until_replaced); no
|
|
151
|
+
# more is held, so the memory below stands.
|
|
152
|
+
FORMAT = 6
|
|
148
153
|
MAX_AGE = timedelta(days=7)
|
|
149
154
|
# Positions are kept for this many calls before each of your stops, and the one
|
|
150
155
|
# after: livebus places buses along that stretch and sees them pass your stop.
|
|
@@ -776,7 +781,7 @@ def _journeys_kept(
|
|
|
776
781
|
|
|
777
782
|
A journey whose timetable ended before `today` is let go as it is read,
|
|
778
783
|
uncounted, its version noted in `versions` (an ended version still
|
|
779
|
-
switches
|
|
784
|
+
switches those of a lower revision off, _until_replaced). An inbound-only
|
|
780
785
|
journey of a line with no journey calling at your stops is let go at
|
|
781
786
|
the end. If the room for inbound-only ones fills first,
|
|
782
787
|
`calling_lines()` (the document's lines calling at your stops, read
|
|
@@ -970,29 +975,34 @@ _Seen = tuple[date, date | None, int]
|
|
|
970
975
|
|
|
971
976
|
def _until_replaced(version: _Version, journey: Journey, versions: Mapping[tuple, Set[_Seen]],
|
|
972
977
|
shared: _Shared | None = None) -> Journey | None:
|
|
973
|
-
"""The journey as
|
|
974
|
-
|
|
975
|
-
open-ended, and both would
|
|
976
|
-
|
|
977
|
-
|
|
978
|
-
|
|
979
|
-
|
|
980
|
-
|
|
981
|
-
|
|
978
|
+
"""The journey as the versions of its service with a higher RevisionNumber
|
|
979
|
+
leave it, as bustimes.org decides (Route.active_on): BODS keeps an old
|
|
980
|
+
version beside the one replacing it, often open-ended, and both would
|
|
981
|
+
run. It runs only on days no version of a higher revision runs, whichever
|
|
982
|
+
starts first. It ends the day before the first open-ended one starts
|
|
983
|
+
(None if that is on or before its own start); one with an end only
|
|
984
|
+
switches it off from that one's start to its end (calendar.dates_off,
|
|
985
|
+
which runs_on puts first), within the journey's own period. A version of
|
|
986
|
+
the same revision replaces nothing: one timetable can be split across
|
|
987
|
+
documents with starts of their own (Saturdays from one date, weekdays
|
|
988
|
+
from another). `versions` has every version of each service seen. A
|
|
989
|
+
journey whose document gives no ServiceCode is kept as it is. A new
|
|
990
|
+
calendar is from `shared`, if given."""
|
|
982
991
|
if not version.service:
|
|
983
992
|
return journey
|
|
984
993
|
calendar = journey.calendar
|
|
985
994
|
start = calendar.start or date.min
|
|
986
|
-
|
|
987
|
-
|
|
995
|
+
higher = [(other, other_end) for other, other_end, revision in versions.get(_group(version, journey), ())
|
|
996
|
+
if revision > version.revision]
|
|
997
|
+
replaced = [other for other, other_end in higher if other_end is None]
|
|
998
|
+
if replaced and min(replaced) <= start:
|
|
988
999
|
return None
|
|
989
1000
|
end = calendar.end
|
|
990
|
-
replaced = [other for other, other_end, _ in others if other > start and other_end is None]
|
|
991
1001
|
if replaced and (end is None or min(replaced) <= end):
|
|
992
1002
|
end = min(replaced) - timedelta(days=1)
|
|
993
|
-
off = tuple(sorted((other, other_end if end is None else min(other_end, end))
|
|
994
|
-
for other, other_end
|
|
995
|
-
if
|
|
1003
|
+
off = tuple(sorted((max(other, start), other_end if end is None else min(other_end, end))
|
|
1004
|
+
for other, other_end in higher
|
|
1005
|
+
if other_end is not None and other_end >= start and (end is None or other <= end)))
|
|
996
1006
|
if end == calendar.end and not off:
|
|
997
1007
|
return journey
|
|
998
1008
|
calendar = replace(calendar, end=end, dates_off=calendar.dates_off + off)
|
|
@@ -1001,10 +1011,11 @@ def _until_replaced(version: _Version, journey: Journey, versions: Mapping[tuple
|
|
|
1001
1011
|
|
|
1002
1012
|
def _current(found: Iterable[tuple[_Version, Journey]], versions: Mapping[tuple, Set[_Seen]],
|
|
1003
1013
|
today: date) -> tuple[Journey, ...]:
|
|
1004
|
-
"""The journeys still running from `today`, each until a
|
|
1005
|
-
|
|
1006
|
-
line, operator, calls and calendar) can't be told
|
|
1007
|
-
Those a version ends the same way share their new
|
|
1014
|
+
"""The journeys still running from `today`, each until a version of its
|
|
1015
|
+
service of a higher revision replaces it (_until_replaced), and each
|
|
1016
|
+
once: duplicates (same line, operator, calls and calendar) can't be told
|
|
1017
|
+
apart by live times. Those a version ends the same way share their new
|
|
1018
|
+
calendar."""
|
|
1008
1019
|
kept: dict[tuple, Journey] = {}
|
|
1009
1020
|
calendars = _Shared()
|
|
1010
1021
|
for version, journey in found:
|
|
@@ -1155,7 +1166,7 @@ def _read_timetables(links: list[tuple[str, str]], atcos: set[str], today: date,
|
|
|
1155
1166
|
found, positions = _read_document(document, atcos, noc, yours, room, today=today, versions=versions)
|
|
1156
1167
|
yours.update((atco, positions[atco]) for atco in atcos if atco in positions)
|
|
1157
1168
|
# Those that ended before today were let go as they were read, their
|
|
1158
|
-
# versions noted: even an ended version switches
|
|
1169
|
+
# versions noted: even an ended version switches lower revisions off.
|
|
1159
1170
|
for version, journey in found:
|
|
1160
1171
|
group, seen = _seen(version, journey)
|
|
1161
1172
|
versions.setdefault(group, set()).add(seen)
|
|
@@ -1198,8 +1209,9 @@ def build_schedule(
|
|
|
1198
1209
|
warning naming it. It has no roads yet: see add_roads.
|
|
1199
1210
|
|
|
1200
1211
|
BODS keeps an old version of a service beside the one replacing it, so
|
|
1201
|
-
each version ends the day before
|
|
1202
|
-
switched off while
|
|
1212
|
+
each version ends the day before an open-ended one of a higher
|
|
1213
|
+
RevisionNumber starts, and is switched off while one of a higher
|
|
1214
|
+
revision with an end runs (_until_replaced).
|
|
1203
1215
|
Journeys whose timetable ended before today are left out, and so are
|
|
1204
1216
|
duplicates (same line, operator, calls and calendar), which live times
|
|
1205
1217
|
couldn't tell apart. valid_until is the earliest end among the rest that
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.4
|
|
2
2
|
Name: twobells
|
|
3
|
-
Version: 0.2.
|
|
3
|
+
Version: 0.2.2
|
|
4
4
|
Summary: Two Bells: know when to leave. Train and bus departures for Great Britain, on an e-paper or HDMI board on a Raspberry Pi and on a web dashboard, installed on a Pi, in Docker or on a desktop
|
|
5
5
|
Author: Albert Cornelissen
|
|
6
6
|
License-Expression: MIT
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|