Skip to content

Instantly share code, notes, and snippets.

@schauveau
schauveau / fossibot-mqtt.md
Last active May 12, 2025 10:11
Analysis of the MQTT protocol used by the Fossibot batteries (F2400, F3600-pro)
@schauveau
schauveau / main.md
Last active February 16, 2025 08:47
Linux on TUXEDO InfinityBook Pro 15 - Gen9 - AMD

Notes for my Linux configuration on a Tuxedo InfinityBook Pro 15 - Gen9

I did the installation from scratch so without using any of the Linux images proposed by Tuxedo.

I have been using Debian for more than 15 years (and various Linux distros for a lot longer) but I decided to try Arch Linux on this machine. Correction: I switched back to Debian because ... reasons.

The CPU is an AMD Ryzen 7 8845HS with Radeon 780M Graphics

The native screen resolution is 2560x1600 @ 240.000 Hz

@schauveau
schauveau / TS0601_air_filter.js
Last active April 14, 2024 11:31
TS0601_air_filter external converter for Z2M with cache
const fz = require('zigbee-herdsman-converters/converters/fromZigbee');
const tz = require('zigbee-herdsman-converters/converters/toZigbee');
const exposes = require('zigbee-herdsman-converters/lib/exposes');
const utils = require('zigbee-herdsman-converters/lib/utils');
const legacy = require('zigbee-herdsman-converters/lib/legacy');
const e = exposes.presets;
const ea = exposes.access;
const STARTUP_DELAY = 4.0 ; // how much to wait before reporting for the first time
const PUBLISH_DELAY = 10.0 ; // And the delay before
@schauveau
schauveau / README-TAPO-Linux.md
Last active June 18, 2025 10:38
Notes about TP-Link Tapo C500 and Linux

TP-Link Tapo C500 and Linux

Those are my notes about using the TP-Link Tapo C500 camera in my Linux environment.

More precisely, my Linux system are

  • a Debian Testing desktop pc
  • a few raspberry pi
  • an Asustor NAS that is running a highly customized Linux

Tapo C500 technical summary

@schauveau
schauveau / flowblade_1134_workaround.md
Last active January 21, 2024 12:30
Workaround for the black preview bug in Flowblade

IMPORTANT: The trick described below is now obsolete. Use SDL12COMPAT_NO_QUIT_VIDEO=1 instead

The issue is described here jliljebl/flowblade#1134

I am using the Wayland compositor Sway and for me, the preview in Flowblade is always black even when using XWayland.

I found a way to move the preview to a separate window.

SIMPLY SPEAKING, THIS IS NOT A BUG FIX BUT AN UGLY HACK TO MAKE FLOWBLADE USABLE FOR PEOPLE AFFECTED BY ISSUE 1134!!!!

@schauveau
schauveau / 00-AS1102T.md
Last active July 5, 2023 11:48
ASUSTOR NAS AS1102T - Notes d'un utilisateur Linux

NAS ASUSTOR AS1102T - Notes d'un utilisateur Linux

J'ai récemment acheté un petit NAS ASUSTOR AS1102T pour mon domicile.

Il s'agit d'un petit modèle avec seulement 2 baies mais pour le moment il ne contient qu'un unique SSD de 1To (donc pas de raid).

https://www.asustor.com/product/spec?p_id=70

Mon réseau local est essentiellement composé de machines Linux (pc, rasberry pi, ...) ainsi que d'un mobile Android.

@schauveau
schauveau / pw-volume-monitor.bash
Last active October 6, 2022 21:34
Bash script for waybar to provide pipewire volume
#!/bin/bash
#
# A script to display the pipewire/wireplumber volume in Waybar
#
# This is an optimised bash script. wpctl is called once every $DELAY seconds
# to obtain the default sink volume. No other process is started.
#
# The waybar configuration should look like that
#
@schauveau
schauveau / pipewire-headset-microphone.md
Last active July 6, 2022 20:06
Making the microphone not suck on my DOQAUS CARE 1 headset with pipewire/wireplumber

Introduction

July 1st 2022. I recently replaced pulseaudio by pipewire/wireplumber on my Debian laptop (unstable).

Everything seems to be working at as with pulseaudio including my bluetooth headset (DOQUAUS CARE 1).

Like most bluetooth headsets, that one supports 2 kinds of profiles:

  • High Fidelity Playback (A2DP Sink) with two codecs SBC and SBC-XQ.
  • Headset Head Unit (HSP/HFP) with codec a single codec CVSD.
@schauveau
schauveau / kodi-start-video.sh
Created June 17, 2021 20:34
A bash script to play video URL on a remote Kodi server.
#!/bin/bash
#
# A small shell script that uses kodi-send and youtube-dl to play
# videos (or audio) URLs on a Kodi server.
#
# Examples:
# - send a Youtube page
# kodi-start-video.sh https://www.youtube.com/watch?v=Xwn8fQSW7-8
# - send a DailyMotion page
# kodi-start-video.sh https://www.dailymotion.com/video/x7syshi
@schauveau
schauveau / tz.bash
Last active June 8, 2021 13:32
Bash function to display a given time in multiple timezones
#!/bin/bash
# tz <TIME SPECIFICATION>
#
# Display the specified time in multiple timezones.
#
# If no time is specified then "now" is used.
#
# You may want to customize the ZONES array below with your
# favorite timezone names (see also tzselect)
#