Skip to content

Instantly share code, notes, and snippets.

View MFornander's full-sized avatar
💭
Yes.

Axel Mattias Fornander MFornander

💭
Yes.
  • NVIDIA
  • Boulder, CO
  • 02:47 (UTC -07:00)
View GitHub Profile
@MFornander
MFornander / gist:2674d355c79bb30abaf7c103f17c101b
Created January 22, 2019 23:47
Home Assistant + ZWave Notes
Reset Z-Stick: https://aeotec.freshdesk.com/support/solutions/articles/6000121947-how-to-manually-factory-reset-z-stick-gen5-
apk add git make g++ coreutils linux-headers eudev-dev
mdkir github
cd github
git clone https://github.com/OpenZWave/open-zwave.git --depth 1
cd open-zwave
make #-j6
@MFornander
MFornander / gist:bb9c0bf3870df396197433209aa9446e
Created January 15, 2019 16:45
/etc/init.d/docker-compose
#!/sbin/openrc-run
INSTANCE_NAME="${SVCNAME#*.}"
DOCKER_COMPOSE_BINARY="/usr/bin/docker-compose"
DOCKER_COMPOSE_CONFIG_FILE="/etc/docker/compose/${INSTANCE_NAME}.yaml"
description="Runs docker-compose instances."
dirname="$(dirname "$(realpath "${DOCKER_COMPOSE_CONFIG_FILE}")")"
basename="$(basename "$(realpath "${DOCKER_COMPOSE_CONFIG_FILE}")")"
@MFornander
MFornander / build.log
Created February 25, 2017 18:54
Build log from https://github.com/MFornander/LightSwarm on PlatformIO 2.0 and FastLED 3.1.5
[02/25/17 11:49:56] Processing client (platform: atmelsam, build_flags: -DSERVER=0, upload_port: /dev/ttyACM0, board: adafruit_feather_m0_usb, framework: arduino)
Collected 7 compatible libraries
Looking for dependencies...
Library Dependency Graph
|-- <RadioHead> (C:\Users\windo\Documents\GitHub\LightSwarm\lib\RadioHead)
| |-- <SPI> v1.0 (C:\Users\windo\.platformio\packages\framework-arduinosam\libraries\__cores__\adafruit\SPI)
|-- <FastLED> v3.1.5 (C:\Users\windo\Documents\GitHub\LightSwarm\lib\FastLED)
arm-none-eabi-g++ -o .pioenvs\client\src\main.o -c -fno-rtti -fno-exceptions -std=gnu++11 -fno-threadsafe-statics -g -Os -ffunction-sections -fdata-sections -Wall -mthumb -mcpu=cortex-m0plus -nostdlib --param max-inline-insns-single=500 -DF_CPU=48000000L -DUSBCON -DPLATFORMIO=30300 -D__SAMD21G18A__ -DARDUINO_ARCH_SAMD -DARDUINO_SAMD_FEATHER_M0 -DSERVER=0 -DARDUINO=10611 -DUSB_VID=0x239A -DUSB_PID=0x800B "-DUSB_PRODUCT=\"Adafruit Feather M0\"" -DUSB_MANUFACTURER=\"Adafruit\" -IC:\Users\windo\.platformio\pa