Hi Realpapla
Thanks your script. I tried your nice program and it works.
My first attempt it was this
PHP
<?php
$tmp = $_GET["tmp"];
$hum = $_GET["hum"];
$Log= date("Y-m-d H:i:s")
. " - temp: " . $tmp
. " hum: " . $hum
. "\n";
echo $Log;
$fLog = fopen('log.txt', 'a') or die('Unable to open file!');
fwrite($fLog, $Log);
fclose($fLog);
// url web: http://mysite.com/action.php?tmp=tmp.value&hum=hum.value&id=shellyht-xxxxxx
?>
Alles anzeigen
but it isn't work. Can you explain me please why?
My second attempt and it's working, I question directly the shelly's cloud, so: