-
Notifications
You must be signed in to change notification settings - Fork 1
/
honeywell_thermostat_config.html
33 lines (31 loc) · 1.42 KB
/
honeywell_thermostat_config.html
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
<!--
This web page is here just for reference. It is used to configure the
username and password to access the Honeywell site that receives commands
to change the temperature of a thermostat.
This page is generated on the fly in the javascript module (pebble-js-app.js),
using 'data:text/html', so that a web server is not used to serve this page.
Alternatively, you can put this in a web server and point it from the
javascript module (pebble-js-app.js), which is the conventional way to do it.
-->
<html>
<head>
<meta name="viewport" content="width=device-width, initial-scale=1">
<style>
* {font-family:verdana; font-size: 20px}
input {border: 2px solid #a1a1a1; border-radius: 5px;}
label, .grp {display: block; padding: 5px;}
h1 {background: #85A3FF; padding: 10px}
</style>
</head>
<body>
<h1>Honeywell Site Credentials</h1>
<form action="pebblejs://close#">
<div class="grp"><label>Username:</label><input type="email" name="u" placeholder="[email protected]" value="" ></div>
<div class="grp"><label>Password:</label><input type="password" name="p"></div>
<div class="grp" style="padding-top:30px;">
<input type="submit" onclick="var f=document.forms[0], params={\'username\': f.u.value, \'password\': f.p.value}; f.action += encodeURIComponent(JSON.stringify(params));">
<input type="submit" value="Cancel">
</div>
</form>
</body>
</html>