Skip to content
Permalink
Browse files

Add autorefresh for camera popup

  • Loading branch information...
lightmaster committed May 14, 2019
1 parent c13c37e commit ec2052b09cbdebd0b227380c306957d9cc473196
Showing with 2 additions and 0 deletions.
  1. +1 −0 cam.php
  2. +1 −0 settings.php
@@ -4,6 +4,7 @@
-webkit-border-radius:4px; -moz-border-radius:4px; -o-border-radius:4px; -ms-border-radius:4px;border-radius:4px;border:solid RGBA(84, 85, 86, 1.00) 2px; width:167vh;height:80vh;}
.weather34darkbrowser{position:relative;background:0;width:103.3%;max-height:30px;margin:auto;margin-top:-15px;margin-left:-20px;border-top-left-radius:5px;border-top-right-radius:5px;padding-top:45px;background-image:radial-gradient(circle,#EB7061 6px,transparent 8px),radial-gradient(circle,#F5D160 6px,transparent 8px),radial-gradient(circle,#81D982 6px,transparent 8px),radial-gradient(circle,rgba(97,106,114,1) 2px,transparent 2px),radial-gradient(circle,rgba(97,106,114,1) 2px,transparent 2px),radial-gradient(circle,rgba(97,106,114,1) 2px,transparent 2px),linear-gradient(to bottom,rgba(59,60,63,0.4) 40px,transparent 0);background-position:left top,left top,left top,right top,right top,right top,0 0;background-size:50px 45px,90px 45px,130px 45px,50px 30px,50px 45px,50px 60px,100%;background-repeat:no-repeat,no-repeat}.weather34darkbrowser[url]:after{content:attr(url);color:#aaa;font-size:14px;position:absolute;left:0;right:0;top:0;padding:2px 15px;margin:11px 50px 0 90px;border-radius:3px;background:rgba(97, 106, 114, 0.3);height:20px;box-sizing:border-box;font-family:Arial, Helvetica, sans-serif}
</style>
<meta http-equiv="refresh" content="<?php echo $camRefresh;?>">
</head>
<body>
<div class="weather34darkbrowser" url="Webcam for <?php echo $stationlocation;?>"></div>
@@ -51,6 +51,7 @@
$notificationcenterRefresh = 300; // 5 minutes set refresh time for notification of earthquakes default 5 minutes
$wuupdate = 1800; // 30 minutes
$wfupdate = 60; // weatherflow api 60 seconds
$camRefresh = 60; // 1 minute refresh on camera popup
// Thresholds for warnings or notifications
$notifyDistEQ = 300; // miles if $windunit is mph otherwise km

0 comments on commit ec2052b

Please sign in to comment.
You can’t perform that action at this time.