Commit af4dce9e authored by Kristian Tan's avatar Kristian Tan

Added placeholder pins

parent 232c785b
...@@ -80,8 +80,8 @@ todays_cost = get_todays_cost() ...@@ -80,8 +80,8 @@ todays_cost = get_todays_cost()
# Create dictionary to store pin info # Create dictionary to store pin info
pins = { pins = {
25: {'name': 'Light', 'state': GPIO.LOW, 'on_time': None, 'on_date': None, 'Wattage': 15}, 25: {'name': 'Light', 'state': GPIO.LOW, 'on_time': None, 'on_date': None, 'Wattage': 15},
28: {'name': None, 'state': GPIO.LOW, 'on_time': None, 'on_date': None, 'Wattage': 15}, 28: {'name': 'None', 'state': GPIO.LOW, 'on_time': None, 'on_date': None, 'Wattage': 15},
27: {'name': None, 'state': GPIO.LOW, 'on_time': None, 'on_date': None, 'Wattage': 15} 27: {'name': 'None', 'state': GPIO.LOW, 'on_time': None, 'on_date': None, 'Wattage': 15}
} }
......
...@@ -14,7 +14,7 @@ ...@@ -14,7 +14,7 @@
<h3 class="device_list_title">Device Listing and Status</h3> <h3 class="device_list_title">Device Listing and Status</h3>
{% for pin in pins %} {% for pin in pins %}
{% if pin.name|length %} {% if pin.name != 'None' %}
<p> <p>
{{ pins[pin].name }} : {{ pins[pin].name }} :
{% if pins[pin].state == true %} {% if pins[pin].state == true %}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment