Skip to content

Instantly share code, notes, and snippets.

View andreaskueffel's full-sized avatar

Andreas Kueffel andreaskueffel

View GitHub Profile
@andreaskueffel
andreaskueffel / Port80Scanner.cs
Created March 27, 2026 07:40
Subnet Portscanner for Port 80 as Filebased C# App; run with 'dotnet Port80Scanner.cs 192.168.0.0'
using System.Net;
using System.Net.Sockets;
using System.Net.NetworkInformation;
using System.Text;
using System.Collections.Concurrent;
using System.Runtime.InteropServices;
// ----------------- MAIN -----------------
Console.OutputEncoding = Encoding.UTF8;
Console.WriteLine("Starting network scan...");
@andreaskueffel
andreaskueffel / functionNodeZeroExport.js
Last active April 3, 2026 11:01
Zero Export function Node for NodeRed to get target values for 2 independent batteries
/*****************************************************
* Marstek Dual‑Regler (1‑Sekunden Zyklus)
* Ziel: Netz = -5 Watt (leichte Einspeisung)
* Zwei Speicher werden dynamisch geregelt.
*
* Features:
* - PI‑Regler für Gesamtleistung
* - SOC‑Balancing
* - Anti‑Flattern: schneller Anstieg / langsamer Abfall
* - Glättung der Stellgrößen