Code for programming assignment 2 (Cloud and Edge Computing course)
Group work: microservice application based on MagicMirror
- Face recognition module (https://github.com/Linzh7/FaceRecognition-MagicMirror)
- Personal content module running in Docker, possibly self-hosted (https://github.com/noahwo/MMM-personal-agenda)
- Service orchestration within MagicMirror running in Docker (Kalle P.)
- Public transport module deployed to cloud (me)
The module draft wis based on built-in modules code for MagicMirror and roramirez template.
Project state (transport module): done.
(Picture made by Kalle Paananen)
In this project we omit the user registration and assume that there are 4 registered users who have specified their preferences.
The transport module shows bus arrival times for a specific bus stop. The module fetches bus information from the mocked API which runs in replit. The code for mock is in the file mockApi.js
.
The transport module can be connected to the MagicMirror by adding the following configuration to the config/config.js
:
{
module: "mmm-transport",
position: "top_left",
header: "Bus arrival times"
}