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.
- checksums.yaml +4 -4
- data/alpha_ess.gemspec +1 -1
- data/lib/alpha_ess.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 5fbebf3e6f3864431465895ab010a8e853b491e2890194310b3bcd2762619f8c
|
4
|
+
data.tar.gz: edeca96c4f687dce304a3203aca4b3924472b3d5c9d7a29e5dfc5e5636af2dc1
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 9d9bac8bd3f91bb2f4ecc14ba293424c6accf75a0f47e701f6476efa48302a734fc19c9abf7bd7b8cc64dfaf9261161c117f717d5abcaf74ca671160bdf5cce3
|
7
|
+
data.tar.gz: 367da2ac4f3d8868c51f9452343fc947d10f9cce351f69d71b7cd043b16f916fb111a58bace1265f94ee9682305aee0ce3cb21c73f90546a5bc5e8a018c6d495
|
data/alpha_ess.gemspec
CHANGED
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=#{
|
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
|