cloudy

Author Topic: PHP Extraction of WD Avg/Ext HTM Files  (Read 43089 times)

0 Members and 1 Guest are viewing this topic.

Offline jwwd

  • Posts: 3,545
  • Silkeborg, Denmark (56:10:58 N-09:30:26 E) - Elevation 75,35 meters
    • Weather at Silkeborg, Denmark
Re: PHP Extraction of WD Avg/Ext HTM Files
« Reply #165 on: April 10, 2008, 08:11:24 PM »
Månedsrapport is the climatedataout42008.html (and all the other monhts back to 2005)

Årsrapport is the climatedatayearout2008.html (and all the other years back to 2005)

They are both located in the www.buskelundtoften.dk/vejret/vejrdata folder.

After you sent me the last update to my rapport.php they stopped working.

Henrik

Offline MCHALLIS

  • Posts: 2,102
  • Long Beach, WA USA
    • Weather for Long Beach, WA USA
Re: PHP Extraction of WD Avg/Ext HTM Files
« Reply #166 on: April 10, 2008, 08:21:07 PM »
Månedsrapport is the climatedataout42008.html (and all the other monhts back to 2005)

Årsrapport is the climatedatayearout2008.html (and all the other years back to 2005)

They are both located in the www.buskelundtoften.dk/vejret/vejrdata folder.

After you sent me the last update to my rapport.php they stopped working.

Henrik


I know what it is now, you need to adjust the new form input filter for those inputs, I will PM you the change.
« Last Edit: January 25, 2009, 02:51:09 PM by MCHALLIS »

Offline K3JAE

  • Posts: 692
  • Fayette County, PA., USA
    • K3JAE's Weather Station
Re: PHP Extraction of WD Avg/Ext HTM Files
« Reply #167 on: November 23, 2008, 07:06:38 AM »
I am attempting to incorporate this script but am getting an error I do not understand.

The test page is located at:

http://www.k3jae.com/wxhistory-test.php

Error reported is:
Warning: fopen(www.k3jae.comNovember2008.htm) [function.fopen]: failed to open stream: No such file or directory in /home6/kthrjaec/public_html/AvgExtract.php on line 102

Date format is incorrect as well.  Can someone direct me to my coding error?


73's de K3JAE

John
K3JAE Weather Station

Offline jmcmurry

  • Jim McMurry
  • Posts: 2,221
  • Mauston, WI, USA
    • Juneau County Weather
Re: PHP Extraction of WD Avg/Ext HTM Files
« Reply #168 on: November 23, 2008, 09:21:33 AM »
It appears that you've found the problem ... it's looking nice now.

- Jim

 Home of NSLog NexStorm Lightning Data Manager

Offline K3JAE

  • Posts: 692
  • Fayette County, PA., USA
    • K3JAE's Weather Station
Re: PHP Extraction of WD Avg/Ext HTM Files
« Reply #169 on: November 23, 2008, 02:21:32 PM »
It appears that you've found the problem ... it's looking nice now.

- Jim

Honestly and with all respect Jim, no I have not found my problem. I went to bed and woke up and see now data is printing - except Daily Rain Totals - the heading prints but no data. I found that ASTOUNDING because after 45 minutes of receiving the previously listed error I wake up showing at least data is printing.

{Modify this post to update information}
Since this post I have continued to play around and "almost" have it.  Only problem I have now and am clueless how to resolve is the following:

Page loads fine with the date, inside my template as it should, CSS values working. Test page at : http://www.k3jae.com/sample-test.php

  • There is a very large gap between the selection box and the beginning of the actual data. Cannot decipher why this is.
  • There are no links to the 24 hour daily charts. Those charts do exist as evident by running original page VIEW: http://www.k3jae.com/wxhistory.php.

Any assistance here would be greatly appreciated. I have reached the max of my PHP knowledge (which is limited to say the least) and am unsure how to resolve the couple of problems as listed above.
« Last Edit: November 23, 2008, 05:13:16 PM by K3JAE »


73's de K3JAE

John
K3JAE Weather Station

Offline mister

  • Posts: 7
Re: PHP Extraction of WD Avg/Ext HTM Files
« Reply #170 on: January 24, 2009, 07:59:07 PM »

Hi
this is my "Weather Display / PHP / AJAX Website Template" http://www.lidodarsena.it/meteolive/praiaamare

I have a problem: I can not see the weather data http://www.lidodarsena.it/meteolive/praiaamare/wxhistory.php
What do you think can be the problem?

Best regards,
Max


This version of AvgExtract.php I have developed into include-wxhistory.php
At this time, is only designed to be used as a plugin for use in
the Weather Display/PHP/AJAX Website Template Set because it has css style changes inside include-wxhistory.php.
include-wxhistory.php should not be used outside of the Weather Display/PHP/AJAX Website Template Set or it will not work right.


Offline MCHALLIS

  • Posts: 2,102
  • Long Beach, WA USA
    • Weather for Long Beach, WA USA
Re: PHP Extraction of WD Avg/Ext HTM Files
« Reply #171 on: January 24, 2009, 09:02:44 PM »
Hi
this is my "Weather Display / PHP / AJAX Website Template" http://www.lidodarsena.it/meteolive/praiaamare

I have a problem: I can not see the weather data http://www.lidodarsena.it/meteolive/praiaamare/wxhistory.php
What do you think can be the problem?

Best regards,
Max


Is WD uploading the Monthly Avg/Ext HTM Files files?
Are they in English?
I do not see January2009.htm on your site.

Offline mister

  • Posts: 7
Re: PHP Extraction of WD Avg/Ext HTM Files
« Reply #172 on: January 24, 2009, 11:03:38 PM »
Is WD uploading the Monthly Avg/Ext HTM Files files?
Are they in English?
I do not see January2009.htm on your site.

Hi Mike
are in the directory .. /meteolive http://www.lidodarsena.it/meteolive/January2009.htm

Thanks for your help
Max

Offline MCHALLIS

  • Posts: 2,102
  • Long Beach, WA USA
    • Weather for Long Beach, WA USA
Re: PHP Extraction of WD Avg/Ext HTM Files
« Reply #173 on: January 24, 2009, 11:25:28 PM »
Max, inside wxhistory you should set the webdir setting like this:

You may have another problem if your January2009.htm is not in English

Code: [Select]
# Location of where the data files are located.
# You may need to change this and it must end with a slash.
# ./ is used if the files are in the same folder as your page with the dropdown list
$webdir = '../';

Offline mister

  • Posts: 7
Re: PHP Extraction of WD Avg/Ext HTM Files
« Reply #174 on: January 24, 2009, 11:45:03 PM »
Max, inside wxhistory you should set the webdir setting like this:
Code: [Select]
# Location of where the data files are located.
# You may need to change this and it must end with a slash.
# ./ is used if the files are in the same folder as your page with the dropdown list
$webdir = '../';

webdir is $webdir = '../';

Quote
You may have another problem if your January2009.htm is not in English

January2009.htm is not in English  :(






Offline mister

  • Posts: 7
Re: PHP Extraction of WD Avg/Ext HTM Files
« Reply #175 on: January 25, 2009, 09:09:58 AM »
Hi
resolved  :lol: Its working now http://www.lidodarsena.it/meteolive/praiaamare/wxhistory.php
recreate the web Av/ext page in English by WD

thank you
Best regards,
Max

Offline PatrickMc

  • Posts: 1
Re: PHP Extraction of WD Avg/Ext HTM Files
« Reply #176 on: June 25, 2009, 07:25:44 PM »

Do consider biterscripting ( http://www.biterscripting.com ) for automatically parsing and generating web pages from/into weather statistics and weather data. Even weather alert RSS feeds can be parsed and created with it.

In general, biterscripting tends to be easy to use and easy to learn when it comes to correlating weather data into/from web pages. The good thing is - the scripts you develop - can run directly as a part of your web server, and can access web data at run time.

Email me if you need help developing any specific scripts. Keep up the good work.

P


 

cumulus