Skip to content

Instantly share code, notes, and snippets.

View mac-canada's full-sized avatar
💭
I may be slow to respond.

BIMDEC - CANADA mac-canada

💭
I may be slow to respond.
View GitHub Profile
@mac-canada
mac-canada / SimpleThermometer.ino
Created January 30, 2022 00:54 — forked from AlexanderSavochkin/SimpleThermometer.ino
Simple arduino 2-sensors (DS18B20) termometer + I2C LCD sketch
//I2C bus support
#include <Wire.h>
//I2C
#include <LiquidCrystal_I2C.h>
//OneWire bus suport
#include <OneWire.h>
//DS18B20 temperature sensor support
#include <DallasTemperature.h>
//DS18B20 sensor pin
#define ONE_WIRE_BUS 8
@mac-canada
mac-canada / Readme.md
Created May 15, 2020 15:33 — forked from ciotlosm/Readme.md
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.

@mac-canada
mac-canada / lambda_function.py
Created May 8, 2020 22:43 — forked from matt2005/lambda_function.py
Alexa Smart Home Skill Adapter for Home Assistant
"""
Copyright 2019 Jason Hu <awaregit at gmail.com>
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