Forum Replies Created

Viewing 2 replies - 1 through 2 (of 2 total)
  • Thread Starter jbosch

    (@jbosch)

    it seems that I had some issue with the “->” characters in the HTML window. I pasted this from the first blocks and now it seems to be working fine. Thank you and sorry.

    Thread Starter jbosch

    (@jbosch)

    Thank you for answering. Below the info. Regards, Jordi

    ________________________________________
    Block 7 code
    $xml=simplexml_load_file(“wxdata.xml”);

    echo $xml->barotrendtext .”
    “;
    ________________________________________
    Block 8 code
    $xml=simplexml_load_file(“wxdata.xml”);

    echo $xml->rainfall24h_mm .” mm
    “;
    ________________________________________

    ::::::::::::::::::::::::::::::::::
    BELOW CONTENTS OF WXDATA.XML
    :::::::::::::::::::::::::::::::::

    <?xml version=”1.0″?>
    <wxdata>
    <bardata>

    OK

    BAR 30226

    ELEVATION 138

    DEW POINT 54

    VIRTUAL TEMP 70

    C 27

    R 1005

    BARCAL 0

    GAIN 0

    OFFSET -38

    </bardata>
    <yearrain_mm>5.8</yearrain_mm>
    <solar_w>0</solar_w>
    <barometer_inhg>30.23</barometer_inhg>
    <monthrain_mm>5.8</monthrain_mm>
    <stormrain_mm>5.8</stormrain_mm>
    <et_year_mm>0.0</et_year_mm>
    <gust10_msec>0.0</gust10_msec>
    <inhum_p>47</inhum_p>
    <wind_msec>1.2</wind_msec>
    <rainfall24h_mm>17.4</rainfall24h_mm>
    <dewpoint_f>54.0</dewpoint_f>
    <dewpoint_c>12.2</dewpoint_c>
    <avgwind2_mph>0.0</avgwind2_mph>
    <stationmodel>Vantage Pro/Vantage Pro2 (16) ID: 6312C</stationmodel>
    <batterystatus>0</batterystatus>
    <commissiondate>01.02.2015</commissiondate>
    <dataerror>False</dataerror>
    <gust10dir>359</gust10dir>
    <outhum_p>59</outhum_p>
    <rxcheck>2207 0 0 2207 0</rxcheck>
    <et_month_mm>0.0</et_month_mm>
    <avgwind10_mph>0.0</avgwind10_mph>
    <avgwind10_kts>0.0</avgwind10_kts>
    <voltage>4.0</voltage>
    <avgwind10_msec>0.0</avgwind10_msec>
    <thsw_c>123.9</thsw_c>
    <intemp_c>23.2</intemp_c>
    <barotrend>60</barotrend>
    <intemp_f>73.7</intemp_f>
    <rainrate_mmhr>0.0</rainrate_mmhr>
    <crc_pad>2567</crc_pad>
    <ver>Dec 11 2012 </ver>
    <nver>3.12 </nver>
    <timestamp_pc>2015-02-19 21:59:19.547964</timestamp_pc>
    <fctext>Mostly clear with little temperature change.</fctext>
    <uvindex>0.0</uvindex>
    <avgwind2_msec>0.0</avgwind2_msec>
    <freeze>False</freeze>
    <barotrendtext>Barometric pressure is rising rapidly.</barotrendtext>
    <gust10_mph>0</gust10_mph>
    <gust10_kts>0.0</gust10_kts>
    <sunset_lt>18:29</sunset_lt>
    <wind_kts>0.0</wind_kts>
    <thsw_f>255.0</thsw_f>
    <wind_mph>0</wind_mph>
    <rainfall15_mm>0.0</rainfall15_mm>
    <wc_c>20.6</wc_c>
    <fcicon>8</fcicon>
    <condensation>False</condensation>
    <wc_f>69.0</wc_f>
    <timestamp_aprs>Feb 19 2015 21:59</timestamp_aprs>
    <timestamp>19.02.2015 21:59:17</timestamp>
    <timestamp_wx>Received on 19.02.2015 @ 21:59:17 local time</timestamp_wx>
    <winddir>32767</winddir>
    <sunrise_lt>07:42</sunrise_lt>
    <dayrain_mm>5.8</dayrain_mm>
    <crc-calc>0</crc-calc>
    <stormstart>14.02.2015</stormstart>
    <rainfall60_mm>0.0</rainfall60_mm>
    <outtemp_f>69.1</outtemp_f>
    <avgwind2_kts>0.0</avgwind2_kts>
    <hindex_c>20.6</hindex_c>
    <hindex_f>69.0</hindex_f>
    <et_day_mm>0.0</et_day_mm>
    <outtemp_c>20.6</outtemp_c>
    <barometer_hpa>1023.7</barometer_hpa>
    <wind_beaufort>
    Calma
    </wind_beaufort>
    <gust10_beaufort>
    Calma
    </gust10_beaufort>
    <avg2_beaufort>
    Calma
    </avg2_beaufort>
    <avg10_beaufort>
    Calma
    </avg10_beaufort>
    </wxdata>

Viewing 2 replies - 1 through 2 (of 2 total)