Author Topic: Publish temperature data on the web  (Read 483 times)

0 Members and 1 Guest are viewing this topic.

Offline CarlosLSev

  • Member
  • *
  • Posts: 36
Publish temperature data on the web
« on: February 18, 2021, 02:11:37 AM »
Hello, I want to publish the inside temperature value (inside temperature) on my website. I use saratoga web and CumulusMX.
Searching I found the way
I know that the value in Cutags.php is intemp. But i can't do it
I would like to be able to create statistics for example every 5 minutes. Difference previous day etc,
same as seen in CU-trends-inc.php

I am currently getting the value from realtime.txt. The best would be Cutags.php

Is it possible? Thanks




<?php

$realtime = "./realtime.txt";                 // Este es el archivo, ../ es para indicar que está en la carpeta padre.
$archivo = fopen($realtime, "r");
$linea=fgets($archivo);
fclose($archivo);

$dato = explode(" ", $linea);?>
<?php echo $dato[22]."";?><?php echo $uomTemp;?>

Enviado desde mi M2007J20CG mediante Tapatalk


 

anything