#Jenkins Query Params
JenkinsBaseURL: "https://jenkins.yourco.com"
JenkinsJobName: "<YOUR JOB NAME>"
JenkinsMultibranchPipelineBranchName: "master"
JenkinsBuildQuery: "(builds[?artifacts[?contains(fileName, '{{ArtifactDesiredVersion}}') == `true`]])[0]" # Partial artifact file name - this assumes your file names are unique per build
JenkinsBuild: "{{ (jenkins.content | from_json) | json_query(JenkinsBuildQuery) }}"
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<xml> | |
<test></test> | |
</xml> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
substitutions: | |
devicename: clock | |
upper_devicename: clock | |
time: | |
- platform: homeassistant | |
id: esptime | |
sensor: | |
- platform: homeassistant |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# https://www.instructables.com/H-Bridge-Motor-Driver-for-Arduino-Using-Transistor/ | |
# https://www.modularcircuits.com/blog/articles/h-bridge-secrets/h-bridges-the-basics/ | |
substitutions: | |
devicename: water_dispenser | |
upper_devicename: water dispenser | |
globals: |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Uses actual Power state instead of button press so that it works from remote HomeAssistant commands | |
as well as local commands | |
Rule1 | |
ON Power1#state=1 DO RuleTimer1 3600 ENDON | |
ON Rules#Timer=1 DO Power1 off ENDON |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
# from https://raspberrypi.stackexchange.com/questions/5407/how-can-i-cut-power-coming-out-of-the-pis-usb-ports | |
sudo uhubctl -l 2 -a 2 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<smil> | |
</smil> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/** | |
* Renders an idempotent-ly random color hex code based on the input string | |
* @param str | |
* @returns | |
*/ | |
stringToColor(str: string): string { | |
/** | |
* will end up as a 3-byte "char" array | |
*/ | |
var hex: number[] = []; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# esphome configuration for the TTGO T-Camera ESP32-WROVER-B | |
# https://www.aliexpress.com/item/TTGO-T-Camera-ESP32-WROVER-B-PSRAM-Camera-Module-ESP32-WROVER-OV2640-Camera-Module-0-96/32966036489.html | |
# I use this 3D-printed case for the device: | |
# https://www.thingiverse.com/thing:3540059 | |
esphome: | |
name: woonkamer | |
platform: ESP32 | |
board: esp32dev |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
function showProps(obj, objName) { | |
var result = ``; | |
for (var i in obj) { | |
// obj.hasOwnProperty() is used to filter out properties from the object's prototype chain | |
if (obj.hasOwnProperty(i)) { | |
if (typeof obj[i] != "object"){ | |
result += `${objName}.${i} = ${obj[i]}\n`; | |
} | |
else { | |
result += `${objName}.${i} = ${showProps(obj[i],objName+"."+i)}\n`; |
NewerOlder