Skip to content

Instantly share code, notes, and snippets.

View CodyBohn's full-sized avatar

Cody Bohn CodyBohn

View GitHub Profile
@lumascet
lumascet / esphome.yaml
Last active May 17, 2024 03:29
FYSETC-E4 esphome roller blinds
substitutions:
device_name: "lush-cover-controller"
pulley_diameter_mm: "21.963"
gear_ratio: "1880/2000"
distance_mm: "2050"
acceleration: 500 steps/s^2
velocity: 2500 steps/s # 200 (motor steps) * ${microsteps}
back_off_steps: "200" # back off some steps to reduce stepper energize noise
open_current_x: 1000ma
@cerebrate
cerebrate / homeassistant.yaml
Created September 26, 2021 14:43
Home Assistant Kubernetes manifest
---
apiVersion: v1
kind: Secret
metadata:
name: mysql-recorder-pass
namespace: homeassistant
type: Opaque
data:
password: <REDACTED>
---
@daniel-frenkel
daniel-frenkel / ESPHome.YAML
Last active November 14, 2022 17:49
ESPHome YAML File
substitutions:
device_name: edit-name
pulley_diameter_mm: "15" # 1 turn about 47 mm
gear_ratio: "1" # not used yet for simplicity
distance_mm: "500" # about 10 turns
acceleration: 12800 steps/s^2
velocity: 12800 steps/s # 1 turn per second
open_current: 500ma
open_stall_threshold: "20"
close_current: 600ma
@rajabiy
rajabiy / make-seed-and-deploy-ubuntu.yml
Last active September 19, 2022 17:53
here little exsample how to deploy ubuntu ova into vcenter viaansible and cloud-init.iso
- hosts: localhost
become: no
vars:
vcenter_username: vcenter_user@vsphere.local
vcenter_password: "vspheresupersecretpassword"
tasks:
- name: Seed directory
file:
path: "{{lookup('env', 'PWD')}}/seed/{{hostvars[item].inventory_hostname}}"
state: directory
#include <WiegandNG.h> //https://github.com/jpliew/Wiegand-NG-Multi-Bit-Wiegand-Library-for-Arduino
//needs https://github.com/jpliew/Wiegand-NG-Multi-Bit-Wiegand-Library-for-Arduino/pull/6
WiegandNG wg;
void PrintAR6182(WiegandNG &tempwg) {
volatile unsigned char *rawData=tempwg.getRawData();
uint8_t rawSize = tempwg.getBufferSize();
uint8_t countedBits = tempwg.getBitCounted();
uint8_t pinDigits = 0;
#cloud-config
chpasswd:
list: |
ubuntu:VMware1!
expire: false
groups:
- docker
users:
- default
- name: ubuntu
@mcfrojd
mcfrojd / Shield_Intents.MD
Last active July 27, 2024 13:39
Working INTENTS to use with Community Hass.io Add-ons: Android Debug Bridge for your Nvidia Shield TV

Latest Update 2021-03-06 : New image showing the new "Services" in Home Assistant and got some tips from the comments below.

Credits and thanks: Home Assistant Forum users & Github users: @ocso, @wiphye, @teachingbirds, @tboyce1, @simbesh, @JeffLIrion @ff12 @rebmemer @siaox @DiederikvandenB @Thebuz @clapbr @Finsterclown


Start apps on your android device (in the examples below, my Nvidia Shield TV) from Home Assistant

alt text

Starts Youtube App

entity_id: media_player.shield
command: >-
@jackm
jackm / can-packages-and-tools.md
Last active July 15, 2024 08:05
Collection of CAN bus packages and tools

Collection of CAN bus packages and tools

This document assumes the use of Linux as the chosen development platform. Items in bold are highly recommended.

It is recommended to use SocketCAN when working with CAN bus on Linux. It is supported by the Linux kernel mainline and follows the Linux interface model, allowing you to use other network tools such as Wireshark. This also allows the creation of virtual CAN interfaces where no physical hardware is required to simulate or replay CAN messages.

@ciotlosm
ciotlosm / Readme.md
Last active February 5, 2024 15:04
Kiosk mode for lovelace

Kiosk mode

Installation

Add kiosk.js file with the content below to your www folder in config.

Like any other custom script, use ui-lovelace.yaml resources section to reference the kiosk.js file.

Make sure you add kiosk somewhere in your URL. You can use it in the id of your view or in the query string.

@plembo
plembo / CalibreServerOnLinux.md
Last active May 21, 2024 14:50
Calibre Server on Linux

Calibre Server on Linux

Introduction

Calibre is a powerful cross-platform, open source, ebook manager and editing platform. Its calibre-server component can be used to publish an e-book library on a local network. While you can launch calibre-server as a desktop application, it can also be run as a daemon on a headless Linux server.

This tutorial on setting up calibre-server using Ubuntu 14.04 is very good, but dated.