POST dashboard.us.enableiot.com/v1/api/data:deviceId
{
"accountId": ”",
"data": [
{
"componentId": ”",
"on": 1412456872000,
"value":"1.23"
}
],
"on": 1412456872000
}
Intel Edison. . : , , .
:
Intel IoT Analytics. Intel Edison Arduino-
Intel IoT Analytics.
1. Intel IoT Analytics. OAuth:
2. :
3. . :
4. . Account . .
5. Temperature :
0, 40:
. , .
6. Add a New Catalog Item . .
, meteovesti.ru. , , 31 1968 812,4 ... ( ) 2 1935 -, 669,3 ...
:
1 [] = 7.50063755419211E-03 (0°C) [ ..]
[] 669,3 ... / 0,0075 = 89 240
[] 812,4 ... / 0,0075 = 108 320
:
7. - . . 0 - . 100 - .
Float Integer, Percentage. .
, .
Intel Edison
Intel Edison Intel Edison. .
Intel Edison , Linux. Agent from the IoT GitHub site. .. WebSocket
Wi-Fi, Intel Edison . .
Intel Edsion , Wi-Fi
PuTTY, Edison. MicroUSB Intel Edison, . , PuTTY.
PuTTY, “Serial” “COM11”, “115200”.
, Enter, .
“root”.
Intel Edison
Intel Edison, . Flashing Intel Edison (wired) - Windows.
2. :
# configure_edison --setup
2.1 . 8 -32 :
2.2 Intel Edison, - edison_habr( 5 ), Wi-Fi:
2.3 10 . :
5 - “FSB”:
2.4 IP DHCP:
2.5 192.168.1.44 :
.
3. iotkit:
# iotkit-admin test
.
4. ID .
# iotkit-admin device-id
ID :
# iotkit-admin set-device-id YOUR_DEVICE_ID
5.
5.1 dashboard.us.enableiot.com, My account , Details
Activation Code :
5.2 Intel Edison :
# iotkit-admin activate [ ]
5.3 dashboard.us.enableiot.com, Devices. Intel Edison.
, . Status - active.
6.
6.1 # iotkit-admin register [_] [_]. :
# iotkit-admin register temperature1 temperature.v1.1
# iotkit-admin register pressure1 pressure.v1.0
# iotkit-admin register moisturevalue1 moisturevalue.v1.0
iotkit-admin observation, - 21:
# iotkit-admin observation temperature1 21
6.2 :
# systemctl start iotkit-agent -
# systemctl stop iotkit-agent -
# systemctl restart iotkit-agent -
# systemctl status iotkit-agent -
Arduino-
, Arduino .
iotkit-agent:
Intel Cloud, <../Wire/Wire.h> Arduino arduino.cc, IoTkit, aJSON, iotkit-samples.
:
#include <IoTkit.h> // include IoTkit.h to use the Intel IoT Kit
#include <Ethernet.h> // must be included to use IoTkit
#include <aJSON.h>
IoTkit:
// create an object of the IoTkit class IoTkit iotkit;
POST dashboard.us.enableiot.com/v1/api/data:deviceId
{
"accountId": ”",
"data": [
{
"componentId": ”",
"on": 1412456872000,
"value":"1.23"
}
],
"on": 1412456872000
}
Intel Edison. . : , , .
:
Intel IoT Analytics. Intel Edison Arduino-
Intel IoT Analytics.
1. Intel IoT Analytics. OAuth:
2. :
3. . :
4. . Account . .
5. Temperature :
0, 40:
. , .
6. Add a New Catalog Item . .
, meteovesti.ru. , , 31 1968 812,4 ... ( ) 2 1935 -, 669,3 ...
:
1 [] = 7.50063755419211E-03 (0°C) [ ..]
[] 669,3 ... / 0,0075 = 89 240
[] 812,4 ... / 0,0075 = 108 320
:
7. - . . 0 - . 100 - .
Float Integer, Percentage. .
, .
Intel Edison
Intel Edison Intel Edison. .
Intel Edison , Linux. Agent from the IoT GitHub site. .. WebSocket
Wi-Fi, Intel Edison . .
Intel Edsion , Wi-Fi
PuTTY, Edison. MicroUSB Intel Edison, . , PuTTY.
PuTTY, “Serial” “COM11”, “115200”.
, Enter, .
“root”.
Intel Edison
Intel Edison, . Flashing Intel Edison (wired) - Windows.
2. :
# configure_edison --setup
2.1 . 8 -32 :
2.2 Intel Edison, - edison_habr( 5 ), Wi-Fi:
2.3 10 . :
5 - “FSB”:
2.4 IP DHCP:
2.5 192.168.1.44 :
.
3. iotkit:
# iotkit-admin test
.
4. ID .
# iotkit-admin device-id
ID :
# iotkit-admin set-device-id YOUR_DEVICE_ID
5.
5.1 dashboard.us.enableiot.com, My account , Details
Activation Code :
5.2 Intel Edison :
# iotkit-admin activate [ ]
5.3 dashboard.us.enableiot.com, Devices. Intel Edison.
, . Status - active.
6.
6.1 # iotkit-admin register [_] [_]. :
# iotkit-admin register temperature1 temperature.v1.1
# iotkit-admin register pressure1 pressure.v1.0
# iotkit-admin register moisturevalue1 moisturevalue.v1.0
iotkit-admin observation, - 21:
# iotkit-admin observation temperature1 21
6.2 :
# systemctl start iotkit-agent -
# systemctl stop iotkit-agent -
# systemctl restart iotkit-agent -
# systemctl status iotkit-agent -
Arduino-
, Arduino .
iotkit-agent:
Intel Cloud, <../Wire/Wire.h> Arduino arduino.cc, IoTkit, aJSON, iotkit-samples.
:
#include <IoTkit.h> // include IoTkit.h to use the Intel IoT Kit
#include <Ethernet.h> // must be included to use IoTkit
#include <aJSON.h>
IoTkit:
// create an object of the IoTkit class IoTkit iotkit;
POST dashboard.us.enableiot.com/v1/api/data:deviceId
{
"accountId": ”",
"data": [
{
"componentId": ”",
"on": 1412456872000,
"value":"1.23"
}
],
"on": 1412456872000
}
Intel Edison. . : , , .
:
Intel IoT Analytics. Intel Edison Arduino-
Intel IoT Analytics.
1. Intel IoT Analytics. OAuth:
2. :
3. . :
4. . Account . .
5. Temperature :
0, 40:
. , .
6. Add a New Catalog Item . .
, meteovesti.ru. , , 31 1968 812,4 ... ( ) 2 1935 -, 669,3 ...
:
1 [] = 7.50063755419211E-03 (0°C) [ ..]
[] 669,3 ... / 0,0075 = 89 240
[] 812,4 ... / 0,0075 = 108 320
:
7. - . . 0 - . 100 - .
Float Integer, Percentage. .
, .
Intel Edison
Intel Edison Intel Edison. .
Intel Edison , Linux. Agent from the IoT GitHub site. .. WebSocket
Wi-Fi, Intel Edison . .
Intel Edsion , Wi-Fi
PuTTY, Edison. MicroUSB Intel Edison, . , PuTTY.
PuTTY, “Serial” “COM11”, “115200”.
, Enter, .
“root”.
Intel Edison
Intel Edison, . Flashing Intel Edison (wired) - Windows.
2. :
# configure_edison --setup
2.1 . 8 -32 :
2.2 Intel Edison, - edison_habr( 5 ), Wi-Fi:
2.3 10 . :
5 - “FSB”:
2.4 IP DHCP:
2.5 192.168.1.44 :
.
3. iotkit:
# iotkit-admin test
.
4. ID .
# iotkit-admin device-id
ID :
# iotkit-admin set-device-id YOUR_DEVICE_ID
5.
5.1 dashboard.us.enableiot.com, My account , Details
Activation Code :
5.2 Intel Edison :
# iotkit-admin activate [ ]
5.3 dashboard.us.enableiot.com, Devices. Intel Edison.
, . Status - active.
6.
6.1 # iotkit-admin register [_] [_]. :
# iotkit-admin register temperature1 temperature.v1.1
# iotkit-admin register pressure1 pressure.v1.0
# iotkit-admin register moisturevalue1 moisturevalue.v1.0
iotkit-admin observation, - 21:
# iotkit-admin observation temperature1 21
6.2 :
# systemctl start iotkit-agent -
# systemctl stop iotkit-agent -
# systemctl restart iotkit-agent -
# systemctl status iotkit-agent -
Arduino-
, Arduino .
iotkit-agent:
Intel Cloud, <../Wire/Wire.h> Arduino arduino.cc, IoTkit, aJSON, iotkit-samples.
:
#include <IoTkit.h> // include IoTkit.h to use the Intel IoT Kit
#include <Ethernet.h> // must be included to use IoTkit
#include <aJSON.h>
IoTkit:
// create an object of the IoTkit class IoTkit iotkit;
-
POST dashboard.us.enableiot.com/v1/api/data:deviceId
{
"accountId": ”",
"data": [
{
"componentId": ”",
"on": 1412456872000,
"value":"1.23"
}
],
"on": 1412456872000
}
Intel Edison. . : , , .
:
Intel IoT Analytics. Intel Edison Arduino-
Intel IoT Analytics.
1. Intel IoT Analytics. OAuth:
2. :
3. . :
4. . Account . .
5. Temperature :
0, 40:
. , .
6. Add a New Catalog Item . .
, meteovesti.ru. , , 31 1968 812,4 ... ( ) 2 1935 -, 669,3 ...
:
1 [] = 7.50063755419211E-03 (0°C) [ ..]
[] 669,3 ... / 0,0075 = 89 240
[] 812,4 ... / 0,0075 = 108 320
:
7. - . . 0 - . 100 - .
Float Integer, Percentage. .
, .
Intel Edison
Intel Edison Intel Edison. .
Intel Edison , Linux. Agent from the IoT GitHub site. .. WebSocket
Wi-Fi, Intel Edison . .
Intel Edsion , Wi-Fi
PuTTY, Edison. MicroUSB Intel Edison, . , PuTTY.
PuTTY, “Serial” “COM11”, “115200”.
, Enter, .
“root”.
Intel Edison
Intel Edison, . Flashing Intel Edison (wired) - Windows.
2. :
# configure_edison --setup
2.1 . 8 -32 :
2.2 Intel Edison, - edison_habr( 5 ), Wi-Fi:
2.3 10 . :
5 - “FSB”:
2.4 IP DHCP:
2.5 192.168.1.44 :
.
3. iotkit:
# iotkit-admin test
.
4. ID .
# iotkit-admin device-id
ID :
# iotkit-admin set-device-id YOUR_DEVICE_ID
5.
5.1 dashboard.us.enableiot.com, My account , Details
Activation Code :
5.2 Intel Edison :
# iotkit-admin activate [ ]
5.3 dashboard.us.enableiot.com, Devices. Intel Edison.
, . Status - active.
6.
6.1 # iotkit-admin register [_] [_]. :
# iotkit-admin register temperature1 temperature.v1.1
# iotkit-admin register pressure1 pressure.v1.0
# iotkit-admin register moisturevalue1 moisturevalue.v1.0
iotkit-admin observation, - 21:
# iotkit-admin observation temperature1 21
6.2 :
# systemctl start iotkit-agent -
# systemctl stop iotkit-agent -
# systemctl restart iotkit-agent -
# systemctl status iotkit-agent -
Arduino-
, Arduino .
iotkit-agent:
Intel Cloud, <../Wire/Wire.h> Arduino arduino.cc, IoTkit, aJSON, iotkit-samples.
:
#include <IoTkit.h> // include IoTkit.h to use the Intel IoT Kit
#include <Ethernet.h> // must be included to use IoTkit
#include <aJSON.h>
IoTkit:
// create an object of the IoTkit class IoTkit iotkit;
POST dashboard.us.enableiot.com/v1/api/data:deviceId
{
"accountId": ”",
"data": [
{
"componentId": ”",
"on": 1412456872000,
"value":"1.23"
}
],
"on": 1412456872000
}
Intel Edison. . : , , .
:
Intel IoT Analytics. Intel Edison Arduino-
Intel IoT Analytics.
1. Intel IoT Analytics. OAuth:
2. :
3. . :
4. . Account . .
5. Temperature :
0, 40:
. , .
6. Add a New Catalog Item . .
, meteovesti.ru. , , 31 1968 812,4 ... ( ) 2 1935 -, 669,3 ...
:
1 [] = 7.50063755419211E-03 (0°C) [ ..]
[] 669,3 ... / 0,0075 = 89 240
[] 812,4 ... / 0,0075 = 108 320
:
7. - . . 0 - . 100 - .
Float Integer, Percentage. .
, .
Intel Edison
Intel Edison Intel Edison. .
Intel Edison , Linux. Agent from the IoT GitHub site. .. WebSocket
Wi-Fi, Intel Edison . .
Intel Edsion , Wi-Fi
PuTTY, Edison. MicroUSB Intel Edison, . , PuTTY.
PuTTY, “Serial” “COM11”, “115200”.
, Enter, .
“root”.
Intel Edison
Intel Edison, . Flashing Intel Edison (wired) - Windows.
2. :
# configure_edison --setup
2.1 . 8 -32 :
2.2 Intel Edison, - edison_habr( 5 ), Wi-Fi:
2.3 10 . :
5 - “FSB”:
2.4 IP DHCP:
2.5 192.168.1.44 :
.
3. iotkit:
# iotkit-admin test
.
4. ID .
# iotkit-admin device-id
ID :
# iotkit-admin set-device-id YOUR_DEVICE_ID
5.
5.1 dashboard.us.enableiot.com, My account , Details
Activation Code :
5.2 Intel Edison :
# iotkit-admin activate [ ]
5.3 dashboard.us.enableiot.com, Devices. Intel Edison.
, . Status - active.
6.
6.1 # iotkit-admin register [_] [_]. :
# iotkit-admin register temperature1 temperature.v1.1
# iotkit-admin register pressure1 pressure.v1.0
# iotkit-admin register moisturevalue1 moisturevalue.v1.0
iotkit-admin observation, - 21:
# iotkit-admin observation temperature1 21
6.2 :
# systemctl start iotkit-agent -
# systemctl stop iotkit-agent -
# systemctl restart iotkit-agent -
# systemctl status iotkit-agent -
Arduino-
, Arduino .
iotkit-agent:
Intel Cloud, <../Wire/Wire.h> Arduino arduino.cc, IoTkit, aJSON, iotkit-samples.
:
#include <IoTkit.h> // include IoTkit.h to use the Intel IoT Kit
#include <Ethernet.h> // must be included to use IoTkit
#include <aJSON.h>
IoTkit:
// create an object of the IoTkit class IoTkit iotkit;
-
POST dashboard.us.enableiot.com/v1/api/data:deviceId
{
"accountId": ”",
"data": [
{
"componentId": ”",
"on": 1412456872000,
"value":"1.23"
}
],
"on": 1412456872000
}
Intel Edison. . : , , .
:
Intel IoT Analytics. Intel Edison Arduino-
Intel IoT Analytics.
1. Intel IoT Analytics. OAuth:
2. :
3. . :
4. . Account . .
5. Temperature :
0, 40:
. , .
6. Add a New Catalog Item . .
, meteovesti.ru. , , 31 1968 812,4 ... ( ) 2 1935 -, 669,3 ...
:
1 [] = 7.50063755419211E-03 (0°C) [ ..]
[] 669,3 ... / 0,0075 = 89 240
[] 812,4 ... / 0,0075 = 108 320
:
7. - . . 0 - . 100 - .
Float Integer, Percentage. .
, .
Intel Edison
Intel Edison Intel Edison. .
Intel Edison , Linux. Agent from the IoT GitHub site. .. WebSocket
Wi-Fi, Intel Edison . .
Intel Edsion , Wi-Fi
PuTTY, Edison. MicroUSB Intel Edison, . , PuTTY.
PuTTY, “Serial” “COM11”, “115200”.
, Enter, .
“root”.
Intel Edison
Intel Edison, . Flashing Intel Edison (wired) - Windows.
2. :
# configure_edison --setup
2.1 . 8 -32 :
2.2 Intel Edison, - edison_habr( 5 ), Wi-Fi:
2.3 10 . :
5 - “FSB”:
2.4 IP DHCP:
2.5 192.168.1.44 :
.
3. iotkit:
# iotkit-admin test
.
4. ID .
# iotkit-admin device-id
ID :
# iotkit-admin set-device-id YOUR_DEVICE_ID
5.
5.1 dashboard.us.enableiot.com, My account , Details
Activation Code :
5.2 Intel Edison :
# iotkit-admin activate [ ]
5.3 dashboard.us.enableiot.com, Devices. Intel Edison.
, . Status - active.
6.
6.1 # iotkit-admin register [_] [_]. :
# iotkit-admin register temperature1 temperature.v1.1
# iotkit-admin register pressure1 pressure.v1.0
# iotkit-admin register moisturevalue1 moisturevalue.v1.0
iotkit-admin observation, - 21:
# iotkit-admin observation temperature1 21
6.2 :
# systemctl start iotkit-agent -
# systemctl stop iotkit-agent -
# systemctl restart iotkit-agent -
# systemctl status iotkit-agent -
Arduino-
, Arduino .
iotkit-agent:
Intel Cloud, <../Wire/Wire.h> Arduino arduino.cc, IoTkit, aJSON, iotkit-samples.
:
#include <IoTkit.h> // include IoTkit.h to use the Intel IoT Kit
#include <Ethernet.h> // must be included to use IoTkit
#include <aJSON.h>
IoTkit:
// create an object of the IoTkit class IoTkit iotkit;
POST dashboard.us.enableiot.com/v1/api/data:deviceId
{
"accountId": ”",
"data": [
{
"componentId": ”",
"on": 1412456872000,
"value":"1.23"
}
],
"on": 1412456872000
}
Intel Edison. . : , , .
:
Intel IoT Analytics. Intel Edison Arduino-
Intel IoT Analytics.
1. Intel IoT Analytics. OAuth:
2. :
3. . :
4. . Account . .
5. Temperature :
0, 40:
. , .
6. Add a New Catalog Item . .
, meteovesti.ru. , , 31 1968 812,4 ... ( ) 2 1935 -, 669,3 ...
:
1 [] = 7.50063755419211E-03 (0°C) [ ..]
[] 669,3 ... / 0,0075 = 89 240
[] 812,4 ... / 0,0075 = 108 320
:
7. - . . 0 - . 100 - .
Float Integer, Percentage. .
, .
Intel Edison
Intel Edison Intel Edison. .
Intel Edison , Linux. Agent from the IoT GitHub site. .. WebSocket
Wi-Fi, Intel Edison . .
Intel Edsion , Wi-Fi
PuTTY, Edison. MicroUSB Intel Edison, . , PuTTY.
PuTTY, “Serial” “COM11”, “115200”.
, Enter, .
“root”.
Intel Edison
Intel Edison, . Flashing Intel Edison (wired) - Windows.
2. :
# configure_edison --setup
2.1 . 8 -32 :
2.2 Intel Edison, - edison_habr( 5 ), Wi-Fi:
2.3 10 . :
5 - “FSB”:
2.4 IP DHCP:
2.5 192.168.1.44 :
.
3. iotkit:
# iotkit-admin test
.
4. ID .
# iotkit-admin device-id
ID :
# iotkit-admin set-device-id YOUR_DEVICE_ID
5.
5.1 dashboard.us.enableiot.com, My account , Details
Activation Code :
5.2 Intel Edison :
# iotkit-admin activate [ ]
5.3 dashboard.us.enableiot.com, Devices. Intel Edison.
, . Status - active.
6.
6.1 # iotkit-admin register [_] [_]. :
# iotkit-admin register temperature1 temperature.v1.1
# iotkit-admin register pressure1 pressure.v1.0
# iotkit-admin register moisturevalue1 moisturevalue.v1.0
iotkit-admin observation, - 21:
# iotkit-admin observation temperature1 21
6.2 :
# systemctl start iotkit-agent -
# systemctl stop iotkit-agent -
# systemctl restart iotkit-agent -
# systemctl status iotkit-agent -
Arduino-
, Arduino .
iotkit-agent:
Intel Cloud, <../Wire/Wire.h> Arduino arduino.cc, IoTkit, aJSON, iotkit-samples.
:
#include <IoTkit.h> // include IoTkit.h to use the Intel IoT Kit
#include <Ethernet.h> // must be included to use IoTkit
#include <aJSON.h>
IoTkit:
// create an object of the IoTkit class IoTkit iotkit;
-
POST dashboard.us.enableiot.com/v1/api/data:deviceId
{
"accountId": ”",
"data": [
{
"componentId": ”",
"on": 1412456872000,
"value":"1.23"
}
],
"on": 1412456872000
}
Intel Edison. . : , , .
:
Intel IoT Analytics. Intel Edison Arduino-
Intel IoT Analytics.
1. Intel IoT Analytics. OAuth:
2. :
3. . :
4. . Account . .
5. Temperature :
0, 40:
. , .
6. Add a New Catalog Item . .
, meteovesti.ru. , , 31 1968 812,4 ... ( ) 2 1935 -, 669,3 ...
:
1 [] = 7.50063755419211E-03 (0°C) [ ..]
[] 669,3 ... / 0,0075 = 89 240
[] 812,4 ... / 0,0075 = 108 320
:
7. - . . 0 - . 100 - .
Float Integer, Percentage. .
, .
Intel Edison
Intel Edison Intel Edison. .
Intel Edison , Linux. Agent from the IoT GitHub site. .. WebSocket
Wi-Fi, Intel Edison . .
Intel Edsion , Wi-Fi
PuTTY, Edison. MicroUSB Intel Edison, . , PuTTY.
PuTTY, “Serial” “COM11”, “115200”.
, Enter, .
“root”.
Intel Edison
Intel Edison, . Flashing Intel Edison (wired) - Windows.
2. :
# configure_edison --setup
2.1 . 8 -32 :
2.2 Intel Edison, - edison_habr( 5 ), Wi-Fi:
2.3 10 . :
5 - “FSB”:
2.4 IP DHCP:
2.5 192.168.1.44 :
.
3. iotkit:
# iotkit-admin test
.
4. ID .
# iotkit-admin device-id
ID :
# iotkit-admin set-device-id YOUR_DEVICE_ID
5.
5.1 dashboard.us.enableiot.com, My account , Details
Activation Code :
5.2 Intel Edison :
# iotkit-admin activate [ ]
5.3 dashboard.us.enableiot.com, Devices. Intel Edison.
, . Status - active.
6.
6.1 # iotkit-admin register [_] [_]. :
# iotkit-admin register temperature1 temperature.v1.1
# iotkit-admin register pressure1 pressure.v1.0
# iotkit-admin register moisturevalue1 moisturevalue.v1.0
iotkit-admin observation, - 21:
# iotkit-admin observation temperature1 21
6.2 :
# systemctl start iotkit-agent -
# systemctl stop iotkit-agent -
# systemctl restart iotkit-agent -
# systemctl status iotkit-agent -
Arduino-
, Arduino .
iotkit-agent:
Intel Cloud, <../Wire/Wire.h> Arduino arduino.cc, IoTkit, aJSON, iotkit-samples.
:
#include <IoTkit.h> // include IoTkit.h to use the Intel IoT Kit
#include <Ethernet.h> // must be included to use IoTkit
#include <aJSON.h>
IoTkit:
// create an object of the IoTkit class IoTkit iotkit;
POST dashboard.us.enableiot.com/v1/api/data:deviceId
{
"accountId": ”",
"data": [
{
"componentId": ”",
"on": 1412456872000,
"value":"1.23"
}
],
"on": 1412456872000
}
Intel Edison. . : , , .
:
Intel IoT Analytics. Intel Edison Arduino-
Intel IoT Analytics.
1. Intel IoT Analytics. OAuth:
2. :
3. . :
4. . Account . .
5. Temperature :
0, 40:
. , .
6. Add a New Catalog Item . .
, meteovesti.ru. , , 31 1968 812,4 ... ( ) 2 1935 -, 669,3 ...
:
1 [] = 7.50063755419211E-03 (0°C) [ ..]
[] 669,3 ... / 0,0075 = 89 240
[] 812,4 ... / 0,0075 = 108 320
:
7. - . . 0 - . 100 - .
Float Integer, Percentage. .
, .
Intel Edison
Intel Edison Intel Edison. .
Intel Edison , Linux. Agent from the IoT GitHub site. .. WebSocket
Wi-Fi, Intel Edison . .
Intel Edsion , Wi-Fi
PuTTY, Edison. MicroUSB Intel Edison, . , PuTTY.
PuTTY, “Serial” “COM11”, “115200”.
, Enter, .
“root”.
Intel Edison
Intel Edison, . Flashing Intel Edison (wired) - Windows.
2. :
# configure_edison --setup
2.1 . 8 -32 :
2.2 Intel Edison, - edison_habr( 5 ), Wi-Fi:
2.3 10 . :
5 - “FSB”:
2.4 IP DHCP:
2.5 192.168.1.44 :
.
3. iotkit:
# iotkit-admin test
.
4. ID .
# iotkit-admin device-id
ID :
# iotkit-admin set-device-id YOUR_DEVICE_ID
5.
5.1 dashboard.us.enableiot.com, My account , Details
Activation Code :
5.2 Intel Edison :
# iotkit-admin activate [ ]
5.3 dashboard.us.enableiot.com, Devices. Intel Edison.
, . Status - active.
6.
6.1 # iotkit-admin register [_] [_]. :
# iotkit-admin register temperature1 temperature.v1.1
# iotkit-admin register pressure1 pressure.v1.0
# iotkit-admin register moisturevalue1 moisturevalue.v1.0
iotkit-admin observation, - 21:
# iotkit-admin observation temperature1 21
6.2 :
# systemctl start iotkit-agent -
# systemctl stop iotkit-agent -
# systemctl restart iotkit-agent -
# systemctl status iotkit-agent -
Arduino-
, Arduino .
iotkit-agent:
Intel Cloud, <../Wire/Wire.h> Arduino arduino.cc, IoTkit, aJSON, iotkit-samples.
:
#include <IoTkit.h> // include IoTkit.h to use the Intel IoT Kit
#include <Ethernet.h> // must be included to use IoTkit
#include <aJSON.h>
IoTkit:
// create an object of the IoTkit class IoTkit iotkit;
POST dashboard.us.enableiot.com/v1/api/data:deviceId
{
"accountId": ”",
"data": [
{
"componentId": ”",
"on": 1412456872000,
"value":"1.23"
}
],
"on": 1412456872000
}
Intel Edison. . : , , .
:
Intel IoT Analytics. Intel Edison Arduino-
Intel IoT Analytics.
1. Intel IoT Analytics. OAuth:
2. :
3. . :
4. . Account . .
5. Temperature :
0, 40:
. , .
6. Add a New Catalog Item . .
, meteovesti.ru. , , 31 1968 812,4 ... ( ) 2 1935 -, 669,3 ...
:
1 [] = 7.50063755419211E-03 (0°C) [ ..]
[] 669,3 ... / 0,0075 = 89 240
[] 812,4 ... / 0,0075 = 108 320
:
7. - . . 0 - . 100 - .
Float Integer, Percentage. .
, .
Intel Edison
Intel Edison Intel Edison. .
Intel Edison , Linux. Agent from the IoT GitHub site. .. WebSocket
Wi-Fi, Intel Edison . .
Intel Edsion , Wi-Fi
PuTTY, Edison. MicroUSB Intel Edison, . , PuTTY.
PuTTY, “Serial” “COM11”, “115200”.
, Enter, .
“root”.
Intel Edison
Intel Edison, . Flashing Intel Edison (wired) - Windows.
2. :
# configure_edison --setup
2.1 . 8 -32 :
2.2 Intel Edison, - edison_habr( 5 ), Wi-Fi:
2.3 10 . :
5 - “FSB”:
2.4 IP DHCP:
2.5 192.168.1.44 :
.
3. iotkit:
# iotkit-admin test
.
4. ID .
# iotkit-admin device-id
ID :
# iotkit-admin set-device-id YOUR_DEVICE_ID
5.
5.1 dashboard.us.enableiot.com, My account , Details
Activation Code :
5.2 Intel Edison :
# iotkit-admin activate [ ]
5.3 dashboard.us.enableiot.com, Devices. Intel Edison.
, . Status - active.
6.
6.1 # iotkit-admin register [_] [_]. :
# iotkit-admin register temperature1 temperature.v1.1
# iotkit-admin register pressure1 pressure.v1.0
# iotkit-admin register moisturevalue1 moisturevalue.v1.0
iotkit-admin observation, - 21:
# iotkit-admin observation temperature1 21
6.2 :
# systemctl start iotkit-agent -
# systemctl stop iotkit-agent -
# systemctl restart iotkit-agent -
# systemctl status iotkit-agent -
Arduino-
, Arduino .
iotkit-agent:
Intel Cloud, <../Wire/Wire.h> Arduino arduino.cc, IoTkit, aJSON, iotkit-samples.
:
#include <IoTkit.h> // include IoTkit.h to use the Intel IoT Kit
#include <Ethernet.h> // must be included to use IoTkit
#include <aJSON.h>
IoTkit:
// create an object of the IoTkit class IoTkit iotkit;
void setup() { iotkit.begin(); // call begin on the IoTkit object before calling any other methods }
//LCD #include <Wire.h> #include <LCD.h> #include <LiquidCrystal_I2C.h> #define LCD_I2C_ADDR 0x20 // Define I2C Address where the PCF8574T is #define BACKLIGHT 7 #define LCD_EN 4 #define LCD_RW 5 #define LCD_RS 6 #define LCD_D4 0 #define LCD_D5 1 #define LCD_D6 2 #define LCD_D7 3 LiquidCrystal_I2C lcd(LCD_I2C_ADDR,LCD_EN,LCD_RW,LCD_RS,LCD_D4,LCD_D5,LCD_D6,LCD_D7); //BMP085 Barometric Pressure & Temp Sensor #include <Wire.h> #include <Adafruit_BMP085.h> Adafruit_BMP085 bmp; //for Intel Cloud #include <IoTkit.h> // include IoTkit.h to use the Intel IoT Kit #include <Ethernet.h> // must be included to use IoTkit // create an object of the IoTkit class IoTkit iotkit; float temperature1; int pressure1; int moisturevalue1; void setup() { iotkit.begin(); Serial.begin(9600); bmp.begin(); //init LCD lcd.begin (20,4); lcd.setBacklightPin(BACKLIGHT,NEGATIVE); // init the backlight lcd.setBacklight(HIGH); // Backlight on lcd.home (); // go home lcd.setCursor ( 0, 0 ); lcd.print("Edison. Habrahabr"); } void loop() { lcd.setCursor ( 0, 1 ); lcd.print("Tempera. = "); lcd.print(bmp.readTemperature()); lcd.print(" *C"); // lcd.setCursor ( 0, 2 ); lcd.print("Pressure = "); lcd.print(bmp.readPressure()); lcd.print(" Pa"); // lcd.setCursor ( 0, 3 ); lcd.print("Moisture Value = "); lcd.print(analogRead(0)); //read temperature1=bmp.readTemperature(); pressure1=bmp.readPressure(); moisturevalue1=analogRead(0); //Console and Send to Intel Cloud Serial.println("Sensors"); Serial.print("temperature1="); Serial.println(temperature1); iotkit.send("temperature1", temperature1); delay(2000); Serial.print("pressure1="); Serial.println(pressure1); iotkit.send("pressure1", pressure1); delay(2000); Serial.print("moisturevalue1="); Serial.println(moisturevalue1); moisturevalue1=20; iotkit.send("moisturevalue1", moisturevalue1); delay(2000); // wait for a second }
Source: https://habr.com/ru/post/257621/
All Articles