- <?php // 2016_10_14 naths v 1.1 ;)
- /* I made this "home made cookies" script to be used with temperature to Ethernet sensor:
- https://www.papouch.com/en/shop/product/tme-ip-ethernet-thermometer/ (Firmware version: 2.06)
- From the web interface of your Thermometer go to "Settings" --TAB--> "Sending"
- There set
- -- "WEB server's address" like "example.com"
- -- "Sending interval" - I user 1 here for refresh every minute
- -- check "Enable HTTP GET sending" checkbox
- -- "Script name" -> the php filename which you will save the current php file on your server
- and Save!
- My script is veery very easy to change it! If you want to contact me try 20120202 @t diamand "." Gr
- cheers;)
- License GNU I suppose
- */
- $file = ".temp" ;
- if($_GET['temp'] !='') {
- ?><!DOCTYPE html>
- <html lang="en">
- <head>
- <meta charset="utf-8" />
- <meta name="generator" content="Geany 1.27" />
- <meta name="viewport" content="width=device-width, initial-scale=1.0" />
- <meta http-equiv="refresh" content="300" />
- <style>#temp { width: 100%; font-size: 50px; font-family: Verdana; text-align: center; }
- #temp span { font-size: 20px; color: #777; font-style: italic; white-space:nowrap; }
- </style>
- </head>
- <body>
- <div id="temp"><?php echo $temp; ?></div>
- </body>
- </html>
Recent Pastes