Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/bastibuck/smart-mirror
https://github.com/bastibuck/smart-mirror
Last synced: 3 months ago
JSON representation
- Host: GitHub
- URL: https://github.com/bastibuck/smart-mirror
- Owner: bastibuck
- Created: 2022-09-08T14:20:58.000Z (over 2 years ago)
- Default Branch: main
- Last Pushed: 2024-07-12T07:02:22.000Z (7 months ago)
- Last Synced: 2024-07-12T19:51:26.152Z (7 months ago)
- Language: TypeScript
- Size: 302 KB
- Stars: 2
- Watchers: 1
- Forks: 0
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Smart Mirror
## Setup, starting and stopping
### Initial setup
This repo includes a script to download and run the newest "release" (it's more like a **nightly** build of the `main` branch currently) automatically.
You would need
- 64bit system e.g. Raspberry Pi 4
- `ssh`, `git` and `docker` installed and setup
- a GitHub account with your ssh key connected---
Than you simply
1. clone this repo
1. make `get-release.sh` executable (`chmod +x get-release.sh`)
1. run `get-release.sh`
1. smart-mirror container will be created and expose `http://[HOSTNAME/IP]`### Updates
Should be as simple as running `get-release.sh` again. It will download a new version, remove old docker images and rebuild a new container from the new image.
### Some helpful commands (for me mostly 😂)
| Task | Desc | Notes |
| ------------------ | --------------------------------------------------------------------------------------------- | ----------------------- |
| Start | `sudo docker start smart-mirror` | |
| Stop | `sudo docker stop smart-mirror` | |
| Follow logs | `sudo docker logs -f smart-mirror` |
| Run app in browser | `DISPLAY=:0 chromium-browser http://localhost:80 --start-fullscreen --kiosk --no-first-run &` | Hit enter after opening |
| Stop browser | `sudo killall chromium-browser` | |