alpha_ess 1.2.2 → 1.2.3

Sign up to get free protection for your applications and to get access to all the features.
Files changed (4) hide show
  1. checksums.yaml +4 -4
  2. data/alpha_ess.gemspec +1 -1
  3. data/lib/alpha_ess.rb +1 -1
  4. metadata +1 -1
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: c81cbe7a51a271d210972e96ba79ab88775e6a8021d822572072b056cc0c4b2a
4
- data.tar.gz: 53cfca26ba154a13195698cf0068b926229f10080e496c9d91b08298b6cf9dc2
3
+ metadata.gz: 5fbebf3e6f3864431465895ab010a8e853b491e2890194310b3bcd2762619f8c
4
+ data.tar.gz: edeca96c4f687dce304a3203aca4b3924472b3d5c9d7a29e5dfc5e5636af2dc1
5
5
  SHA512:
6
- metadata.gz: b02e6738a07f151c35872be94e15c89a8f50031502d2ac3633eef728361ead1744c48af002f208e90c0215ede33014d9ab3133f2e5a36558b52c892a6ee1cc6a
7
- data.tar.gz: 7013a66d7298c9a34b159026131ef02c993d8806dd32465ae950dea78b4f18318041e931af3238d4eb488b20617ea6f917c43d9ea1c002a46b00709d59769170
6
+ metadata.gz: 9d9bac8bd3f91bb2f4ecc14ba293424c6accf75a0f47e701f6476efa48302a734fc19c9abf7bd7b8cc64dfaf9261161c117f717d5abcaf74ca671160bdf5cce3
7
+ data.tar.gz: 367da2ac4f3d8868c51f9452343fc947d10f9cce351f69d71b7cd043b16f916fb111a58bace1265f94ee9682305aee0ce3cb21c73f90546a5bc5e8a018c6d495
data/alpha_ess.gemspec CHANGED
@@ -1,6 +1,6 @@
1
1
  Gem::Specification.new do |spec|
2
2
  spec.name = 'alpha_ess'
3
- spec.version = '1.2.2'
3
+ spec.version = '1.2.3'
4
4
  spec.date = '2022-10-31'
5
5
  spec.summary = "Alpha Ess API Calls"
6
6
  spec.description = "a Ruby class for Alpha-Ess-API-Calls"
data/lib/alpha_ess.rb CHANGED
@@ -37,7 +37,7 @@ class AlphaEss
37
37
  end
38
38
 
39
39
  def get_stics_by_period(beginDay = Time.now.strftime("%Y-%m-%d"), endDay = Time.now.strftime("%Y-%m-%d"))
40
- url = "https://cloud.alphaess.com/api/Power/SticsByPeriod?beginDay=#{beginDay}&endDay=#{endDay}&tday=#{tday}&isOEM=0&SN=#{@serial}&noLoading=true"
40
+ url = "https://cloud.alphaess.com/api/Power/SticsByPeriod?beginDay=#{beginDay}&endDay=#{endDay}&tday=#{Time.now.strftime("%Y-%m-%d")}&isOEM=0&SN=#{@serial}&noLoading=true"
41
41
  res = HTTParty.get(url, headers: header())
42
42
  res.parsed_response["data"]
43
43
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: alpha_ess
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.2.2
4
+ version: 1.2.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - Oliver Gaida