Keine Beschreibung
Datei suchen
Robert Evers 6831d00a69
Alle Prüfungen waren erfolgreich
Build and Test / build (push) Successful in 1m21s
cleanup code
2025-10-21 23:15:36 +02:00
.devcontainer Initial commit 2025-10-21 23:06:34 +02:00
.forgejo/workflows Initial commit 2025-10-21 23:06:34 +02:00
static Initial commit 2025-10-21 23:06:34 +02:00
.gitignore Initial commit 2025-10-21 23:06:34 +02:00
go.mod Initial commit 2025-10-21 23:06:34 +02:00
go.sum Initial commit 2025-10-21 23:06:34 +02:00
LICENSE Initial commit 2025-10-21 23:06:34 +02:00
main.go cleanup code 2025-10-21 23:15:36 +02:00
Makefile Initial commit 2025-10-21 23:06:34 +02:00
README.md updated Readme 2025-10-21 23:08:49 +02:00

GoPiPump

Building the app locally

Clone the repo to your machine and run this command inside the folder

$ make rpi

This will create an executable in the build folder in the repo.

Build Windows

$ make windows

RPI Setup

User need access to device

Beispiel-Frontend-Integration (AJAX)

In deiner index.html könntest du z.B. so den Status abrufen:

async function fetchStatus() {
  const res = await fetch("/api/status");
  const data = await res.json();
  console.log("Status:", data);
  document.querySelector("#actualPressure").textContent = data.pressure_actual + " bar";
}

🔌 Beispiel-JSON für /api/parameters (POST) { "steps": [ { "pressure1": 1000, "speed1": 10, "hold1": 50, "pressure2": 200, "speed2": 10, "hold2": 50, "cycles": 10 }, { "pressure1": 600, "speed1": 10, "hold1": 50, "pressure2": 300, "speed2": 10, "hold2": 50, "cycles": 10 } ] }