Skip to content

Instantly share code, notes, and snippets.

View ludeeus's full-sized avatar

Joakim Sørensen ludeeus

View GitHub Profile
@Landrash
Landrash / skip.sh
Last active February 9, 2018 18:59
Quick SKIP script for the hassbian pi-gen script.
#!/bin/bash
if [ -f pi-gen/stage0/SKIP ]; then
echo "SKIP file found. Removing SKIP files"
sudo rm pi-gen/stage0/SKIP
sudo rm pi-gen/stage1/SKIP
sudo rm pi-gen/stage2/SKIP
exit
else
echo "No SKIP file found. Creating SKIP files."
@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.

@dale3h
dale3h / ui-lovelace.yaml
Created July 28, 2018 09:15
[Lovelace] How to Duplicate a Lovelace Card
title: Home
views:
- title: View 1
cards:
- &card1
type: entities
title: Card 1
show_header_toggle: false
entities:
- light.bedroom
@awarecan
awarecan / long_live_access_token.py
Created August 29, 2018 20:49
Get long-lived bearer token for home-assistant power user
import os
from datetime import timedelta
from homeassistant import auth, core, config as conf_util
CLIENT_ID = 'long_lived_client'
LIFE_TIME = timedelta(days=3650)
async def create_refresh_token(auth_mgr: auth.AuthManager,
@dale3h
dale3h / speck
Last active September 24, 2018 18:39
Hass.io Local Add-on Reloader
#!/bin/bash
readonly BACKUP_DIR=/backup/speck
usage() {
echo "usage: $(basename "$0") addon_name" 2>&1
exit 1
}
addon_install() {