Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/mikecann/mikes-smarter-mirror
A new version of the mirror based on NW.js
https://github.com/mikecann/mikes-smarter-mirror
Last synced: 18 days ago
JSON representation
A new version of the mirror based on NW.js
- Host: GitHub
- URL: https://github.com/mikecann/mikes-smarter-mirror
- Owner: mikecann
- Created: 2021-01-10T12:54:09.000Z (almost 4 years ago)
- Default Branch: master
- Last Pushed: 2024-10-01T07:02:43.000Z (about 1 month ago)
- Last Synced: 2024-10-03T09:18:30.460Z (about 1 month ago)
- Language: TypeScript
- Size: 9.23 MB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# mikes-smarter-mirror
## Setup
set `/etc/rc.local` to:
```
#!/bin/bash# Print the date and time of startup (for debugging)
echo "Startup initiated at $(date)" >> /home/pi/mirror.log# Wait for 10 seconds to ensure everything is up and running
sleep 10# Set the DISPLAY environment variable for the graphical environment
export DISPLAY=:0
echo "DISPLAY is set to $DISPLAY" >> /home/pi/mirror.log# Change to the project directory
cd /home/pi/mikes-smarter-mirror# Make sure the log file never gets too big
rm -rf /home/pi/mirror.log# Use sudo -u pi -i to run the command as the pi user in a login shell
sudo -u pi /home/pi/.bun/bin/bun run ./scripts/prelaunch.ts >> /home/pi/mirror.log 2>&1 &# Print success message to log
echo "Smart mirror application started successfully at $(date)" >> /home/pi/mirror.logexit 0
```