minor ui change
This commit is contained in:
parent
742a6b903a
commit
bcc8e551ae
@ -97,9 +97,9 @@ def Speed():
|
|||||||
@app.route("/Brightness", methods=['POST'])
|
@app.route("/Brightness", methods=['POST'])
|
||||||
def Brightness():
|
def Brightness():
|
||||||
global brightness
|
global brightness
|
||||||
brightness = request.form['text']
|
brightness = int(request.form['text'])-1
|
||||||
print(brightness)
|
print(brightness)
|
||||||
ticker.sendline(brightness)
|
ticker.sendline(str(brightness))
|
||||||
global LastCommand
|
global LastCommand
|
||||||
LastCommand = 'Change Brightness'
|
LastCommand = 'Change Brightness'
|
||||||
return hello()
|
return hello()
|
||||||
|
@ -29,9 +29,9 @@
|
|||||||
<input type="submit" value="Speed"style="height:30px">
|
<input type="submit" value="Speed"style="height:30px">
|
||||||
</form>
|
</form>
|
||||||
|
|
||||||
<p>Set the brightness, an integer between 0 and 9, higher is brighter</p>
|
<p>Set the brightness, an integer between 1 and 10, higher is brighter</p>
|
||||||
<form action="/Brightness" method="POST">
|
<form action="/Brightness" method="POST">
|
||||||
<input name="text" placeholder="9"style="height:24px">
|
<input name="text" placeholder="10"style="height:24px">
|
||||||
<input type="submit" value="Brightness"style="height:30px">
|
<input type="submit" value="Brightness"style="height:30px">
|
||||||
</form>
|
</form>
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user