Author Topic: My website and Weatherlink IP, help me!  (Read 50 times)

0 Members and 1 Guest are viewing this topic.

Offline sheldon

  • Member
  • *
  • Posts: 1
My website and Weatherlink IP, help me!
« on: Yesterday at 07:39:10 PM »
Hi, guys, I'm from Italy! (I apologize by now for my English)

I am having some problems for making my website for my Davis Vantage Vue Station, because I'm using Weatherlink IP.
First, I would like to know if a pre-compiled weather template exists for it (I'm not so good in making website pages), this could resolve all my problems.
If it doesn't exist, can you look at this code and tell me what is wrong?
The problem is that it shows on the webpage only some variables and not all. For example, temperature, relative humidity, wind speed, wind direction, are showed, while all the other variables aren't, even if in the code I defined them in the same way.
Code: [Select]
<?php
$url 
"http://www.weatherlink.com/xml.php?user=romaeur&pass=***";
$ip = @file_get_contents($url);
$object simplexml_load_string($ip);
$davis_current $cur_obs->davis_current_observation;
$cur_obs simplexml_load_string($ip);
$xml simplexml_load_file('http://www.weatherlink.com/xml.php?user=romaeur&pass=***');
foreach(
$object->temp_day_high_f as $tmaxf);
$tmax round(5/9*($tmaxf+32),1); 
foreach(
$xml->temp_day_low_f as $tminf);
$tmin round(5/9*($tminf+32),1); 
$objum simplexml_load_string($ip);


foreach(
$cur_obs->relative_humidity_day_high as $hummax);


foreach(
$xml->relative_humidity_day_low as $hummin);




foreach(
$xml->temp_day_high_time as $tmaxh);
foreach(
$xml->relative_humidity as $hum);
foreach(
$object->temp_c as $temp);
foreach(
$xml->heat_index_c as $heat);
foreach(
$xml->observation_time as $ultimo_aggiornamento);
foreach(
$xml->temp_day_high_f as $max);
foreach(
$xml->wind_kt as $velventos);
$velvento round($velventos 1.85,1);
foreach(
$xml->wind_dir as $dirvento);
foreach(
$xml->wind_degrees as $grvento);
foreach(
$xml->pressure_mb as $press);
foreach(
$xml->windchill_c as $chill);
?>

<?php
foreach($xml->rain_day_in as $prec);
foreach(
$xml->rain_rate_in_per_hr as $rrate);

foreach(
$xml->temp_day_low_time as $tminh);
foreach(
$xml->pressure_day_high_in as $pressmax);
foreach(
$xml->pressure_day_high_time as $pressmaxh);
foreach(
$xml->pressure_day_low_time as $pressminh);
foreach(
$xml->pressure_day_low_in as $pressmin);

This is the web page
http://romaeurmeteo.it/home.php

I obviously didn't insert all the code but only the part with variables definition

Thank you very much

Offline dalecoy

  • Forecaster
  • *****
  • Posts: 4473
    • Lee's Summit, MO
Re: My website and Weatherlink IP, help me!
« Reply #1 on: Yesterday at 09:25:43 PM »
What sort of computer/system are you using?

If it's a Windows system, have you tried using the WeatherLink software?

Offline Cutty Sark Sailor

  • WxElement panel
  • Forecaster
  • *****
  • Posts: 1640
  • I Think!... Therefore, I'm in a mess... .
    • Twin Hollies Weather Center
Re: My website and Weatherlink IP, help me!
« Reply #2 on: Yesterday at 10:25:02 PM »
Hello, Sheldon... Been using Vue + Weatherlink IP with VWS for over 4 Years, with Ken's Saratoga templates....
what could be simpler?

Mike




   Blitzortung 689