mirror of https://github.com/lumapu/ahoy.git
commit
0a70006bda
13 changed files with 190 additions and 0 deletions
@ -0,0 +1,32 @@ |
|||||
|
name: github pages |
||||
|
|
||||
|
on: |
||||
|
push: |
||||
|
branches: |
||||
|
- gh-pages # Set a branch to deploy |
||||
|
pull_request: |
||||
|
|
||||
|
jobs: |
||||
|
deploy: |
||||
|
runs-on: ubuntu-22.04 |
||||
|
steps: |
||||
|
- uses: actions/checkout@v3 |
||||
|
with: |
||||
|
submodules: true # Fetch Hugo themes (true OR recursive) |
||||
|
fetch-depth: 0 # Fetch all history for .GitInfo and .Lastmod |
||||
|
|
||||
|
- name: Setup Hugo |
||||
|
uses: peaceiris/actions-hugo@v2 |
||||
|
with: |
||||
|
hugo-version: 'latest' |
||||
|
# extended: true |
||||
|
|
||||
|
- name: Build |
||||
|
run: hugo --minify |
||||
|
|
||||
|
- name: Deploy |
||||
|
uses: peaceiris/actions-gh-pages@v3 |
||||
|
if: github.ref == 'refs/heads/main' |
||||
|
with: |
||||
|
github_token: ${{ secrets.GITHUB_TOKEN }} |
||||
|
publish_dir: ./public |
@ -0,0 +1,7 @@ |
|||||
|
--- |
||||
|
title: "{{ replace .Name "-" " " | title }}" |
||||
|
date: {{ .Date }} |
||||
|
tags: [] |
||||
|
draft: false |
||||
|
--- |
||||
|
|
@ -0,0 +1,34 @@ |
|||||
|
baseURL = 'http://lumapu.github.io/ahoy' |
||||
|
languageCode = 'en-us' |
||||
|
title = 'AhoyDTU' |
||||
|
|
||||
|
[permalinks] |
||||
|
blog = "/:filename/" |
||||
|
|
||||
|
# See https://feathericons.com/ |
||||
|
# The value of pre is the icon name |
||||
|
[menu] |
||||
|
[[menu.main]] |
||||
|
name = "Home" |
||||
|
url = "/" |
||||
|
weight = 1 |
||||
|
[[menu.main]] |
||||
|
name = "Getting started" |
||||
|
url = "/getting_started/" |
||||
|
weight = 2 |
||||
|
[[menu.main]] |
||||
|
name = "About" |
||||
|
url = "/about/" |
||||
|
weight = 3 |
||||
|
# [[menu.main]] |
||||
|
# name = "Blog" |
||||
|
# url = "/blog/" |
||||
|
# weight = 2 |
||||
|
# [[menu.main]] |
||||
|
# name = "Tags" |
||||
|
# url = "/tags/" |
||||
|
# weight = 3 |
||||
|
|
||||
|
|
||||
|
[params] |
||||
|
homeText = "Check how your Hoymiles inverter is performing" |
@ -0,0 +1,9 @@ |
|||||
|
--- |
||||
|
title: "About" |
||||
|
date: 2022-10-26T21:34:10Z |
||||
|
tags: [] |
||||
|
draft: false |
||||
|
--- |
||||
|
|
||||
|
AhoyDTU is a firmware for ESP8266 and ESP32 modules to read values from a hoymiles inverter of the 3rd generation. |
||||
|
It is generally based on reverse engineering which started in [Mikrocontroller.net Forum](https://www.mikrocontroller.net/topic/525778). |
@ -0,0 +1,32 @@ |
|||||
|
--- |
||||
|
title: "Getting Started" |
||||
|
date: 2022-10-26T21:27:10Z |
||||
|
tags: [] |
||||
|
draft: false |
||||
|
--- |
||||
|
|
||||
|
## Hardware |
||||
|
|
||||
|
The hardware insists only in two modules: |
||||
|
* ESP8266 / ESP32 Wifi module |
||||
|
* NRF24L01+ module |
||||
|
|
||||
|
### Part list |
||||
|
|
||||
|
| Component | ~ Price (including shipment) | |
||||
|
|-----------------|------------------------------| |
||||
|
| ESP8266 | 4,55 € | |
||||
|
| NRF24L01+ | 5,65 € | |
||||
|
| Dunpont Cables | 2,65 € | |
||||
|
| 100uF Capacitor | 2,89 € | |
||||
|
| | | |
||||
|
| Sum | 15,74 € | |
||||
|
|
||||
|
|
||||
|
### Connection diagram |
||||
|
|
||||
|
## Software / Firmware |
||||
|
|
||||
|
The firmware can be found on [](https://github.com/lumapu/ahoy). Point to the releases section on the right part of the page and download the zip-file. It contains binaries for both ESP models. |
||||
|
|
||||
|
### Flash |
@ -0,0 +1,12 @@ |
|||||
|
<!doctype html> |
||||
|
<html lang="en"> |
||||
|
{{ partial "head.html" . }} |
||||
|
<body> |
||||
|
{{ partial "nav.html" . }} |
||||
|
<div class="container"> |
||||
|
<main id="main"> |
||||
|
{{ block "main" . }}{{ end }} |
||||
|
</main> |
||||
|
</div> |
||||
|
</body> |
||||
|
</html> |
@ -0,0 +1,10 @@ |
|||||
|
{{ define "main" }} |
||||
|
|
||||
|
<h1>{{ .Title }}</h1> |
||||
|
{{ range .Pages.ByPublishDate.Reverse }} |
||||
|
<p> |
||||
|
<a class="font-125" href="{{ .RelPermalink }}">{{ .Title }}</a> |
||||
|
</p> |
||||
|
{{ end }} |
||||
|
|
||||
|
{{ end }} |
@ -0,0 +1,6 @@ |
|||||
|
{{ define "main" }} |
||||
|
|
||||
|
<h1>{{ .Title }}</h1> |
||||
|
{{ .Content }} |
||||
|
|
||||
|
{{ end }} |
@ -0,0 +1,8 @@ |
|||||
|
{{ define "main" }} |
||||
|
|
||||
|
<div id="home-jumbotron" class="jumbotron text-center"> |
||||
|
<h1>{{ .Site.Title }}</h1> |
||||
|
<p class="font-125">{{ .Site.Params.homeText | markdownify }}</p> |
||||
|
</div> |
||||
|
|
||||
|
{{ end }} |
@ -0,0 +1,11 @@ |
|||||
|
<head> |
||||
|
<meta charset="utf-8"> |
||||
|
<meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no"> |
||||
|
{{ $css := "css/bootstrap.min.css" | relURL }} |
||||
|
<link rel="stylesheet" href="{{ $css }}"> |
||||
|
{{ $css := "css/style.css" | relURL }} |
||||
|
<link rel="stylesheet" href="{{ $css }}"> |
||||
|
{{ $title := print .Title " | " .Site.Title }} |
||||
|
{{ if .IsHome }}{{ $title = .Site.Title }}{{ end }} |
||||
|
<title>{{ $title }}</title> |
||||
|
</head> |
@ -0,0 +1,7 @@ |
|||||
|
<div id="nav-border" class="container"> |
||||
|
<nav id="nav" class="nav justify-content-center"> |
||||
|
{{ range .Site.Menus.main }} |
||||
|
<a class="nav-link" href="{{ .URL }}">{{ .Name }}</a> |
||||
|
{{ end }} |
||||
|
</nav> |
||||
|
</div> |
File diff suppressed because one or more lines are too long
@ -0,0 +1,15 @@ |
|||||
|
tr { |
||||
|
border-top: 1px solid #ccc; |
||||
|
border-left: 1px solid #ccc; |
||||
|
} |
||||
|
|
||||
|
td, th { |
||||
|
border-bottom: 1px solid #ccc; |
||||
|
border-right: 1px solid #ccc; |
||||
|
padding: 7px; |
||||
|
} |
||||
|
|
||||
|
h2, h3, h4 { |
||||
|
margin-top: 15px; |
||||
|
color: #0d6efd; |
||||
|
} |
Loading…
Reference in new issue