Skip to content

Instantly share code, notes, and snippets.

View andersevenrud's full-sized avatar
🤘
w^w^^w^w

Anders Evenrud andersevenrud

🤘
w^w^^w^w
View GitHub Profile
@andersevenrud
andersevenrud / README.md
Last active April 23, 2024 21:30
Strømpris Sensor i Home Assistant

Strømpris i Home Assistant

Det er mulig å legge til strømpris som en sensor i Home Assistant takket være https://www.hvakosterstrommen.no/ .

Dette vil ikke reflektere ditt abonnement, men gjør det enkelt å få et estimat i forbruksdata / energi panelet.

Konfigurasjon

Tilgjenglige områder:

@andersevenrud
andersevenrud / alacritty-tmux-vim_truecolor.md
Last active April 23, 2024 03:48
True Color (24-bit) and italics with alacritty + tmux + vim (neovim)

True Color (24-bit) and italics with alacritty + tmux + vim (neovim)

This should make True Color (24-bit) and italics work in your tmux session and vim/neovim when using Alacritty (and should be compatible with any other terminal emulator, including Kitty).

Testing colors

Running this script should look the same in tmux as without.

curl -s https://gist.githubusercontent.com/lifepillar/09a44b8cf0f9397465614e622979107f/raw/24-bit-color.sh >24-bit-color.sh
@andersevenrud
andersevenrud / README.md
Last active January 15, 2024 20:08
DIY Z-Wave Power Metering Pulse Sensor

DIY Z-Wave Power Metering Pulse Sensor

I created this because my meter doesn't have an accessible HAN port, and I was not able to find any basic Z-Wave sensor to monitor pulses that did not require the use of some (packaged) proprietary solution or a subscription (and mobile apps). Also, kinda expensive.

This cost me $50 in total (2023), which was considerably cheaper and very beginner friendly.

Accuracy is ~99% (when compared to billing information from my provider over a period of 90 days).

Parts Used

@andersevenrud
andersevenrud / 0_NEXA_BRIDGE_X.md
Last active January 13, 2024 19:17
Nexa Bridge X Documentation

Nexa Bridge X Documentation

The "Nexa Bridge X" is a Smart Home bridge device. The internal name is "Bridge2".

It can be attached to a home network and monitor / control devices via an App/Cloud or Local Web UI. Supports assigning devices to rooms and various automations via the provided firmware.

Since this devices comes with a (semi) open API and Websocket it's custom to create custom integrations.

The purpose of this gist is to collect and archive information because there's not much out there and not easily accessible/discoverable, and mostly written in Swedish. Most of this is just from personal notes after writing a Home Assistant Integration.

@andersevenrud
andersevenrud / README.md
Last active November 30, 2023 22:19
Pi-Hole w/D-Link R15
@andersevenrud
andersevenrud / README.md
Last active November 8, 2023 22:12
Arduino Temperature Monitor Hub for Klipper

Arduino Temperature Monitor Hub for Klipper

I wanted to monitor temperatures in certain areas on my printer[^3] with Klipper and came up with the following solution.

BoM

Assumes you have access to soldering iron etc.

  • Arduino or similar
  • Jumper wires
@andersevenrud
andersevenrud / README.md
Last active November 1, 2023 20:43
How to rotate (invert) Raspberry Pi 7" Touch LCD screen & input (RasPi 1, 2, 3)

Rotate Official Raspberry Pi 7" Touch Screen

Shows how to easily rotate (in this case invert to make orientation correct within a case) the Raspberry Pi 7" Touch Screen.

This will also update the calibration for the touch screen so it will work correctly.

References:

@andersevenrud
andersevenrud / 0-README.md
Last active August 10, 2023 19:25
3D Printing Guide w/Creality Ender 3 (v2)

3D Printing Guide w/Creality Ender 3 (v2)

This is just a dump of discoveries, experience, and general insights.

ℹ️ Does not contain any assembly related information.

ℹ️ A lot of this applies to 3D printers in general.

Divided into the following documentation, in order:

@andersevenrud
andersevenrud / README.md
Last active June 21, 2023 09:12
Raspberry Pi Low Voltage Warning

Raspberry Pi Low Voltage Warning

Resolving the Low Voltage warning (aka the "lightning bolt" ⚡) on a Raspberry Pi.

Please note that this research was done on Pi 3 and lower. I don't own a Pi 4 which uses another USB spesification and different power requirements.

Introduction

This is a document that was produced from a mess of personal notes in order to try to create a resource that might be useful for someone that runs into the same issues as me when it comes to powering a Pi in different scenarios.

@andersevenrud
andersevenrud / 0_README.md
Last active May 6, 2023 20:34
NEXA Z-Wave Devices

NEXA Z-Wave Devices

Information about Nexa AB distributed Z-Wave devices.

Please note that this document is a compilation personal notes and opinions about my experience (<1yr) with these devices (and not a complete list). Your experience may vary... and I would love to hear about it in the comments.

Table of Contents