(Jun-19-2019, 07:09 PM)sajid Wrote: I wanted to know how will I send data from remotely hosted app/HTML button to my RaspberryPi. What language/library will be used here and how it will be implemented?You can still use Python eg Flask is fine for this.
So from your html code vaule get send to server Flask.
On server can send to eg PI LAN
http://adresse.lan/light_on
Minimal running example.
from flask import Flask, request app = Flask(__name__) @app.route('/', methods=['GET', 'POST']) def index(): if request.method == 'POST': light = request.form.getlist('light')[0] if light == 'on': print('Light on') # http://adresse.lan/light_on if light == 'off': print('Light off') # http://adresse.lan/light_off return '''\ <form method="post"> <input type="checkbox" name="light" value="on" checked> <input type="checkbox" name="light" value="off" checked> <input type="submit"> </form>''' app.run(debug=True)For host recommendation look this post