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 +4 -4
- data/.gitignore +0 -0
- data/Gemfile +0 -0
- data/LICENSE.txt +0 -0
- data/README.rdoc +18 -0
- data/Rakefile +0 -0
- data/lib/phaserunner.rb +0 -0
- data/lib/phaserunner/gli_patch.rb +0 -0
- data/lib/phaserunner/main.rb +1 -1
- data/lib/phaserunner/modbus.rb +2 -2
- data/lib/phaserunner/version.rb +1 -1
- data/phaserunner.gemspec +0 -0
- data/phaserunner.rdoc +0 -0
- data/todo.md +0 -0
- 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: d15301c00ce626cfbfe825e9ddabb0a4fe99e3c0
|
4
|
+
data.tar.gz: 8e561d503383ab68fb93f395861df4634fdeb4c3
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 1bdb4df97315254801d4914bf5ba277f4461a298ccadf668917a3503bcb1689b13f0931b4c3b1745583cfc7599c846a81b1903db13830e0aa08266eac8bcfcf8
|
7
|
+
data.tar.gz: 9efd67d37f23468fc41913b092f54f97f52b6424dd6355ad18c5b465a666348a4f690004c3437d17be9595ea3b8da9b3096f7a9186421aa1c647ea9456c581cc
|
data/.gitignore
CHANGED
File without changes
|
data/Gemfile
CHANGED
File without changes
|
data/LICENSE.txt
CHANGED
File without changes
|
data/README.rdoc
CHANGED
@@ -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
|
data/lib/phaserunner.rb
CHANGED
File without changes
|
File without changes
|
data/lib/phaserunner/main.rb
CHANGED
@@ -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
|
data/lib/phaserunner/modbus.rb
CHANGED
data/lib/phaserunner/version.rb
CHANGED
data/phaserunner.gemspec
CHANGED
File without changes
|
data/phaserunner.rdoc
CHANGED
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.
|
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-
|
11
|
+
date: 2018-05-05 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: gli
|