Repo behind the website bowen.today
Thanks for stopping by.
/lib/next-ferry - library to get back ferry data. Ferry API
/lib/pages - Simple pages
/lib/simplehtmldom - PHP Simple HTML DOM Parser
to:
from:
map_url:
next_ferry: timestamp
next_sailings: [timestamp]
current_capacity: %
has_current_capacity: available (bool)
http://bowen.today/api/v1/ferry/vancouver-bowen
http://bowen.today/api/v1/ferry/bowen-vancouver
You can also pass in a specific future date to get the schedule from the future.
http://bowen.today/api/v1/ferry/bowen-vancouver/2021-02-22
To start the server for local development
cd public
php -S localhost:8000
cmd+c to terminate
Then visit
The watch flag tells Sass to watch style.scss, and re-compile CSS each time you save your Sass.
Open this in a separete terminal window.
cd public
sass --watch style.scss style.css
- Create a new Google Assistant Skill api.
- Styles and Design/UI/UX
- Add SASS support
- Create SASS structure for vars, mixins, etc
- Real time vessel position APIs
- Implement separtion for Departures Today/Next Day
./ferry/index.php
-
Provide a more human readable time. -
Make it work with timezones. (Test that part out) -
Make it work for the other direction. (Vancouver to Bowen) -
Try to use more live data instead the schedule. Need to figure out what data to scrape. -
Allow a different time then just now to be set. (When do you want to leave? ) -
Optimization cache the wrappoing results locally for faster schedule. -
Support more routes. ??? -
Create an api endpoint that returns the whole timetable in a computer readable format. -
Add .gitignore
Rename secrets.example.php to secrets.php
cp secrets.example.php secrets.php