HTTP event question **solved**
Posted: Fri Feb 01, 2019 10:24 pm
Hello ,
I am using this http event url:
http://www.webcamwassenaar.nl/wxdata/re ... d]kn&gust=[wind0wind-max6=kn.0:--]kn&richting=[wind0dir]
With this php:
<?php
$U = $_GET['epoch'];
$wind = $_GET['wind'];
$gust = $_GET['gust'];
$richting = $_GET['richting'];
$values = array($U,$wind, $gust, $richting);
$result = json_encode($values);
file_put_contents("datawaswind.txt",$result);
?>
The response in the resulting txt file is :
[null,"[wind0wind]kn","1kn","[wind0dir]"]
What's wrong ? who knows?
I am using this http event url:
http://www.webcamwassenaar.nl/wxdata/re ... d]kn&gust=[wind0wind-max6=kn.0:--]kn&richting=[wind0dir]
With this php:
<?php
$U = $_GET['epoch'];
$wind = $_GET['wind'];
$gust = $_GET['gust'];
$richting = $_GET['richting'];
$values = array($U,$wind, $gust, $richting);
$result = json_encode($values);
file_put_contents("datawaswind.txt",$result);
?>
The response in the resulting txt file is :
[null,"[wind0wind]kn","1kn","[wind0dir]"]
What's wrong ? who knows?