from flask import Flask, Response
from sense_hat import SenseHat


sense = SenseHat()
sense.set_imu_config(True, True, True)
app = Flask(__name__)


@app.route('/')
def all_sensors():
    return "Hello, world!"


@app.route('/humidity')
def humidity():
    return "Hello, world!"


@app.route('/pressure')
def pressure():
    return "Hello, world!"


@app.route('/temperature')
def temperature():
    return "Hello, world!"


@app.route('/orientation')
def orientation():
    return str(sense.orientation)


@app.route('/accelerometer')
def accelerometer():
    return "Hello, world!"


@app.route('/magnetometer')
def magnetometer():
    return "Hello, world!"


@app.route('/gyroscope')
def gyroscope():
    return "Hello, world!"

from flask import Flask, Response
from sense_hat import SenseHat


sense = SenseHat()
sense.set_imu_config(False, False, True)
app = Flask(__name__)


@app.route('/')
def all_sensors():
    return "Hello, world!"


@app.route('/humidity')
def humidity():
    return "Hello, world!"


@app.route('/pressure')
def pressure():
    return "Hello, world!"


@app.route('/temperature')
def temperature():
    return "Hello, world!"


@app.route('/orientation')
def orientation():
    return str(sense.orientation)


@app.route('/accelerometer')
def accelerometer():
    return "Hello, world!"


@app.route('/magnetometer')
def magnetometer():
    return "Hello, world!"


@app.route('/gyroscope')
def gyroscope():
    return "Hello, world!"

Use only accelerometer for orientation.
Use only accelerometer for orientation.
