Sha256: 1a9c2a1e64ab947e372ee16c7af58cd697b38339e1307c80d05dafa7472cf46a

Contents?: true

Size: 503 Bytes

Versions: 3

Compression:

Stored size: 503 Bytes

Contents

PulseToolbox.redis = Redis.new

PulseMeter::Sensor::Timelined::Counter.new(:custom_sensor,
  :ttl => 1.hour,
  :interval => 1.minute,
  :raw_data_ttl => 10.minutes,
  :reduce_delay => 2.minutes
)

PulseToolbox::Sensor::Manager.layout do |l|
  l.page "Custom" do |p|
    p.spline "Custom sensor" do |w|
      w.sensor :custom_sensor, :color => "#0000FF"

      w.timespan 60 * 60 * 3
      w.redraw_interval 10

      w.show_last_point true
      w.values_label "Time"
      w.width 10
    end
  end
end

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
pulse-meter-rails-0.1.1 spec/dummy/config/initializers/pulse.rb
pulse-meter-rails-0.1.0 spec/dummy/config/initializers/pulse.rb
pulse-meter-rails-0.0.1 spec/dummy/config/initializers/pulse.rb