# HG changeset patch # User drewp@bigasterisk.com # Date 1371080832 0 # 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 -r b0337e6f68f1 -r c2faa69099e6 bin/ascoltami2 --- a/bin/ascoltami2 Wed Jun 12 19:46:26 2013 +0000 +++ b/bin/ascoltami2 Wed Jun 12 23:47:12 2013 +0000 @@ -42,6 +42,8 @@ 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 @@ 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 -r b0337e6f68f1 -r c2faa69099e6 light9/ascoltami/index.html --- a/light9/ascoltami/index.html Wed Jun 12 19:46:26 2013 +0000 +++ b/light9/ascoltami/index.html Wed Jun 12 23:47:12 2013 +0000 @@ -14,15 +14,17 @@