Skip to content

balri/busstop

Repository files navigation

Web server

node backend/index.js

Feeds

Download the feed from https://gtfsrt.api.translink.com.au/GTFS/SEQ_GTFS.zip

Update the feed:

npx ts-node src/filter/index.ts

Uptime Monitor

https://dashboard.uptimerobot.com/monitors/801132204

Defaults

ACCEPTABLE_DELAY=60 // 60s
MIN_DISTANCE=500 // 500m
SECRET_KEYWORD=test

Puppeteer

Takes a screenshot of the site every hour by sending a mock date query param

node scripts/screenshot.js

Linting

npm run lint

To fix:

npm run lint:fix

Dependency check

npx depcheck

Check for unused exports

npm install -g ts-prune
ts-prune

Puppeteer

Takes a screenshot of the site every 10min

*/10 * * * * /usr/local/bin/node /Users/balri/Documents/busstop/scripts/screenshot.js

Minify

npx terser public/main.js -o public/main.min.js
npx cleancss -o public/style.min.css public/style.css

Change bus route

  1. Update TARGET_ROUTE_SHORT_NAME in src/filter/routes.ts
  2. Run npx ts-node src/filter/index.ts to update feed
  3. Get route colour from feeds/routes.txt and update in public/bus.svg

Prettier

npm run format

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Contributors 2

  •  
  •