Compare commits
1 Commits
bc26ebc380
...
8c85897722
Author | SHA1 | Date |
---|---|---|
0xee | 8c85897722 |
|
@ -0,0 +1,9 @@
|
|||
#!/usr/bin/env python
|
||||
|
||||
import os
|
||||
|
||||
from mqtt_dash.app import app
|
||||
|
||||
|
||||
app.secret_key = os.urandom(12)
|
||||
app.run(debug=True, host='0.0.0.0', port=4000)
|
|
@ -0,0 +1 @@
|
|||
from .app import app
|
|
@ -2,7 +2,6 @@
|
|||
|
||||
from flask import Flask, flash, redirect, render_template_string
|
||||
from flask import render_template, request, session, abort
|
||||
import os
|
||||
import uuid
|
||||
|
||||
app = Flask(__name__)
|
||||
|
@ -200,8 +199,3 @@ def home():
|
|||
row_layout("Some buttons", button_widget("test", "set to 1", 1),
|
||||
button_widget("test", "set to foo", 'foo'))
|
||||
])
|
||||
|
||||
|
||||
if __name__ == "__main__":
|
||||
app.secret_key = os.urandom(12)
|
||||
app.run(debug=True, host='0.0.0.0', port=4000)
|
|
@ -0,0 +1,14 @@
|
|||
#!/usr/bin/env python
|
||||
|
||||
from distutils.core import setup
|
||||
|
||||
setup(
|
||||
name='mqtt-dash',
|
||||
version='0.1',
|
||||
description='MQTT Dashboard',
|
||||
author='0xee',
|
||||
author_email='mqtt-dash@0xee.eu',
|
||||
packages=['mqtt_dash'],
|
||||
scripts=['mqtt-dash'],
|
||||
package_data={'mqtt_dash': ['templates/*.html']},
|
||||
)
|
Loading…
Reference in New Issue