Skip to content

Instantly share code, notes, and snippets.

View savikko's full-sized avatar

Tommi Savikko savikko

  • Finland
View GitHub Profile
@savikko
savikko / automation.yaml
Created May 22, 2023 19:34
Frigate / HA daily video
alias: Send daily videos
description: ""
trigger:
- platform: webhook
webhook_id: videokooste
condition: []
action:
- service: notify.mobile_app_your_ios
data:
title: Daily video camera 1

Keybase proof

I hereby claim:

  • I am savikko on github.
  • I am savikko (https://keybase.io/savikko) on keybase.
  • I have a public key ASBZsry8nCe2U7CO4xudMb8ncpz_8dx22xhgZbq8YGwKSwo

To claim this, I am signing this object:

@savikko
savikko / README.md
Last active May 31, 2022 20:59
Home Assistant Stopwatch (draft)

Installation instructions

  1. Add stopwatch.js to your www/ folder
  2. Add two helpers, input_datetime and input_number, like this:
input_datetime:
  stopwatch:
    name: Stopwatch current
    has_date: true
 has_time: true
# NOTE! First upload has to be done via UART - seems that OTA is not possible if ESPHome-compiled firmware is just uploaded
# see note at https://esphome.io/components/esp32_ble_tracker.html
esphome:
name: gls10
platform: ESP32
# https://github.com/esphome/issues/issues/1098#issuecomment-845789058
board: esp32dev
platformio_options:
platform: espressif32@3.2.0

Fetch albums by artist

First install httpie and jq (pip install httpie, pip install jq).

Save mass-fetch.cmd and get-albums.cmd to one directory.

Then create inputfile.txt in the same directory which could be:

Metallica
"Dream Theater"
@savikko
savikko / 1-titania-to-gcal-csv.md
Last active November 12, 2021 19:18
Työvuorot Titaniasta Google-kalenteriin

Ohjeet

Tämä ohje pätee, jos käytössä on Titanian "vain luku" -tilassa toimiva uudehko palvelu.

Jos sattuu olemaan niin, että sinulla onkin pääsy vain "vanhanmalliseen" Titaniaan niin katso tämä sivu ensin: https://savikko.github.io/titania-to-gcal/

Alkuvalmistelut

Ota ensin allaoleva titania-to-gcal.js -teksti talteen leikepöydälle ja liitä se vaikkapa Muistio-ohjelmaan. Huomaa, koko teksti pitää olla kopioituna (ensimmäisenä rivinä var calItem.. ja viimeisenä rivinä save_csv(calItem);).