Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Create shutter_url.html #34

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
56 changes: 56 additions & 0 deletions data/shutter_url.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,56 @@
<html>
<head>
<meta charset="UTF-8"/>
<meta name="viewport" content="width=device-width, initial-scale=1">
<title>Jarolift Wifi Dongle</title>

<!-- Styles -->
<link rel="stylesheet" type="text/css" href="style.css">
<script src="scripts.js"></script>
<link rel="shortcut icon" type="image/x-icon" href="favicon.png">
<script type="text/javascript">
window.onload=function(){
getChannelName_url()
//const queryString = window.location.search;
let params = new URLSearchParams(location.search);
if ((params.get('cmd')) && (params.get('channel_id'))) {
runShutterCmd(params.get('cmd'),params.get('channel_id'))
}
}
</script>
</head>
<body>
<!-- Main layout -->
<div class="siimple-layout">
<!-- Navbar -->
<div class="siimple-navbar siimple-navbar--navy siimple-navbar--medium">
<!-- Right menu -->
<div class="siimple-layout--left">
<a class="siimple-navbar-link" href="/">Home</a>
<a class="siimple-navbar-link" href="/system.html">System</a>
<a class="siimple-navbar-link" href="/shutter.html">Shutter</a>
<a class="siimple-navbar-link" href="/shutter_url.html">Shutter_URL</a>
<a class="siimple-navbar-link" href="/log.html">Log</a>
</div>
</div>

<!-- Content -->
<div class="siimple-content siimple-content--medium" id="container">
<div class="siimple-box" align="center">
<div class="siimple-box-subtitle">Wifi Dongle - Shutter Control</div>
<div class="siimple-box-details">
Each shutter channel has to be configured before it will be displayed in the list below.
Please click <a href="#" class="siimple-link" onclick="showAllShutterChannel();">configure shutter</a> in order to name each shutter channel.</div>
</div>
<div class="siimple-box-details">
You can call a shutter by an URL: </br>
http://192.168.0.40/shutter_url.html?cmd=up&channel_id=0&channel_name=oben </br>
cmd=up | channel_id=0 | channel_name=oben </br>
learning have to be done on shutter tab!
</div>
</div>
<div id="spinner" class="siimple-spinner siimple-spinner--navy siimple-spinner--large"></div>
</div>
</div>
</body>