WXforum.net
May 22, 2013, 09:48:51 AM *
Welcome, Guest. Please login or register.

Login with username, password and session length
Members: 6617  •  Posts: 178551  •  Topics: 18120
Please welcome TheMOX, our newest member.
Welcome to the the new hosting for WXforum.net.
 
   Home   Help Search Login Register  
Pages: [1]   Go Down
  Print  
Author Topic: VWS Not Displaying "F" in the 5-Day Forecast  (Read 856 times)
0 Members and 1 Guest are viewing this topic.
W3DRM
Forecaster
*****
Online Online

Posts: 1346



WWW
« on: February 16, 2011, 11:58:54 PM »

For some unknown reason VWS has started displaying an "A" rather than a "F" for degrees F. The A is a special character but I couldn't figure out how to display in this text.

Anyway, I have attached a screen capture of what I am seeing.

Any help would be greatfully appreciated.

NOTE: This only appears in the 5-Day Forecast and Records and Normals section.
Logged

Don - W3DRM - Minden, Nevada --- Davis Wireless VP2, VWS 14.00 p101,
StartWatch, VirtualVP, VPLive, WL 5.9.3, Win7 Ultimate-SP1
--- Logitech QuickCam Fusion webcam
skysummit
Forecaster
*****
Offline Offline

Posts: 512



WWW
« Reply #1 on: February 17, 2011, 12:33:43 AM »

That's what is in your index page.  Check to see what's in your usa.htx file where that "A" is showing up.


Code:
<tr>
<td align="center" bgcolor="#5386ff"><font face="Arial" size="2"><b>34°</b></font></td>

<td align="center" bgcolor="#5386ff"><font face="Arial" size="2"><b>34°</b></font></td>
<td align="center" bgcolor="#5386ff"><font face="Arial" size="2"><b>34°</b></font></td>
<td align="center" bgcolor="#539fff"><font face="Arial" size="2"><b>36°</b></font></td>
<td align="center" bgcolor="#539fff"><font face="Arial" size="2"><b>36°</b></font></td>
</tr>
<tr>
<td align="center" bgcolor="#ec53d3"><font face="Arial" size="2"><b>18°</b></font></td>
<td align="center" bgcolor="#b953ec"><font face="Arial" size="2"><b>22°</b></font></td>
<td align="center" bgcolor="#d353d3"><font face="Arial" size="2"><b>20°</b></font></td>
<td align="center" bgcolor="#d353d3"><font face="Arial" size="2"><b>20°</b></font></td>

<td align="center" bgcolor="#ec53d3"><font face="Arial" size="2"><b>18°</b></font></td>
</tr>
Logged

Scott Guidry

WMR200a, VWS 14.01, p35, StartWatch, Fling, WD 10.37
My Sites:  Gulf Coast Weather, Southeast LA Skywarn, Strawberry Weather
mackbig
Forecaster
*****
Offline Offline

Posts: 4072



WWW
« Reply #2 on: February 17, 2011, 06:28:40 AM »

Strange.  My old vws page does not even use units, C or F.

As Scott said, post your htx if possible.

My version of usa.htx (from when I first installed, but I used and used a modified version of international.htx) shows this

Code:
    <td align="center" bgcolor="#^temp_for_hi1_1^"><font face="Arial" size="2"><b>^forecast_hi1_1^°</b></font></td>
             

So if yours is similar then VWS is inserting the offending capital A with circumflex... Maybe WU changed something in forecast datastream that VWS is reading... but that would affect others...? Strange indeed.

Andrew
Logged


Andrew - Davis VP2+ 6163, serial weatherlink, wireless anemometer, running Weather Display.  Boltek PCI Stormtracker, Astrogenic Nexstorm, Strikestar - UNI, CWOP CW8618, GrLevel3, (Station 2 OS WMR968, VWS 13.01p09), Windows 7-64
W3DRM
Forecaster
*****
Online Online

Posts: 1346



WWW
« Reply #3 on: February 18, 2011, 11:15:30 PM »

Well, I have looked at usa.htx and that section looks as follows:

         <tr>
                  <td align="center" style="background-color: #E1E1E1"><font face="Arial" size="2">^forecast_day1_1^</font></td>
                  <td align="center" style="background-color: #E1E1E1"><font face="Arial" size="2">^forecast_day1_2^</font></td>
                  <td align="center" style="background-color: #E1E1E1"><font face="Arial" size="2">^forecast_day1_3^</font></td>
                  <td align="center" style="background-color: #E1E1E1"><font face="Arial" size="2">^forecast_day1_4^</font></td>
                  <td align="center" style="background-color: #E1E1E1"><font face="Arial" size="2">^forecast_day1_5^</font></td>

                </tr>
                <tr>
                  <td align="center"><font face="Arial"><img height="44" alt="Clear" src="http://icons.wunderground.com/graphics/conds/^forecast_icon1_1^.GIF" width="44" border="0"> </font></td>
                  <td align="center"><font face="Arial"><img height="44" alt="Clear" src="http://icons.wunderground.com/graphics/conds/^forecast_icon1_2^.GIF" width="44" border="0"> </font></td>
                  <td align="center"><font face="Arial"><img height="44" alt="Clear" src="http://icons.wunderground.com/graphics/conds/^forecast_icon1_3^.GIF" width="44" border="0"> </font></td>
                  <td align="center"><font face="Arial"><img height="44" alt="Clear" src="http://icons.wunderground.com/graphics/conds/^forecast_icon1_4^.GIF" width="44" border="0"> </font></td>
                  <td align="center"><font face="Arial"><img height="44" alt="Clear" src="http://icons.wunderground.com/graphics/conds/^forecast_icon1_5^.GIF" width="44" border="0"> </font></td>

                </tr>
                <tr>
                  <td align="center"><font face="Arial" size="2">^forecast_conds1_1^</font></td>
                  <td align="center"><font face="Arial" size="2">^forecast_conds1_2^</font></td>
                  <td align="center"><font face="Arial" size="2">^forecast_conds1_3^</font></td>
                  <td align="center"><font face="Arial" size="2">^forecast_conds1_4^</font></td>
                  <td align="center"><font face="Arial" size="2">^forecast_conds1_5^</font></td>

                </tr>
                <tr>
                  <td align="center" bgcolor="#^temp_for_hi1_1^"><font face="Arial" size="2"><b>^forecast_hi1_1^°</b></font></td>
                  <td align="center" bgcolor="#^temp_for_hi1_2^"><font face="Arial" size="2"><b>^forecast_hi1_2^°</b></font></td>
                  <td align="center" bgcolor="#^temp_for_hi1_3^"><font face="Arial" size="2"><b>^forecast_hi1_3^°</b></font></td>
                  <td align="center" bgcolor="#^temp_for_hi1_4^"><font face="Arial" size="2"><b>^forecast_hi1_4^°</b></font></td>
                  <td align="center" bgcolor="#^temp_for_hi1_5^"><font face="Arial" size="2"><b>^forecast_hi1_5^°</b></font></td>

                </tr>
                <tr>
                  <td align="center" bgcolor="#^temp_for_lo1_1^"><font face="Arial" size="2"><b>^forecast_lo1_1^°</b></font></td>
                  <td align="center" bgcolor="#^temp_for_lo1_2^"><font face="Arial" size="2"><b>^forecast_lo1_2^°</b></font></td>
                  <td align="center" bgcolor="#^temp_for_lo1_3^"><font face="Arial" size="2"><b>^forecast_lo1_3^°</b></font></td>
                  <td align="center" bgcolor="#^temp_for_lo1_4^"><font face="Arial" size="2"><b>^forecast_lo1_4^°</b></font></td>
                  <td align="center" bgcolor="#^temp_for_lo1_5^"><font face="Arial" size="2"><b>^forecast_lo1_5^°</b></font></td>

                </tr>

As you can see, everything that is being displayed comes from variables that VWS should provide the values for. This started happening a couple weeks ago and I haven't made any changes to the code before or after the change. I did reboot my system and thus, restarted VWS but nothing changed.

Logged

Don - W3DRM - Minden, Nevada --- Davis Wireless VP2, VWS 14.00 p101,
StartWatch, VirtualVP, VPLive, WL 5.9.3, Win7 Ultimate-SP1
--- Logitech QuickCam Fusion webcam
saratogaWX
Administrator
Forecaster
*****
Offline Offline

Posts: 3730


Saratoga, CA, USA Weather - free PHP scripts


WWW
« Reply #4 on: February 18, 2011, 11:25:25 PM »

But... is the .htx page saved in UTF-8 or ASCII format.. I'm thinking that your editor has thoughtfully converted the .htx file to UTF-8 while the webpage default is to display in ISO-8859-1 .. check it out by changing the character set your browser uses to view the page .. if it looks ok in UTF-8 but not in ISO-8859-1, then the .htx file just needs to be resaved in ASCII.
Logged

Ken True/Saratoga, CA, USA main site: saratoga-weather.org
Davis Vantage Pro Plus - FARS, Boltek-PCI/NexStorm, GRLevel3, WD, WL, VWS, Cumulus, Meteohub
Free weather PHP scripts/website templates - update notifications on Twitter saratogaWXPHP
W3DRM
Forecaster
*****
Online Online

Posts: 1346



WWW
« Reply #5 on: February 18, 2011, 11:57:09 PM »

Ken,

You're a genius! I just remembered that I had made a change and added the comment at the top of the page indicating that I would soon be implementing a new format for my website (your new VWS AJAX/PHP template). Well, I was using a new editor on my Win7 system and not the normal editor that I used to use. It looks like the new editor was doing exactly what you described. I reedited the usa.htx file with my old editor and the problem just disappeared and is now back to normal. I'll have to file that one away for future reference. I'll also have to look into my new editor (Coffee Cup Free HTML Editor) and see if there are some settings I can change to eliminate this problem in the future.

Thanks again!!

Logged

Don - W3DRM - Minden, Nevada --- Davis Wireless VP2, VWS 14.00 p101,
StartWatch, VirtualVP, VPLive, WL 5.9.3, Win7 Ultimate-SP1
--- Logitech QuickCam Fusion webcam
saratogaWX
Administrator
Forecaster
*****
Offline Offline

Posts: 3730


Saratoga, CA, USA Weather - free PHP scripts


WWW
« Reply #6 on: February 19, 2011, 12:06:32 AM »

You're welcome, Don!

This 'feature' of some editors (especially the ones associated with the cPanel file editor via web) has burned many in the past.
Logged

Ken True/Saratoga, CA, USA main site: saratoga-weather.org
Davis Vantage Pro Plus - FARS, Boltek-PCI/NexStorm, GRLevel3, WD, WL, VWS, Cumulus, Meteohub
Free weather PHP scripts/website templates - update notifications on Twitter saratogaWXPHP
Pages: [1]   Go Up
  Print  
 
Jump to:  

Powered by MySQL Powered by PHP Powered by SMF 1.1.18 | SMF © 2013, Simple Machines Valid XHTML 1.0! Valid CSS!
Page created in 0.106 seconds with 19 queries.