#!/bin/bash export PATH=/usr/local/bin:/usr/bin export LC_TIME=de_DE.utf-8 image=/mnt/ramdisk/$(date +'%H_%M').jpg #take photo rpicam-still -o $image #add date string convert $image -resize 1024x768 -gravity SouthEast -font DejaVu-Sans -pointsize 50 -stroke black -undercolor black -fill "rgba(255,255,255,0.5)" -annotate +30+30 "$(date +\\'%Y-%m-%d %H:%M\')" $image #read cpu temp read_temperature.py #plot cpu temp plot.py $image $image