Skip to content

Dashboard for a tablet. Displays Helsinki public transport and weather information for the day.

Notifications You must be signed in to change notification settings

rasmus-u/home-dashboard

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 

Repository files navigation

Home Dashboard

Home dashboard as a web service for displaying up-to-date weather and Helsinki public transport information. UI built to fit custom device requirements: not responsive as of Aug 18. 2024.

Final screenshot Final device installation

Frontend:

  • Vite React with JavaScript
  • TailwindCSS

Backend:

  • Node.js
  • Axios for making queries to APIs from backend
  • Express REST API endpoints

Device:

Running

  1. Sign up to HSL Api.
  2. Fill the HSL_PRIMARY_KEY and HSL_API_URL in backend/.env.template with credentials received from HSL API (above).
  3. Rename backend/.env.template to backend/.env
  4. In /backend/ run npm i + npm run dev
  5. In /frontend/ run npm i + npm run dev
  6. Done!

3rd party services

  • HSL api (real time public transport + city bikes)
    • GraphQL queries to API in backend
  • Ilmatieteen laitos API for real time weather information.
    • WFS 2.0 standard using Javascript SDK in backend

Retrospect

  • Backend is not necessary but done as a practise
  • GraphQL queries could have been done in frontend with e.g. Apollo Client instead of plain REST in backend
  • Current UI is made to fit to exact device chosen with unique requirements for text size etc. due to age of the device --> Not responsive!
  • Switch project over to TypeScript

TODO: Database access for user control to allow multiple people to access the dasboard.
TODO: Make the UI more responsive to different tablet screen sizes.

About

Dashboard for a tablet. Displays Helsinki public transport and weather information for the day.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published