Skip to content

Instantly share code, notes, and snippets.

@tasomaniac
tasomaniac / high-humidity-level-detection-notification-for-all-humidity-sensors.yaml
Last active October 30, 2024 00:37 — forked from migsun/high-humidity-level-detection-notification-for-all-humidity-sensors.yaml
high-humidity-level-detection-notification-for-all-humidity-sensors -- Thx to sbyx
blueprint:
name: high humidity level detection & notification for all huminity sensors
description: Regularly test all sensors with 'humidity' device-class for crossing
a certain humidity level threshold and if so execute an action.
domain: automation
input:
threshold:
name: Humidity warning level threshold
description: Humidity sensors threshold.
default: 65
@tasomaniac
tasomaniac / screenrecord.sh
Last active June 28, 2022 22:05 — forked from PaulKinlan/getdeviceart.sh
Screen Record for Android
#!/bin/sh
set -e
if [ -z "$1" ]; then
shot_path=$(date +%Y-%m-%d-%H-%M-%S).mp4
else
shot_path="$*"
fi
/*
* Copyright (C) 2014 Chris Banes
*
* 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