aemo 0.1.23 → 0.1.24
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.
- checksums.yaml +4 -4
- data/lib/aemo/nem12.rb +33 -1
- data/lib/aemo/version.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA1:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 6e954658b812750ec481861ea67c77aa93ef42bb
|
|
4
|
+
data.tar.gz: c0f30041bf55b6beaf1f9e49a68bc742f7dd9577
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 7cf474be105eef65b9b0a3fa242cd5a2e72c21f9d0116201489a85857e267d532efeacf68d3bbe2eb6a729be33cba62acf1e0b6b83055c0cc7dcacad6f1050b8
|
|
7
|
+
data.tar.gz: f4fc7e700e866a158ddbf05dbd3601bf214a39b6a4ccc07c2aedf381ed109b1a714015d5160d854687129ebca57da8caf34a3bc6cab91eec663093dea4af384e
|
data/lib/aemo/nem12.rb
CHANGED
|
@@ -4,7 +4,7 @@ require 'time'
|
|
|
4
4
|
module AEMO
|
|
5
5
|
# Namespace for classes and modules that handle AEMO Gem NEM12 interactions
|
|
6
6
|
# @since 0.1.4
|
|
7
|
-
|
|
7
|
+
class NEM12
|
|
8
8
|
# As per AEMO NEM12 Specification
|
|
9
9
|
# http://www.aemo.com.au/Consultations/National-Electricity-Market/Open/~/media/Files/Other/consultations/nem/Meter%20Data%20File%20Format%20Specification%20NEM12_NEM13/MDFF_Specification_NEM12_NEM13_Final_v102_clean.ashx
|
|
10
10
|
RECORD_INDICATORS = {
|
|
@@ -226,6 +226,38 @@ module AEMO
|
|
|
226
226
|
|
|
227
227
|
}
|
|
228
228
|
|
|
229
|
+
DATA_STREAM_SUFFIX = {
|
|
230
|
+
# Averaged Data Streams
|
|
231
|
+
'A' => { :stream => 'Average', :description => 'Import', :units => 'kWh' },
|
|
232
|
+
'D' => { :stream => 'Average', :description => 'Export', :units => 'kWh' },
|
|
233
|
+
'J' => { :stream => 'Average', :description => 'Import', :units => 'kVArh' },
|
|
234
|
+
'P' => { :stream => 'Average', :description => 'Export', :units => 'kVArh' },
|
|
235
|
+
'S' => { :stream => 'Average', :description => '', :units => 'kVAh' },
|
|
236
|
+
# Master Data Streams
|
|
237
|
+
'B' => { :stream => 'Master', :description => 'Import', :units => 'kWh' },
|
|
238
|
+
'E' => { :stream => 'Master', :description => 'Export', :units => 'kWh' },
|
|
239
|
+
'K' => { :stream => 'Master', :description => 'Import', :units => 'kVArh' },
|
|
240
|
+
'Q' => { :stream => 'Master', :description => 'Export', :units => 'kVArh' },
|
|
241
|
+
'T' => { :stream => 'Master', :description => '', :units => 'kVAh' },
|
|
242
|
+
'G' => { :stream => 'Master', :description => 'Power Factor', :units => 'PF' },
|
|
243
|
+
'H' => { :stream => 'Master', :description => 'Q Metering', :units => 'Qh' },
|
|
244
|
+
'M' => { :stream => 'Master', :description => 'Par Metering', :units => 'parh' },
|
|
245
|
+
'V' => { :stream => 'Master', :description => 'Volts or V2h or Amps or A2h', :units => '' },
|
|
246
|
+
# Check Meter Streams
|
|
247
|
+
'C' => { :stream => 'Check', :description => 'Import', :units => 'kWh' },
|
|
248
|
+
'F' => { :stream => 'Check', :description => 'Export', :units => 'kWh' },
|
|
249
|
+
'L' => { :stream => 'Check', :description => 'Import', :units => 'kVArh' },
|
|
250
|
+
'R' => { :stream => 'Check', :description => 'Export', :units => 'kVArh' },
|
|
251
|
+
'U' => { :stream => 'Check', :description => '', :units => 'kVAh' },
|
|
252
|
+
'Y' => { :stream => 'Check', :description => 'Q Metering', :units => 'Qh' },
|
|
253
|
+
'W' => { :stream => 'Check', :description => 'Par Metering Path', :units => '' },
|
|
254
|
+
'Z' => { :stream => 'Check', :description => 'Volts or V2h or Amps or A2h', :units => '' },
|
|
255
|
+
# Net Meter Streams
|
|
256
|
+
# AEMO: NOTE THAT D AND J ARE PREVIOUSLY DEFINED
|
|
257
|
+
# 'D' => { :stream => 'Net', :description => 'Net', :units => 'kWh' },
|
|
258
|
+
# 'J' => { :stream => 'Net', :description => 'Net', :units => 'kVArh' }
|
|
259
|
+
}
|
|
260
|
+
|
|
229
261
|
@file_contents = nil
|
|
230
262
|
@header = nil
|
|
231
263
|
@nmi_data_details = []
|
data/lib/aemo/version.rb
CHANGED