Skip to content

Instantly share code, notes, and snippets.

View marians's full-sized avatar

Marian Steinbach marians

View GitHub Profile
@marians
marians / main.py
Last active January 18, 2024 21:57
Modellierung eines Balkonkraftwerks mit pvlib-python und PVGIS
# Modellierung eines Balkonkraftwerks
# mit Hoymiles 600 Watt Mikrowechselrichter
# und 2 Modulen Typ Canadian Solar CS3L-370MS.
# Ausrichtung: 155 (Süd-Süd-Ost), Neigung 12 Grad.
# Vollständige Verschattung von Westen bis Norden (270° bis 0°)
# durch Gebäude.
#
# Es wird das Wetter des typischen meteorologischen Jahrs (TMY)
# auf Basis der Daten von 2005 bis 2020 verwendet. Mehr dazu
# unter https://joint-research-centre.ec.europa.eu/pvgis-online-tool/pvgis-tools/pvgis-typical-meteorological-year-tmy-generator_en
@marians
marians / README.md
Last active January 25, 2022 07:35
Home Assistant ideas

What to do with Home Assistant

Some ideas I might pursue at some point.

Air humidity alert

When air humidity reaches a threshold value, get an alert on my phone.

Make sure to be alerted only once.

@marians
marians / README.md
Last active August 17, 2021 20:24
Recherche zum Thema Stecker-Solaranlage, Plugin-PV, Plug-and-Play PV, Balkonkraftwerk, you name it

Ziel

Solaranlage an einer Mietwohnung mit großem Balkon in südlicher Ausrichtung anbringen, weniger Strom vom Energieversorger verbrauchen, Geld sparen, Energiewende unterstützen.

Hinweis: Die Informationen trage ich im August 2021 für meinen Wohnort, der im Bereich der Regionetz GmbH Aachen liegt, zusammen.

Offene Fragen

  • Anlage anmelden oder lieber "schwarz" (ohne Anmeldung) betreiben?
  • Was steht in der Norm VDE-AR-N 4105? Diese kann man nur käuflich erwerben.
@marians
marians / Re-partition_a_disk_on_a_Mac.md
Created December 19, 2019 10:44
How to re-partition an external drive from a Mac

WARNING: This erases all data stored on the drive.

I couldn't re-partition a freshly bought USB SSD via the Apple Disk Utility app. With the help of a Stack Overflow thread I came up with this method to create two partitions on the disk.

After this process, the disk can be re-partitioned interactively using Disk Utility.

  1. Plug in the drive to the Computer.
@marians
marians / README.md
Last active October 30, 2019 22:33
Phoniebox installation log
<Absender>
CleverReach GmbH & Co. KG
Mühlenstr. 43
26180 Rastede
<Datum>
@marians
marians / read-sds011-data.sh
Created February 1, 2019 20:52
How to read data from SDS011 sensor via USB serial connection, from http://opengeiger.de/Feinstaub/FeinstaubDatenLogger.pdf
#!/bin/bash
# Anpassung für big endian unter RHEL 7
WDIR=~
while true; do
stty -F /dev/ttyUSB0 9600 raw
INPUT=$(dd conv=swab bs=10 count=1 </dev/ttyUSB0 2>/dev/null | od -x -N10 |head -n 1|cut -f2-10 -d" ");
#Ausgabe
#echo $INPUT
@marians
marians / esp8266-dht-webthing.ino
Last active April 9, 2021 23:47
ESP8266 publishing DHT temperature and humidity via Web Thing API
/**
* Publishing DHT temperature and humidity via the Web Thing API.
*
* This should work with DHT11, DHT21, DHT22 alike thanks to
* device auto detection in the markruys/arduino-DHT library.
*
* This will make the device available under http://livingroom.local/
* for msdns-aware clients.
*
* Dependencies:
@marians
marians / My_First_Raspberry.md
Last active January 7, 2021 08:31
Notes on my Raspberry Pi setup

Keybase proof

I hereby claim:

  • I am marians on github.
  • I am marians (https://keybase.io/marians) on keybase.
  • I have a public key ASC59Z_e1Q8cm9jPZ4xhDuDFkxS1DJuecrMCau60nd58jgo

To claim this, I am signing this object: