Skip to content

Instantly share code, notes, and snippets.

View jnsw's full-sized avatar

Jan Seewald jnsw

View GitHub Profile
@jnsw
jnsw / sun_time_generic_actions.yaml
Created December 14, 2025 19:40
A minimal Home Assistant blueprint that runs user-defined ON and OFF actions based on either a sun event or a fixed time. The logic is selectable: sun → ON & time → OFF or time → ON & sun → OFF. Works with any entity or service via generic actions.
blueprint:
name: Sun ↔ Time Actions (Generic)
description: Run any action based on a sun event and a fixed time. Choose which one turns ON and which turns OFF.
domain: automation
input:
mode_selector:
name: Logic Mode
description: Choose which trigger runs ON and which runs OFF
default: sun_on
@jnsw
jnsw / index.html
Created January 29, 2025 10:12
Music Player | Audio Player 🎵
<div id="player-bg-artwork"></div>
<div id="player-bg-layer"></div>
<div id="player-container">
<div id="player">
<div id="player-track">
<div id="album-name"></div>
<div id="track-name"></div>
<div id="track-time">
<div id="current-time"></div>
<div id="track-length"></div>
@jnsw
jnsw / mountnfs.sh
Created February 15, 2022 21:05 — forked from ondrejh/mountnfs.sh
Bash script: Wakeup and mount NFS server.
#!/bin/bash
#
# This script should do:
#
# 1) test if nfs folder is mounted and exit 0 if yes
# 2) try to mount it and exit 0 if success
# 3) try to wake the server if not possible to mount
# 4) wait while its not woked (pinging)
# 5) try againt 2-4 several times