Skip to content

hypest/magic_mirror_hypest

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

12 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

What is it

A custom MagicMirror² setup delivered as a Docker image, based off https://github.com/bastilimbach/docker-MagicMirror.

Screenshot of the MagicMirror² setup by Hypest

How to build the image

There are 2 Dockerfiles available, one to build a node:alpine and one to build a node:buster based image.

docker build ./ -f Dockerfile-alpine -t hypest/magic_mirror_hypest:x.x.x

and to build the node:buster based image use:

docker build ./ -f Dockerfile-buster -t hypest/magic_mirror_hypest:x.x.x-buster

How to use

docker run  -d \
    --publish 80:8080 \
    --restart always \
    --volume /etc/localtime:/etc/localtime:ro \
    --env MM_LANGUAGE="<your language of choice. Example: el>" \
    --env MM_CALENDAR_URL="<URL to your Google Calendar .ics>" \
    --env MM_OMW_LOCATION_STRING="<OpenWeatherMap City String. Example: Peraia, GR>" \
    --env MM_OMW_LOCATION_ID=<OpenWeatherMap city ID. Example: 734712> \
    --env MM_OMW_APP_ID="<Your OpenWeatherMap app id. Get yours from https://openweathermap.org/appid>" \
    --name magic_mirror_hypest \
    hypest/magic_mirror_hypest

How to develop live

Create a modules and a config folder, and map them in docker to their respective folders inside the container (/opt/magic_mirror/...). For the config.js itself, create a hard link cd config; ln ../config.js ./config.js. Also clone the modules locally, by manually running the git and npm commands from https://github.com/hypest/magic_mirror_hypest/blob/master/Dockerfile. Restart the container and it should be ready.