saj_collector 0.4.1 → 0.4.2
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/exe/saj_output_collector +2 -2
- data/lib/saj_collector/version.rb +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: 84b1f089d21fe7b2607831604bd73b5f6ce2ea1a
|
4
|
+
data.tar.gz: 60476102c4dc01e536dd3631e9a4c6f3f59c2301
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 7974f3241aec861265b0c8808cc95903db5dca1bbfbc499d34b03096ccb777f1a92e0b2067fe41605e4fed8ad9e45fe27ebc376aad7b268882993b51de34d3a6
|
7
|
+
data.tar.gz: 45bc659c9ff52c432c3221b4b8d6f486ff1f06be4f0362bc892c07d396df1e1b9247e992c40d0de1a06117b43c3558c0b9ca010947f79620cda67181bf193811
|
data/README.md
CHANGED
@@ -46,7 +46,7 @@ that the ``saj_collector.yaml`` file can be found. For example when you put the
|
|
46
46
|
in /usr/local/bin (and also the gem) and want to run it each 5 minutes between 6AM and 10PM you should
|
47
47
|
add to your crontab
|
48
48
|
|
49
|
-
*/5 6-
|
49
|
+
*/5 6-21 * * * cd /usr/local/bin && ruby /usr/local/bin/saj_collector
|
50
50
|
|
51
51
|
## Development
|
52
52
|
|
data/exe/saj_output_collector
CHANGED
@@ -29,7 +29,7 @@ options = {
|
|
29
29
|
}
|
30
30
|
|
31
31
|
counter = 0
|
32
|
-
current_day = '00
|
32
|
+
current_day = '00'
|
33
33
|
|
34
34
|
while counter < days
|
35
35
|
value = {
|
@@ -44,7 +44,7 @@ while counter < days
|
|
44
44
|
end
|
45
45
|
|
46
46
|
options.each do |date, values|
|
47
|
-
puts "Energy generated #{date}
|
47
|
+
puts "Energy generated #{date}: #{values[:energy_generated]} WH"
|
48
48
|
end
|
49
49
|
|
50
50
|
pvoutput.add_batch_output(options)
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: saj_collector
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.4.
|
4
|
+
version: 0.4.2
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Johnny Willemsen
|
8
8
|
autorequire:
|
9
9
|
bindir: exe
|
10
10
|
cert_chain: []
|
11
|
-
date: 2016-07-
|
11
|
+
date: 2016-07-31 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: pvoutput
|