From 9ee7efb4bc032ccebb021e70bb8d227193f9497a Mon Sep 17 00:00:00 2001 From: Robert Scheibe Date: Thu, 19 Dec 2024 21:34:28 +0100 Subject: initial commit --- index.html | 18 ++++++++++++++++++ make_photo | 10 ++++++++++ 2 files changed, 28 insertions(+) create mode 100644 index.html create mode 100755 make_photo diff --git a/index.html b/index.html new file mode 100644 index 0000000..effdcd8 --- /dev/null +++ b/index.html @@ -0,0 +1,18 @@ + + + waterpi + + + + + + + + + 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 -- cgit v1.2.3