Skip to content

Instantly share code, notes, and snippets.

@rdbahm
rdbahm / Dremel3D45-WebServices.md
Last active August 14, 2021 18:08
Dremel 3D45 Web Services Description
  • Port 80
    • http://[ip]/command
      • To be clear, this is literal. It's the actual word "command."
      • Commands are sent as a POST in simple key-value notation.
      • Known commands:
        • These commands are sent verbatim:
          • GETPRINTERINFO
            • Returns basic printer info, such as model number.
          • GETPRINTERSTATUS
  • Returns info such as filament type, nozzle temperature, etc.
@rdbahm
rdbahm / hardware.ini
Created April 20, 2019 19:11
Empty Epsilon Lights Configuration for 3 Lights in Home Assistant
[hardware]
device = PhilipsHueDevice
ip = 192.168.1.50
username = anything
[channels]
Barlight = 1, 2, 3
Backlight = 4, 5, 6
Roomlight = 3
<#
.SYNOPSIS
Generate an Avorion-format XML ship file of an image.
.DESCRIPTION
From an image file (BMP and PNG tested, others should work), generate a simple grid of "pixels" made of blocks in Avorion. This is a very naiive approach and the game doesn't love huge images. I wouldn't recommend anything over 100x200 pixels in size. Once you have your XML file, move it to your "ships" folder, load it up in Avorion, and merge the blocks together, THEN use Avorion's clipboard to add it to your ship of choice.
.PARAMETER ImagePath
One or more paths to images. Transparency is supported by the converter, but Avorion only shows opacity on certain block types, like hologram.
.PARAMETER BlockWidth
Width, in blocks, of the output to Avorion.
.PARAMETER BlockDepth
@rdbahm
rdbahm / steam-game-notification.yaml
Last active July 16, 2022 00:45 — forked from sbyx/low-battery-level-detection-notification-for-all-battery-sensors.yaml
Home Assistant Blueprint: Notify when Steam Friends are playing a game
blueprint:
name: Notify when Steam friends are playing a game
description: Take an action when friends are playing a Steam game
domain: automation
input:
time:
name: Game Check Frequency
description: Time Pattern, minutes (see HA documentation) for how often to check for the target game.
default: /5
selector:
@rdbahm
rdbahm / zooz_zen34-light.yaml
Last active September 21, 2024 22:17 — forked from smartqasa/lutron_pico_5_light.yaml
Zooz ZEN34 - Light Entity Control
blueprint:
name: Zooz ZEN34 - Light Entity Control
description: "This blueprint allows for the association of a Zooz ZEN34 remote with a light entity. It is designed to simulate the operation of a ZEN34 using direct association including the press and hold functionality for the raise/lower buttons."
source_url: https://gist.github.com/rdbahm/262293fb032a93dbdae4073cebf8e5f8
domain: automation
input:
pico_1:
name: Remote
@rdbahm
rdbahm / Inject-NutanixDrivers.ps1
Last active April 1, 2025 22:12
Integrate Nutanix VirtIO drivers into a Windows ISO
#requires -RunAsAdministrator
<#
.SYNOPSIS
Given a Windows install disk and a Nutanix VirtIO disc, produce install media which includes Nutanix drivers.
.PARAMETER WindowsPath
The path to a Windows install DVD (or a mounted ISO), such as D:\
.PARAMETER NutanixDriverPath
The path to the appropriate Nutanix drivers from the VirtIO ISO. For example, F:\Windows Server 2019