Skip to content

alschroder/bowen.today

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

57 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Repo behind the website bowen.today

Thanks for stopping by.

Contents

/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

Local development.

To start the server for local development

cd public
php -S localhost:8000
cmd+c to terminate

Then visit

localhost:8000

Sass Basics.

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

Todo Version 0.1

  • 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

Icons and colours from

Octicons

Secrets

Rename secrets.example.php to secrets.php

cp secrets.example.php secrets.php

About

Git repo behind bowen.today

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • PHP 97.1%
  • SCSS 2.9%