Skip to content

Web project that shows both Swedish commuter departures and weather information.

License

Notifications You must be signed in to change notification settings

tobiasehlert/LobbyMirror

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

27 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

LobbyMirror

Web project that shows both departures for commuter within Sweden (by trafiklab.se) and weather information (by openweathermap.org).

Table of Contents

How to use

Clone to repository to a server of your choice running eg. Nginx and PHP.

If you don't have any at home, you can always go for an instance at DigitalOcean.

Installation

The composer.json contains the required packages for the project to work, so use composer to get the required packages in place.

Configuration

You need to place a config.php file in the root with a config that looks similar to the one in config-example.php.

Make a copy of config-example.php and call it config.php and update your settings to your likings.

cp config-example.php config.php

API tokens

For the dashboard to fully work, you need to supply two API tokens.

ResRobot Timetables (by trafiklab.se)

Link: trafiklab.se/api/trafiklab-apis/resrobot-v21/timetables

Since the API check quite frequently for updates, you need to upgrade to a higher level or limit the dashboard.

By default you only get 30 000 requests per month, which is not sufficiently.

Weatherforcast with OpenWeather

Link: openweathermap.org

You need to register an account and get an API key.

By default you get 1 000 API calls per day for free, which should be sufficient.

Screenshots

This is the view of LobbyMirror in a browser:

LobbyMirror in a browser

This is how it's looking on a tablet:

LobbyMirror on a tablet

Credits