Skip to content

Commit 769ef00

Browse files
committed
Updated the text field labels to match AWS IoT and the IoT Ethernet Kit DM990004
1 parent fa92cf5 commit 769ef00

File tree

12 files changed

+39
-28
lines changed

12 files changed

+39
-28
lines changed
100 KB
Loading
72.4 KB
Loading
Loading

software/source/config.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,15 +11,15 @@
1111
},
1212
"win" : {
1313
"title" : "Insight",
14-
"version" : "1.0.0",
14+
"version" : "1.1.0",
1515
"publisher": "Microchip Technology",
1616
"icon" : "content/win/IoT_App_256x256.ico",
1717
"verbosity": 1
1818
},
1919
"linux" : {
2020
"arch" : 64,
2121
"target" : "deb",
22-
"version" : "1.0.0",
22+
"version" : "1.1.0",
2323
"title" : "Insight",
2424
"comment" : "Initial Alpha Release",
2525
"executable" : "insight",

software/source/content/about.html

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -55,7 +55,7 @@ <h3>Insight on Things</h3>
5555
the reported state of the Microchip IoT Ethernet board</p>
5656
<p>For more information and to download the latest version of this application
5757
please view available links in the Help menu</p>
58-
<p>Application Version 1.0.0(1.0.1)<p>
58+
<p>Application Version 1.1.0(1.0.1)<p>
5959
</div>
6060
</div>
6161

@@ -85,7 +85,7 @@ <h3>License Information</h3>
8585
<!-- This is the footer section -->
8686
<footer class="mdl-mini-footer">
8787
<div class="mdl-mini-footer__left-section">
88-
Copyright &copy Microchip Technology, Inc. Microchip Insight Application v1.0.0
88+
Copyright &copy Microchip Technology, Inc. Microchip Insight Application v1.1.0
8989
</div>
9090
</footer>
9191
</body>

software/source/content/active.html

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@
3737
<div class"mdl-layout mdl-js-layout mdl-layout--fixed-header">
3838
<header class="mdl-layout__header mdl-layout__header--scroll">
3939
<div class="mdl-layout__header-row">
40-
<span class="mdl-layout__title" id="thing_address">IoT Device: xx:xx:xx:xx:xx:xx</span>
40+
<span class="mdl-layout__title" id="thing_address">AWS Thing Name: </span>
4141
<div class="mdl-layout-spacer"></div>
4242
<i class="material-icons" id="web_present">cloud_off</i>
4343
</div>
@@ -185,7 +185,7 @@ <h3>mikroBUS Data</h3>
185185
<!-- This is the footer section -->
186186
<footer class="mdl-mini-footer">
187187
<div class="mdl-mini-footer__left-section">
188-
Copyright &copy Microchip Technology, Inc. Microchip Insight Application v1.0.0
188+
Copyright &copy Microchip Technology, Inc. Microchip Insight Application v1.1.0
189189
</div>
190190
</footer>
191191
</body>

software/source/content/css/insight.css

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -73,6 +73,16 @@ h3, h4 {
7373
z-index: 900;
7474
}
7575

76+
#reset-shadow {
77+
position: fixed;
78+
display: block;
79+
left: 0;
80+
bottom: 0;
81+
margin-left: 20px;
82+
margin-bottom: 100px;
83+
z-index: 900;
84+
}
85+
7686
#fixed-footer {
7787
position: fixed;
7888
display: block;

software/source/content/js/insight.js

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -22,22 +22,21 @@ window.onload = function(){
2222
//check if the config file is present
2323
checkAndLoad();
2424
setTimeout(function(){
25-
jsonDataDesired = JSON.stringify({"state":{"reported":{"insight_desktop_version" : app_version}}});
25+
jsonDataDesired = JSON.stringify({"state":{"reported":{"insight_on_things":{"insight_on_things_desktop_version" : app_version}}}});
2626
updateThingStatus();
2727
updateAMIStatus();
2828
}, 1000);
2929
}
3030

3131
//This is the AWS IOT main code
32-
3332
//Include the required node modules
3433
var AWS = require('aws-sdk');
3534
var $ = require('jquery');
3635
var fs = require('fs');
3736
var os = require('os');
3837

3938
//App version sent to reported state as insight_desktop_version
40-
var app_version = "1.0.0";
39+
var app_version = "1.1.0";
4140

4241

4342
//Access keys are not global variables, passed as function
@@ -91,13 +90,14 @@ function initThing(credaccess_key, credsecret_key){
9190

9291
iotdata = new AWS.IotData(options);
9392
//set the thingName is the title bar.
94-
document.getElementById("thing_address").innerHTML = "IoT Device: " + credthingname;
93+
document.getElementById("thing_address").innerHTML = "AWS Thing Name: " + credthingname;
9594

9695
setInterval(updateAMIStatus, UPDATE_RATE);
9796
setInterval(updateLANStatus, 3000);
9897
}
9998

10099

100+
101101
function updateLANStatus(){
102102
//For now test navigator.online - not 100% as may have lan but no connection
103103
if(navigator.onLine === true){

software/source/content/newthing.html

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@
3838
<div class"mdl-layout mdl-js-layout mdl-layout--fixed-header">
3939
<header class="mdl-layout__header mdl-layout__header--scroll">
4040
<div class="mdl-layout__header-row">
41-
<span class="mdl-layout__title" >Insight Thing setup</span>
41+
<span class="mdl-layout__title" >Insight on Things Setup</span>
4242
<div class="mdl-layout-spacer"></div>
4343
<!-- <i class="material-icons" id="web_present">cloud_off</i> -->
4444
</div>
@@ -49,9 +49,9 @@
4949
<div class="mdl-cell mdl-cell--12-col">
5050
<!-- Textfield with Floating Label -->
5151
<form action="#">
52-
<div class="mdl-textfield mdl-js-textfield mdl-textfield--floating-label">
52+
<div class="mdl-textfield mdl-textfield--full-width mdl-js-textfield mdl-textfield--floating-label">
5353
<input class="mdl-textfield__input" type="text" id="thingname">
54-
<label class="mdl-textfield__label" for="thingname">IoT Thingname</label>
54+
<label class="mdl-textfield__label" for="thingname">AWS Thing Name (MAC Address)</label>
5555
</div>
5656
</form>
5757
</div>
@@ -60,9 +60,9 @@
6060
<div class="mdl-cell mdl-cell--12-col">
6161

6262
<form action="#">
63-
<div class="mdl-textfield mdl-js-textfield mdl-textfield--floating-label">
63+
<div class="mdl-textfield mdl-textfield--full-width mdl-js-textfield mdl-textfield--floating-label">
6464
<input class="mdl-textfield__input" type="text" id="endpoint">
65-
<label class="mdl-textfield__label" for="endpoint">AWS-IOT Endpoint</label>
65+
<label class="mdl-textfield__label" for="endpoint">AWS IoT Endpoint Address</label>
6666
</div>
6767
</form>
6868
</div>
@@ -71,9 +71,9 @@
7171
<div class="mdl-cell mdl-cell--12-col">
7272

7373
<form action="#">
74-
<div class="mdl-textfield mdl-js-textfield mdl-textfield--floating-label">
74+
<div class="mdl-textfield mdl-textfield--full-width mdl-js-textfield mdl-textfield--floating-label">
7575
<input class="mdl-textfield__input" type="text" id="accesskey">
76-
<label class="mdl-textfield__label" for="accesskey">Access Key</label>
76+
<label class="mdl-textfield__label" for="accesskey">AWS Access Key ID</label>
7777
</div>
7878
</form>
7979
</div>
@@ -82,9 +82,9 @@
8282
<div class="mdl-cell mdl-cell--12-col">
8383

8484
<form action="#">
85-
<div class="mdl-textfield mdl-js-textfield mdl-textfield--floating-label">
85+
<div class="mdl-textfield mdl-textfield--full-width mdl-js-textfield mdl-textfield--floating-label">
8686
<input class="mdl-textfield__input" type="password" id="secretkey">
87-
<label class="mdl-textfield__label" for="secretkey">Secret key</label>
87+
<label class="mdl-textfield__label" for="secretkey">AWS Secret Access Key</label>
8888
</div>
8989
</form>
9090
</div>
@@ -106,7 +106,7 @@
106106
<!-- This is the footer section -->
107107
<footer id="fixed-footer" class="mdl-mini-footer">
108108
<div class="mdl-mini-footer__left-section">
109-
Copyright &copy Microchip Technology, Inc. Microchip Insight Application v1.0.0
109+
Copyright &copy Microchip Technology, Inc. Microchip Insight Application v1.1.0
110110
</div>
111111
</footer>
112112
</body>

software/source/content/settings.html

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@
3939
<div class"mdl-layout mdl-js-layout mdl-layout--fixed-header">
4040
<header class="mdl-layout__header mdl-layout__header--scroll">
4141
<div class="mdl-layout__header-row">
42-
<span class="mdl-layout__title" >Insight Thing setup</span>
42+
<span class="mdl-layout__title" >Insight on Things Setup</span>
4343
<div class="mdl-layout-spacer"></div>
4444
<!-- <i class="material-icons" id="web_present">cloud_off</i> -->
4545
</div>
@@ -52,7 +52,7 @@
5252
<form>
5353
<div class="mdl-textfield mdl-textfield--full-width mdl-js-textfield mdl-textfield--floating-label">
5454
<input class="mdl-textfield__input" type="text" id="thingname">
55-
<label class="mdl-textfield__label" for="thingname">IoT Thingname</label>
55+
<label class="mdl-textfield__label" for="thingname">AWS Thing Name (MAC Address)</label>
5656
</div>
5757
</form>
5858
</div>
@@ -63,7 +63,7 @@
6363
<form>
6464
<div class="mdl-textfield mdl-textfield--full-width mdl-js-textfield mdl-textfield--floating-label">
6565
<input class="mdl-textfield__input" type="text" id="endpoint">
66-
<label class="mdl-textfield__label" for="endpoint">AWS-IOT Endpoint</label>
66+
<label class="mdl-textfield__label" for="endpoint">AWS IoT Endpoint Address</label>
6767
</div>
6868
</form>
6969
</div>
@@ -74,7 +74,7 @@
7474
<form>
7575
<div class="mdl-textfield mdl-textfield--full-width mdl-js-textfield mdl-textfield--floating-label">
7676
<input class="mdl-textfield__input" type="text" id="accesskey">
77-
<label class="mdl-textfield__label" for="accesskey">Access Key</label>
77+
<label class="mdl-textfield__label" for="accesskey">AWS Access Key ID</label>
7878
</div>
7979
</form>
8080
</div>
@@ -84,7 +84,7 @@
8484
<form>
8585
<div class="mdl-textfield mdl-textfield--full-width mdl-js-textfield mdl-textfield--floating-label">
8686
<input class="mdl-textfield__input" type="password" id="secretkey">
87-
<label class="mdl-textfield__label" for="secretkey">Secret key</label>
87+
<label class="mdl-textfield__label" for="secretkey">AWS Secret Access Key</label>
8888
</div>
8989
</form>
9090
</div>
@@ -106,7 +106,7 @@
106106
<!-- This is the footer section -->
107107
<footer id="fixed-footer" class="mdl-mini-footer">
108108
<div class="mdl-mini-footer__left-section">
109-
Copyright &copy Microchip Technology, Inc. Microchip Insight Application v1.0.0
109+
Copyright &copy Microchip Technology, Inc. Microchip Insight Application v1.1.0
110110
</div>
111111
</footer>
112112
</body>

0 commit comments

Comments
 (0)