scrolling text functionality added
This commit is contained in:
10
server.py
10
server.py
@@ -137,6 +137,16 @@ def Brightness():
|
||||
LastCommand = 'Change Brightness'
|
||||
return hello()
|
||||
|
||||
@app.route("/Display_text", methods=['POST'])
|
||||
def Display_text():
|
||||
text = request.form['text']
|
||||
f = open('csv/scroll_text.csv', 'w+')
|
||||
f.write(text)
|
||||
f.close()
|
||||
ticker.sendline('T')
|
||||
return hello()
|
||||
|
||||
|
||||
@app.route("/Ticker", methods=['POST'])
|
||||
def Ticker():
|
||||
if request.method == 'POST':
|
||||
|
Reference in New Issue
Block a user