smartermeter 0.2.1 → 0.3.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- data/CHANGELOG.md +5 -0
- data/Gemfile +1 -0
- data/LICENSE +7 -0
- data/README.md +17 -6
- data/Rakefile +82 -34
- data/icons/smartermeter-16x16.png +0 -0
- data/icons/smartermeter-32x32.png +0 -0
- data/icons/smartermeter.ico +0 -0
- data/icons/smartermeter.svg +1899 -0
- data/installer/launch4j.xml +27 -0
- data/{lib/smartermeter → installer}/main.rb +14 -0
- data/installer/nsis.nsi +102 -0
- data/lib/smartermeter/interfaces/swing.rb +406 -5
- data/lib/smartermeter/service.rb +3 -3
- data/lib/smartermeter.rb +1 -1
- data/smartermeter.gemspec +12 -6
- data/specs/fixtures/data.csv +1 -1
- data/specs/fixtures/expected_google_request.xml +70 -70
- data/specs/sample_spec.rb +8 -2
- metadata +23 -17
- data/build_configuration.rb +0 -89
data/specs/fixtures/data.csv
CHANGED
@@ -11,7 +11,7 @@
|
|
11
11
|
"Secondary Data Unit","-"
|
12
12
|
|
13
13
|
"","12:00 AM","1:00 AM","2:00 AM","3:00 AM","4:00 AM","5:00 AM","6:00 AM","7:00 AM","8:00 AM","9:00 AM","10:00 AM","11:00 AM","12:00 PM","1:00 PM","2:00 PM","3:00 PM","4:00 PM","5:00 PM","6:00 PM","7:00 PM","8:00 PM","9:00 PM","10:00 PM","11:00 PM"
|
14
|
-
"9/27/2009","
|
14
|
+
"9/27/2009","-",".205",".257",".131",".142",".136",".127",".137",".136",".134",".416","1.732","1.844",".190",".189",".182",".173","1.136","3.550","3.011","1.426",".508",".580",".316"
|
15
15
|
"9/28/2009",".142",".165",".140",".148",".157",".138",".140",".607",".709",".183",".131",".134",".144",".143",".135",".214",".179",".161",".165",".661",".461",".390",".467",".239"
|
16
16
|
"9/29/2009",".271",".124",".127",".122",".133",".131",".121",".149",".723",".409",".388",".317",".341",".335",".338",".341",".310",".298",".316","1.561",".601",".463",".494",".471"
|
17
17
|
"9/30/2009",".536",".224",".136",".131",".133",".128",".128",".104",".518",".706",".385",".320",".338",".373",".227",".097",".088",".097",".093",".099",".100",".090",".095",".092"
|
@@ -9,281 +9,281 @@
|
|
9
9
|
<meter:startTime meter:uncertainty="1.000000">2009-09-27T07:00:00.000Z</meter:startTime>
|
10
10
|
<meter:endTime meter:uncertainty="1.000000">2009-09-27T08:00:00.000Z</meter:endTime>
|
11
11
|
<meter:quantity meter:uncertainty="0.001000" meter:unit="kW h">
|
12
|
-
|
12
|
+
|
13
13
|
</meter:quantity>
|
14
14
|
</entry>
|
15
15
|
|
16
16
|
<entry xmlns="http://www.w3.org/2005/Atom" xmlns:meter="http://schemas.google.com/meter/2008">
|
17
|
-
<id>https://www.google.com/powermeter/feeds/path/durMeasurement/2009-09-
|
17
|
+
<id>https://www.google.com/powermeter/feeds/path/durMeasurement/2009-09-27T08_00_00.000Z</id>
|
18
18
|
<category scheme="http://schemas.google.com/g/2005#kind"
|
19
19
|
term="http://schemas.google.com/meter/2008#durMeasurement"/>
|
20
20
|
<meter:subject>https://www.google.com/powermeter/feeds/path</meter:subject>
|
21
|
-
<meter:startTime meter:uncertainty="1.000000">2009-09-
|
22
|
-
<meter:endTime meter:uncertainty="1.000000">2009-09-
|
21
|
+
<meter:startTime meter:uncertainty="1.000000">2009-09-27T08:00:00.000Z</meter:startTime>
|
22
|
+
<meter:endTime meter:uncertainty="1.000000">2009-09-27T09:00:00.000Z</meter:endTime>
|
23
23
|
<meter:quantity meter:uncertainty="0.001000" meter:unit="kW h">
|
24
24
|
0.205
|
25
25
|
</meter:quantity>
|
26
26
|
</entry>
|
27
27
|
|
28
28
|
<entry xmlns="http://www.w3.org/2005/Atom" xmlns:meter="http://schemas.google.com/meter/2008">
|
29
|
-
<id>https://www.google.com/powermeter/feeds/path/durMeasurement/2009-09-
|
29
|
+
<id>https://www.google.com/powermeter/feeds/path/durMeasurement/2009-09-27T09_00_00.000Z</id>
|
30
30
|
<category scheme="http://schemas.google.com/g/2005#kind"
|
31
31
|
term="http://schemas.google.com/meter/2008#durMeasurement"/>
|
32
32
|
<meter:subject>https://www.google.com/powermeter/feeds/path</meter:subject>
|
33
|
-
<meter:startTime meter:uncertainty="1.000000">2009-09-
|
34
|
-
<meter:endTime meter:uncertainty="1.000000">2009-09-
|
33
|
+
<meter:startTime meter:uncertainty="1.000000">2009-09-27T09:00:00.000Z</meter:startTime>
|
34
|
+
<meter:endTime meter:uncertainty="1.000000">2009-09-27T10:00:00.000Z</meter:endTime>
|
35
35
|
<meter:quantity meter:uncertainty="0.001000" meter:unit="kW h">
|
36
36
|
0.257
|
37
37
|
</meter:quantity>
|
38
38
|
</entry>
|
39
39
|
|
40
40
|
<entry xmlns="http://www.w3.org/2005/Atom" xmlns:meter="http://schemas.google.com/meter/2008">
|
41
|
-
<id>https://www.google.com/powermeter/feeds/path/durMeasurement/2009-09-
|
41
|
+
<id>https://www.google.com/powermeter/feeds/path/durMeasurement/2009-09-27T10_00_00.000Z</id>
|
42
42
|
<category scheme="http://schemas.google.com/g/2005#kind"
|
43
43
|
term="http://schemas.google.com/meter/2008#durMeasurement"/>
|
44
44
|
<meter:subject>https://www.google.com/powermeter/feeds/path</meter:subject>
|
45
|
-
<meter:startTime meter:uncertainty="1.000000">2009-09-
|
46
|
-
<meter:endTime meter:uncertainty="1.000000">2009-09-
|
45
|
+
<meter:startTime meter:uncertainty="1.000000">2009-09-27T10:00:00.000Z</meter:startTime>
|
46
|
+
<meter:endTime meter:uncertainty="1.000000">2009-09-27T11:00:00.000Z</meter:endTime>
|
47
47
|
<meter:quantity meter:uncertainty="0.001000" meter:unit="kW h">
|
48
48
|
0.131
|
49
49
|
</meter:quantity>
|
50
50
|
</entry>
|
51
51
|
|
52
52
|
<entry xmlns="http://www.w3.org/2005/Atom" xmlns:meter="http://schemas.google.com/meter/2008">
|
53
|
-
<id>https://www.google.com/powermeter/feeds/path/durMeasurement/2009-09-
|
53
|
+
<id>https://www.google.com/powermeter/feeds/path/durMeasurement/2009-09-27T11_00_00.000Z</id>
|
54
54
|
<category scheme="http://schemas.google.com/g/2005#kind"
|
55
55
|
term="http://schemas.google.com/meter/2008#durMeasurement"/>
|
56
56
|
<meter:subject>https://www.google.com/powermeter/feeds/path</meter:subject>
|
57
|
-
<meter:startTime meter:uncertainty="1.000000">2009-09-
|
58
|
-
<meter:endTime meter:uncertainty="1.000000">2009-09-
|
57
|
+
<meter:startTime meter:uncertainty="1.000000">2009-09-27T11:00:00.000Z</meter:startTime>
|
58
|
+
<meter:endTime meter:uncertainty="1.000000">2009-09-27T12:00:00.000Z</meter:endTime>
|
59
59
|
<meter:quantity meter:uncertainty="0.001000" meter:unit="kW h">
|
60
60
|
0.142
|
61
61
|
</meter:quantity>
|
62
62
|
</entry>
|
63
63
|
|
64
64
|
<entry xmlns="http://www.w3.org/2005/Atom" xmlns:meter="http://schemas.google.com/meter/2008">
|
65
|
-
<id>https://www.google.com/powermeter/feeds/path/durMeasurement/2009-09-
|
65
|
+
<id>https://www.google.com/powermeter/feeds/path/durMeasurement/2009-09-27T12_00_00.000Z</id>
|
66
66
|
<category scheme="http://schemas.google.com/g/2005#kind"
|
67
67
|
term="http://schemas.google.com/meter/2008#durMeasurement"/>
|
68
68
|
<meter:subject>https://www.google.com/powermeter/feeds/path</meter:subject>
|
69
|
-
<meter:startTime meter:uncertainty="1.000000">2009-09-
|
70
|
-
<meter:endTime meter:uncertainty="1.000000">2009-09-
|
69
|
+
<meter:startTime meter:uncertainty="1.000000">2009-09-27T12:00:00.000Z</meter:startTime>
|
70
|
+
<meter:endTime meter:uncertainty="1.000000">2009-09-27T13:00:00.000Z</meter:endTime>
|
71
71
|
<meter:quantity meter:uncertainty="0.001000" meter:unit="kW h">
|
72
72
|
0.136
|
73
73
|
</meter:quantity>
|
74
74
|
</entry>
|
75
75
|
|
76
76
|
<entry xmlns="http://www.w3.org/2005/Atom" xmlns:meter="http://schemas.google.com/meter/2008">
|
77
|
-
<id>https://www.google.com/powermeter/feeds/path/durMeasurement/2009-09-
|
77
|
+
<id>https://www.google.com/powermeter/feeds/path/durMeasurement/2009-09-27T13_00_00.000Z</id>
|
78
78
|
<category scheme="http://schemas.google.com/g/2005#kind"
|
79
79
|
term="http://schemas.google.com/meter/2008#durMeasurement"/>
|
80
80
|
<meter:subject>https://www.google.com/powermeter/feeds/path</meter:subject>
|
81
|
-
<meter:startTime meter:uncertainty="1.000000">2009-09-
|
82
|
-
<meter:endTime meter:uncertainty="1.000000">2009-09-
|
81
|
+
<meter:startTime meter:uncertainty="1.000000">2009-09-27T13:00:00.000Z</meter:startTime>
|
82
|
+
<meter:endTime meter:uncertainty="1.000000">2009-09-27T14:00:00.000Z</meter:endTime>
|
83
83
|
<meter:quantity meter:uncertainty="0.001000" meter:unit="kW h">
|
84
84
|
0.127
|
85
85
|
</meter:quantity>
|
86
86
|
</entry>
|
87
87
|
|
88
88
|
<entry xmlns="http://www.w3.org/2005/Atom" xmlns:meter="http://schemas.google.com/meter/2008">
|
89
|
-
<id>https://www.google.com/powermeter/feeds/path/durMeasurement/2009-09-
|
89
|
+
<id>https://www.google.com/powermeter/feeds/path/durMeasurement/2009-09-27T14_00_00.000Z</id>
|
90
90
|
<category scheme="http://schemas.google.com/g/2005#kind"
|
91
91
|
term="http://schemas.google.com/meter/2008#durMeasurement"/>
|
92
92
|
<meter:subject>https://www.google.com/powermeter/feeds/path</meter:subject>
|
93
|
-
<meter:startTime meter:uncertainty="1.000000">2009-09-
|
94
|
-
<meter:endTime meter:uncertainty="1.000000">2009-09-
|
93
|
+
<meter:startTime meter:uncertainty="1.000000">2009-09-27T14:00:00.000Z</meter:startTime>
|
94
|
+
<meter:endTime meter:uncertainty="1.000000">2009-09-27T15:00:00.000Z</meter:endTime>
|
95
95
|
<meter:quantity meter:uncertainty="0.001000" meter:unit="kW h">
|
96
96
|
0.137
|
97
97
|
</meter:quantity>
|
98
98
|
</entry>
|
99
99
|
|
100
100
|
<entry xmlns="http://www.w3.org/2005/Atom" xmlns:meter="http://schemas.google.com/meter/2008">
|
101
|
-
<id>https://www.google.com/powermeter/feeds/path/durMeasurement/2009-09-
|
101
|
+
<id>https://www.google.com/powermeter/feeds/path/durMeasurement/2009-09-27T15_00_00.000Z</id>
|
102
102
|
<category scheme="http://schemas.google.com/g/2005#kind"
|
103
103
|
term="http://schemas.google.com/meter/2008#durMeasurement"/>
|
104
104
|
<meter:subject>https://www.google.com/powermeter/feeds/path</meter:subject>
|
105
|
-
<meter:startTime meter:uncertainty="1.000000">2009-09-
|
106
|
-
<meter:endTime meter:uncertainty="1.000000">2009-09-
|
105
|
+
<meter:startTime meter:uncertainty="1.000000">2009-09-27T15:00:00.000Z</meter:startTime>
|
106
|
+
<meter:endTime meter:uncertainty="1.000000">2009-09-27T16:00:00.000Z</meter:endTime>
|
107
107
|
<meter:quantity meter:uncertainty="0.001000" meter:unit="kW h">
|
108
108
|
0.136
|
109
109
|
</meter:quantity>
|
110
110
|
</entry>
|
111
111
|
|
112
112
|
<entry xmlns="http://www.w3.org/2005/Atom" xmlns:meter="http://schemas.google.com/meter/2008">
|
113
|
-
<id>https://www.google.com/powermeter/feeds/path/durMeasurement/2009-09-
|
113
|
+
<id>https://www.google.com/powermeter/feeds/path/durMeasurement/2009-09-27T16_00_00.000Z</id>
|
114
114
|
<category scheme="http://schemas.google.com/g/2005#kind"
|
115
115
|
term="http://schemas.google.com/meter/2008#durMeasurement"/>
|
116
116
|
<meter:subject>https://www.google.com/powermeter/feeds/path</meter:subject>
|
117
|
-
<meter:startTime meter:uncertainty="1.000000">2009-09-
|
118
|
-
<meter:endTime meter:uncertainty="1.000000">2009-09-
|
117
|
+
<meter:startTime meter:uncertainty="1.000000">2009-09-27T16:00:00.000Z</meter:startTime>
|
118
|
+
<meter:endTime meter:uncertainty="1.000000">2009-09-27T17:00:00.000Z</meter:endTime>
|
119
119
|
<meter:quantity meter:uncertainty="0.001000" meter:unit="kW h">
|
120
120
|
0.134
|
121
121
|
</meter:quantity>
|
122
122
|
</entry>
|
123
123
|
|
124
124
|
<entry xmlns="http://www.w3.org/2005/Atom" xmlns:meter="http://schemas.google.com/meter/2008">
|
125
|
-
<id>https://www.google.com/powermeter/feeds/path/durMeasurement/2009-09-
|
125
|
+
<id>https://www.google.com/powermeter/feeds/path/durMeasurement/2009-09-27T17_00_00.000Z</id>
|
126
126
|
<category scheme="http://schemas.google.com/g/2005#kind"
|
127
127
|
term="http://schemas.google.com/meter/2008#durMeasurement"/>
|
128
128
|
<meter:subject>https://www.google.com/powermeter/feeds/path</meter:subject>
|
129
|
-
<meter:startTime meter:uncertainty="1.000000">2009-09-
|
130
|
-
<meter:endTime meter:uncertainty="1.000000">2009-09-
|
129
|
+
<meter:startTime meter:uncertainty="1.000000">2009-09-27T17:00:00.000Z</meter:startTime>
|
130
|
+
<meter:endTime meter:uncertainty="1.000000">2009-09-27T18:00:00.000Z</meter:endTime>
|
131
131
|
<meter:quantity meter:uncertainty="0.001000" meter:unit="kW h">
|
132
132
|
0.416
|
133
133
|
</meter:quantity>
|
134
134
|
</entry>
|
135
135
|
|
136
136
|
<entry xmlns="http://www.w3.org/2005/Atom" xmlns:meter="http://schemas.google.com/meter/2008">
|
137
|
-
<id>https://www.google.com/powermeter/feeds/path/durMeasurement/2009-09-
|
137
|
+
<id>https://www.google.com/powermeter/feeds/path/durMeasurement/2009-09-27T18_00_00.000Z</id>
|
138
138
|
<category scheme="http://schemas.google.com/g/2005#kind"
|
139
139
|
term="http://schemas.google.com/meter/2008#durMeasurement"/>
|
140
140
|
<meter:subject>https://www.google.com/powermeter/feeds/path</meter:subject>
|
141
|
-
<meter:startTime meter:uncertainty="1.000000">2009-09-
|
142
|
-
<meter:endTime meter:uncertainty="1.000000">2009-09-
|
141
|
+
<meter:startTime meter:uncertainty="1.000000">2009-09-27T18:00:00.000Z</meter:startTime>
|
142
|
+
<meter:endTime meter:uncertainty="1.000000">2009-09-27T19:00:00.000Z</meter:endTime>
|
143
143
|
<meter:quantity meter:uncertainty="0.001000" meter:unit="kW h">
|
144
144
|
1.732
|
145
145
|
</meter:quantity>
|
146
146
|
</entry>
|
147
147
|
|
148
148
|
<entry xmlns="http://www.w3.org/2005/Atom" xmlns:meter="http://schemas.google.com/meter/2008">
|
149
|
-
<id>https://www.google.com/powermeter/feeds/path/durMeasurement/2009-09-
|
149
|
+
<id>https://www.google.com/powermeter/feeds/path/durMeasurement/2009-09-27T19_00_00.000Z</id>
|
150
150
|
<category scheme="http://schemas.google.com/g/2005#kind"
|
151
151
|
term="http://schemas.google.com/meter/2008#durMeasurement"/>
|
152
152
|
<meter:subject>https://www.google.com/powermeter/feeds/path</meter:subject>
|
153
|
-
<meter:startTime meter:uncertainty="1.000000">2009-09-
|
154
|
-
<meter:endTime meter:uncertainty="1.000000">2009-09-
|
153
|
+
<meter:startTime meter:uncertainty="1.000000">2009-09-27T19:00:00.000Z</meter:startTime>
|
154
|
+
<meter:endTime meter:uncertainty="1.000000">2009-09-27T20:00:00.000Z</meter:endTime>
|
155
155
|
<meter:quantity meter:uncertainty="0.001000" meter:unit="kW h">
|
156
156
|
1.844
|
157
157
|
</meter:quantity>
|
158
158
|
</entry>
|
159
159
|
|
160
160
|
<entry xmlns="http://www.w3.org/2005/Atom" xmlns:meter="http://schemas.google.com/meter/2008">
|
161
|
-
<id>https://www.google.com/powermeter/feeds/path/durMeasurement/2009-09-
|
161
|
+
<id>https://www.google.com/powermeter/feeds/path/durMeasurement/2009-09-27T20_00_00.000Z</id>
|
162
162
|
<category scheme="http://schemas.google.com/g/2005#kind"
|
163
163
|
term="http://schemas.google.com/meter/2008#durMeasurement"/>
|
164
164
|
<meter:subject>https://www.google.com/powermeter/feeds/path</meter:subject>
|
165
|
-
<meter:startTime meter:uncertainty="1.000000">2009-09-
|
166
|
-
<meter:endTime meter:uncertainty="1.000000">2009-09-
|
165
|
+
<meter:startTime meter:uncertainty="1.000000">2009-09-27T20:00:00.000Z</meter:startTime>
|
166
|
+
<meter:endTime meter:uncertainty="1.000000">2009-09-27T21:00:00.000Z</meter:endTime>
|
167
167
|
<meter:quantity meter:uncertainty="0.001000" meter:unit="kW h">
|
168
168
|
0.19
|
169
169
|
</meter:quantity>
|
170
170
|
</entry>
|
171
171
|
|
172
172
|
<entry xmlns="http://www.w3.org/2005/Atom" xmlns:meter="http://schemas.google.com/meter/2008">
|
173
|
-
<id>https://www.google.com/powermeter/feeds/path/durMeasurement/2009-09-
|
173
|
+
<id>https://www.google.com/powermeter/feeds/path/durMeasurement/2009-09-27T21_00_00.000Z</id>
|
174
174
|
<category scheme="http://schemas.google.com/g/2005#kind"
|
175
175
|
term="http://schemas.google.com/meter/2008#durMeasurement"/>
|
176
176
|
<meter:subject>https://www.google.com/powermeter/feeds/path</meter:subject>
|
177
|
-
<meter:startTime meter:uncertainty="1.000000">2009-09-
|
178
|
-
<meter:endTime meter:uncertainty="1.000000">2009-09-
|
177
|
+
<meter:startTime meter:uncertainty="1.000000">2009-09-27T21:00:00.000Z</meter:startTime>
|
178
|
+
<meter:endTime meter:uncertainty="1.000000">2009-09-27T22:00:00.000Z</meter:endTime>
|
179
179
|
<meter:quantity meter:uncertainty="0.001000" meter:unit="kW h">
|
180
180
|
0.189
|
181
181
|
</meter:quantity>
|
182
182
|
</entry>
|
183
183
|
|
184
184
|
<entry xmlns="http://www.w3.org/2005/Atom" xmlns:meter="http://schemas.google.com/meter/2008">
|
185
|
-
<id>https://www.google.com/powermeter/feeds/path/durMeasurement/2009-09-
|
185
|
+
<id>https://www.google.com/powermeter/feeds/path/durMeasurement/2009-09-27T22_00_00.000Z</id>
|
186
186
|
<category scheme="http://schemas.google.com/g/2005#kind"
|
187
187
|
term="http://schemas.google.com/meter/2008#durMeasurement"/>
|
188
188
|
<meter:subject>https://www.google.com/powermeter/feeds/path</meter:subject>
|
189
|
-
<meter:startTime meter:uncertainty="1.000000">2009-09-
|
190
|
-
<meter:endTime meter:uncertainty="1.000000">2009-09-
|
189
|
+
<meter:startTime meter:uncertainty="1.000000">2009-09-27T22:00:00.000Z</meter:startTime>
|
190
|
+
<meter:endTime meter:uncertainty="1.000000">2009-09-27T23:00:00.000Z</meter:endTime>
|
191
191
|
<meter:quantity meter:uncertainty="0.001000" meter:unit="kW h">
|
192
192
|
0.182
|
193
193
|
</meter:quantity>
|
194
194
|
</entry>
|
195
195
|
|
196
196
|
<entry xmlns="http://www.w3.org/2005/Atom" xmlns:meter="http://schemas.google.com/meter/2008">
|
197
|
-
<id>https://www.google.com/powermeter/feeds/path/durMeasurement/2009-09-
|
197
|
+
<id>https://www.google.com/powermeter/feeds/path/durMeasurement/2009-09-27T23_00_00.000Z</id>
|
198
198
|
<category scheme="http://schemas.google.com/g/2005#kind"
|
199
199
|
term="http://schemas.google.com/meter/2008#durMeasurement"/>
|
200
200
|
<meter:subject>https://www.google.com/powermeter/feeds/path</meter:subject>
|
201
|
-
<meter:startTime meter:uncertainty="1.000000">2009-09-
|
202
|
-
<meter:endTime meter:uncertainty="1.000000">2009-09-
|
201
|
+
<meter:startTime meter:uncertainty="1.000000">2009-09-27T23:00:00.000Z</meter:startTime>
|
202
|
+
<meter:endTime meter:uncertainty="1.000000">2009-09-28T00:00:00.000Z</meter:endTime>
|
203
203
|
<meter:quantity meter:uncertainty="0.001000" meter:unit="kW h">
|
204
204
|
0.173
|
205
205
|
</meter:quantity>
|
206
206
|
</entry>
|
207
207
|
|
208
208
|
<entry xmlns="http://www.w3.org/2005/Atom" xmlns:meter="http://schemas.google.com/meter/2008">
|
209
|
-
<id>https://www.google.com/powermeter/feeds/path/durMeasurement/2009-09-
|
209
|
+
<id>https://www.google.com/powermeter/feeds/path/durMeasurement/2009-09-28T00_00_00.000Z</id>
|
210
210
|
<category scheme="http://schemas.google.com/g/2005#kind"
|
211
211
|
term="http://schemas.google.com/meter/2008#durMeasurement"/>
|
212
212
|
<meter:subject>https://www.google.com/powermeter/feeds/path</meter:subject>
|
213
|
-
<meter:startTime meter:uncertainty="1.000000">2009-09-
|
214
|
-
<meter:endTime meter:uncertainty="1.000000">2009-09-
|
213
|
+
<meter:startTime meter:uncertainty="1.000000">2009-09-28T00:00:00.000Z</meter:startTime>
|
214
|
+
<meter:endTime meter:uncertainty="1.000000">2009-09-28T01:00:00.000Z</meter:endTime>
|
215
215
|
<meter:quantity meter:uncertainty="0.001000" meter:unit="kW h">
|
216
216
|
1.136
|
217
217
|
</meter:quantity>
|
218
218
|
</entry>
|
219
219
|
|
220
220
|
<entry xmlns="http://www.w3.org/2005/Atom" xmlns:meter="http://schemas.google.com/meter/2008">
|
221
|
-
<id>https://www.google.com/powermeter/feeds/path/durMeasurement/2009-09-
|
221
|
+
<id>https://www.google.com/powermeter/feeds/path/durMeasurement/2009-09-28T01_00_00.000Z</id>
|
222
222
|
<category scheme="http://schemas.google.com/g/2005#kind"
|
223
223
|
term="http://schemas.google.com/meter/2008#durMeasurement"/>
|
224
224
|
<meter:subject>https://www.google.com/powermeter/feeds/path</meter:subject>
|
225
|
-
<meter:startTime meter:uncertainty="1.000000">2009-09-
|
226
|
-
<meter:endTime meter:uncertainty="1.000000">2009-09-
|
225
|
+
<meter:startTime meter:uncertainty="1.000000">2009-09-28T01:00:00.000Z</meter:startTime>
|
226
|
+
<meter:endTime meter:uncertainty="1.000000">2009-09-28T02:00:00.000Z</meter:endTime>
|
227
227
|
<meter:quantity meter:uncertainty="0.001000" meter:unit="kW h">
|
228
228
|
3.55
|
229
229
|
</meter:quantity>
|
230
230
|
</entry>
|
231
231
|
|
232
232
|
<entry xmlns="http://www.w3.org/2005/Atom" xmlns:meter="http://schemas.google.com/meter/2008">
|
233
|
-
<id>https://www.google.com/powermeter/feeds/path/durMeasurement/2009-09-
|
233
|
+
<id>https://www.google.com/powermeter/feeds/path/durMeasurement/2009-09-28T02_00_00.000Z</id>
|
234
234
|
<category scheme="http://schemas.google.com/g/2005#kind"
|
235
235
|
term="http://schemas.google.com/meter/2008#durMeasurement"/>
|
236
236
|
<meter:subject>https://www.google.com/powermeter/feeds/path</meter:subject>
|
237
|
-
<meter:startTime meter:uncertainty="1.000000">2009-09-
|
238
|
-
<meter:endTime meter:uncertainty="1.000000">2009-09-
|
237
|
+
<meter:startTime meter:uncertainty="1.000000">2009-09-28T02:00:00.000Z</meter:startTime>
|
238
|
+
<meter:endTime meter:uncertainty="1.000000">2009-09-28T03:00:00.000Z</meter:endTime>
|
239
239
|
<meter:quantity meter:uncertainty="0.001000" meter:unit="kW h">
|
240
240
|
3.011
|
241
241
|
</meter:quantity>
|
242
242
|
</entry>
|
243
243
|
|
244
244
|
<entry xmlns="http://www.w3.org/2005/Atom" xmlns:meter="http://schemas.google.com/meter/2008">
|
245
|
-
<id>https://www.google.com/powermeter/feeds/path/durMeasurement/2009-09-
|
245
|
+
<id>https://www.google.com/powermeter/feeds/path/durMeasurement/2009-09-28T03_00_00.000Z</id>
|
246
246
|
<category scheme="http://schemas.google.com/g/2005#kind"
|
247
247
|
term="http://schemas.google.com/meter/2008#durMeasurement"/>
|
248
248
|
<meter:subject>https://www.google.com/powermeter/feeds/path</meter:subject>
|
249
|
-
<meter:startTime meter:uncertainty="1.000000">2009-09-
|
250
|
-
<meter:endTime meter:uncertainty="1.000000">2009-09-
|
249
|
+
<meter:startTime meter:uncertainty="1.000000">2009-09-28T03:00:00.000Z</meter:startTime>
|
250
|
+
<meter:endTime meter:uncertainty="1.000000">2009-09-28T04:00:00.000Z</meter:endTime>
|
251
251
|
<meter:quantity meter:uncertainty="0.001000" meter:unit="kW h">
|
252
252
|
1.426
|
253
253
|
</meter:quantity>
|
254
254
|
</entry>
|
255
255
|
|
256
256
|
<entry xmlns="http://www.w3.org/2005/Atom" xmlns:meter="http://schemas.google.com/meter/2008">
|
257
|
-
<id>https://www.google.com/powermeter/feeds/path/durMeasurement/2009-09-
|
257
|
+
<id>https://www.google.com/powermeter/feeds/path/durMeasurement/2009-09-28T04_00_00.000Z</id>
|
258
258
|
<category scheme="http://schemas.google.com/g/2005#kind"
|
259
259
|
term="http://schemas.google.com/meter/2008#durMeasurement"/>
|
260
260
|
<meter:subject>https://www.google.com/powermeter/feeds/path</meter:subject>
|
261
|
-
<meter:startTime meter:uncertainty="1.000000">2009-09-
|
262
|
-
<meter:endTime meter:uncertainty="1.000000">2009-09-
|
261
|
+
<meter:startTime meter:uncertainty="1.000000">2009-09-28T04:00:00.000Z</meter:startTime>
|
262
|
+
<meter:endTime meter:uncertainty="1.000000">2009-09-28T05:00:00.000Z</meter:endTime>
|
263
263
|
<meter:quantity meter:uncertainty="0.001000" meter:unit="kW h">
|
264
264
|
0.508
|
265
265
|
</meter:quantity>
|
266
266
|
</entry>
|
267
267
|
|
268
268
|
<entry xmlns="http://www.w3.org/2005/Atom" xmlns:meter="http://schemas.google.com/meter/2008">
|
269
|
-
<id>https://www.google.com/powermeter/feeds/path/durMeasurement/2009-09-
|
269
|
+
<id>https://www.google.com/powermeter/feeds/path/durMeasurement/2009-09-28T05_00_00.000Z</id>
|
270
270
|
<category scheme="http://schemas.google.com/g/2005#kind"
|
271
271
|
term="http://schemas.google.com/meter/2008#durMeasurement"/>
|
272
272
|
<meter:subject>https://www.google.com/powermeter/feeds/path</meter:subject>
|
273
|
-
<meter:startTime meter:uncertainty="1.000000">2009-09-
|
274
|
-
<meter:endTime meter:uncertainty="1.000000">2009-09-
|
273
|
+
<meter:startTime meter:uncertainty="1.000000">2009-09-28T05:00:00.000Z</meter:startTime>
|
274
|
+
<meter:endTime meter:uncertainty="1.000000">2009-09-28T06:00:00.000Z</meter:endTime>
|
275
275
|
<meter:quantity meter:uncertainty="0.001000" meter:unit="kW h">
|
276
276
|
0.58
|
277
277
|
</meter:quantity>
|
278
278
|
</entry>
|
279
279
|
|
280
280
|
<entry xmlns="http://www.w3.org/2005/Atom" xmlns:meter="http://schemas.google.com/meter/2008">
|
281
|
-
<id>https://www.google.com/powermeter/feeds/path/durMeasurement/2009-09-
|
281
|
+
<id>https://www.google.com/powermeter/feeds/path/durMeasurement/2009-09-28T06_00_00.000Z</id>
|
282
282
|
<category scheme="http://schemas.google.com/g/2005#kind"
|
283
283
|
term="http://schemas.google.com/meter/2008#durMeasurement"/>
|
284
284
|
<meter:subject>https://www.google.com/powermeter/feeds/path</meter:subject>
|
285
|
-
<meter:startTime meter:uncertainty="1.000000">2009-09-
|
286
|
-
<meter:endTime meter:uncertainty="1.000000">2009-09-
|
285
|
+
<meter:startTime meter:uncertainty="1.000000">2009-09-28T06:00:00.000Z</meter:startTime>
|
286
|
+
<meter:endTime meter:uncertainty="1.000000">2009-09-28T07:00:00.000Z</meter:endTime>
|
287
287
|
<meter:quantity meter:uncertainty="0.001000" meter:unit="kW h">
|
288
288
|
0.316
|
289
289
|
</meter:quantity>
|
data/specs/sample_spec.rb
CHANGED
@@ -7,12 +7,18 @@ describe SmarterMeter::Sample do
|
|
7
7
|
end
|
8
8
|
|
9
9
|
it "should be able to parse csv data returned by the api" do
|
10
|
-
date = Date.new(2009, 9,
|
10
|
+
date = Date.new(2009, 9, 27)
|
11
11
|
results = SmarterMeter::Sample.parse_csv(@data)
|
12
12
|
|
13
|
-
results.length.should
|
13
|
+
results.length.should == 7
|
14
14
|
results.keys.should include(date)
|
15
15
|
results[date].length.should == 24
|
16
16
|
results[date].each{|s| s.should be_kind_of(SmarterMeter::Sample)}
|
17
|
+
|
18
|
+
results[date][0].kwh.should == nil
|
19
|
+
results[date][0].time.should == Time.local(2009, 9, 27, 0)
|
20
|
+
|
21
|
+
results[date][1].kwh.should == 0.205
|
22
|
+
results[date][1].time.should == Time.local(2009, 9, 27, 1)
|
17
23
|
end
|
18
24
|
end
|
metadata
CHANGED
@@ -4,9 +4,9 @@ version: !ruby/object:Gem::Version
|
|
4
4
|
prerelease: false
|
5
5
|
segments:
|
6
6
|
- 0
|
7
|
-
-
|
8
|
-
-
|
9
|
-
version: 0.
|
7
|
+
- 3
|
8
|
+
- 0
|
9
|
+
version: 0.3.0
|
10
10
|
platform: ruby
|
11
11
|
authors:
|
12
12
|
- Matt Colyer
|
@@ -14,7 +14,7 @@ autorequire:
|
|
14
14
|
bindir: bin
|
15
15
|
cert_chain: []
|
16
16
|
|
17
|
-
date: 2011-
|
17
|
+
date: 2011-03-14 00:00:00 -07:00
|
18
18
|
default_executable: smartermeter
|
19
19
|
dependencies:
|
20
20
|
- !ruby/object:Gem::Dependency
|
@@ -25,10 +25,10 @@ dependencies:
|
|
25
25
|
- - "="
|
26
26
|
- !ruby/object:Gem::Version
|
27
27
|
segments:
|
28
|
+
- 1
|
28
29
|
- 0
|
29
|
-
-
|
30
|
-
|
31
|
-
version: 0.9.3
|
30
|
+
- 0
|
31
|
+
version: 1.0.0
|
32
32
|
type: :runtime
|
33
33
|
version_requirements: *id001
|
34
34
|
- !ruby/object:Gem::Dependency
|
@@ -46,31 +46,31 @@ dependencies:
|
|
46
46
|
type: :runtime
|
47
47
|
version_requirements: *id002
|
48
48
|
- !ruby/object:Gem::Dependency
|
49
|
-
name:
|
49
|
+
name: rspec
|
50
50
|
prerelease: false
|
51
51
|
requirement: &id003 !ruby/object:Gem::Requirement
|
52
52
|
requirements:
|
53
53
|
- - ~>
|
54
54
|
- !ruby/object:Gem::Version
|
55
55
|
segments:
|
56
|
-
-
|
56
|
+
- 2
|
57
57
|
- 4
|
58
|
-
-
|
59
|
-
version:
|
58
|
+
- 0
|
59
|
+
version: 2.4.0
|
60
60
|
type: :development
|
61
61
|
version_requirements: *id003
|
62
62
|
- !ruby/object:Gem::Dependency
|
63
|
-
name:
|
63
|
+
name: minitar
|
64
64
|
prerelease: false
|
65
65
|
requirement: &id004 !ruby/object:Gem::Requirement
|
66
66
|
requirements:
|
67
67
|
- - ~>
|
68
68
|
- !ruby/object:Gem::Version
|
69
69
|
segments:
|
70
|
-
- 2
|
71
|
-
- 4
|
72
70
|
- 0
|
73
|
-
|
71
|
+
- 5
|
72
|
+
- 2
|
73
|
+
version: 0.5.2
|
74
74
|
type: :development
|
75
75
|
version_requirements: *id004
|
76
76
|
description: Fetches smartmeter data from PG&E and can upload to Google PowerMeter
|
@@ -84,15 +84,21 @@ extra_rdoc_files: []
|
|
84
84
|
files:
|
85
85
|
- CHANGELOG.md
|
86
86
|
- Gemfile
|
87
|
+
- LICENSE
|
87
88
|
- README.md
|
88
89
|
- Rakefile
|
89
90
|
- bin/smartermeter
|
90
|
-
-
|
91
|
+
- icons/smartermeter-16x16.png
|
92
|
+
- icons/smartermeter-32x32.png
|
93
|
+
- icons/smartermeter.ico
|
94
|
+
- icons/smartermeter.svg
|
95
|
+
- installer/launch4j.xml
|
96
|
+
- installer/main.rb
|
97
|
+
- installer/nsis.nsi
|
91
98
|
- lib/smartermeter.rb
|
92
99
|
- lib/smartermeter/daemon.rb
|
93
100
|
- lib/smartermeter/interfaces/cli.rb
|
94
101
|
- lib/smartermeter/interfaces/swing.rb
|
95
|
-
- lib/smartermeter/main.rb
|
96
102
|
- lib/smartermeter/sample.rb
|
97
103
|
- lib/smartermeter/service.rb
|
98
104
|
- lib/smartermeter/transports/cacert.pem
|
data/build_configuration.rb
DELETED
@@ -1,89 +0,0 @@
|
|
1
|
-
configuration do |c|
|
2
|
-
# The name for your resulting application file (e.g., if the project_name is 'foo' then you'll get foo.jar, foo.exe, etc.)
|
3
|
-
# default value: "smartermeter"
|
4
|
-
#
|
5
|
-
#c.project_name = "smartermeter"
|
6
|
-
|
7
|
-
# Undocumented option 'output_dir'
|
8
|
-
# default value: "package"
|
9
|
-
#
|
10
|
-
c.output_dir = "pkg"
|
11
|
-
|
12
|
-
# The main ruby file to invoke, minus the .rb extension
|
13
|
-
# default value: "main"
|
14
|
-
#
|
15
|
-
c.main_ruby_file = "smartermeter/main"
|
16
|
-
|
17
|
-
# The fully-qualified name of the main Java file used to initiate the application.
|
18
|
-
# default value: "org.rubyforge.rawr.Main"
|
19
|
-
#
|
20
|
-
#c.main_java_file = "org.rubyforge.rawr.Main"
|
21
|
-
|
22
|
-
# A list of directories where source files reside
|
23
|
-
# default value: ["src"]
|
24
|
-
#
|
25
|
-
c.source_dirs = ["lib", "vendor/gems", "rawr"]
|
26
|
-
|
27
|
-
# A list of regexps of files to exclude
|
28
|
-
# default value: []
|
29
|
-
#
|
30
|
-
#c.source_exclude_filter = []
|
31
|
-
|
32
|
-
# Whether Ruby source files should be compiled into .class files
|
33
|
-
# default value: true
|
34
|
-
#
|
35
|
-
#c.compile_ruby_files = true
|
36
|
-
|
37
|
-
# A list of individual Java library files to include.
|
38
|
-
# default value: []
|
39
|
-
#
|
40
|
-
#c.java_lib_files = []
|
41
|
-
|
42
|
-
# A list of directories for rawr to include . All files in the given directories get bundled up.
|
43
|
-
# default value: ["lib/java"]
|
44
|
-
#
|
45
|
-
c.java_lib_dirs = ["vendor/java"]
|
46
|
-
|
47
|
-
# Undocumented option 'files_to_copy'
|
48
|
-
# default value: []
|
49
|
-
#
|
50
|
-
#c.files_to_copy = []
|
51
|
-
|
52
|
-
# Undocumented option 'target_jvm_version'
|
53
|
-
# default value: 1.6
|
54
|
-
#
|
55
|
-
#c.target_jvm_version = 1.6
|
56
|
-
|
57
|
-
# Undocumented option 'jvm_arguments'
|
58
|
-
# default value: ""
|
59
|
-
#
|
60
|
-
#c.jvm_arguments = ""
|
61
|
-
|
62
|
-
# Undocumented option 'java_library_path'
|
63
|
-
# default value: ""
|
64
|
-
#
|
65
|
-
#c.java_library_path = ""
|
66
|
-
|
67
|
-
# Undocumented option 'extra_user_jars'
|
68
|
-
# default value: {}
|
69
|
-
#
|
70
|
-
#c.extra_user_jars[:data] = { :directory => 'data/images/png',
|
71
|
-
# :location_in_jar => 'images',
|
72
|
-
# :exclude => /*.bak$/ }
|
73
|
-
|
74
|
-
# Undocumented option 'mac_do_not_generate_plist'
|
75
|
-
# default value: nil
|
76
|
-
#
|
77
|
-
#c.mac_do_not_generate_plist = nil
|
78
|
-
|
79
|
-
# Undocumented option 'mac_icon_path'
|
80
|
-
# default value: nil
|
81
|
-
#
|
82
|
-
#c.mac_icon_path = nil
|
83
|
-
|
84
|
-
# Undocumented option 'windows_icon_path'
|
85
|
-
# default value: nil
|
86
|
-
#
|
87
|
-
#c.windows_icon_path = nil
|
88
|
-
|
89
|
-
end
|