Skip to content

Commit c3df0aa

Browse files
authored
Merge pull request #7 from MicrochipTech/develop
Releasing v2.0.0
2 parents 7254c9d + 6bfd7d9 commit c3df0aa

File tree

358 files changed

+3620
-131171
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

358 files changed

+3620
-131171
lines changed

.gitignore

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1,7 @@
1-
*.log
1+
#### Node_modules ####
2+
**/node_modules
3+
**/*.log
4+
5+
#### Build Artifacts ####
6+
**/dist
7+
**/build

LICENSE

Lines changed: 1 addition & 162 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
Copyright 2016 Microchip Technology Inc. (www.microchip.com)
1+
Copyright 2016-2017 Microchip Technology Inc. (www.microchip.com)
22

33
Licensed under the Apache License, Version 2.0 (the "License");
44
you may not use this file except in compliance with the License.
@@ -11,164 +11,3 @@ distributed under the License is distributed on an "AS IS" BASIS,
1111
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
1212
See the License for the specific language governing permissions and
1313
limitations under the License.
14-
15-
###############################################################################
16-
17-
Copyright (c) 2014 GitHub Inc.
18-
19-
Permission is hereby granted, free of charge, to any person obtaining
20-
a copy of this software and associated documentation files (the
21-
"Software"), to deal in the Software without restriction, including
22-
without limitation the rights to use, copy, modify, merge, publish,
23-
distribute, sublicense, and/or sell copies of the Software, and to
24-
permit persons to whom the Software is furnished to do so, subject to
25-
the following conditions:
26-
27-
The above copyright notice and this permission notice shall be
28-
included in all copies or substantial portions of the Software.
29-
30-
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
31-
EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
32-
MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
33-
NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
34-
LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
35-
OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
36-
WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
37-
38-
###############################################################################
39-
40-
Copyright jQuery Foundation and other contributors, https://jquery.org/
41-
42-
This software consists of voluntary contributions made by many
43-
individuals. For exact contribution history, see the revision history
44-
available at https://github.com/jquery/jquery
45-
46-
The following license applies to all parts of this software except as
47-
documented below:
48-
49-
====
50-
51-
Permission is hereby granted, free of charge, to any person obtaining
52-
a copy of this software and associated documentation files (the
53-
"Software"), to deal in the Software without restriction, including
54-
without limitation the rights to use, copy, modify, merge, publish,
55-
distribute, sublicense, and/or sell copies of the Software, and to
56-
permit persons to whom the Software is furnished to do so, subject to
57-
the following conditions:
58-
59-
The above copyright notice and this permission notice shall be
60-
included in all copies or substantial portions of the Software.
61-
62-
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
63-
EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
64-
MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
65-
NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
66-
LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
67-
OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
68-
WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
69-
70-
====
71-
72-
All files located in the node_modules and external directories are
73-
externally maintained libraries used by this software which have their
74-
own licenses; we recommend you read them, as their terms may differ from
75-
the terms above.
76-
77-
###############################################################################
78-
79-
The bundled package of the AWS SDK for JavaScript is available under the
80-
Apache License, Version 2.0:
81-
82-
Copyright 2012-2014 Amazon.com, Inc. or its affiliates. All Rights Reserved.
83-
84-
Licensed under the Apache License, Version 2.0 (the "License"). You
85-
may not use this file except in compliance with the License. A copy of
86-
the License is located at
87-
88-
http://aws.amazon.com/apache2.0/
89-
90-
or in the "license" file accompanying this file. This file is
91-
distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF
92-
ANY KIND, either express or implied. See the License for the specific
93-
language governing permissions and limitations under the License.
94-
95-
This product bundles browserify, which is available under a
96-
"3-clause BSD" license:
97-
98-
Copyright Joyent, Inc. and other Node contributors.
99-
100-
Permission is hereby granted, free of charge, to any person obtaining a
101-
copy of this software and associated documentation files (the
102-
"Software"), to deal in the Software without restriction, including
103-
without limitation the rights to use, copy, modify, merge, publish,
104-
distribute, sublicense, and/or sell copies of the Software, and to permit
105-
persons to whom the Software is furnished to do so, subject to the
106-
following conditions:
107-
108-
The above copyright notice and this permission notice shall be included
109-
in all copies or substantial portions of the Software.
110-
111-
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS
112-
OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
113-
MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN
114-
NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM,
115-
DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR
116-
OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE
117-
USE OR OTHER DEALINGS IN THE SOFTWARE.
118-
119-
This product bundles crypto-browserify, which is available under
120-
the MIT license:
121-
122-
Copyright (c) 2013 Dominic Tarr
123-
124-
Permission is hereby granted, free of charge,
125-
to any person obtaining a copy of this software and
126-
associated documentation files (the "Software"), to
127-
deal in the Software without restriction, including
128-
without limitation the rights to use, copy, modify,
129-
merge, publish, distribute, sublicense, and/or sell
130-
copies of the Software, and to permit persons to whom
131-
the Software is furnished to do so,
132-
subject to the following conditions:
133-
134-
The above copyright notice and this permission notice
135-
shall be included in all copies or substantial portions of the Software.
136-
137-
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
138-
EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES
139-
OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.
140-
IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR
141-
ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT,
142-
TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE
143-
SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
144-
145-
This product bundles MD5, SHA-1, and SHA-256 hashing algorithm components,
146-
which are available under a BSD license:
147-
148-
Copyright (c) 1998 - 2009, Paul Johnston & Contributors
149-
All rights reserved.
150-
151-
Redistribution and use in source and binary forms, with or without
152-
modification, are permitted provided that the following conditions are met:
153-
154-
Redistributions of source code must retain the above copyrightnotice,
155-
this list of conditions and the following disclaimer. Redistributions
156-
in binary form must reproduce the above copyright notice, this list of
157-
conditions and the following disclaimer in the documentation and/or
158-
other materials provided with the distribution.
159-
160-
Neither the name of the author nor the names of its contributors may
161-
be used to endorse or promote products derived from this software
162-
without specific prior written permission.
163-
164-
THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
165-
AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
166-
IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
167-
ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE
168-
LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
169-
CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF
170-
SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
171-
INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN
172-
CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
173-
ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF
174-
THE POSSIBILITY OF SUCH DAMAGE.

README.md

Lines changed: 3 additions & 142 deletions
Original file line numberDiff line numberDiff line change
@@ -1,156 +1,17 @@
11
### Microchip Insight on Things Desktop Application
2-
#### Installation and usage guide
32

43
---
54

65
### Introduction
7-
[AWS IoT](http://aws.amazon.com/iot/) is a service that will allow internet of things (IoT) devices to be easily and securely connected to Amazon Web Services (AWS). The __Insight on Things__ desktop application has been designed to work with this service via the shadow registers in AWS IoT to control Microchip's IoT demo.
6+
[AWS IoT](http://aws.amazon.com/iot/) is a service that will allow Internet of Things (IoT) devices to be easily and securely connected to Amazon Web Services (AWS). The __Insight on Things__ desktop application has been designed to work with this service via the shadow registers in AWS IoT to control Microchip's IoT demo.
87

98
Currently this demo is designed to work with the following demos:
109
- [Microchip IoT PIC32MZ based Demos Powered By AWS](https://github.com/MicrochipTech/aws-iot-firmware-pic32mz)
1110

12-
For more information on the current Microchip IoT demos please go to [Microchip's IoT Page](http://www.microchip.com/iot).
13-
14-
---
15-
16-
### Required Tools and Applications
17-
#### OS Requirements
18-
We have build and tested the Insight on Things Desktop Application on the following OS's:
19-
- __OS X:__ 10.11.x
20-
- __Linux:__ Debian Based - Ubuntu 14.04LTS
21-
- __Windows:__ Windows 7
22-
23-
#### AWS Tools and Applications
24-
- You will need an AWS account to use AWS IoT.
25-
- For more information how to setup an AWS Account please go to [AWS](http://aws.amazon.com) main page
26-
- Please check with your IT or IS department on your company's policies on using cloud computing, or to see if you have a corporate AWS account that should be used.
27-
28-
- To use the AWS IoT services you will need to make use of _AWS Command Line Interface_ (awscli) tool. For more information on how to install, configure, and use the awscli tool please go to [AWS Command Line Interface User Guide](http://docs.aws.amazon.com/cli/latest/userguide/cli-chap-welcome.html).
29-
30-
> NOTE: If you are a **Microchip Employee** we have a corporate AWS account that must be used. To setup your AWS IoT device please go to https://setup.iot.microchip.com for more information
31-
32-
---
33-
### Setting Up the AWS IoT Service for the Insight on Things Application
34-
35-
To setup your AWS IoT service to work with the Insight on Things Desktop Application you will need to work with the awscli that you installed in the previous section.
36-
37-
1. Using the awscli you will need to find the endpoint that will be used for your AWS IoT account. To do this run the following command in your terminal/command window.
38-
39-
```
40-
aws iot describe-endpoint
41-
```
42-
- Create a group that will hold the policy allowing access to the AWS IoT shadow registers
43-
44-
```
45-
aws iam create-group --group-name iotDemo
46-
```
47-
- Create the following policy that will allow your Insight on Things Desktop Application to connect to the AWS IoT service and save the file to your computer
48-
> NOTE: Make sure you replace `<AWS IoT Region>` and `<AWS Account Number>` with the AWS-IoT region and your AWS account number
49-
50-
```
51-
{
52-
"Version": "2012-10-17",
53-
"Statement": [{
54-
"Effect": "Allow",
55-
"Action": [
56-
"iot:GetThingShadow",
57-
"iot:UpdateThingShadow"
58-
],
59-
"Resource": [
60-
"arn:aws:iot:<AWS IoT Region>:<AWS Account Number>:thing/*"
61-
]
62-
}]
63-
}
64-
```
65-
- Load the policy to AWS with the following command:
66-
67-
```
68-
aws iam create-policy --policy-name iotDemoPolicy --policy-document file://<path-to-your-policy-document>
69-
```
70-
- You will need to attached this policy to a group to allow the users the right to access the AWS IoT shadow registers with the following command:
71-
> NOTE: Make sure you replace `<AWS Account Number>` with your AWS account number
72-
73-
```
74-
aws iam attach-group-policy --policy-arn arn:aws:iam:<AWS Account Number>:policy/iotDemoPolicy --group-name iotDemo
75-
```
76-
- Next you will need to create a user for the Insight on Things Desktop Application
77-
78-
```
79-
aws iam create-user --user-name InsightOnThings
80-
```
81-
- Add the user to the iotDemo group
82-
83-
```
84-
aws iam add-user-to-group --user-name InsightOnThings --group-name iotDemo
85-
```
86-
- To allow the Insight on Things Desktop Application to access AWS you will need to download the required key and tokens for this user
87-
> NOTE: The output of this command is the only time that you will be able to see this information. Store in a secure location. If it is lost, it cannot be recovered, and you must create a new access key.
88-
89-
```
90-
aws iam create-access-key --user-name InsightOnThings
91-
```
11+
The quick start out of box guide for using the __Insight on Things__ desktop application can be found [here](docs/out-of-box-guide.md)
9212

9313
---
94-
### Insight On Things Desktop Application Installation
95-
You will need to [download the latest version](https://github.com/MicrochipTech/aws-iot-insight-on-things-desktop-app/releases/latest) of __Insight on Things__ for your operating system.
9614

97-
98-
##### Mac OS X Installation
99-
1. To install on MAC OS X download the 'Insight.dmg' file and double click on the dmg icon. The installer will open as shown below:
100-
101-
![Mac install](documents/images/mac_install.png)
102-
- To install the application drag the Insight app icon to the Applications folder in the install screen.
103-
104-
#### Linux Installation
105-
The Linux application is designed to run on Debian based platforms, the most popular being Ubuntu or Linux Mint.
106-
107-
1. To install the application download the Insight.deb file
108-
109-
2. Double clicking on the .deb file will open up the default installer
110-
111-
3. Right clicking on the file will allow you to open the package installer
112-
113-
![Linux install](documents/images/linux_install.png)
114-
4. The application is located in the /opt/ directory. To run the application open a Terminal window and execute the following command:
115-
116-
```
117-
linux> /opt/insight/Insight
118-
```
119-
120-
#### Windows Installation
121-
1. To install on Windows download the 'Insight Setup.exe' file and double click on the .exe to start the installer. This application uses a standard installer shown below:
122-
123-
![Windows install](documents/images/windows_install.png)
124-
125-
---
126-
### Running the Demo
127-
128-
1. Start the Insight on Things Desktop Application on your computer.
129-
- When the application starts it will look for a file name `.insight` in the Users home directory.
130-
- This file contains the information that the app will use to access and authenticate you with AWS IoT
131-
- If the `.insight` file is not found the application, it will take you to a screen to enter the credentials that you generated in the [Setting Up the AWS IoT Service for the Insight on Things Application](Setting Up the AWS IoT Service for the Insight on Things Application).
132-
- Press the `Create New Thing` button to save the credentials into that file.
133-
- Bellow is what the Insight on Things Desktop Application will start with if no credential are found.
134-
135-
![No credentials found](documents/images/insight_no_credentials.png)
136-
- If the `.insight` file is found, and has correct credentials in it, the application will default to the data screen and show the current status of the shadow registers.
137-
138-
![Credentials found](documents/images/insight_normal_operation.png)
139-
- By using one of the demos listed in the [Introduction](Introduction) section you can change data on that device and see it on the Insight on Things Desktop Application
140-
- You can also control the demo by change the status of the LED on this application
141-
- The credentials and the thing that the application is looking at can be changed at any time, by selecting `Thing -> Settings` from the application menu. This will take you to a screen that will load the current credentials and allow them to be updated.
142-
143-
![Update Credentials](documents/images/insight_update_credentials.png)
144-
- Update any credentials and press the `Update Credentials` button to save the new credentials into the `.insight` file.
15+
For more information on the current Microchip IoT demos please go to [Microchip's IoT Page](http://www.microchip.com/iot).
14516

14617
---
147-
### Troubleshooting
148-
If you are having trouble connecting with AWS IoT and your thing, check to make sure that each of the issues bellow are resolved.
149-
150-
#### Connection Issue
151-
- Check that you have a valid internet connection on your network/access point.
152-
- Ensure that port 443 is open on your network/access point.
153-
- Ensure that your AWS IoT service is setup properly.
154-
155-
#### Credential Issue
156-
- The credentials are case sensitive.

software/source/content/about.html renamed to app/content/about.html

Lines changed: 27 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -51,11 +51,19 @@
5151
<div class="mdl-grid">
5252
<div class="mdl-cell mdl-cell--12-col">
5353
<h3>Insight on Things</h3>
54-
<p>This application accesses the ThingShadow registers on the Amazon AWS-IOT platform to retreive
55-
the reported state of the Microchip IoT Ethernet board</p>
56-
<p>For more information and to download the latest version of this application
57-
please view available links in the Help menu</p>
58-
<p>Application Version 1.1.0(1.0.1)<p>
54+
<p>This application is used to Setup AWS IAM and IoT Credentials and configure
55+
Microchip IoT development kits.</p>
56+
<p>Application Version 2.0.0(Electron 0.35.4)</p>
57+
<p>Made with thanks from the Microchip Applications team</p>
58+
<ul>
59+
<li>Stephen Porter</li>
60+
<li>Martin Bowman</li>
61+
<li>David Cowden</li>
62+
<li>Matthew Bradley</li>
63+
</ul>
64+
<a href="http://www.microchip.com/iot">Microchip IoT</a>
65+
<br>
66+
<a href="http://github.com/microchiptech">Microchip IoT on github</a>
5967
</div>
6068
</div>
6169

@@ -83,10 +91,19 @@ <h3>License Information</h3>
8391

8492

8593
<!-- This is the footer section -->
86-
<footer class="mdl-mini-footer">
87-
<div class="mdl-mini-footer__left-section">
88-
Copyright &copy Microchip Technology, Inc. Microchip Insight Application v1.1.1
89-
</div>
90-
</footer>
94+
<div class="mdl-cell mdl-cell--4-col">
95+
<button id="debug_off" class="mdl-button mdl-js-button mdl-button--raised mdl-js-ripple-effect mdl-button--colored" onclick="goHome()">
96+
<!-- <i class="material-icons">add</i> -->
97+
Home
98+
</button>
99+
</div>
91100
</body>
101+
<script>
102+
const shell = require('electron').shell;
103+
104+
$(document).on('click', 'a[href^="http"]', function(event) {
105+
event.preventDefault();
106+
shell.openExternal(this.href);
107+
});
108+
</script>
92109
</html>

0 commit comments

Comments
 (0)