2 #---------------------------------------
3 # This script generates a plain text overview
4 # of important notes for integration in other
5 # applications such as window managers.
9 $: << MYDIR = File.dirname(Pathname.new(__FILE__).realpath)
11 require 'modules/boot'
12 require 'modules/convert/time'
18 @time = Time.at(@time.to_i)
24 ts = Convert.time_to_string(@time).rjust(17)
25 return "#{ts}: #@value"
29 fname = Boot.get_conf_path
32 dbfile = Boot.get_database_path(dbfile)
34 abort 'no database found...' unless dbfile
38 db = SQLite3::Database.new(dbfile)
45 AND info1>#{$now.to_i}
51 db.execute(query) do |row| neurons << Neuron.new(row) end
53 t = neurons.first.time
54 puts "Time left: #{Convert.relative_time_to_string(t)}"
55 neurons.each do |nyu| puts nyu end