summaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
Diffstat (limited to 'lib')
-rw-r--r--lib/postrunner/MonitoringDB.rb8
-rw-r--r--lib/postrunner/version.rb2
2 files changed, 1 insertions, 9 deletions
diff --git a/lib/postrunner/MonitoringDB.rb b/lib/postrunner/MonitoringDB.rb
index cc500bf..eeb8f87 100644
--- a/lib/postrunner/MonitoringDB.rb
+++ b/lib/postrunner/MonitoringDB.rb
@@ -10,27 +10,19 @@
# published by the Free Software Foundation.
#
-require 'postrunner/TimestampedObjectList'
-require 'postrunner/MonitoringData'
-
module PostRunner
class MonitoringDB
def initialize(store, cfg)
@store = store
- @tol = TimestampedObjectList.new(@store, 'monitoring')
end
def add(fit_file_name, fit_monitoring_b)
start_time = fit_monitoring_b.monitoring_infos[0].timestamp
- data = MonitoringData.new(@store)
- @tol.add_object(start_time, data)
fit_monitoring_b.monitorings.each do |monitoring|
if (cati = monitoring.current_activity_type_intensity)
- data = MonitoringData.new(@store)
- @tol.add_object(monitoring.timestamp, data)
data.activity_type = decode_activity_type(cati & 0x1F)
data.intensity = (cati >> 5) & 0x7
#puts "#{monitoring.timestamp}: #{decode_activity_type(cati & 0x1F)}" +
diff --git a/lib/postrunner/version.rb b/lib/postrunner/version.rb
index 60fcf13..2179ea3 100644
--- a/lib/postrunner/version.rb
+++ b/lib/postrunner/version.rb
@@ -11,5 +11,5 @@
#
module PostRunner
- VERSION = "0.0.9"
+ VERSION = "0.0.10"
end