def monitor(request): model = ModelSysInfo() trackStart = model.getNextTrackstart() playerState = False if not trackStart else model.getPlayerInfo() context = { 'trackStart': trackStart, 'recordStart': model.getNextRecordstart(), 'recorderState': model.getDumpInfo(), 'playerState': playerState, 'playlistStart': model.getNextPlayliststart(), 'load': model.getLoad(), 'diskfree': model.getFreeSpace(), 'componentStates': model.getComponentStates() } return render_template(request, 'monitor.html', context)
def render(request, template, template_vars={}): return render_template(request, template, template_vars)
def home(request): return render_template(request, 'index.html')