Skip to content

Instantly share code, notes, and snippets.

View bartclone's full-sized avatar

Bart clones it (or IT) bartclone

  • For fun and joy
  • Netherlands
  • 20:25 (UTC +02:00)
View GitHub Profile
@bartclone
bartclone / consuwijzer-nma.txt
Created September 24, 2023 15:19
consuwijzer-nma
https://www.consuwijzer.nl/doe-uw-melding-bij-acm-consuwijzer
Signify heeft aangekondigd het gebruik van een account (login/password) af te dwingen voor het gebruik van de app, zoals deze hoort bij hun Philips Hue lampen (Zigbee).
Zonder account kunnen lampen en hub straks - ook lokaal - naar verwachting niet meer bediend of geinstalleerd worden via andere wijze (dan schakelaar).
De aangevoerde reden is volgens Signify "veiligheid". Dit speelt bij lokaal gebruik echter geheel geen rol en is een drogreden.
Het altijd afdwingen van een inlog is daarmee niet nodig; daarnaast kan Signify functionaliteiten fors gaan veranderen, zoals de software van lampen en hub aanpassen die inloggen vereist, waar dit nu niet het geval is.
Deze actie van Signify komt feitelijk neer op gijzeling, het onnodig overdragen van gebruiks/gebruikersgegevens (tbv marketing) en onrechtmatig eenzijdig veranderen van functionaliteit ná aankoop van het/de product(en).
Als consument kun je hier niets tegen doen, het wordt als een voldon
@bartclone
bartclone / HA_energy_FAQ.md
Last active September 22, 2023 22:25 — forked from langestefan/HA_energy_FAQ.md
HA Energy Dashboard FAQ

Frequently Asked Questions for the Home Assistant Energy Dashboard

Yes, this beautiful thing:

image

Home Assistant introduces the Energy Dashboard here.

1. I'm replacing my [solar inverter, energy meter, ...], how can I retain my energy dashboard data?

@bartclone
bartclone / syno_move_packages.sh
Created December 23, 2022 13:29
Synology - move package(s) to other Volume
#!/bin/ash
#
# Author: Bart Koppers
# License: GPL v3 - https://www.gnu.org/licenses/gpl-3.0.html
#
# Purpose:
# - easy & safe relocation of Synology packages to a different volume
# Relies on:
# - synoservice, the SynoService Tool Help (Version 25426),
# see CLI Administrator Guide for Synology NAS
@bartclone
bartclone / HA-Automation-MaxTemperature.yaml
Last active November 28, 2021 12:04
Automation als Max temperatuur wordt bereikt (OpenWeather)
alias: Notify op warmste moment van dag
description: Melding sturen op warmste moment van de dag
trigger:
- platform: state
id: max-temp-of-the-day-reached
to: 'on'
#from: 'off'
entity_id: binary_sensor.time_max_temperature_reached
action:
- service: notify.notify
@bartclone
bartclone / HA-Automation-MinTemperature.yaml
Last active November 28, 2021 12:03
Automation als min temperatuur wordt bereikt (OpenWeather)
alias: Notify op koudste moment van dag
description: Melding sturen op koudste moment van de dag
trigger:
- platform: state
id: max-temp-of-the-day-reached
to: 'on'
entity_id: binary_sensor.time_min_temperature_reached
action:
- service: notify.notify
data:
@bartclone
bartclone / HA-OpenWeather-configuration.yaml
Created November 28, 2021 11:55
Schakel switch als tijdstip max/min temperatuur wordt bereikt (OpenWeather)
##################
# Templates BJK # ==> https://www.home-assistant.io/integrations/template/
##################
template:
- binary_sensor:
- name: "Time Max Temperature Reached" # time_max_temperature_reached
state: >
{{ as_timestamp(now())|timestamp_custom('%H:%M')|string()
== states('sensor.time_max_temperature')|string() }}
- name: "Time Min Temperature Reached" # time_min_temperature_reached
@bartclone
bartclone / 001-copy-certs-to-cockpit.sh
Created September 15, 2021 07:56
Copy LE certificate/key to Cockpit
# SCRAP/UNFINISHED
#Source:
#Comment on https://crosstalksolutions.com/definitive-guide-to-hosted-unifi-2021/
#By Binky
#Using info here: https://ryan.lovelett.me/posts/letsencrypt-cockpit/
#I created the file: /etc/letsencrypt/renewal-hooks/post/001-restart-cockpit.sh
#With the provided contents, changing ‘$FQDN’ with my FQDN for the instance and removing the ‘chown’ statement:
# ——————————————————————————–
## Trafik Multi Network Deployment
1. Create Traefik network
` # docker network create --driver=bridge --attachable --internal=false traefik `
2. Edit `traefik2/docker-compose.yml`
- Change ACME email
- Change --providers.docker.network=traefik value if you created different network then `traefik`
@bartclone
bartclone / nextcloud-pgsql-redis-traefikv2-docker-compose.yml
Created March 7, 2021 19:44 — forked from ismailyenigul/nextcloud-pgsql-redis-traefikv2-docker-compose.yml
Docker-compose file for nextcloud with pgsql,redis and traefik deployment
# docker network create nextcloud
NOTES:
1. certificatesresolvers.myresolver.acme.email=myemail@gmail.com
2. TRUSTED_PROXIES values based on your 'nexcloud network'
3. remove traefik.http.middlewares.nextcloud.headers.contentSecurityPolicy and
traefik.http.middlewares.nextcloud.headers.customFrameOptionsValue if you don't want to allow iframe your domain
3
# cat docker-compose.yml
@bartclone
bartclone / fixsynoboot.sh
Last active February 1, 2021 16:27
fixsynoboot.sh
#!/bin/ash
# https://bit.ly/3ja5CGi
# read https://xpenology.com/forum/topic/28183-running-623-on-esxi-synoboot-is-broken-fix-available/
# *Problem*
# - In a VM that you want to upgrade to 6.2.3
# - You get unexplained checsum-errors
# *Solution*
# copy this script (FixSynoboot.sh) to /usr/local/etc/rc.d
# chmod 0755 /usr/local/etc/rc.d/FixSynoboot.sh
#