Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
I
IoTSmartMeter
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
kristian.tan
IoTSmartMeter
Commits
fe48ce72
Commit
fe48ce72
authored
Nov 12, 2019
by
Kristian Tan
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Show a message if no devices are running
parent
c1dac4d2
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
5 additions
and
0 deletions
+5
-0
app.cpython-36.pyc
__pycache__/app.cpython-36.pyc
+0
-0
app.py
app.py
+1
-0
main.html
templates/main.html
+4
-0
No files found.
__pycache__/app.cpython-36.pyc
View file @
fe48ce72
No preview for this file type
app.py
View file @
fe48ce72
...
...
@@ -37,6 +37,7 @@ def main():
@
app
.
route
(
"/<change_pin>"
)
def
toggle_pin
(
change_pin
):
# TODO: change_pin is somethimes favicon.co for some reason? Fix
if
change_pin
==
'favicon.ico'
:
pass
...
...
templates/main.html
View file @
fe48ce72
...
...
@@ -23,6 +23,7 @@
</p>
{% endfor %}
{# {% if message %}#}
{#
<h2>
{{ message }}
</h2>
#}
{# {% endif %}#}
...
...
@@ -36,6 +37,9 @@
{{ pins[pin].name }}
{% endif %}
{% endfor %}
{% if len(pins) == 0 %}
No devices currently in use.
</p>
<p>
Used today:
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment