Status der Schalter u. Relais geändert
This commit is contained in:
@ -12,7 +12,7 @@
|
||||
<h1>RPi Web Server</h1>
|
||||
{% for pin in pins %}
|
||||
<h2>{{ pins[pin].name }}
|
||||
{% if pins[pin].state == 1 %}
|
||||
{% if pins[pin].state == 0 %}
|
||||
ist gerade <strong>an</strong></h2><div class="row"><div class="col-md-2">
|
||||
<a href="/{{pin}}/off" class="btn btn-block btn-lg btn-default" role="button">Turn off</a></div></div>
|
||||
{% else %}
|
||||
@ -22,7 +22,7 @@
|
||||
{% endfor %}
|
||||
{% for pin in pins_in %}
|
||||
<h3>{{ pins_in[pin].name }}
|
||||
{% if pins_in[pin].state == 1 %}
|
||||
{% if pins_in[pin].state == 0 %}
|
||||
ist gerade <strong>an</strong></h3>
|
||||
{% else %}
|
||||
ist gerade <strong>aus</strong></h3>
|
||||
|
Reference in New Issue
Block a user