MCHALLIS
Rain Maker
 
OfflineLocation: Long Beach, WA USA Station Type: Davis VP2+
Posts: 1,967 Local Time: Tuesday 04:30
|
 |
« Reply #15 on: September 27, 2008, 05:14:14 PM » |
|
John,
That error means the cache output file ($outputimgName) is not being saved.
To be able to help, I need the url to your script and the settings you set in it.
|
|
|
|
|
Logged
|
|
|
|
jahuff
Weather Guru

OfflineLocation: Northern New Hampshire, USA Station Type: Davis Vantage Pro2 Plus, 1-wire lightning, solar and soil moisture
Posts: 554 Local Time: Tuesday 07:30
|
 |
« Reply #16 on: September 27, 2008, 05:22:02 PM » |
|
Hi http://www.johnsnhweather.com/image-webcam-overlay.php$ImageURL = ' http://www.johnsnhweaher.com/webcamimage-plain.jpg';$localimgName = 'webcamimage-temp.jpg'; $outputimgName = 'webcamimage.jpg'; include './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 Pittsburg, NH www.johnsnhweather.com"; $archivedir = './'; Is this what you need?? Thanks, John
|
|
|
|
|
Logged
|
|
|
|
MCHALLIS
Rain Maker
 
OfflineLocation: Long Beach, WA USA Station Type: Davis VP2+
Posts: 1,967 Local Time: Tuesday 04:30
|
 |
« Reply #17 on: September 27, 2008, 05:24:54 PM » |
|
Yes that is what I needed Your image is missing, are you uploading a web cam image to you site? http://www.johnsnhweaher.com/webcamimage-plain.jpg
|
|
|
|
|
Logged
|
|
|
|
jahuff
Weather Guru

OfflineLocation: Northern New Hampshire, USA Station Type: Davis Vantage Pro2 Plus, 1-wire lightning, solar and soil moisture
Posts: 554 Local Time: Tuesday 07:30
|
 |
« Reply #18 on: September 27, 2008, 05:31:23 PM » |
|
|
|
|
|
Logged
|
|
|
|
|
|
jahuff
Weather Guru

OfflineLocation: Northern New Hampshire, USA Station Type: Davis Vantage Pro2 Plus, 1-wire lightning, solar and soil moisture
Posts: 554 Local Time: Tuesday 07:30
|
 |
« Reply #20 on: September 27, 2008, 06:15:09 PM » |
|
Hi MCHALLIS, I fixed the 't'  , But I still get the "Error: 009". John
|
|
|
|
|
Logged
|
|
|
|
MCHALLIS
Rain Maker
 
OfflineLocation: Long Beach, WA USA Station Type: Davis VP2+
Posts: 1,967 Local Time: Tuesday 04:30
|
 |
« Reply #21 on: September 27, 2008, 06:36:44 PM » |
|
John, Try deleting this file http://www.johnsnhweather.com/webcamimage.jpgthen run the script again
|
|
|
|
|
Logged
|
|
|
|
jahuff
Weather Guru

OfflineLocation: Northern New Hampshire, USA Station Type: Davis Vantage Pro2 Plus, 1-wire lightning, solar and soil moisture
Posts: 554 Local Time: Tuesday 07:30
|
 |
« Reply #22 on: September 27, 2008, 07:02:32 PM » |
|
Hi,
If I remove it this is what I get.
Parse error: syntax error, unexpected ';' in /home/johnsnh/public_html/image-webcam-overlay.php on line 138
John
|
|
|
|
|
Logged
|
|
|
|
MCHALLIS
Rain Maker
 
OfflineLocation: Long Beach, WA USA Station Type: Davis VP2+
Posts: 1,967 Local Time: Tuesday 04:30
|
 |
« Reply #23 on: September 27, 2008, 07:18:59 PM » |
|
Line 138 should look like this $ImageURL = ' http://www.johnsnhweaher.com/webcamimage-plain.jpg';You have a typo in there breaking the php If you cannot find it paste it with a few lines above and below so I can see
|
|
|
|
|
Logged
|
|
|
|
MCHALLIS
Rain Maker
 
OfflineLocation: Long Beach, WA USA Station Type: Davis VP2+
Posts: 1,967 Local Time: Tuesday 04:30
|
 |
« Reply #24 on: September 27, 2008, 08:50:59 PM » |
|
John,
It looks like you are uploading a webcamimage.jpg from WD? You need to turn that off so image-webcam-overlay.php can generate it, then delete the webcamimage.jpg
or you can change $outputimgName to something else like this
$outputimgName = 'webcamimage-cached.jpg';
The fact that a webcamimage.jpg is there that this script did not generate is confusing it because webcamimage-temp.jpg is then missing.
|
|
|
|
|
Logged
|
|
|
|
jahuff
Weather Guru

OfflineLocation: Northern New Hampshire, USA Station Type: Davis Vantage Pro2 Plus, 1-wire lightning, solar and soil moisture
Posts: 554 Local Time: Tuesday 07:30
|
 |
« Reply #25 on: September 28, 2008, 02:07:45 AM » |
|
Hi, I am making some progress. I went back to your original php and now I am trying to get things sorted out. So far http://www.johnsnhweather.com/image-webcam-overlay.php I have your jpg with some of my data. I should have it working soon.  I will let you know. Thanks, John
|
|
|
|
|
Logged
|
|
|
|
jahuff
Weather Guru

OfflineLocation: Northern New Hampshire, USA Station Type: Davis Vantage Pro2 Plus, 1-wire lightning, solar and soil moisture
Posts: 554 Local Time: Tuesday 07:30
|
 |
« Reply #26 on: September 28, 2008, 02:19:29 AM » |
|
Thanks so much MCHALLIS, I got it working. I just need to some resizing and I should be on my way. http://www.johnsnhweather.com/image-webcam-overlay.phpThanks again, John
|
|
|
|
|
Logged
|
|
|
|
jahuff
Weather Guru

OfflineLocation: Northern New Hampshire, USA Station Type: Davis Vantage Pro2 Plus, 1-wire lightning, solar and soil moisture
Posts: 554 Local Time: Tuesday 07:30
|
 |
« Reply #27 on: September 29, 2008, 02:37:49 PM » |
|
Hi, Well I have just about everything working, EXCEPT, I can't get the job to run every 5 minutes. I am using "System Scheduler" (Method 3) to execute a batch job on my system has "ping http://www.johnsnhweather.com/image-webcam-overlay.php" in it. Is that correct? Thanks, John
|
|
|
|
|
Logged
|
|
|
|
MCHALLIS
Rain Maker
 
OfflineLocation: Long Beach, WA USA Station Type: Davis VP2+
Posts: 1,967 Local Time: Tuesday 04:30
|
 |
« Reply #28 on: September 29, 2008, 03:02:14 PM » |
|
Hi, Well I have just about everything working, EXCEPT, I can't get the job to run every 5 minutes. I am using "System Scheduler" (Method 3) to execute a batch job on my system has "ping http://www.johnsnhweather.com/image-webcam-overlay.php" in it. Is that correct? Thanks, John John, I have never really used system scheduler. It was recommended in a forum post once before, but I think you are the first to try it with my image handler. I think I was too literal when I said "ping" the web address, what you need instead is to automatically run an http request to the page. I just looked at the splinterware forum and found this: http://www.splinterware.com/forum/viewtopic.php?t=341&highlight=web+siteYou need to create a 'Run Application' job. In the 'Application' field enter the http address you want to go to. So if you create a new job and enter http://www.splinterware.com in the 'Application' field, when you run the job Internet Explorer will open the Splinterware home page. ----------- more of my thoughts, looks like it would constantly open a browser window, you would have to schedule something else to close it, that would annoy me to no end. Maybe system scheduler is not an option at all then? This method might work better.... (skip the 'Track.aspx webpage' parts) Schedule a task to call a webpage using Task scheduler http://weblogs.asp.net/steveschofield/archive/2006/09/28/Schedule-a-task-to-call-a-webpage-using-Task-scheduler_2E00_.aspxor since you have WD ( I have tested this it works silently ) Method 1: If you already have weather-display software click on Control Panel | FTP & Connections | HTTP Download tab Click on #1,#2 or #3 setup button | switch on the button for "downloads on | enter your image-webcam-overlay.php url in the box called "URL of file to be downloaded" | click "add to list" | check the tick that says "Tick if text file" | enter image-webcam-overlay.txt in the box that says "Local filename to be downloaded" | click "add to list" | click "download every 5 minutes" | click "save now" | click OK
|
|
|
|
|
Logged
|
|
|
|
jahuff
Weather Guru

OfflineLocation: Northern New Hampshire, USA Station Type: Davis Vantage Pro2 Plus, 1-wire lightning, solar and soil moisture
Posts: 554 Local Time: Tuesday 07:30
|
 |
« Reply #29 on: September 29, 2008, 03:16:50 PM » |
|
Hi, I have just setup "Method 1", I thought I tried this before, let me see if it works. In the URL field I entered " http://www.johnsnhweather.com/public_html/image-webcam-overlay.php" Should I get rid of /public_html ??? Thanks, John
|
|
|
|
|
Logged
|
|
|
|
|