Raspberry Pi - Web Server and API
What will happen if you run this Flask app on Raspberry Pi?
And then visit
from flask import Flask
app = Flask(__name__)
@app.route('/data')
def data():
return {'temperature': 25, 'humidity': 60}
if __name__ == '__main__':
app.run() And then visit
http://localhost:5000/data?