summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--index.html18
-rwxr-xr-xmake_photo10
2 files changed, 28 insertions, 0 deletions
diff --git a/index.html b/index.html
new file mode 100644
index 0000000..effdcd8
--- /dev/null
+++ b/index.html
@@ -0,0 +1,18 @@
+<html>
+ <head>
+ <title> waterpi </title>
+ <meta http-equiv="refresh" content="60">
+ <meta name="viewport" content="width=device-width, initial-scale=1">
+ <style>
+.responsive {
+ width: 100%;
+ max-width: 800;
+ height: auto;
+}
+ </style>
+ </head>
+
+ <body>
+ <img src="img.jpg" class="responsive">
+ </body>
+</html>
diff --git a/make_photo b/make_photo
new file mode 100755
index 0000000..f6818f1
--- /dev/null
+++ b/make_photo
@@ -0,0 +1,10 @@
+#!/bin/bash
+export LC_TIME=de_DE.utf-8
+image=/mnt/ramdisk/$(date +'%H_%M').jpg
+image_small=/mnt/ramdisk/$(date +'%H_%M')_thumb.jpg
+
+
+rpicam-still -o $image
+#add date string
+convert $image -resize 1024x768 -gravity SouthEast -font DejaVu-Sans -pointsize 50 -stroke black -undercolor black -bordercolor white -border 10 -fill "rgba(255,255,255,0.5)" -annotate +30+30 "$(date +\\'%Y-%m-%d %H:%M\')" $image
+convert $image -resize 200x150 $image_small