I added a couple of shell scripts launched by a scene switch to disable heaters and roller shutter timers while I am present or while away on vacations and launched via script:///usr/local/bin/domoticz-vacances.sh 0

Now in order to automate closing the roller shutter at a suitable time i.e. at civil dusk but not before 8pm and before 10pm only if not on vacations (by checking vacation switch), here is the little shell script I use to update the scenetimer everyday that relies on sunwait tool:

#!/bin/sh

#

# domoticz-fermeturevolets

# use sunwait to get civil dusk time to calculates when to close roller shutters with the constraints to be in this interval >20h <22h, civildusk i.e. min(max(civildusk,20h),22h)

To configure the google actions do follow ONLY the instructions available http://192.168.0.3:3030/ on the 'Setup Actions on Google Console Instructions" tab and triple check every step. Additionnaly use capital 'C' in ClientID and ClientSecret.

Solve usb serial devices enumeration issue at boot

The problem is that I have a zwave, rxccom RFXtrx433E USB, tic, Conbee II zigbee and smartreader usb serial dongles and I want to be sure that I can distinguish each of them independently of the enumeration process.

Transmission daemon configuration files are located: /var/lib/transmission-daemon/info. Make sure to stop transmission on the synology web interface or using the below commands before editing this file so that your modifications are taken into account:

service transmission-daemon stop

vi /var/lib/transmission-daemon/info/settings.json

service transmission-daemon start

learn to use transmission-remote script

in order to execute some actions at the end of a file download a script can be triggered e.g. for moving files around based on tracker name

mkdir -p "$DOWNLOAD_DIR/trackerb"

tremote --move "$DOWNLOAD_DIR/trackerb"

fi

else

# public torrent

if $istvshow

then

tremote --move "$DOWNLOAD_DIR/serie"

tremote -r

else

echo "other public"

tremote -S

mkdir -p "$DOWNLOAD_DIR/public"

tremote --move "$DOWNLOAD_DIR/public"

fi

fi

periodically you can check if your download and seed is complete based on your seedratio and then decide to move the completed files somewhere and remove it from transmission. This script does this for you:

You can periodically update the blocklist via cron job by issuing sudo crontab -e and adding:

and restarting cron:

service cron restart

keeping a fair use of the ADSL connection to allow others to have good traffic without too latency edit /var/lib/transmission-daemon/info/settings.json

"download-queue-size:" 5,

"peer-limit-per-torrent:" 5,

"peer-limit-global:" 30,

In order to have good permission rights, in synology domain add transmission gid 107 in /etc/group that should match the gid of debian-transmission in debian domain. Add users that should get access to download directory to this group in synology domain. Fix on debian domain the directory rights to allow writing for debian-transmission:

Files renaming

I use two tools that I find handy:

perl-file-rename that I find extremely useful and powerful that handles regexp (it is installed by default on debian). One example of usage is the following renaming series in directory that starts with the episode numbed: