HTML from remote PWS

Personnal Weather Station (PWS) support
daddylito

Re: HTML from remote PWS

Post by daddylito »

Hi Jim,

Yes, it´s a custom script but could be used as some kind of template for another user.
In my case, it is not likely that the HTML will change (after 5 years it´s still the same),
but dependant of how you extract values from the file, you might not need to change the script
even if the HTML file is changed.
And in worst case, you don't need to start over again!

But I agree, I should ask for permission to download data from that site!

DaddyLito
gemini06720

Re: HTML from remote PWS

Post by gemini06720 »

daddylito wrote:I guess that the sizes of the 2 files you mentioned was in bytes and not in bits!
No, I was not writing about the size of the files.

What I was explaining is the following:
- Weather Display produces every 5 seconds a file named 'clientraw.txt' - that file contains 166 bit of weather data - that file is about 715 bytes;
- Cumulus produced every 5 seconds a file named 'realtime.txt' - that file contains 50 bits of weather data data - that file is about 315 bytes.
daddylito wrote:The HTML-file is a very small file! The file has only references to images (if any), it doesn't hold any images!
Could you please give me a link to that weather station - I will probably be able to tell you what weather software is being used and the size of that HTML file.
daddylito

Re: HTML from remote PWS

Post by daddylito »

Hi Ray,
I have included the HTML file below, the size is 3.14 kB (3 223 bytes). Since it´s not my file I have removed/replaced some text.

I still don´t understand what you mean with bits. Do you mean 166 values, items, parts
or are 166 bits stored several times making the file.

Code: Select all

<HTML>
<HEAD>
<meta http-equiv="refresh" content="150";>
<TITLE>Current Conditions at ---------- removed text ---------------</TITLE>
</HEAD>
<BODY background="Clouds.jpg">
<P><FONT size=4></FONT></P>
<P>
<TABLE border=0 cellSpacing=0 cellPadding=0 width="90%" align=center 
 height=50 >
 
</TABLE></P>
<P align=center><FONT size=5  color=darkred><STRONG><A NAME = "Current">Current Weather 
Conditions at   --------------- removed text -------------</A></STRONG></FONT></P>
<P align=center><FONT size=4  color=darkred><STRONG><A NAME = "Current">As of:  10-01-15 13:40
</A></STRONG></FONT></P><TABLE  cellspacing=1 cellpadding=0 width="85%" 
 align=center  border=1>
  
  <TR height=20>
   <TD Width="33%"><STRONG><FONT face="Tw Cen MT">Temperature:</FONT></STRONG></TD>
    <TD Width="22%" align=left> <b> -14.8°C</b></TD>
    <TD Width=200><STRONG><FONT face="Tw Cen MT">Dewpoint:</FONT></STRONG></TD>
  <TD Width=100 align=left><b>-17.2°C</b></TD>
  </TR>
   <TR height=20>
    <TD Width=200><STRONG><FONT face="Tw Cen MT">Humidity:</FONT></STRONG></TD>
    <TD Width=100 align=left><b> 82% </b></TD>
    <TD Width="33%"><STRONG><FONT face="Tw Cen MT">Wind Chill:</FONT></STRONG></TD>
  <TD Width="11%" align=left><b>-14.8°C</b></TD>
  </TR>
   <TR height=20>
   <TD Width="15%"><STRONG><FONT face="Tw Cen MT">Wind:</FONT></STRONG> </TD>
    <TD Width="18%" align=left><b> NW at 0.0&nbsp;m/s</b></TD>
    <TD Width=200><STRONG><FONT face="Tw Cen MT">THW Index:</FONT></STRONG></TD>
  <TD Width=100 align=left><b>-14.8°C</b></TD>
  </TR>
  <TR height=20>
   <TD Width=200><STRONG><FONT face="Tw Cen MT">Barometer:</STRONG></FONT></TD>
    <TD Width=100 align=left> <b> 1032.5&nbsp;mb and Steady</b></TD>
    <TD Width=200><STRONG><FONT face="Tw Cen MT">Heat Index:</FONT></STRONG></TD>
  <TD Width=100 align=left><b> -14.8°C</b></TD>
  </TR>
  <TR height=20>
    <TD Width=200><STRONG><FONT face="Tw Cen MT">Today's Rain:</FONT></STRONG></TD>
  <TD Width=100 align=left> <b>0.0&nbsp;mm</b></TD>
    <TD Width=200><STRONG><FONT face="Tw Cen MT">Monthly Rain:</FONT></STRONG></TD>
    <TD Width=100 align=left><b>0.0&nbsp;mm</b></TD>
  </TR>
  <TR height=20>
    <TD Width=200><STRONG><FONT face="Tw Cen MT">Storm Total:</FONT></STRONG></TD>
    <TD Width=100 align=left><b>0.0&nbsp;mm</b></TD>
    <TD Width=200><STRONG><FONT face="Tw Cen MT">Yearly Rain:</FONT></STRONG></TD>
    <TD Width=100 align=left><b>0.0&nbsp;mm</b></TD>
  </TR>
  <TR height=20>
    <TD Width=200><STRONG><FONT face="Tw Cen MT">Current Rain Rate:</FONT></STRONG></TD>
  <TD Width=100 align=left> <b>0.0&nbsp;mm/hr</b></TD>
  </TR>
 </TABLE>
<br>
<P align=center><FONT size=4  color=darkred><STRONG><A NAME = "Current">Sunrise:   9:20&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Sunset:  15:18
</A></STRONG></FONT></P>
  <TABLE align=center>
  <TR width="100%"><TD>
  <font size = 4 face="verdana,arial" color=darkred><STRONG>This Site Powered by:</STRONG></font></TD></TR>
<TR align=center><TD>
<a href="http://www.davisnet.com" target=HI><img src="Davis Logo.jpg"></a></TD></TR>
</TABLE>
</P>
<TABLE  cellspacing=1 cellpadding=0 width="85%" 
 align=center  border=1>    

</BODY>
</HTML>
gemini06720

Re: HTML from remote PWS

Post by gemini06720 »

daddylito wrote:I have included the HTML file below, the size is 3.14 kB (3 223 bytes). Since it´s not my file I have removed/replaced some text.
The quote of the file is useless to me - I need the link to the weather Web pages in order to look at the information that is being sent by the server - I do not really need the files, and certainly not the way you have quoted it... :(
daddylito wrote:I still don´t understand what you mean with bits. Do you mean 166 values, items, parts or are 166 bits stored several times making the file.
I am not writing about 'bits and bytes' as I would certainly not use the term 'bits' to indicate the size of a file - I would use 'bytes'.

What I mean by the number of 'bits' is the number of different 'pieces' of weather data values (one of the definition for the word 'bit' is 'small quantity of something' and not just 'a unit of computer information')...
daddylito

Re: HTML from remote PWS

Post by daddylito »

Hi Ray!
You wanted to determine the size of the HTML file and I included the file, What did I do wrong?

Below I have included the name and size of all files at the PWS site
  • 10MinAvgWindSpeed.gif 17-Jan-2010 10:30 4.3K
    AirDensity.gif 17-Jan-2010 10:30 4.9K
    Barometer.gif 17-Jan-2010 10:30 5.7K
    BarometerHistory.gif 17-Jan-2010 10:30 12K
    Current_Monitor.htm 17-Jan-2010 10:30 9.9K
    Current_Vantage_Pro.htm 17-Jan-2010 10:30 13K
    Davis Logo.jpg 17-Jan-2010 10:30 7.0K
    DewPoint.gif 17-Jan-2010 10:30 5.2K
    DewPointHistory.gif 17-Jan-2010 10:30 13K
    EMC.gif 17-Jan-2010 10:30 4.1K
    HeatIndex.gif 17-Jan-2010 10:30 5.1K
    HiWindSpeedHistory.gif 17-Jan-2010 10:30 14K
    MonthlyRain.gif 17-Jan-2010 10:30 4.5K
    NOAAMO.TXT 17-Jan-2010 10:30 2.4K
    NOAAPRMO.TXT 17-Jan-2010 10:30 3.4K
    NOAAPRYR.TXT 17-Jan-2010 10:30 3.2K
    NOAAYR.TXT 17-Jan-2010 10:30 1.7K
    OutsideHumidity.gif 17-Jan-2010 10:30 5.5K
    OutsideHumidityHistory.gif 17-Jan-2010 10:30 14K
    OutsideTemp.gif 17-Jan-2010 10:30 5.2K
    OutsideTempHistory.gif 17-Jan-2010 10:30 13K
    Rain.gif 17-Jan-2010 10:30 4.5K
    RainRate.gif 17-Jan-2010 10:30 5.8K
    RainStorm.gif 17-Jan-2010 10:30 4.5K
    THW.gif 17-Jan-2010 10:30 4.3K
    Tag-List.htm 17-Jan-2010 10:30 12K
    Weather_Summary_Vantage_Pro.htm 17-Jan-2010 10:30 3.1K
    WindChill.gif 17-Jan-2010 10:30 4.4K
    WindChillHistory.gif 17-Jan-2010 10:30 14K
    WindDirection.gif 17-Jan-2010 10:30 4.6K
    WindDirectionHistory.gif 17-Jan-2010 10:30 13K
    WindSpeed.gif 17-Jan-2010 10:30 4.4K
    WindSpeedHistory.gif 17-Jan-2010 10:30 13K
    YearlyRain.gif 17-Jan-2010 10:30 4.5K
    davisticker.class 17-Jan-2010 10:30 6.6K
    downld02.txt 17-Jan-2010 10:30 78K
    downld08.txt 17-Jan-2010 10:30 402K
The files named NOAA.... as well as downld... are holding historical weather data

Sincerly,
DaddyLito
Post Reply