This includes getting a list of chips, their line numbers, enumerating the properties of the lines/pins, and providing to the user the list of valid pins to connect to relays. It also includes reworking the fake relay system and the configuration file. I believe this ends the rampant refactoring and I'll now stabilize out some features.
14 lines
319 B
HTML
14 lines
319 B
HTML
<html>
|
|
<h1>Pools'n'Pumps Device</h1>
|
|
{% if not relays %}
|
|
<h2>No relays found.</h2>
|
|
{% else %}
|
|
<h2>Relays</h2>
|
|
<ul>
|
|
{% for relay in relays %}
|
|
<li><a href="/relay/{{ relay.id }}">{{ relay.name }}</a> - {{ relay.state }}</li>
|
|
{% endfor %}
|
|
</ul>
|
|
{% endif %}
|
|
<a href="/relay/create">Create Relay</a>
|
|
</html>
|