I wanted to monitor the temperature of my Twine live by having it post a live temperature to a server that could be displayed on a page designed for display on a mobile device. That was the end goal but before I had time to do that I went for the device to notify me every 15 minutes (excessive) of its temperature.
Essentially this is a very simple PHP emailer script modified to calculate the Fahrenheit value into Celsius and report both values to me via email.
WHEN temperature rises above 0...
Trigger after 0 seconds...
Reset 900 seconds after this has been triggered... (900 seconds is 15 minutes, adjust as required.)
THEN http requesthttp://yourdomain.com/twine/twine_temp.php?f=[temperature]
Obviously you need somewhere to host the PHP script which is below and modify it as required to send messages to you.
PHP CODE OF twine_temp.php
//Read the Fahrenheit value from the URL
//Convert Fahrenheit into Celsius
//Email address to send notification to
$to = 'firstname.lastname@example.org';
//Subject of the Email
$subject = 'Twine Temperature is: '.$f.'f / '.$c.'c';
//Message body of the Email
$message = 'Hello from your Twine. I am currently sitting on '.$f.'f or '.$c.'c.';
//Who you want the Email to appear from (make sure it is not blocked by SPAM filter)
$from = 'email@example.com';
//Usual PHP Email Code
$headers = 'From:' . $from;
//Display a message to anyone viewing the page that a message with values has been sent
echo 'Update Twine Temperature Mail Sent with values F='.$f.' and C='.$c.'.';
The conversion of Fahrenheit into Celsius is required as it seems even though my Twine was set to Celsius it would only post Fahrenheit values.
This was very simple to get up and running and having tested it seems to work fine.
Now I'm onto making it post a real temperature value every 5 minutes to a page.
Hope this has helped people. I've found the information people are posting on here really really great.