debug output
This commit is contained in:
parent
56da340080
commit
acf6a80ffc
2
app.py
2
app.py
@ -5,6 +5,7 @@ from flask_bootstrap import Bootstrap
|
|||||||
from flask_nav import Nav
|
from flask_nav import Nav
|
||||||
from flask_nav.elements import Navbar, View, Subgroup, Link, Text, Separator
|
from flask_nav.elements import Navbar, View, Subgroup, Link, Text, Separator
|
||||||
from sml_decoder import TasmotaSMLParser
|
from sml_decoder import TasmotaSMLParser
|
||||||
|
from pprint import pprint
|
||||||
|
|
||||||
app = Flask(__name__)
|
app = Flask(__name__)
|
||||||
Bootstrap(app)
|
Bootstrap(app)
|
||||||
@ -36,6 +37,7 @@ def decode():
|
|||||||
messages.append({"msg": details, "tas": tasmota_script})
|
messages.append({"msg": details, "tas": tasmota_script})
|
||||||
|
|
||||||
messages = sorted(messages, key=lambda x: x["msg"]["obis"])
|
messages = sorted(messages, key=lambda x: x["msg"]["obis"])
|
||||||
|
pprint(messages)
|
||||||
|
|
||||||
return render_template(
|
return render_template(
|
||||||
"decode.html",
|
"decode.html",
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user