diff options
author | Robert Scheibe <mail@robert-scheibe.de> | 2024-12-19 21:34:28 +0100 |
---|---|---|
committer | Robert Scheibe <mail@robert-scheibe.de> | 2024-12-19 21:34:28 +0100 |
commit | 9ee7efb4bc032ccebb021e70bb8d227193f9497a (patch) | |
tree | 049b72eb766a2ecb3cf370083105191e9a00eaa4 |
initial commit
-rw-r--r-- | index.html | 18 | ||||
-rwxr-xr-x | make_photo | 10 |
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 |