garden_messenger 0.1.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +7 -0
- data/.gitignore +17 -0
- data/.rubocop.yml +2 -0
- data/.travis.yml +11 -0
- data/CODE_OF_CONDUCT.md +74 -0
- data/Gemfile +4 -0
- data/Gemfile.lock +74 -0
- data/LICENSE.txt +21 -0
- data/README.md +57 -0
- data/Rakefile +10 -0
- data/bin/console +14 -0
- data/bin/setup +8 -0
- data/deploy/after_push +17 -0
- data/deploy/before_restart +3 -0
- data/deploy/restart +3 -0
- data/exe/garden_messenger +54 -0
- data/garden_messenger.gemspec +34 -0
- data/garden_messenger.service +15 -0
- data/lib/garden_messenger/reporter.rb +62 -0
- data/lib/garden_messenger/version.rb +3 -0
- data/lib/garden_messenger/wattage.rb +14 -0
- data/lib/garden_messenger.rb +8 -0
- data/log/.keep +0 -0
- metadata +178 -0
checksums.yaml
ADDED
@@ -0,0 +1,7 @@
|
|
1
|
+
---
|
2
|
+
SHA256:
|
3
|
+
metadata.gz: bf2e78c5ee99e2dcf110210cd876d6b54f0167a6e8152d23917bdf55f4e13f39
|
4
|
+
data.tar.gz: ca12a8feeb88be444d884fc4f7f57904e90ea8ee94435ab77e32969542a1c727
|
5
|
+
SHA512:
|
6
|
+
metadata.gz: dc358cb22acfbdb7aeeb3a704927323228c16762c7f257c15311fa1bbb6a12e54e0e8488eecf4f90188281940f90e4775e43bc10cd4f141cab8ab8102dbb628a
|
7
|
+
data.tar.gz: 1e6ab85daf7cc36f5632eeb8655fcf9a40b34e10f7e51bd2d1cff86fc13487f915bb35c0e2bb55d3765e67f6cc4b6f31caeaa5d7d1b6bbd67a560906db99f212
|
data/.gitignore
ADDED
data/.rubocop.yml
ADDED
data/.travis.yml
ADDED
data/CODE_OF_CONDUCT.md
ADDED
@@ -0,0 +1,74 @@
|
|
1
|
+
# Contributor Covenant Code of Conduct
|
2
|
+
|
3
|
+
## Our Pledge
|
4
|
+
|
5
|
+
In the interest of fostering an open and welcoming environment, we as
|
6
|
+
contributors and maintainers pledge to making participation in our project and
|
7
|
+
our community a harassment-free experience for everyone, regardless of age, body
|
8
|
+
size, disability, ethnicity, gender identity and expression, level of experience,
|
9
|
+
nationality, personal appearance, race, religion, or sexual identity and
|
10
|
+
orientation.
|
11
|
+
|
12
|
+
## Our Standards
|
13
|
+
|
14
|
+
Examples of behavior that contributes to creating a positive environment
|
15
|
+
include:
|
16
|
+
|
17
|
+
* Using welcoming and inclusive language
|
18
|
+
* Being respectful of differing viewpoints and experiences
|
19
|
+
* Gracefully accepting constructive criticism
|
20
|
+
* Focusing on what is best for the community
|
21
|
+
* Showing empathy towards other community members
|
22
|
+
|
23
|
+
Examples of unacceptable behavior by participants include:
|
24
|
+
|
25
|
+
* The use of sexualized language or imagery and unwelcome sexual attention or
|
26
|
+
advances
|
27
|
+
* Trolling, insulting/derogatory comments, and personal or political attacks
|
28
|
+
* Public or private harassment
|
29
|
+
* Publishing others' private information, such as a physical or electronic
|
30
|
+
address, without explicit permission
|
31
|
+
* Other conduct which could reasonably be considered inappropriate in a
|
32
|
+
professional setting
|
33
|
+
|
34
|
+
## Our Responsibilities
|
35
|
+
|
36
|
+
Project maintainers are responsible for clarifying the standards of acceptable
|
37
|
+
behavior and are expected to take appropriate and fair corrective action in
|
38
|
+
response to any instances of unacceptable behavior.
|
39
|
+
|
40
|
+
Project maintainers have the right and responsibility to remove, edit, or
|
41
|
+
reject comments, commits, code, wiki edits, issues, and other contributions
|
42
|
+
that are not aligned to this Code of Conduct, or to ban temporarily or
|
43
|
+
permanently any contributor for other behaviors that they deem inappropriate,
|
44
|
+
threatening, offensive, or harmful.
|
45
|
+
|
46
|
+
## Scope
|
47
|
+
|
48
|
+
This Code of Conduct applies both within project spaces and in public spaces
|
49
|
+
when an individual is representing the project or its community. Examples of
|
50
|
+
representing a project or community include using an official project e-mail
|
51
|
+
address, posting via an official social media account, or acting as an appointed
|
52
|
+
representative at an online or offline event. Representation of a project may be
|
53
|
+
further defined and clarified by project maintainers.
|
54
|
+
|
55
|
+
## Enforcement
|
56
|
+
|
57
|
+
Instances of abusive, harassing, or otherwise unacceptable behavior may be
|
58
|
+
reported by contacting the project team at Elektron1c97@gmail.com. All
|
59
|
+
complaints will be reviewed and investigated and will result in a response that
|
60
|
+
is deemed necessary and appropriate to the circumstances. The project team is
|
61
|
+
obligated to maintain confidentiality with regard to the reporter of an incident.
|
62
|
+
Further details of specific enforcement policies may be posted separately.
|
63
|
+
|
64
|
+
Project maintainers who do not follow or enforce the Code of Conduct in good
|
65
|
+
faith may face temporary or permanent repercussions as determined by other
|
66
|
+
members of the project's leadership.
|
67
|
+
|
68
|
+
## Attribution
|
69
|
+
|
70
|
+
This Code of Conduct is adapted from the [Contributor Covenant][homepage], version 1.4,
|
71
|
+
available at [http://contributor-covenant.org/version/1/4][version]
|
72
|
+
|
73
|
+
[homepage]: http://contributor-covenant.org
|
74
|
+
[version]: http://contributor-covenant.org/version/1/4/
|
data/Gemfile
ADDED
data/Gemfile.lock
ADDED
@@ -0,0 +1,74 @@
|
|
1
|
+
PATH
|
2
|
+
remote: .
|
3
|
+
specs:
|
4
|
+
garden_messenger (0.1.0)
|
5
|
+
action_cable_client (~> 3.0)
|
6
|
+
http (~> 4.1)
|
7
|
+
i2c-devices (~> 0.0.6)
|
8
|
+
thor (~> 0.20)
|
9
|
+
|
10
|
+
GEM
|
11
|
+
remote: https://rubygems.org/
|
12
|
+
specs:
|
13
|
+
action_cable_client (3.0.1)
|
14
|
+
websocket-eventmachine-client (>= 1.2.0)
|
15
|
+
addressable (2.6.0)
|
16
|
+
public_suffix (>= 2.0.2, < 4.0)
|
17
|
+
ast (2.4.0)
|
18
|
+
domain_name (0.5.20180417)
|
19
|
+
unf (>= 0.0.5, < 1.0.0)
|
20
|
+
eventmachine (1.2.7)
|
21
|
+
http (4.1.1)
|
22
|
+
addressable (~> 2.3)
|
23
|
+
http-cookie (~> 1.0)
|
24
|
+
http-form_data (~> 2.0)
|
25
|
+
http_parser.rb (~> 0.6.0)
|
26
|
+
http-cookie (1.0.3)
|
27
|
+
domain_name (~> 0.5)
|
28
|
+
http-form_data (2.1.1)
|
29
|
+
http_parser.rb (0.6.0)
|
30
|
+
i2c-devices (0.0.6)
|
31
|
+
jaro_winkler (1.5.2)
|
32
|
+
minitest (5.11.3)
|
33
|
+
parallel (1.17.0)
|
34
|
+
parser (2.6.2.1)
|
35
|
+
ast (~> 2.4.0)
|
36
|
+
psych (3.1.0)
|
37
|
+
public_suffix (3.0.3)
|
38
|
+
rainbow (3.0.0)
|
39
|
+
rake (10.5.0)
|
40
|
+
rubocop (0.67.2)
|
41
|
+
jaro_winkler (~> 1.5.1)
|
42
|
+
parallel (~> 1.10)
|
43
|
+
parser (>= 2.5, != 2.5.1.1)
|
44
|
+
psych (>= 3.1.0)
|
45
|
+
rainbow (>= 2.2.2, < 4.0)
|
46
|
+
ruby-progressbar (~> 1.7)
|
47
|
+
unicode-display_width (>= 1.4.0, < 1.6)
|
48
|
+
ruby-progressbar (1.10.0)
|
49
|
+
thor (0.20.3)
|
50
|
+
unf (0.1.4)
|
51
|
+
unf_ext
|
52
|
+
unf_ext (0.0.7.5)
|
53
|
+
unicode-display_width (1.5.0)
|
54
|
+
websocket (1.2.8)
|
55
|
+
websocket-eventmachine-base (1.2.0)
|
56
|
+
eventmachine (~> 1.0)
|
57
|
+
websocket (~> 1.0)
|
58
|
+
websocket-native (~> 1.0)
|
59
|
+
websocket-eventmachine-client (1.2.0)
|
60
|
+
websocket-eventmachine-base (~> 1.0)
|
61
|
+
websocket-native (1.0.0)
|
62
|
+
|
63
|
+
PLATFORMS
|
64
|
+
ruby
|
65
|
+
|
66
|
+
DEPENDENCIES
|
67
|
+
bundler (~> 2.0)
|
68
|
+
garden_messenger!
|
69
|
+
minitest (~> 5.0)
|
70
|
+
rake (~> 10.0)
|
71
|
+
rubocop (~> 0.67)
|
72
|
+
|
73
|
+
BUNDLED WITH
|
74
|
+
2.0.1
|
data/LICENSE.txt
ADDED
@@ -0,0 +1,21 @@
|
|
1
|
+
The MIT License (MIT)
|
2
|
+
|
3
|
+
Copyright (c) 2019 Yves Siegrist
|
4
|
+
|
5
|
+
Permission is hereby granted, free of charge, to any person obtaining a copy
|
6
|
+
of this software and associated documentation files (the "Software"), to deal
|
7
|
+
in the Software without restriction, including without limitation the rights
|
8
|
+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
9
|
+
copies of the Software, and to permit persons to whom the Software is
|
10
|
+
furnished to do so, subject to the following conditions:
|
11
|
+
|
12
|
+
The above copyright notice and this permission notice shall be included in
|
13
|
+
all copies or substantial portions of the Software.
|
14
|
+
|
15
|
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
16
|
+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
17
|
+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
18
|
+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
19
|
+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
20
|
+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
|
21
|
+
THE SOFTWARE.
|
data/README.md
ADDED
@@ -0,0 +1,57 @@
|
|
1
|
+
# GardenMessenger
|
2
|
+
|
3
|
+
[![Build Status](https://travis-ci.org/siegy22/garden_messenger.svg?branch=master)](https://travis-ci.org/siegy22/garden_messenger)
|
4
|
+
|
5
|
+
Collects data of [AtlasScientific](https://www.atlas-scientific.com/) and [myStrom](https://mystrom.ch/) devices. The data is sent to [garden_monitor](https://github.com/siegy22/garden_monitor).
|
6
|
+
|
7
|
+
Currently supported:
|
8
|
+
|
9
|
+
[ ] [pH Kit](https://www.atlas-scientific.com/product_pages/kits/ph-kit.html)
|
10
|
+
[ ] [Conductivity K 1.0 Kit](https://www.atlas-scientific.com/product_pages/kits/ec_k1_0_kit.html)
|
11
|
+
[ ] [Temperature Kit](https://www.atlas-scientific.com/product_pages/kits/temp_kit.html)
|
12
|
+
[x] [myStrom Switch (CH)](https://mystrom.ch/wifi-switch-ch/)
|
13
|
+
|
14
|
+
|
15
|
+
## Installation
|
16
|
+
|
17
|
+
Add this line to your application's Gemfile:
|
18
|
+
|
19
|
+
Install it:
|
20
|
+
|
21
|
+
```bash
|
22
|
+
gem install garden_messenger
|
23
|
+
```
|
24
|
+
|
25
|
+
Checkout the [service file](/garden_messenger.service) for a template of a systemd service.
|
26
|
+
|
27
|
+
## Usage
|
28
|
+
|
29
|
+
Basic usage:
|
30
|
+
|
31
|
+
```bash
|
32
|
+
garden_messenger report http://garden-monitor.example.com super-secret-token
|
33
|
+
```
|
34
|
+
|
35
|
+
for advanced usage use, see:
|
36
|
+
|
37
|
+
```bash
|
38
|
+
garden_messenger help report
|
39
|
+
```
|
40
|
+
|
41
|
+
## Development
|
42
|
+
|
43
|
+
After checking out the repo, run `bin/setup` to install dependencies. Then, run `rake test` to run the tests. You can also run `bin/console` for an interactive prompt that will allow you to experiment.
|
44
|
+
|
45
|
+
To install this gem onto your local machine, run `bundle exec rake install`. To release a new version, update the version number in `version.rb`, and then run `bundle exec rake release`, which will create a git tag for the version, push git commits and tags, and push the `.gem` file to [rubygems.org](https://rubygems.org).
|
46
|
+
|
47
|
+
## Contributing
|
48
|
+
|
49
|
+
Bug reports and pull requests are welcome on GitHub at https://github.com/siegy22/garden_messenger. This project is intended to be a safe, welcoming space for collaboration, and contributors are expected to adhere to the [Contributor Covenant](http://contributor-covenant.org) code of conduct.
|
50
|
+
|
51
|
+
## License
|
52
|
+
|
53
|
+
The gem is available as open source under the terms of the [MIT License](https://opensource.org/licenses/MIT).
|
54
|
+
|
55
|
+
## Code of Conduct
|
56
|
+
|
57
|
+
Everyone interacting in the GardenMessenger project’s codebases, issue trackers, chat rooms and mailing lists is expected to follow the [code of conduct](https://github.com/siegy22/garden_messenger/blob/master/CODE_OF_CONDUCT.md).
|
data/Rakefile
ADDED
data/bin/console
ADDED
@@ -0,0 +1,14 @@
|
|
1
|
+
#!/usr/bin/env ruby
|
2
|
+
|
3
|
+
require "bundler/setup"
|
4
|
+
require "garden_messenger"
|
5
|
+
|
6
|
+
# You can add fixtures and/or initialization code here to make experimenting
|
7
|
+
# with your gem easier. You can also use a different console, if you like.
|
8
|
+
|
9
|
+
# (If you use this, don't forget to add pry to your Gemfile!)
|
10
|
+
# require "pry"
|
11
|
+
# Pry.start
|
12
|
+
|
13
|
+
require "irb"
|
14
|
+
IRB.start(__FILE__)
|
data/bin/setup
ADDED
data/deploy/after_push
ADDED
@@ -0,0 +1,17 @@
|
|
1
|
+
#!/usr/bin/env zsh
|
2
|
+
set -e
|
3
|
+
oldrev=$1
|
4
|
+
newrev=$2
|
5
|
+
|
6
|
+
run() {
|
7
|
+
[ -x $1 ] && $1 $oldrev $newrev
|
8
|
+
}
|
9
|
+
|
10
|
+
echo files changed: $(git diff $oldrev $newrev --diff-filter=ACDMR --name-only | wc -l)
|
11
|
+
|
12
|
+
umask 002
|
13
|
+
|
14
|
+
git submodule sync && git submodule update --init --recursive
|
15
|
+
|
16
|
+
run deploy/before_restart
|
17
|
+
run deploy/restart && run deploy/after_restart
|
data/deploy/restart
ADDED
@@ -0,0 +1,54 @@
|
|
1
|
+
#!/usr/bin/env ruby
|
2
|
+
|
3
|
+
require 'garden_messenger'
|
4
|
+
require 'thor'
|
5
|
+
|
6
|
+
class MessengerCLI < Thor
|
7
|
+
desc 'report MONITOR_URL TOKEN [options]', 'Report to a monitor which is located on MONITOR_URL'
|
8
|
+
option 'wattage-switch-host'
|
9
|
+
option 'update-rate'
|
10
|
+
option 'verbose', type: :boolean
|
11
|
+
def report(monitor_url, token)
|
12
|
+
reporter = GardenMessenger::Reporter.new(
|
13
|
+
monitor_url,
|
14
|
+
token,
|
15
|
+
options.fetch('update-rate') { 30 },
|
16
|
+
options.fetch('verbose') { false }
|
17
|
+
)
|
18
|
+
|
19
|
+
reporter.report! do
|
20
|
+
data = {}
|
21
|
+
|
22
|
+
if options.key?('wattage-switch-host')
|
23
|
+
wattage = GardenMessenger::Wattage.new(options['wattage-switch-host'])
|
24
|
+
data[:wattage] = wattage.get
|
25
|
+
end
|
26
|
+
|
27
|
+
data[:temp] = rand(18.0...26.0)
|
28
|
+
data[:ph] = rand(4.0...8.0)
|
29
|
+
data[:ec] = rand(0.8...1.6)
|
30
|
+
|
31
|
+
data
|
32
|
+
end
|
33
|
+
end
|
34
|
+
|
35
|
+
desc 'dev', 'Report random values to local monitor'
|
36
|
+
def dev
|
37
|
+
reporter = GardenMessenger::Reporter.new(
|
38
|
+
'ws://localhost:3000/cable',
|
39
|
+
'dev-token',
|
40
|
+
1,
|
41
|
+
true
|
42
|
+
)
|
43
|
+
|
44
|
+
reporter.report! do
|
45
|
+
temp = rand(18.0...26.0)
|
46
|
+
ph = rand(4.0...8.0)
|
47
|
+
ec = rand(0.8...1.6)
|
48
|
+
wattage = rand(700.0...800.0)
|
49
|
+
{ temp: temp, ph: ph, ec: ec, wattage: wattage }
|
50
|
+
end
|
51
|
+
end
|
52
|
+
end
|
53
|
+
|
54
|
+
MessengerCLI.start(ARGV)
|
@@ -0,0 +1,34 @@
|
|
1
|
+
lib = File.expand_path('lib', __dir__)
|
2
|
+
$LOAD_PATH.unshift(lib) unless $LOAD_PATH.include?(lib)
|
3
|
+
require 'garden_messenger/version'
|
4
|
+
|
5
|
+
Gem::Specification.new do |spec|
|
6
|
+
spec.name = 'garden_messenger'
|
7
|
+
spec.version = GardenMessenger::VERSION
|
8
|
+
spec.authors = ['Yves Siegrist']
|
9
|
+
spec.email = ['Elektron1c97@gmail.com']
|
10
|
+
|
11
|
+
spec.summary = 'Delivery boy for garden_monitor'
|
12
|
+
spec.description = '...'
|
13
|
+
spec.homepage = 'https://github.com/siegy22/garden_messenger'
|
14
|
+
spec.license = 'MIT'
|
15
|
+
|
16
|
+
# Specify which files should be added to the gem when it is released.
|
17
|
+
# The `git ls-files -z` loads the files in the RubyGem that have been added into git.
|
18
|
+
spec.files = Dir.chdir(File.expand_path(__dir__)) do
|
19
|
+
`git ls-files -z`.split("\x0").reject { |f| f.match(%r{^(test|spec|features)/}) }
|
20
|
+
end
|
21
|
+
spec.bindir = 'exe'
|
22
|
+
spec.executables = spec.files.grep(%r{^exe/}) { |f| File.basename(f) }
|
23
|
+
spec.require_paths = ['lib']
|
24
|
+
|
25
|
+
spec.add_dependency 'action_cable_client', '~> 3.0'
|
26
|
+
spec.add_dependency 'http', '~> 4.1'
|
27
|
+
spec.add_dependency 'i2c-devices', '~> 0.0.6'
|
28
|
+
spec.add_dependency 'thor', '~> 0.20'
|
29
|
+
|
30
|
+
spec.add_development_dependency 'bundler', '~> 2.0'
|
31
|
+
spec.add_development_dependency 'minitest', '~> 5.0'
|
32
|
+
spec.add_development_dependency 'rake', '~> 10.0'
|
33
|
+
spec.add_development_dependency 'rubocop', '~> 0.67'
|
34
|
+
end
|
@@ -0,0 +1,15 @@
|
|
1
|
+
[Unit]
|
2
|
+
Description=Garden messenger captures data of your garden.
|
3
|
+
Wants=network-online.target
|
4
|
+
After=network-online.target
|
5
|
+
|
6
|
+
[Service]
|
7
|
+
Type=simple
|
8
|
+
Restart=always
|
9
|
+
RestartSec=1
|
10
|
+
User=siegy
|
11
|
+
|
12
|
+
ExecStart=/bin/zsh -lc "garden_messenger report $MESSENGER_MONITOR_URL $MESSENGER_TOKEN --verbose"
|
13
|
+
|
14
|
+
[Install]
|
15
|
+
WantedBy=multi-user.target
|
@@ -0,0 +1,62 @@
|
|
1
|
+
require 'action_cable_client'
|
2
|
+
require 'eventmachine'
|
3
|
+
|
4
|
+
module GardenMessenger
|
5
|
+
class Reporter
|
6
|
+
def initialize(monitor_url, token, update_rate, verbose = false)
|
7
|
+
@monitor_url = monitor_url
|
8
|
+
@token = token
|
9
|
+
@update_rate = update_rate
|
10
|
+
@verbose = verbose
|
11
|
+
|
12
|
+
if @verbose
|
13
|
+
puts "Initialized #{self.class.name}:"
|
14
|
+
puts " > monitor_url: #{@monitor_url}"
|
15
|
+
puts " > token: #{@token}"
|
16
|
+
puts " > update_rate: #{@update_rate} (seconds)"
|
17
|
+
end
|
18
|
+
end
|
19
|
+
|
20
|
+
def report!
|
21
|
+
EventMachine.run do
|
22
|
+
Signal.trap('INT') { EventMachine.stop }
|
23
|
+
Signal.trap('TERM') { EventMachine.stop }
|
24
|
+
|
25
|
+
client = ActionCableClient.new(
|
26
|
+
@monitor_url,
|
27
|
+
'MessengerChannel',
|
28
|
+
true,
|
29
|
+
Authorization: "Token #{@token}"
|
30
|
+
)
|
31
|
+
|
32
|
+
# called whenever a welcome message is received from the server
|
33
|
+
client.connected do
|
34
|
+
if @verbose
|
35
|
+
puts 'Connection established with monitor ' \
|
36
|
+
"on #{@monitor_url}"
|
37
|
+
end
|
38
|
+
Thread.new do
|
39
|
+
loop do
|
40
|
+
data = yield
|
41
|
+
puts "Sending data: #{data.to_json}" if @verbose
|
42
|
+
client.perform('report', data)
|
43
|
+
|
44
|
+
sleep @update_rate
|
45
|
+
end
|
46
|
+
end
|
47
|
+
end
|
48
|
+
|
49
|
+
client.disconnected do
|
50
|
+
puts 'Disconnected from monitor, exiting'
|
51
|
+
exit 1
|
52
|
+
end
|
53
|
+
|
54
|
+
client.errored do |error|
|
55
|
+
puts "Error received: #{error}"
|
56
|
+
end
|
57
|
+
|
58
|
+
client.received
|
59
|
+
end
|
60
|
+
end
|
61
|
+
end
|
62
|
+
end
|
data/log/.keep
ADDED
File without changes
|
metadata
ADDED
@@ -0,0 +1,178 @@
|
|
1
|
+
--- !ruby/object:Gem::Specification
|
2
|
+
name: garden_messenger
|
3
|
+
version: !ruby/object:Gem::Version
|
4
|
+
version: 0.1.0
|
5
|
+
platform: ruby
|
6
|
+
authors:
|
7
|
+
- Yves Siegrist
|
8
|
+
autorequire:
|
9
|
+
bindir: exe
|
10
|
+
cert_chain: []
|
11
|
+
date: 2019-04-18 00:00:00.000000000 Z
|
12
|
+
dependencies:
|
13
|
+
- !ruby/object:Gem::Dependency
|
14
|
+
name: action_cable_client
|
15
|
+
requirement: !ruby/object:Gem::Requirement
|
16
|
+
requirements:
|
17
|
+
- - "~>"
|
18
|
+
- !ruby/object:Gem::Version
|
19
|
+
version: '3.0'
|
20
|
+
type: :runtime
|
21
|
+
prerelease: false
|
22
|
+
version_requirements: !ruby/object:Gem::Requirement
|
23
|
+
requirements:
|
24
|
+
- - "~>"
|
25
|
+
- !ruby/object:Gem::Version
|
26
|
+
version: '3.0'
|
27
|
+
- !ruby/object:Gem::Dependency
|
28
|
+
name: http
|
29
|
+
requirement: !ruby/object:Gem::Requirement
|
30
|
+
requirements:
|
31
|
+
- - "~>"
|
32
|
+
- !ruby/object:Gem::Version
|
33
|
+
version: '4.1'
|
34
|
+
type: :runtime
|
35
|
+
prerelease: false
|
36
|
+
version_requirements: !ruby/object:Gem::Requirement
|
37
|
+
requirements:
|
38
|
+
- - "~>"
|
39
|
+
- !ruby/object:Gem::Version
|
40
|
+
version: '4.1'
|
41
|
+
- !ruby/object:Gem::Dependency
|
42
|
+
name: i2c-devices
|
43
|
+
requirement: !ruby/object:Gem::Requirement
|
44
|
+
requirements:
|
45
|
+
- - "~>"
|
46
|
+
- !ruby/object:Gem::Version
|
47
|
+
version: 0.0.6
|
48
|
+
type: :runtime
|
49
|
+
prerelease: false
|
50
|
+
version_requirements: !ruby/object:Gem::Requirement
|
51
|
+
requirements:
|
52
|
+
- - "~>"
|
53
|
+
- !ruby/object:Gem::Version
|
54
|
+
version: 0.0.6
|
55
|
+
- !ruby/object:Gem::Dependency
|
56
|
+
name: thor
|
57
|
+
requirement: !ruby/object:Gem::Requirement
|
58
|
+
requirements:
|
59
|
+
- - "~>"
|
60
|
+
- !ruby/object:Gem::Version
|
61
|
+
version: '0.20'
|
62
|
+
type: :runtime
|
63
|
+
prerelease: false
|
64
|
+
version_requirements: !ruby/object:Gem::Requirement
|
65
|
+
requirements:
|
66
|
+
- - "~>"
|
67
|
+
- !ruby/object:Gem::Version
|
68
|
+
version: '0.20'
|
69
|
+
- !ruby/object:Gem::Dependency
|
70
|
+
name: bundler
|
71
|
+
requirement: !ruby/object:Gem::Requirement
|
72
|
+
requirements:
|
73
|
+
- - "~>"
|
74
|
+
- !ruby/object:Gem::Version
|
75
|
+
version: '2.0'
|
76
|
+
type: :development
|
77
|
+
prerelease: false
|
78
|
+
version_requirements: !ruby/object:Gem::Requirement
|
79
|
+
requirements:
|
80
|
+
- - "~>"
|
81
|
+
- !ruby/object:Gem::Version
|
82
|
+
version: '2.0'
|
83
|
+
- !ruby/object:Gem::Dependency
|
84
|
+
name: minitest
|
85
|
+
requirement: !ruby/object:Gem::Requirement
|
86
|
+
requirements:
|
87
|
+
- - "~>"
|
88
|
+
- !ruby/object:Gem::Version
|
89
|
+
version: '5.0'
|
90
|
+
type: :development
|
91
|
+
prerelease: false
|
92
|
+
version_requirements: !ruby/object:Gem::Requirement
|
93
|
+
requirements:
|
94
|
+
- - "~>"
|
95
|
+
- !ruby/object:Gem::Version
|
96
|
+
version: '5.0'
|
97
|
+
- !ruby/object:Gem::Dependency
|
98
|
+
name: rake
|
99
|
+
requirement: !ruby/object:Gem::Requirement
|
100
|
+
requirements:
|
101
|
+
- - "~>"
|
102
|
+
- !ruby/object:Gem::Version
|
103
|
+
version: '10.0'
|
104
|
+
type: :development
|
105
|
+
prerelease: false
|
106
|
+
version_requirements: !ruby/object:Gem::Requirement
|
107
|
+
requirements:
|
108
|
+
- - "~>"
|
109
|
+
- !ruby/object:Gem::Version
|
110
|
+
version: '10.0'
|
111
|
+
- !ruby/object:Gem::Dependency
|
112
|
+
name: rubocop
|
113
|
+
requirement: !ruby/object:Gem::Requirement
|
114
|
+
requirements:
|
115
|
+
- - "~>"
|
116
|
+
- !ruby/object:Gem::Version
|
117
|
+
version: '0.67'
|
118
|
+
type: :development
|
119
|
+
prerelease: false
|
120
|
+
version_requirements: !ruby/object:Gem::Requirement
|
121
|
+
requirements:
|
122
|
+
- - "~>"
|
123
|
+
- !ruby/object:Gem::Version
|
124
|
+
version: '0.67'
|
125
|
+
description: "..."
|
126
|
+
email:
|
127
|
+
- Elektron1c97@gmail.com
|
128
|
+
executables:
|
129
|
+
- garden_messenger
|
130
|
+
extensions: []
|
131
|
+
extra_rdoc_files: []
|
132
|
+
files:
|
133
|
+
- ".gitignore"
|
134
|
+
- ".rubocop.yml"
|
135
|
+
- ".travis.yml"
|
136
|
+
- CODE_OF_CONDUCT.md
|
137
|
+
- Gemfile
|
138
|
+
- Gemfile.lock
|
139
|
+
- LICENSE.txt
|
140
|
+
- README.md
|
141
|
+
- Rakefile
|
142
|
+
- bin/console
|
143
|
+
- bin/setup
|
144
|
+
- deploy/after_push
|
145
|
+
- deploy/before_restart
|
146
|
+
- deploy/restart
|
147
|
+
- exe/garden_messenger
|
148
|
+
- garden_messenger.gemspec
|
149
|
+
- garden_messenger.service
|
150
|
+
- lib/garden_messenger.rb
|
151
|
+
- lib/garden_messenger/reporter.rb
|
152
|
+
- lib/garden_messenger/version.rb
|
153
|
+
- lib/garden_messenger/wattage.rb
|
154
|
+
- log/.keep
|
155
|
+
homepage: https://github.com/siegy22/garden_messenger
|
156
|
+
licenses:
|
157
|
+
- MIT
|
158
|
+
metadata: {}
|
159
|
+
post_install_message:
|
160
|
+
rdoc_options: []
|
161
|
+
require_paths:
|
162
|
+
- lib
|
163
|
+
required_ruby_version: !ruby/object:Gem::Requirement
|
164
|
+
requirements:
|
165
|
+
- - ">="
|
166
|
+
- !ruby/object:Gem::Version
|
167
|
+
version: '0'
|
168
|
+
required_rubygems_version: !ruby/object:Gem::Requirement
|
169
|
+
requirements:
|
170
|
+
- - ">="
|
171
|
+
- !ruby/object:Gem::Version
|
172
|
+
version: '0'
|
173
|
+
requirements: []
|
174
|
+
rubygems_version: 3.0.3
|
175
|
+
signing_key:
|
176
|
+
specification_version: 4
|
177
|
+
summary: Delivery boy for garden_monitor
|
178
|
+
test_files: []
|