Skip to content

Instantly share code, notes, and snippets.

View happytm's full-sized avatar
🏠
Working from home

happytm

🏠
Working from home
View GitHub Profile
@happytm
happytm / Livingroom.flow
Last active May 26, 2021 01:05
Node-Red RPIEasy Home Automation Flow
{
"id": "567d64ec.2661bc",
"label": "Livingroom",
"nodes": [
{
"id": "98b02e48.6b436",
"type": "switch",
"z": "567d64ec.2661bc",
"name": "Livingroom",
"property": "topic",
@happytm
happytm / tiny_IRremote.cpp
Created July 28, 2019 18:39 — forked from dquadros/tiny_IRremote.cpp
tiny_IRremote - Arduino IRremote ported to the ATtiny
/*
* tiny_IRremote
*
* Version 0.3 June, 2018
* Daniel Quadros
* Added LG support from https://github.com/z3t0/Arduino-IRremote
* Fixed NEC_ONE_SPACE
*
* Version 0.2 July, 2016
* Christian D'Abrera
@happytm
happytm / tiny_IRremote.cpp
Created July 28, 2019 18:37 — forked from rdev5/tiny_IRremote.cpp
tiny_IRremote - Arduino IRremote ported to the ATtiny
/*
* tiny_IRremote
* Version 0.2 July, 2016
* Christian D'Abrera
* Fixed what was originally rather broken code from http://www.gammon.com.au/Arduino/
* ...itself based on work by Ken Shirriff.
*
* This code was tested for both sending and receiving IR on an ATtiny85 DIP-8 chip.
* IMPORTANT: IRsend only works from PB4 ("pin 4" according to Arduino). You will need to
* determine which physical pin this corresponds to for your chip, and connect your transmitter
@happytm
happytm / lirc-pi3.txt
Created July 2, 2019 23:59 — forked from prasanthj/lirc-pi3.txt
Getting lirc to work with Raspberry Pi 3 (Raspbian Stretch)
Notes to make IR shield (made by LinkSprite) work in Raspberry Pi 3 (bought from Amazon [1]).
The vendor has some documentation [2] but that is not complete and sufficient for Raspbian Stretch.
Following are the changes that I made to make it work.
$ sudo apt-get update
$ sudo apt-get install lirc
# Add the following lines to /etc/modules file
lirc_dev
lirc_rpi gpio_in_pin=18 gpio_out_pin=17
@happytm
happytm / assistant_library_with_local_commands_remote.py
Created October 13, 2018 18:34 — forked from samirsogay/assistant_library_with_local_commands_remote.py
Python Script to take custom voice commands for Google AIY Voice Kit
#!/usr/bin/env python3
# Copyright 2017 Google Inc.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software