I am doing a small project on my RPi. I already created a website that shows the temperature. The temperature is updated every minute with a cronjob and stored in a .txt file.
Now I want to be notified when the temperature rises above 30 degrees Celsius via SMS. I already set up a HSDPA USB Dongle and I am able to send SMS's via Terminal.
Can someone please help me to write a cronjob, that reads the temperature out of the .txt file and if the temperature is above 30 degrees Celsius it should send me an SMS. The command for sending SMS is this:
echo -e "To: 004917112312312\n\nTEXTMESSAGE" > /var/www/sms/outbox/testsms.txt