add favicon
All checks were successful
Meshtastic Map - See local Meshtastic Nodes / deploy (push) Successful in 1s

This commit is contained in:
David Westgate 2025-04-23 22:12:46 +00:00
parent 8641463324
commit 58c350e051
2 changed files with 8 additions and 1 deletions

9
app.py
View File

@ -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

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.1 KiB