Added ability to disable auto-reload.
This commit is contained in:
		@@ -3,7 +3,9 @@
 | 
			
		||||
<head>
 | 
			
		||||
    <meta charset="utf-8">
 | 
			
		||||
    <title>Stromverbrauch HQ</title>
 | 
			
		||||
<?php $_GET['norefresh']=0; if (! isset($_GET['norefresh']) || $_GET['norefresh'] != 1): ?>
 | 
			
		||||
	<meta http-equiv="refresh" content="15">
 | 
			
		||||
<?php endif; ?>
 | 
			
		||||
	<style type="text/css">
 | 
			
		||||
		body {
 | 
			
		||||
			font-family: arial, sans-serif;
 | 
			
		||||
@@ -40,7 +42,14 @@
 | 
			
		||||
?>
 | 
			
		||||
	<dl>
 | 
			
		||||
		<dt>Zeitpunkt:</dt>
 | 
			
		||||
		<dd><?= $time ?></dd>
 | 
			
		||||
		<dd>
 | 
			
		||||
			<?= $time ?> 
 | 
			
		||||
			<?php if ($_GET['norefresh'] == 1): ?>
 | 
			
		||||
				[Neuladen: <a href="?norefresh=0">aktivieren</a>]
 | 
			
		||||
			<?php else: ?>
 | 
			
		||||
				[Neuladen: <a href="?norefresh=1">deaktivieren</a>]
 | 
			
		||||
			<?php endif; ?>
 | 
			
		||||
		</dd>
 | 
			
		||||
		<dt>Leistung:</dt>
 | 
			
		||||
		<dd><?= $power ?> Watt</dd>
 | 
			
		||||
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user