You can use my new Multifunction Image Handler PHP Script as a Webcam Text Overlay PHP Script
Here is how to use it to overlay text from your weather data
Step 1) Install Ken True's PHP Weather-Display tags feature
http://saratoga-weather.org/scripts.php#PHPtagsConfigure WD to upload the testtags.php to your web server every 5 minutes.
The testtags.php will have the weather variables you can use on your web cam overlay text
If you are already using the Weather Display/PHP/AJAX Website Template Set then you can skip this step.
Step 2) Install my Multifunction Image Handler PHP Script
http://www.642weather.com/weather/scripts.phpJust download the file, adjust a few settings at the top, upload it to your web server, and link to the file like you would an image. Please refer to the "How to use it" section at the top of the script source code for all the details.
Make sure step 2 is working, then continue to step 3.
Step 3) Edit the Multifunction Image Handler PHP Script file
In the settings section at the top make this simple change ...
change
$text1 = '';
to
# Relative path to your testtags.php file, Not the URL. (use ./testtags.php if it is in the same directory.)
require "./testtags.php";
$timezone = date('T');
$temperature = preg_replace('/°F/', ' °F', $temperature);
$text1 = "$time $timezone $date
$temperature, Rain:$dayrn, Wind:$avgspd, Max Gust:$maxgst
$current_summary
Long Beach, WA
www.642weather.com";
Use double quotes for the php variables to display.
The text can be a single line or multiple lines. If the line is too long it will auto wrap.
You can modify the text to your liking and use any data variables you want from the testtags.php file
See a live demo of it here:
Demo - Multifunction Image Handlerhttp://www.642weather.com/weather/scripts-image-handler.php#IHdemoNew Tutorials online:
PHP Web Cam Image Text Overlay Tutorial by Mike Challis
http://www.642weather.com/weather/scripts-weather-cam-text.phpHow To PHP Upload Your Web Cam Image to WeatherUnderground
http://www.642weather.com/weather/scripts-weather-cam-uploader.php