# HG changeset patch # User Malte Bayer # Date 1323531475 -3600 # Node ID 173d0863a80496a725a51396cf62fab21e0ea36e # Parent ec888cfa024e576b89b893c2f387fd84a71b6714 added live init to slotcli diff -r ec888cfa024e -r 173d0863a804 slotUI/SlotCli.py --- a/slotUI/SlotCli.py Sat Dec 10 16:29:31 2011 +0100 +++ b/slotUI/SlotCli.py Sat Dec 10 16:37:55 2011 +0100 @@ -78,11 +78,19 @@ curses.noecho() self.scr.nodelay(1) # disable delay on readkey + def monitor_init(self): + """ + Send initializing commands for live monitoring + """ + self.box.com.query("F1\n") # set fuel logic enabled + self.box.com.query("*1\n") # set live fuel info + def monitor(self): """ Live Monitor on the console Keyboard loop to control it??? """ + self.monitor_init() self.scr = curses.initscr() curses.start_color() curses.init_pair(1, curses.COLOR_WHITE, curses.COLOR_BLACK) # standard text