@app.route('/_stuff', methods=['GET'])
def stuff():
    cpu = round(getCpuLoad())
ram = round(getVmem())
disk = round(getDisk())
return jsonify(cpu=cpu, ram=ram, disk=disk)
Update and render a value from Flask periodically