Skip to content

Instantly share code, notes, and snippets.

@THWillert
THWillert / pdfCompress
Last active March 1, 2023 16:54
Compress PDFs with Ghostscript and Exiftool
pdfcompress ()
{
gs -q -dNOPAUSE -dBATCH -dSAFER \
-dFastWebView \
-sDEVICE=pdfwrite \
-dCompatibilityLevel=2.0 \
-dPDFSETTINGS=/screen \
-dPreserveMarkedContent=true \
-dEmbedAllFonts=true \
-dSubsetFonts=true \
@THWillert
THWillert / README.md
Last active June 5, 2021 11:22
Send FRITZ!Box call list as CSV file via e-mail V2.0.

FRITZ!Box call list as CSV file via e-mail.

The FRITZ!Box shows a maximum of 400 entries in the call list. For a regular, automatic backup of them, I have developed the following flow.

Flow

Customization to your own system

  • Match the inject node with the parameters for the FRITZ!Box, regarding the frequency and number of data.
  • Match the configuration of the Fritz Box.
@THWillert
THWillert / flow.json
Created December 18, 2020 08:34
Node-RED: DWD-UV-Index mit Zwischenspeicherung
[
{
"id": "2e344d88.00a512",
"type": "file",
"z": "1e47caf.81f0ab5",
"name": "",
"filename": "DWD_UV-Index.json",
"appendNewline": false,
"createDir": false,
"overwriteFile": "true",
@THWillert
THWillert / README.md
Last active May 23, 2021 12:58
Philips-TV remote / JointSpace API

Philips-TV Remote

A simple remote control via the dashboard, using the Philips jointSPACE-API.

Dashboard

For correct functioning, the IPs in the HTTP nodes must be adapted.

jointSPACE

@THWillert
THWillert / README.md
Last active May 23, 2021 12:56
Flow to display the UV index of the DWD

DWD UV-Index

The "Deutscher Wetterdiest" (German Weather Service) serves as the source.

Only data for Germany!

The data is updated only once a day at 10:00 a.m. by the DWD. Therefore only one query time is given here.

This should be shifted temporally possibly, so that not everyone queries the data at the same time.

@THWillert
THWillert / README.md
Last active March 12, 2021 07:26
Function node for easy debugging.

Debug

Function node for easy debugging.

Simply insert it into a connection:

screenshot

The following is displayed as the status text: