Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
16 changes: 8 additions & 8 deletions index.html
Original file line number Diff line number Diff line change
Expand Up @@ -126,10 +126,10 @@ <h2>Start with the software, not a sales call.</h2>
<code>curl -fsSL https://raw.githubusercontent.com/srcfl/ftw/master/scripts/install.sh | bash</code>
</div>
<div class="start-links">
<a href="https://github.com/srcfl/ftw#option-a-raspberry-pi-sd-card-image"><span>01</span>Raspberry Pi image <b>Recommended</b></a>
<a href="https://github.com/srcfl/ftw#option-b-docker-installer"><span>02</span>Docker installer <b>Debian / Ubuntu</b></a>
<a href="https://github.com/srcfl/ftw#option-c-home-assistant-os-add-on"><span>03</span>Home Assistant <b>Add-on</b></a>
<a href="https://github.com/srcfl/ftw#option-d-build-from-source"><span>04</span>Build from source <b>Contributors</b></a>
<a href="https://github.com/srcfl/ftw/blob/master/docs/rpi-image.md"><span>01</span>Raspberry Pi image <b>Recommended</b></a>
<a href="https://github.com/srcfl/ftw#install-on-linux"><span>02</span>Docker installer <b>Debian / Ubuntu</b></a>
<a href="https://github.com/srcfl/ftw#install-on-home-assistant"><span>03</span>Home Assistant <b>Add-on</b></a>
<a href="https://github.com/srcfl/ftw#local-development"><span>04</span>Build from source <b>Contributors</b></a>
</div>
</div>
</section>
Expand Down Expand Up @@ -228,12 +228,12 @@ <h2>New hardware should be a driver, not a fork.</h2>
<li>Contribute the integration back through a pull request</li>
</ul>
<div class="inline-actions">
<a class="text-link" href="https://github.com/srcfl/ftw/blob/master/docs/writing-a-driver.md">Write a driver <span aria-hidden="true">→</span></a>
<a class="text-link" href="https://github.com/srcfl/ftw/tree/master/drivers">Browse drivers <span aria-hidden="true">↗</span></a>
<a class="text-link" href="https://github.com/srcfl/device-drivers/blob/main/docs/WRITING-A-DRIVER.md">Write a driver <span aria-hidden="true">→</span></a>
<a class="text-link" href="https://github.com/srcfl/device-drivers/tree/main/drivers/lua">Browse drivers <span aria-hidden="true">↗</span></a>
</div>
</div>
<div class="code-window" role="group" aria-label="Example Lua device driver">
<div class="code-title"><span>drivers/my_inverter.lua</span><span>Lua</span></div>
<div class="code-title"><span>drivers/lua/my_inverter.lua</span><span>Lua</span></div>
<pre><code><span class="code-key">function</span> <span class="code-call">driver_init</span>(config)
host.set_make(<span class="code-string">"My Inverter"</span>)
host.mqtt_subscribe(config.topic)
Expand Down Expand Up @@ -310,7 +310,7 @@ <h2>Energy infrastructure you can own.</h2>
<div>
<p>Install it. Read it. Break it safely. Send the fix upstream.</p>
<div class="hero-actions">
<a class="btn btn-primary" href="https://github.com/srcfl/ftw#quick-start">Get started <span aria-hidden="true">→</span></a>
<a class="btn btn-primary" href="https://github.com/srcfl/ftw#install-on-linux">Get started <span aria-hidden="true">→</span></a>
<a class="btn btn-ghost" href="https://github.com/srcfl/ftw">Star on GitHub <span aria-hidden="true">↗</span></a>
</div>
</div>
Expand Down