From 97554c707c8c9a6c5995465d4dd2b11bb9bf9289 Mon Sep 17 00:00:00 2001 From: xengineering Date: Fri, 18 Jun 2021 21:58:57 +0200 Subject: Update CSS --- data/css/birdscan.css | 15 +++++++++++++++ data/html/index.html | 2 ++ src/camera.go | 2 +- 3 files changed, 18 insertions(+), 1 deletion(-) diff --git a/data/css/birdscan.css b/data/css/birdscan.css index 6fe2468..42f9e68 100644 --- a/data/css/birdscan.css +++ b/data/css/birdscan.css @@ -68,6 +68,21 @@ nav a { text-align: center; } +#state { + border: 2px solid black; + border-radius: 5px; + padding: 16px; +} + +button { + display: block; + margin-top: 16px; + margin-bottom: 16px; + padding: 16px; + align: center; + width: 100%; +} + /* diff --git a/data/html/index.html b/data/html/index.html index 002f50a..c7cede0 100644 --- a/data/html/index.html +++ b/data/html/index.html @@ -26,7 +26,9 @@

birdscan

A software to take beautiful pictures of birds with a Raspberry Pi Camera.

+

With this button you can take a single picture:

+

Use these buttons to reboot or poweroff the Raspberry Pi:

diff --git a/src/camera.go b/src/camera.go index 4a2fc90..86c0fb1 100644 --- a/src/camera.go +++ b/src/camera.go @@ -53,7 +53,7 @@ func singlePicture(m *Machine) { if !config.Flag.Debug { cmd = exec.Command("python3", "/usr/lib/python3.9/site-packages/birdscan/") } else { - cmd = exec.Command("python3", "../python/birdscan", "--debug") + cmd = exec.Command("python3", "../python/birdscan", "--debug") // FIXME relative paths do not work in exec.Command! } // connect stdout of python process -- cgit v1.2.3-70-g09d2