summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorxengineering <mail2xengineering@protonmail.com>2021-06-18 21:58:57 +0200
committerxengineering <mail2xengineering@protonmail.com>2021-06-18 21:58:57 +0200
commit97554c707c8c9a6c5995465d4dd2b11bb9bf9289 (patch)
treea177a4a6132bf7f8d6eadf9ad99f89fb8f94cc01
parent5643b52829587c6bc723233a14b2bdc3f52b3879 (diff)
downloadbirdscan-97554c707c8c9a6c5995465d4dd2b11bb9bf9289.tar
birdscan-97554c707c8c9a6c5995465d4dd2b11bb9bf9289.tar.zst
birdscan-97554c707c8c9a6c5995465d4dd2b11bb9bf9289.zip
Update CSS
-rw-r--r--data/css/birdscan.css15
-rw-r--r--data/html/index.html2
-rw-r--r--src/camera.go2
3 files changed, 18 insertions, 1 deletions
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 @@
<h1>birdscan</h1>
<p>A software to take beautiful pictures of birds with a Raspberry Pi Camera.</p>
<p id="state"></p>
+ <p>With this button you can take a single picture:</p>
<button onclick="singlePicture()">Take single picture</button>
+ <p>Use these buttons to reboot or poweroff the Raspberry Pi:</p>
<button onclick="reboot()">reboot</button>
<button onclick="poweroff()">poweroff</button>
</main>
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