You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
### Microchip Insight on Things Desktop Application
2
-
#### Installation and usage guide
3
2
4
3
---
5
4
6
5
### 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.
8
7
9
8
Currently this demo is designed to work with the following demos:
10
9
-[Microchip IoT PIC32MZ based Demos Powered By AWS](https://github.com/MicrochipTech/aws-iot-firmware-pic32mz)
11
10
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
- 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)
92
12
93
13
---
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.
96
14
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
-

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
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:
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.
- 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.
- 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.
0 commit comments