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
daf38009
Commit
daf38009
authored
Nov 12, 2019
by
Kristian Tan
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Added header to html and suppressed GPIO warninn]g
parent
d77da3bb
Changes
3
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
9 additions
and
0 deletions
+9
-0
app.py
app.py
+1
-0
main.css
static/css/main.css
+4
-0
main.html
templates/main.html
+4
-0
No files found.
app.py
View file @
daf38009
...
@@ -3,6 +3,7 @@ import RPi.GPIO as GPIO
...
@@ -3,6 +3,7 @@ import RPi.GPIO as GPIO
app
=
Flask
(
__name__
)
app
=
Flask
(
__name__
)
GPIO
.
setmode
(
GPIO
.
BCM
)
GPIO
.
setmode
(
GPIO
.
BCM
)
GPIO
.
setwarnings
(
False
)
# Create dictionary to store pin info
# Create dictionary to store pin info
pins
=
{
pins
=
{
...
...
static/css/main.css
View file @
daf38009
body
{
body
{
background-color
:
aqua
;
background-color
:
aqua
;
}
}
.heading
{
text-decoration
:
underline
;
}
\ No newline at end of file
templates/main.html
View file @
daf38009
...
@@ -4,6 +4,10 @@
...
@@ -4,6 +4,10 @@
<link
rel=
"stylesheet"
href=
"{{ url_for('static', filename='css/main.css') }}"
>
<link
rel=
"stylesheet"
href=
"{{ url_for('static', filename='css/main.css') }}"
>
</head>
</head>
<div
class=
"heading"
>
<h1
>
IoT Smart Meter and Lighting Control
</h1>
</div>
<body>
<body>
<h1>
Device Listing and Status
</h1>
<h1>
Device Listing and Status
</h1>
...
...
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