node backend/index.js
Download the feed from https://gtfsrt.api.translink.com.au/GTFS/SEQ_GTFS.zip
Update the feed:
npx ts-node src/filter/index.ts
https://dashboard.uptimerobot.com/monitors/801132204
ACCEPTABLE_DELAY=60 // 60s
MIN_DISTANCE=500 // 500m
SECRET_KEYWORD=test
Takes a screenshot of the site every hour by sending a mock date query param
node scripts/screenshot.js
npm run lint
To fix:
npm run lint:fix
npx depcheck
npm install -g ts-prune
ts-prune
Takes a screenshot of the site every 10min
*/10 * * * * /usr/local/bin/node /Users/balri/Documents/busstop/scripts/screenshot.js
npx terser public/main.js -o public/main.min.js
npx cleancss -o public/style.min.css public/style.css
- Update
TARGET_ROUTE_SHORT_NAMEinsrc/filter/routes.ts - Run
npx ts-node src/filter/index.tsto update feed - Get route colour from
feeds/routes.txtand update inpublic/bus.svg
npm run format