sunnycarcharger-agent 1.0.0 → 1.0.1

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 300f7e97fe554caf8db90f6c9cb4f428ffbff5648b5cd5b0dfee1da5fcd1bff6
4
- data.tar.gz: 6ccfa0cbf5bd490af1905231fe0ccbdd3fa127a0a8053d6a6b93752478edf36c
3
+ metadata.gz: 4cc163cef70baf79b80498709b076f9a0a74f2eb4f900631d79ffb81ad695054
4
+ data.tar.gz: e301473d0bee7e6b37ec83a4269b747d9b11fe2cd71839d73af4ae2d35c5a4c2
5
5
  SHA512:
6
- metadata.gz: 1a308ac0eb698c3f9bf2453ca259045816a9583303e2693a68f1972a615174ef1a1b46d3717442b1f17a631724e6441166870dc2882e632f29367de89ae691e0
7
- data.tar.gz: ace0fe2c2323c3fa8b5030924b09041ce2d32e8ef2e12041e0649fff781aaf66513af66c27e515e1ed8a3f2457f37e502660b613b34352a72313b790798cc522
6
+ metadata.gz: 25eb2c5fbc379f7487184a7fa3a3dbeef4b285701f79db586d28f3384673830de4d405df3903d20fea7da08f3d2f924f673d0d8ddc005149ec6da7e22d07380f
7
+ data.tar.gz: e6e9d1c89de05beb1b83cfd6463fbab3fdeeee8adb29644fc97741edccf857fef9982451e905ab00e6c742b2581d3714e6bdffaeb702afcf3e77b5f92207cf18
data/README.md CHANGED
@@ -1,34 +1,27 @@
1
- # Sunnycarcharger::Agent
1
+ # Sunny Car Charger Agent
2
2
 
3
- TODO: Delete this and the text below, and describe your gem
3
+ Send your solar invertor's data to Sunny Car Charger portal and automatically
4
+ controller the charging rate of your electric cars.
4
5
 
5
- Welcome to your new gem! In this directory, you'll find the files you need to be able to package up your Ruby library into a gem. Put your Ruby code in the file `lib/sunnycarcharger/agent`. To experiment with that code, run `bin/console` for an interactive prompt.
6
+ Agent currently supports inverters:
6
7
 
7
- ## Installation
8
-
9
- TODO: Replace `UPDATE_WITH_YOUR_GEM_NAME_PRIOR_TO_RELEASE_TO_RUBYGEMS_ORG` with your gem name right after releasing it to RubyGems.org. Please do not do it earlier due to security reasons. Alternatively, replace this section with instructions to install your gem from git if you don't plan to release to RubyGems.org.
8
+ * Fronius (set `$FRONIUS_IP` environment variable)
10
9
 
11
- Install the gem and add to the application's Gemfile by executing:
10
+ ## Setup
12
11
 
13
- $ bundle add UPDATE_WITH_YOUR_GEM_NAME_PRIOR_TO_RELEASE_TO_RUBYGEMS_ORG
12
+ Create an account with <https://sunnycarcharger.com> and get your account token.
14
13
 
15
- If bundler is not being used to manage dependencies, install the gem by executing:
14
+ ## Installation
16
15
 
17
- $ gem install UPDATE_WITH_YOUR_GEM_NAME_PRIOR_TO_RELEASE_TO_RUBYGEMS_ORG
16
+ ```plain
17
+ gem install sunnycarcharger-agent
18
+ ```
18
19
 
19
20
  ## Usage
20
21
 
21
- TODO: Write usage instructions here
22
-
23
- ## Development
24
-
25
- 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.
26
-
27
- 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 the created tag, and push the `.gem` file to [rubygems.org](https://rubygems.org).
28
-
29
- ## Contributing
30
-
31
- Bug reports and pull requests are welcome on GitHub at https://github.com/[USERNAME]/sunnycarcharger-agent. This project is intended to be a safe, welcoming space for collaboration, and contributors are expected to adhere to the [code of conduct](https://github.com/[USERNAME]/sunnycarcharger-agent/blob/develop/CODE_OF_CONDUCT.md).
22
+ ```plain
23
+ FRONIUS_IP=192.168.1.2 WEB_TOKEN=<token from sunnycarcharger.com> sunnycarcharger-agent
24
+ ```
32
25
 
33
26
  ## License
34
27
 
@@ -28,7 +28,7 @@ loop do
28
28
  end
29
29
 
30
30
  begin
31
- web_client.publish(invertor_data) if invertor_data
31
+ web_client.publish(invertor_data.as_json) if invertor_data
32
32
  rescue Faraday::ConnectionFailed, Errno::ECONNREFUSED
33
33
  warn "ERROR: Web #{Config.web_url} could not be connected"
34
34
  end
@@ -2,6 +2,6 @@
2
2
 
3
3
  module Sunnycarcharger
4
4
  module Agent
5
- VERSION = "1.0.0"
5
+ VERSION = "1.0.1"
6
6
  end
7
7
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: sunnycarcharger-agent
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.0.0
4
+ version: 1.0.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Dr Nic Williams
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2023-07-25 00:00:00.000000000 Z
11
+ date: 2023-07-26 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: anyway_config