Example #1
0
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)
Example #2
0
def render(request, template, template_vars={}):
    return render_template(request, template, template_vars)
Example #3
0
def home(request):
   return render_template(request, 'index.html')