apiotics 0.1.120 → 0.1.121
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/README.md +1 -1
- data/lib/apiotics/configuration.rb +1 -1
- data/lib/apiotics/version.rb +1 -1
- data/lib/generators/apiotics/initializer/templates/apiotics.rb.erb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: fa2eec379a6740eea0ba092219a190d225a0af57
|
4
|
+
data.tar.gz: 92859fb86b4845505d91063342b9d9b0bf25388b
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: fdce7b9e0b50718449f61148c31584fb173fab5a60ada76c82b65c65cf1af45c23d8528e9d3a92559138ffa8cd609b3715c5d66a10076011548772b42517a26e
|
7
|
+
data.tar.gz: 2160936b365e57766ebe48dd99fb7b81c2f3f1e675363231f9ebdc837d1c1507f36a9396a2ce208926d08a66a478b94643e0f19fa7320553fdd4e53b1c1c4b23
|
data/README.md
CHANGED
@@ -18,7 +18,7 @@ And then execute:
|
|
18
18
|
$ bundle
|
19
19
|
$ rails generate apiotics:install
|
20
20
|
```
|
21
|
-
On the Apiotics portal located at
|
21
|
+
On the Apiotics portal located at portal.apiotics.com, you can create a Hive for your project. Hives have Workers (each type of IoT device in your project will have a corresponding worker in the Hive). Workers have Drivers and, optionally, Scripts. Drivers and Scripts have interfaces. An example worker might be a Thermostat. The Thermostat has a Control Script with two interfaces: temperature and target temperature. If you set the target temperature to 72 and the temperature is 65, the Thermostat will turn the heat on. We'll use this example again and flesh it out below.
|
22
22
|
|
23
23
|
Once you have created a Hive, it will give you a public and a private API key. Best practice is to set environment variables in your development, test and production environments to equal these API keys. Then, set config.public_key and config.private_key in config/initializers/apiotics.rb to those environment variables. You can enter the API keys directly into the configuration file, but you should only do this if you never plan to put your Rails application and Hive into production, as it is a significant security risk.
|
24
24
|
|
data/lib/apiotics/version.rb
CHANGED
@@ -14,7 +14,7 @@ Apiotics.configure do |config|
|
|
14
14
|
config.server_port = 8000
|
15
15
|
|
16
16
|
# The Apiotics portal. Again, very few reasons to change this.
|
17
|
-
config.portal = "https://
|
17
|
+
config.portal = "https://portal.apiotics.com/"
|
18
18
|
|
19
19
|
# Secure communications parameters. The defaults should be appropriate for almost all use cases.
|
20
20
|
config.tls = true
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: apiotics
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.1.
|
4
|
+
version: 0.1.121
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- MicroArx Corporation
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2018-01-
|
11
|
+
date: 2018-01-11 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: rails
|