Version 2

Discussions about RaZberry - Z-Wave board for Raspberry computer
pofs
Posts: 688
Joined: 25 Mar 2011 19:03

Re: Version 2

Post by pofs »

pz1 wrote:
Clean installation already has it pre-configured for you.
A clean installation sounds a bit ambiguous. Does it also mean that I do have to exclude/re-include all Z-Wave devices, or is just a
wget -q -O - razberry.z-wave.me/install/v2.0.0-rc8 | sudo bash ?
By "clean installation" I meant to install it from scratch on a new flash card and have a blank Home Automation config.
It is more suited for new users, while existing users need to perform some additional steps (which are not too much different from updating) if they want to keep the existing network.

Network topology and decvices are stored on the chip itself, so you don't need to re-include devices. But to keep existing devices intervew state, you might need to copy config file. This is mandatory if you have secure devices in your network!

To do that, after installation copy /opt/z-way-server/config/zddx/ folder contents from your old system to the new one, and run the following command:

Code: Select all


After that you'll get a clean HA (with ZWave Binding already included) while keeping existing network safe.
find /opt/z-way-server/config/zddx -name "*.xml" -exec /opt/z-way-server/z-cfg-update {} \;

pz1
Posts: 2053
Joined: 08 Apr 2012 13:44

Re: Version 2

Post by pz1 »

pofs wrote: To do that, after installation copy /opt/z-way-server/config/zddx/ folder contents from your old system
I assume that is the same folder as the /zddx which I find in the backup file made with the Expert view?
That zddx contains only one file: d01c1f5b-DevicesData.xml
I could not verify, because earlier today my Pi has crashed again. Apparantly meant to force me in this experiment :mrgreen:
Since 29-12-2016 I am no longer a moderator for this forum

pofs
Posts: 688
Joined: 25 Mar 2011 19:03

Re: Version 2

Post by pofs »

pz1 wrote:I assume that is the same folder as the /zddx which I find in the backup file made with the Expert view?
That zddx contains only one file: d01c1f5b-DevicesData.xml
Yep, it is!

pz1
Posts: 2053
Joined: 08 Apr 2012 13:44

Re: Version 2

Post by pz1 »

Thanks a lot. I'll give it a try tomorrow
Since 29-12-2016 I am no longer a moderator for this forum

zoic22
Posts: 45
Joined: 04 Apr 2014 14:21

Re: Version 2

Post by zoic22 »

I just try it's work for me (I juste change port of razberry to /dev/ttyAMA0). For now I just test in dev system (without any module) and I only use API but no error. I don't see any big difference in API for now.

Thank for your work

pz1
Posts: 2053
Joined: 08 Apr 2012 13:44

Re: Version 2

Post by pz1 »

@pofs
I did the following:
  • Copied the razberry1.7.1.img onto an SD card.
  • Placed in in the Raspberry, and applied power to startup.
  • Ran the ExpertUI which seemed to work
  • Connected with Putty and did wget -q -O - razberry.z-wave.me/install/v2.0.0-rc8 | sudo bash
  • Next I tried to stop z-way-server to get my old configuration in. This stop failed:

Code: Select all

pi@raspberrypi ~ $ sudo /opt/z-way-server/z-way-server stop
/opt/z-way-server/z-way-server: error while loading shared libraries: libzcommons.so: cannot open shared object file: No such file or directory
Looks like something is missing in the install file?
Since 29-12-2016 I am no longer a moderator for this forum

zoic22
Posts: 45
Joined: 04 Apr 2014 14:21

Re: Version 2

Post by zoic22 »

Try this, to stop z-way server :
sudo service z-way-server stop

pz1
Posts: 2053
Joined: 08 Apr 2012 13:44

Re: Version 2

Post by pz1 »

Thanks, that did the job. Apparantly I had the wrong command in my memory
Since 29-12-2016 I am no longer a moderator for this forum

pz1
Posts: 2053
Joined: 08 Apr 2012 13:44

Re: Version 2

Post by pz1 »

pofs wrote:

Code: Select all

After that you'll get a clean HA (with ZWave Binding already included) while keeping existing network safe.
find /opt/z-way-server/config/zddx -name "*.xml" -exec /opt/z-way-server/z-cfg-update {} \;
The command resulted in this error message

Code: Select all

pi@raspberrypi ~ $ find /opt/z-way-server/config/zddx -name "*.xml" -exec /opt/z-way-server/z-cfg-update {} \;
/opt/z-way-server/z-cfg-update: /usr/lib/arm-linux-gnueabihf/libxml2.so.2: version `LIBXML2_2.9.1' not found (required by /opt/z-way-server/z-cfg-update)
Still seems something missing
Since 29-12-2016 I am no longer a moderator for this forum

User avatar
PoltoS
Posts: 5632
Joined: 26 Jan 2011 19:36

Re: Version 2

Post by PoltoS »

Code: Select all

LD_LIBRARY_PATH=/opt/z-way-server/libs find /opt/z-way-server/config/zddx -name "*.xml" -exec /opt/z-way-server/z-cfg-update {} \;

Post Reply