minor ui change

This commit is contained in:
Neythen 2021-05-04 22:49:33 +01:00
parent 742a6b903a
commit bcc8e551ae
2 changed files with 4 additions and 4 deletions

View File

@ -97,9 +97,9 @@ def Speed():
@app.route("/Brightness", methods=['POST'])
def Brightness():
global brightness
brightness = request.form['text']
brightness = int(request.form['text'])-1
print(brightness)
ticker.sendline(brightness)
ticker.sendline(str(brightness))
global LastCommand
LastCommand = 'Change Brightness'
return hello()

View File

@ -29,9 +29,9 @@
<input type="submit" value="Speed"style="height:30px">
</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">
<input name="text" placeholder="9"style="height:24px">
<input name="text" placeholder="10"style="height:24px">
<input type="submit" value="Brightness"style="height:30px">
</form>