add favicon
All checks were successful
Meshtastic Map - See local Meshtastic Nodes / deploy (push) Successful in 1s
All checks were successful
Meshtastic Map - See local Meshtastic Nodes / deploy (push) Successful in 1s
This commit is contained in:
parent
8641463324
commit
58c350e051
9
app.py
9
app.py
@ -1,8 +1,9 @@
|
||||
from flask import Flask, render_template, jsonify
|
||||
from flask import Flask, render_template, jsonify, send_from_directory
|
||||
import meshtastic.serial_interface
|
||||
import meshtastic
|
||||
import threading
|
||||
import time
|
||||
import os
|
||||
|
||||
|
||||
app = Flask(__name__)
|
||||
@ -45,5 +46,11 @@ def nodes():
|
||||
"nodes": data
|
||||
})
|
||||
|
||||
# Serve favicon
|
||||
@app.route('/favicon.ico')
|
||||
def favicon():
|
||||
return send_from_directory(os.path.join(app.root_path, 'static'),
|
||||
'favicon.ico', mimetype='image/vnd.microsoft.icon')
|
||||
|
||||
if __name__ == "__main__":
|
||||
app.run(host='0.0.0.0', port=8083)
|
||||
|
BIN
static/favicon.ico
Normal file
BIN
static/favicon.ico
Normal file
Binary file not shown.
After Width: | Height: | Size: 1.1 KiB |
Loading…
Reference in New Issue
Block a user