# HG changeset patch # User drewp@bigasterisk.com # Date 2013-06-12 23:47:12 # Node ID c2faa69099e6e128c40f0e1a0c30d06dc441f78e # Parent b0337e6f68f1f5b5aa040ce4a5fce5029a000763 asco: display update frequency and dim when updates stop. run slower updates on tablets and phones Ignore-this: 2439d0f540c9eae00c4f18e26411c100 diff --git a/bin/ascoltami2 b/bin/ascoltami2 --- a/bin/ascoltami2 +++ b/bin/ascoltami2 @@ -42,6 +42,8 @@ if __name__ == "__main__": help='show URI, like http://light9.bigasterisk.com/show/dance2008', default=showconfig.showUri()) parser.add_option("-v", "--verbose", action="store_true", help="logging.DEBUG") + parser.add_option("--twistedlog", action="store_true", + help="twisted logging") (options, args) = parser.parse_args() log.setLevel(logging.DEBUG if options.verbose else logging.INFO) @@ -51,6 +53,9 @@ if __name__ == "__main__": graph = showconfig.getGraph() app = App(graph, URIRef(options.show)) + if options.twistedlog: + from twisted.python import log as twlog + twlog.startLogging(sys.stderr) reactor.listenTCP(networking.musicPlayer.port, makeWebApp(app)) log.info("listening on %s" % networking.musicPlayer.port) reactor.run() diff --git a/light9/ascoltami/index.html b/light9/ascoltami/index.html --- a/light9/ascoltami/index.html +++ b/light9/ascoltami/index.html @@ -14,15 +14,17 @@

ascoltami on ${host}

-
Song:
-
Time:
-
Left:
-
Until autostop:
-
States:
-
-
+
+
Song:
+
Time:
+
Left:
+
Until autostop:
+
Update freq: requested , actual
+
States:
+
+
+
-
@@ -33,16 +35,20 @@
- + +

Running on

+ todo: display next action

- - todo: go button actions, display next action - reload +

reload