an eink camera running on an rpi zero 2 w

feat: add service and remove button

dunkirk.sh d794e531 170a3861

verified
Changed files
+14 -2
src
+14
src/camera.service
···
+
[Unit]
+
Description=Button Camera with Web Server
+
After=network.target
+
+
[Service]
+
ExecStart=/usr/bin/python3 /home/kierank/camera_server.py
+
WorkingDirectory=/home/kierank
+
StandardOutput=inherit
+
StandardError=inherit
+
Restart=always
+
User=root
+
+
[Install]
+
WantedBy=multi-user.target
-2
src/camera_server.py
···
.photo {{ border: 1px solid #ddd; padding: 5px; }}
.photo img {{ width: 100%; height: auto; }}
.photo a {{ display: block; text-align: center; margin-top: 5px; }}
-
button {{ display: block; margin: 10px auto; padding: 5px 10px; }}
</style>
</head>
<body>
<h1>Inkpress: Gallery</h1>
-
<button onclick="location.reload()">Refresh Gallery</button>
<div class="gallery">
{photo_items}
</div>