[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [php-weathermap] Almost working
- From: pablo cuervo <pcuervo@xxxxxxx>
- Subject: Re: [php-weathermap] Almost working
- Date: Wed, 28 Nov 2007 16:58:14 +0100
After extensive testing I'm pretty sure now that the reason behind my problems is the path attach to the output files. Whenever I dont write any directory HTMLOUTPUTFILE map.html IMAGEOUTPUTFILE map.png the map.html file finds the image properly. But when I try to place the resulting png and html files in the output directory it doesn't work, either adding the whole path HTMLOUTPUTFILE /usr/apache/htdocs/weathermap/map.html IMAGEOUTPUTFILE /usr/apache/htdocs/weathermap/map.png or a relative one HTMLOUTPUTFILE output/map.html IMAGEOUTPUTFILE output/map.png and the map.html file is unable to find the path to the map.png image. In the resulting map.html, when I click on the broken image, in properties it displays a wrong path. http://www.mydomain.com/usr/apache/htdocs/weathermap/output/nocispra.png instead of the correct one http://www.mydomain.com/weathermap/output/nocispra.png May somebody tell me how to fix this? Pablo On Mie Nov 28 13:11 , pablo cuervo <pcuervo@xxxxxxx> sent: >Following my recent email, I have just discovered where the problems lies. When I >run the script using the options --output and --htmloutput in the command line the >html is properly generated. But when I instead put this 2 parameters inside the >configuration file the html file is not correctly generated. > >Pablo > >On Mie Nov 28 13:01 , pablo cuervo pcuervo@xxxxxxx> sent: > >>Hi, >>with regard to my first bullet, I'm not talking about OVERLIBGRAPH but about the >>main html page containing the whole picture of the network that should refresh >>automatically (like the one included as example in the weathermap distribution >>called 'weathermap.html'). When I address this page in my browser >>(www.mydomain.com/weathermap/weathermap.html) I see the network picture. But when >I >>try to do the same thing with my own maps >(www.mydomain.com/weathermap/mymap.html), >>I just see a broken link. After your feedback I got rid of all the warnings but >>there's still something wrong with the generated html file. The corresponding png >>file is properly generated. I don't have much idea about html so it may be a >>trivial error. >> >>Regards >>Pablo >> >>On Mar Nov 27 17:44 , Howard Jones howie@xxxxxxxxxx> sent: >> >>>pablo cuervo wrote: >>>> - First, despite it creates de output output.png properly, the corresponding >>>> output.html file only displays a broken link, not the image. Both files are >into >>>> the same folder. >>>> >>>You should be pointing OVERLIBGRAPH at the image file, not the HTML file >>>(if I understand you correctly). What weathermap does is create an >>>tag with that URL in it. If it's an HTML file, then you will indeed get >>>a 'broken image', because it's not an image :-) >>>> - Secondly, it reports a lot of 'Division by zero' warnings like the following, >>>> always the same lines. >>>> >>>> Warning: Division by zero in /usr/apache/htdocs/weathermap/Weathermap.class.php >>on >>>> line 3140 >>>> >>>> Warning: Division by zero in /usr/apache/htdocs/weathermap/Weathermap.class.php >>on >>>> line 3141 >>>> >>>That suggests that you set BANDWIDTH to 0? >>>(other possibility - what version of PHP is it?) >>>> - Last question, may you confirm whether it's possible to use decimal number >>ranges >>>> within the scale, I mean SCALE DEFAULT 1.5 4.5 255 255 123? >>>> >>>Yes. That's OK. >>> >>>Best Regards, >>> >>>Howie >> >> > >
- Prev by Date: Re: [php-weathermap] Almost working
- Next by Date: Re: [php-weathermap] Almost working
- Previous by thread: Re: [php-weathermap] Almost working
- Next by thread: Re: [php-weathermap] Almost working
- Index(es):