How to move from Pi to Synology

On various Hardware and OS systems: pi / windows / routers / nas, etc

Moderator: leecollings

Post Reply
MeAlbert
Posts: 65
Joined: Friday 06 December 2019 14:23
Target OS: Raspberry Pi / ODroid
Domoticz version: 2020.1
Contact:

How to move from Pi to Synology

Post by MeAlbert »

Hi
I have Domotcz running for some time now on a raspberry Pi Zero. I have a Sybology DS218+ where I put Domoticz on today.
I can open Domoticz on the Synology but now I have to put the Pi stuff on the Synology and I have no idea how to do that.
I can ssh the Pi and know the IP address from the Synology drive but what to copy and how??
Please help
EddyG
Posts: 1042
Joined: Monday 02 November 2015 5:54
Target OS: -
Domoticz version:

Re: How to move from Pi to Synology

Post by EddyG »

First, what do you have installed (software/hardware) on the Raspberry?
Second, did you install extra libraries for the use of Domoticz on the Raspberry?
What Python version is installed on the raspberry and the Domoticz?
MeAlbert
Posts: 65
Joined: Friday 06 December 2019 14:23
Target OS: Raspberry Pi / ODroid
Domoticz version: 2020.1
Contact:

Re: How to move from Pi to Synology

Post by MeAlbert »

Only installed software on PI. When I look at about Domoticz I get this info.
Version: 2020.1
Build Hash: 63fa969e4
Compile Date: 2020-03-22 15:16:16
dzVents Version: 3.0.1
Python Version: 3.7.3 (default, Dec 20 2019, 18:57:59) [GCC 8.3.0]
I do not know what you mean with extra libraries but I have installed influx and grafana to make nice graphs.
I also use MQTT. I have youless , openwether map and GoodWe solar inverter via SEMS API running. And of course many dummy devices.
The about Domotcz on Synology gives:
Version: 2020.1
Build Hash: 0
Compile Date: 1970-01-01 01:00:00
dzVents Version: 3.0.1
Python Version: None

If you need to know more please let me know.
Thanks in advance
EddyG
Posts: 1042
Joined: Monday 02 November 2015 5:54
Target OS: -
Domoticz version:

Re: How to move from Pi to Synology

Post by EddyG »

Copy of files can be done with WinSCp or via a share on the Synology NAS.
Normally you should only copy the domoticz.db file, the scripts added to the scripts directory, and the plugins of the plugins directory.
And it depends if you use any python script, also install Python on the Synology.
Seen by what you use I think you don't need to install anything extra.
Just give it a try and see what happens. ;)
MeAlbert
Posts: 65
Joined: Friday 06 December 2019 14:23
Target OS: Raspberry Pi / ODroid
Domoticz version: 2020.1
Contact:

Re: How to move from Pi to Synology

Post by MeAlbert »

I have a IMac so work on Ios. WinSCp will not work i think. Don't understand what a share is. (other than a file that can be seen then on my IMac)
I have a copy of the Domoticz.db file on my Mac. But my first question is then how to copy to my Synology on the right place?
Can I use ftp for that? I have FileZilla. I also did see that i can connect to the Synology via ssh. Is that the way to go?
And how do i install python on the Synology. On the Pi i always use apt-get.
Sorry for the questions, i work on the Pi a few years now but always on the Pi itself so do not know how to get to the outside world on a Pi.

------- edit -----
found domoticz on the Synology at:
Meterkast@Synology:/var/packages/domoticz$ ls
conf enabled etc INFO scripts target WIZARD_UIFILES
MeAlbert
Posts: 65
Joined: Friday 06 December 2019 14:23
Target OS: Raspberry Pi / ODroid
Domoticz version: 2020.1
Contact:

Re: How to move from Pi to Synology

Post by MeAlbert »

I restored the backup of the Pi on the synology and it gets to live. There are a few things that do not work.

First of all the push to influx. That's logic because there is no influxdb on the Synology. Is it simple to add that (and grafana) to the Synology?
Or the other possibility is to keep using my Pi for grafana and influx.

I have to change things with respect to MQTT and not send it to the Pi but to the Synology. That should be easy.
but I get this error : 2020-06-06 10:32:03.100 Error: MQTT: Failed to start, return code: 14 (Check IP/Port). does it mean there is no mosquito on the Synology"

I use a plugin that i put in by hand on the Pi in the plugin directory. just do the same on the Synology and it will appear?
I know a lot of questions but please help me in the right direction.
sammyke007
Posts: 204
Joined: Monday 08 May 2017 20:48
Target OS: Raspberry Pi / ODroid
Domoticz version: 2022.1
Location: Belgium
Contact:

Re: How to move from Pi to Synology

Post by sammyke007 »

My advice: don't migrate to your NAS! I'm migrating from Synology to a Pi as the Jadahl's Syno packages stopped receiving updates for now. I had a stable Domoticz on my DS414 for years, but most tutorials/scripts/plugins are written for Pi installations anyway. It also keeps your NAS awake all of the time. Just my 2 cents...
EddyG
Posts: 1042
Joined: Monday 02 November 2015 5:54
Target OS: -
Domoticz version:

Re: How to move from Pi to Synology

Post by EddyG »

Install Docker on the Synology and with https://registry.hub.docker.com/r/samue ... b-grafana/ you will have influxdb and grafana.
You could leave where mosquitto was, but if you want to change install it in Docker: https://registry.hub.docker.com/_/eclipse-mosquitto/
There is also a Mosquitto in the Package Center.
Python3 is in the Package Center of DSM on the Synology. Did you search?
Plugins can be installed or copied on to Synology as with the Raspberry Pi.
Better find all the answers to your questions before migrating.
@sammyke007 Isn't that what a NAS is for -> 24x7x52 and longer.... I have a NAS running for more then 7 years and still 0 disk failure.
MeAlbert
Posts: 65
Joined: Friday 06 December 2019 14:23
Target OS: Raspberry Pi / ODroid
Domoticz version: 2020.1
Contact:

Re: How to move from Pi to Synology

Post by MeAlbert »

@EddyG
Thanks for your answers. I did not know that in DSM there were so many possibilities.
I installed docker and that went fine. If I look for Mosquito I find a lot of possibilities and do not know how to choose the right one.
If I look what I need I would get the "zackmattor/mosquito-websocket" as the best choice. Do you agree?
If I look for Grafana I can also find that but not with influx.-- Edit-- How do I use the http link for Influx and Grafana you gave in Docker? Or should I do it differently?-- End Edit. Found out how to do this.

Installing the plugin I understand but with ssh I can not find where domoticz is installed. When I know where to look I can find the plugins directory I can install the plugin. I thought I found it but the sub directories are not there so not the right directory.
I really appreciate your help and learned a lot on DSM in short time. Thanks for that.
Last edited by MeAlbert on Sunday 07 June 2020 14:37, edited 1 time in total.
EddyG
Posts: 1042
Joined: Monday 02 November 2015 5:54
Target OS: -
Domoticz version:

Re: How to move from Pi to Synology

Post by EddyG »

Both Mosquitto and influxdb with grafana are in the above links.
It depends a little bit on the processor which is in your Synology.
Best look for the official image, after that select on star count is a good starting point.
I don't have Domoticz installed on my Synology, so I am not quite sure where to find it.
But search, and below that there should be a subdirectory plugins, otherwise create it with the right ownership and install there.
User avatar
erem
Posts: 230
Joined: Tuesday 27 March 2018 12:11
Target OS: Raspberry Pi / ODroid
Domoticz version: 2021.1
Location: Amsterdam/netherlands
Contact:

Re: How to move from Pi to Synology

Post by erem »

domoticz for synology @ http://www.jadahl.com/
Regards,

Rob
Post Reply

Who is online

Users browsing this forum: No registered users and 1 guest