Skip to content

Instantly share code, notes, and snippets.

View archi's full-sized avatar

Sebastian Meyer archi

  • Germany
View GitHub Profile
@archi
archi / README.md
Last active March 28, 2024 10:32
MBMD+Home Assistant SDM630 Configuration

This is my config for using an SDM630 via MBMD with Home Assistant.

I did some slight adjustments for the general public, but you probably need to adjust some more things:

  1. Setup a proper MQTT user+pass and configure that in mbmd.yaml
  2. Adjust the serial device name. I recommend the by-id variant over /dev/ttyUSBx, especially if you have multiple devices (for me it's the RS485 interface and the Zigbee controller)
  3. Maybe adjust the serial device config (baudrate and comset)
  4. My mbmd is reachable via mbmd.server.lan, you probably want to adjust that in the sdm630.yaml

What I recommend:

@archi
archi / emulex-initialization.service
Last active December 6, 2021 19:13
Initialize emulex script
[Unit]
Description=Initialize the emulex card by running a self-test
[Service]
Type=oneshot
ExecStart=/bin/bash /opt/initialize-emulex/initialize-emulex.sh
[Install]
WantedBy=network.target
@archi
archi / plugininigen.pl
Created May 31, 2020 14:10
Generate FreeDSP Aurora plugin.ini from SigmaStudio .params file
#!/usr/bin/perl
use strict;
use warnings;
# Process SigmaStudio '.params' file to produce a JSON file for FreeDSP-Aurora
# Written by Sebastian Meyer <github.com/archi>
#
# The Author is not affiliated with FreeDSP.
#
# License: Public Domain, if you use it in your project, it'd be nice to mention me as a contributor.
@archi
archi / up.sh
Created September 19, 2019 12:35
bash function to go 'up' a bunch of folders
# usage example (after 'source'ing this file):
# up 4
# to go up 4 folders
#
# or:
# up
# then it goes up by 1, and you can press ENTER to go up further
# press any other key to stay where your are
#
# Bonus: Sets OLDPWD, so you can use "cd -" to go back to the origin path
@archi
archi / partlist.txt
Created September 29, 2018 10:37
Partlist
C2 100nF (on bottom!)
IC1 4066N (on bottom!)
C1 470uF
R1 1k
D1 1N4004
R2,R3,R4 100R
ZENER 5.1V
R6 6k8
R5 3k3
HU 2x5 header
@archi
archi / level-tool.pl
Last active April 18, 2018 19:31
Perl script to help with 3d printer print bed leveling/calibration
#!/usr/bin/perl
# 3D printer bed calibration/leveling helper script
# Version 0.1.2
# most recent gist @ https://gist.github.com/archi/b3c14ac049ee8df85e744456fe711ac0
#
# Copyright 2018 by Sebastian Meyer <https://github.com/archi/>
#
# This program is free software: you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
/* Melbus CDCHGR Emulator
* Program that emulates the MELBUS communication from a CD-changer (CD-CHGR) in a Volvo V70 (HU-xxxx) to enable AUX-input through the 8-pin DIN-contact.
* This setup is using an Arduino Nano 5v clone
*
* The HU enables the CD-CHGR in its source-menue after a successful initialization procedure is accomplished.
* The HU will remove the CD-CHGR everytime the car starts if it wont get an response from CD-CHGR (second init-procedure).
*
* Karl Hagström 2015-11-04
* mod by S. Zeller 2016-03-14
*