View Single Post
Posts: 646 | Thanked: 1,124 times | Joined on Jul 2010 @ Espoo, Finland
#967
I found a small issue, which is not caused by Meecast, but perhaps Vlad can use it as suggestion to make a more robust input filter:
one of stations I follow via Meecast is Finland/Espoo in foreca.com (station ID 100660158).
The station for the current weather condition at the moment shows all data (temperature, feels like, wind, humidity, barometer) but not the weather status (I see the same opening a web browser at http://www.foreca.mobi/spot.php?l=100660158). Other foreca stations are ok.
Meecast of course doen't show weather icon but also the temperature becomes +13? (unreadable symbol for unit), the humidity shows as 1006% (1006 is the pressure value in mbar) and pressure as N/A mbar, probably because the xml file pulled from foreca has one less field (Visibility is missing).

Below are the relevant fields taken for Espoo station (not working) and Vantaa station (working):

Code:
### ESPOO

<div id="cc">
        <div class="left">
                &nbsp;
                </div>
        
        <div class="right">
                <span class="temp_warm">+13 &deg;C</span>
        </div>
                <div class="right wind">
                <div class="windarrow w270">&nbsp;</div>
                <strong>3 m/s</strong></div>
        
        <div class="cctext">
                <p>
                        <strong></strong><br />
                        Espoo Sep<C3><A4>nkyl<C3><A4><br />
                        22/09 10:20
                </p>
                
                <p>
                        Feels Like: <strong>+13&deg;</strong><br/>                      
                        Humidity: <strong>88.8%</strong><br/>                   
                        Barometer: <strong>1006.9 hPa</strong><br/>                     
                                        </p>
                <br style="clear: both;" />
        </div>

</div>

### VANTAA

<div id="cc">
        <div class="left">
                <img src="/i/150x150-ds/d100.png" width="150" height="150" alt="Mostly clear" title="Mostly clear" />
                </div>
        
        <div class="right">
                <span class="temp_warm">+13 &deg;C</span>
        </div>
                <div class="right wind">
                <div class="windarrow w270">&nbsp;</div>
                <strong>3 m/s</strong></div>
        
        <div class="cctext">
                <p>
                        <strong>Mostly clear</strong><br />
                        Helsinki-Vantaa<br />
                        22/09 10:20
                </p>
                
                <p>
                        Feels Like: <strong>+13&deg;</strong><br/>                      
                        Humidity: <strong>87.6%</strong><br/>                   
                        Barometer: <strong>1006.0 hPa</strong><br/>                     
                        Visibility: <strong>10 km</strong>              </p>
                <br style="clear: both;" />
        </div>

</div>