Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/tophercantrell/anneclock
The awesome Anne Clock
https://github.com/tophercantrell/anneclock
Last synced: about 7 hours ago
JSON representation
The awesome Anne Clock
- Host: GitHub
- URL: https://github.com/tophercantrell/anneclock
- Owner: topherCantrell
- Created: 2022-09-23T22:46:08.000Z (about 2 years ago)
- Default Branch: main
- Last Pushed: 2024-09-01T12:04:04.000Z (3 months ago)
- Last Synced: 2024-11-17T10:16:52.888Z (about 7 hours ago)
- Language: JavaScript
- Size: 9.35 MB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 2
-
Metadata Files:
- Readme: README.md
- Changelog: CHANGELOG.md
Awesome Lists containing this project
README
# anne-clock
# The Display
https://www.uperfectmonitor.com/products/raspberry-pi-case-with-screen
RPi fits inside. 10.1 inch HDMI with sound. 1280x800 pixels.
The touch screen works right out of the box. No configuration to do.
# Audio
I disabled the onboard headphone jack so that the HDMI output was the only option.
https://www.instructables.com/Disable-the-Built-in-Sound-Card-of-Raspberry-Pi/
```
cd /etc/modprobe.d
vi sudo alsa-blacklist.conf # This is creating the file
``````
blacklist snd_bcm2835
```And reboot.
# Auto-starting the Python Server
Add this line to /etc/rc.local (before the exit 0):
```
/home/pi/ONBOOT.sh 2> /home/pi/ONBOOT.errors > /home/pi/ONBOOT.stdout &
```Note the "sudo" here; the server runs as root:
```
sudo python3 -m pip install aiohttp
```Drop the `anneclock` directory in the pi home directory.
Create `ONBOOT.sh` with the following:
```
#!/bin/bash
rm -rf /home/pi/.cache/chromium
cd /home/pi/anneclock
python3 server.py
```Don't forget `chmod +x ONBOOT.sh`.
# Chromium Kiosk
Install unclutter to hide the mouse pointer:
```
sudo apt install chromium
sudo apt install unclutter
```Use `sudo raspi-config` to configure boot to GUI and auto log in, and configure the display to "non blanking".
In the pi home directory, create `kiosk.sh` and make it executable:
```
#!/bin/bashxset s noblank
xset s off
xset -dpmsunclutter -idle 0.5 -root &
sed -i 's/"exited_cleanly":false/"exited_cleanly":true/' /home/pi/.config/chromium/Default/Preferences
sed -i 's/"exit_type":"Crashed"/"exit_type":"Normal"/' /home/pi/.config/chromium/Default/Preferenceschromium --noerrdialogs --disable-infobars --kiosk --autoplay-policy=no-user-gesture-required http://localhost:8080/index.html
```Create the systemd service file:
```
sudo vi /lib/systemd/system/kiosk.service
```With this content:
```
[Unit]
Description=Chromium Kiosk
Wants=graphical.target
After=graphical.target[Service]
Environment=DISPLAY=:0.0
Environment=XAUTHORITY=/home/pi/.Xauthority
Type=simple
ExecStart=/bin/bash /home/pi/kiosk.sh
Restart=on-abort
User=pi
Group=pi
```Enable the service:
```
sudo systemctl enable kiosk.service
```Reboot or use `sudo systemctl start kiosk.service` to start (`stop` to stop).
# Configuration menu:
- Theme
- Trump
- Christmas
- Update
- check for updates (https://github.com/topherCantrell/anne-clock/anneclock/update.py)
- install
- LAN connection
- ssid
- password
- Sleep Mode
- When system wakes
- When system sleeps
- Manual wake
- Manual sleep
- Backgrounds
- Pick set (or one)
- When backgrounds change (hourly, etc)
- Videos
- Pick set (or none)
- When played (hourly, etc)
- Videos and audio scheduled same time -- video wins
- Audio
- Pick set (or none)
- When played (hourly, etc)