I installed Pimatic (with homeduino) on my Pi and it works all fine. However I also have a Synology that is already up and running 24x7. So why not use the Synology? It took some attempts but I finally got it working. These are my steps (I took a whole lot more during testing, but this should be it).
So perhaps it can help somebody else:
Install chroot (package) from the synology community (https://synocommunity.com/package/debian-chroot)
Install USB UsbSerialDrivers_3.0.2.spk (I used https://wiki.jeedom.fr/index.php?title=Installation_sur_Synology )
Telnet/SSH to synology
start: /var/packages/debian-chroot/scripts/start-stop-status chroot (gets you the chroot prompt)
$apt-get install locales
$Set your locales with space and enter
$Set your timezone
$apt-get install build-essential
$apt-get install nodejs npm nodejs-legacy
Install Pimatic using the ‘normal’ instructions
I use chroot because Pimatic still needs some compiling during startup. Otherwise it would be possible to use the NodeJS Synology package (I think).
PS: BTW no more corrupt SDcards anymore!