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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: b20ce4d815543d07216701db47a72312737db305
4
- data.tar.gz: fdfc8776f7fa87f93e1610577e8fe3676ab1f43d
3
+ metadata.gz: 6e954658b812750ec481861ea67c77aa93ef42bb
4
+ data.tar.gz: c0f30041bf55b6beaf1f9e49a68bc742f7dd9577
5
5
  SHA512:
6
- metadata.gz: 51800d16c005e07a0be7fd05de0ccda4224b1aed8159fa148a16d994fac919ff068fec769bedac7f319a0264087ed57471de7e62c8e10e622c0bba0963af5732
7
- data.tar.gz: c48aaa496f7796c066229953d4a95b667819bd608bfed1ccb854487c006d171c4ccf06cc6d9bf9694bee28d880e6d902485190c2e07567045714a2ef4d330855
6
+ metadata.gz: 7cf474be105eef65b9b0a3fa242cd5a2e72c21f9d0116201489a85857e267d532efeacf68d3bbe2eb6a729be33cba62acf1e0b6b83055c0cc7dcacad6f1050b8
7
+ data.tar.gz: f4fc7e700e866a158ddbf05dbd3601bf214a39b6a4ccc07c2aedf381ed109b1a714015d5160d854687129ebca57da8caf34a3bc6cab91eec663093dea4af384e
@@ -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
- module NEM12
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 = []
@@ -22,7 +22,7 @@
22
22
  # @author Joel Courtney <euphemize@gmail.com>
23
23
  module AEMO
24
24
  # aemo version
25
- VERSION = '0.1.23'
25
+ VERSION = '0.1.24'
26
26
 
27
27
  # aemo version split amongst different revisions
28
28
  MAJOR_VERSION, MINOR_VERSION, REVISION = VERSION.split('.').map(&:to_i)
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: aemo
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.23
4
+ version: 0.1.24
5
5
  platform: ruby
6
6
  authors:
7
7
  - Joel Courtney