phaserunner 0.1.5 → 0.2.0

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: c3e55864e72ce79b450f75145786815a1fa052da
4
- data.tar.gz: 643a185f0dfd0511cb53b258b8d92da8b92ccf85
3
+ metadata.gz: d15301c00ce626cfbfe825e9ddabb0a4fe99e3c0
4
+ data.tar.gz: 8e561d503383ab68fb93f395861df4634fdeb4c3
5
5
  SHA512:
6
- metadata.gz: 71a3038c8b51bcf6e169be87fcc2fc93412f7e0fa007c28a0f13ad61f55d3ca811140e7b92b9731beb8696523d217f75c6437579b9103ac8a843ce209819c4b3
7
- data.tar.gz: 46e03f852e54287a140c836b866106f53b1a6d99e5e104a438a87db267e0beb32c183f5d51ba38fed452d9cee89c718a4f75bdb783c326eb42bdd2b9e6a2b0bb
6
+ metadata.gz: 1bdb4df97315254801d4914bf5ba277f4461a298ccadf668917a3503bcb1689b13f0931b4c3b1745583cfc7599c846a81b1903db13830e0aa08266eac8bcfcf8
7
+ data.tar.gz: 9efd67d37f23468fc41913b092f54f97f52b6424dd6355ad18c5b465a666348a4f690004c3437d17be9595ea3b8da9b3096f7a9186421aa1c647ea9456c581cc
data/.gitignore CHANGED
File without changes
data/Gemfile CHANGED
File without changes
File without changes
@@ -24,6 +24,24 @@
24
24
  read_register - Read a single or multiple adjacent registers from and address
25
25
  log - Logs a range plus bulk sparse set of registers with multiple addresses to stdout and file
26
26
 
27
+ === Attributes that are Logged
28
+
29
+ * Timestamp
30
+ * Phaserunner Faults ()
31
+ * Phaserunner Controller Temperature (deg Celsius)
32
+ * Phaserunner Vehicle Speed (Km/hour)
33
+ * Phaserunner Motor Temperature (deg Celsius)
34
+ * Phaserunner Motor Current (Amps)
35
+ * Phaserunner Motor RPM (RPM)
36
+ * Phaserunner Motor Speed (% of rated rpm)
37
+ * Phaserunner Battery Voltage (Volts)
38
+ * Phaserunner Battery Current (Amps)
39
+ * Phaserunner Battery State of Charge (%)
40
+ * Phaserunner Battery Power (Watts)
41
+ * Phaserunner Last Fault ()
42
+ * Phaserunner Warnings ()
43
+ * Phaserunner Motor Input Power (W)
44
+
27
45
  == License and Copyright
28
46
 
29
47
  * Copyright (c) 2018 Robert J. Berger
data/Rakefile CHANGED
File without changes
File without changes
File without changes
@@ -82,7 +82,6 @@ module Phaserunner
82
82
  filename = "phaserunner.#{Time.now.strftime('%Y-%m-%d_%H-%M-%S')}.csv"
83
83
  output_fd = File.open(filename, 'w')
84
84
  header = modbus.bulk_log_header
85
- data = modbus.bulk_log_data
86
85
 
87
86
  # Generate and output header line
88
87
  hdr = %Q(Timestamp,#{header.join(",")})
@@ -90,6 +89,7 @@ module Phaserunner
90
89
  output_fd.puts hdr
91
90
 
92
91
  (0..loop_count).each do |i|
92
+ data = modbus.bulk_log_data
93
93
  str = %Q(#{Time.now.utc.round(10).iso8601(6)},#{data.join(",")})
94
94
  puts str unless quiet
95
95
  output_fd.puts str
@@ -19,8 +19,8 @@ module Phaserunner
19
19
  loop_count: :forever,
20
20
  quiet: false,
21
21
  registers_start_address: 258,
22
- registers_count: 12,
23
- registers_misc: [277,334]
22
+ registers_count: 15,
23
+ registers_misc: [276, 277, 334]
24
24
  }
25
25
 
26
26
  attr_reader :tty
@@ -1,3 +1,3 @@
1
1
  module Phaserunner
2
- VERSION = '0.1.5'
2
+ VERSION = '0.2.0'
3
3
  end
File without changes
File without changes
data/todo.md CHANGED
File without changes
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: phaserunner
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.5
4
+ version: 0.2.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Robert J. Berger
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2018-01-14 00:00:00.000000000 Z
11
+ date: 2018-05-05 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: gli