Page 1 of 2

How to revert from beta to stable on Pi?

Posted: Friday 26 December 2014 10:40
by ThinkPad
Hi,

I want to revert from the beta version back to the stable version on my Raspberry.

But how can i do so? I looked in the manual, but didn't found anything about this. Also searched the forum, found some posts from gizmocuz about 'just revert from beta to stable then'. But i can't find HOW to do so :p

Please tell me


SOLVED, also created a wiki page explaining the steps to perform: http://domoticz.com/wiki/Going_back_to_ ... us_version

How to revert from beta to stable on Pi?

Posted: Friday 26 December 2014 10:51
by mbliek
This should give you the latest stable:

Code: Select all

wget http://domoticz.sourceforge.net/domoticz_linux_armv6l.tgz

tar xvfz domoticz_linux_armv6l.tgz

rm domoticz_linux_armv6l.tgz

Re: How to revert from beta to stable on Pi?

Posted: Friday 26 December 2014 10:54
by ThinkPad
Ok, but do i first have to remove the current Domoticz version from the Raspbian OS ?

Re: How to revert from beta to stable on Pi?

Posted: Friday 26 December 2014 11:32
by rron
No that is not necessary. Just follow the instruction of mbliek, that works.

Re: How to revert from beta to stable on Pi?

Posted: Friday 26 December 2014 12:47
by ThinkPad
I got some errors with 'tar', because the folder already existed. But i succeeded by doing this:
  1. In /home/pi i deleted the domoticz folder (sudo rm -rf domoticz).
  2. Then created a new one (mkdir domoticz).
  3. Then go to that directory (cd domoticz).
  4. In that directory, run the wget, tar and rm command.
  5. Then reboot
  6. Domotiz is running now (the stable version instead of beta)
  7. Restore database
  8. Reboot
  9. All done

Re: How to revert from beta to stable on Pi?

Posted: Friday 26 December 2014 13:16
by mbliek
Yes. You needed to do the steps in the Domoticz folder.

But this works also if you wanted to delete the old Domoticz.

Re: How to revert from beta to stable on Pi?

Posted: Friday 26 December 2014 13:21
by ThinkPad
I also created a wiki page for it, can be useful for beginners :)

http://domoticz.com/wiki/Going_back_to_ ... us_version

Re: How to revert from beta to stable on Pi?

Posted: Friday 26 December 2014 13:35
by sebitop
thanks for this wiki but just a question :

I understand this method allows only to use the last beta version released, if i want to downgrade to a specific version I need to install domoticz manually from source
including a make which takes around 1h to compile everything

ok so installation done and now i would like to downgrade to a previous version example 2140

so If i'm correct I need to use the following commands :

svn update -r XXXX
make

is that correct ?

if yes the "make" will again run for.. 1h... but why a web update takes only a few minutes ?
I suppose there is a way to downgrade quiclky a system ?

thanks for your help

Re: How to revert from beta to stable on Pi?

Posted: Friday 26 December 2014 13:37
by ThinkPad
I don't know about that. But feel free to add some extra information to the wiki if needed ;)

Re: How to revert from beta to stable on Pi?

Posted: Friday 26 December 2014 13:43
by sebitop
Ok thanks, once I will find the correct method I will add it to the wiki as it could really help

I understand the latest version is 2125 so if I want to use 2140 I don't know how to do that easily

thanks again for your answer

Re: How to revert from beta to stable on Pi?

Posted: Friday 26 December 2014 22:38
by ThinkPad
Another question: i had some scripts in the /home/pi/domoticz/scripts/ folder, that are now gone. Luckily i have made a backup of the SD card before reverting to the stable version.
How can i get the scripts from the img file i created wit 'win32diskimager' without first writing it to an SD card and booting up Domoticz and accessing it by SSH ?

Re: How to revert from beta to stable on Pi?

Posted: Saturday 27 December 2014 12:16
by sebitop
maybe you can try to mount your image on your computer to explore the image card and to recover the scripts ?

something like daemon tool could help ?

Re: How to revert from beta to stable on Pi?

Posted: Saturday 27 December 2014 15:48
by ThinkPad
Not working unfortunately. Maybe booting a linux live CD and then opening it works.

Gonna try it this evening.

Re: How to revert from beta to stable on Pi?

Posted: Saturday 27 December 2014 19:07
by ThinkPad
I flashed the backup to an SD-card i had lying around. Put that in a second pi and got the files off it with WinSCP.

Re: How to revert from beta to stable on Pi?

Posted: Saturday 27 December 2014 22:26
by sebitop
ah ! you did not say that you have a second pi available :)

then you found the solution :)

Re: How to revert from beta to stable on Pi?

Posted: Saturday 27 December 2014 22:29
by mbliek
Just run the commands I gave within the Domoticz folder and you don't need to delete everything. Saves you a lot of time.

Re: How to revert from beta to stable on Pi?

Posted: Tuesday 07 July 2015 8:44
by thorbj
Seems like this don't work anymore. It gives me a 404 error when trying to wget http://domoticz.sourceforge.net/domotic ... armv6l.tgz
When browsing to http://domoticz.sourceforge.net, I find only packages for windows and sd-card images for RaspberryPi, but noe domoticz_linux_armv6l.tgz...

Re: How to revert from beta to stable on Pi?

Posted: Thursday 09 July 2015 8:44
by Hexer
don't know about that.






ipad air 2 folie

Re: How to revert from beta to stable on Pi?

Posted: Thursday 09 July 2015 14:06
by mbliek
thorbj wrote:Seems like this don't work anymore. It gives me a 404 error when trying to wget http://domoticz.sourceforge.net/domotic ... armv6l.tgz
When browsing to http://domoticz.sourceforge.net, I find only packages for windows and sd-card images for RaspberryPi, but noe domoticz_linux_armv6l.tgz...
try

wget http://domoticz.sourceforge.net/domotic ... armv7l.tgz

Re: How to revert from beta to stable on Pi?

Posted: Friday 10 July 2015 21:59
by Heisenberg
Unfortunately it doesn't work for me with the above link:
pi@domoticzpi ~/domoticz $ wget http://domoticz.sourceforge.net/domotic ... armv 7l.tgz
--2015-07-10 21:58:39-- http://domoticz.sourceforge.net/domotic
Resolving domoticz.sourceforge.net (domoticz.sourceforge.net)... 216.34.181.96
Connecting to domoticz.sourceforge.net (domoticz.sourceforge.net)|216.34.181.96| :80... connected.
HTTP request sent, awaiting response... 404 Not Found
2015-07-10 21:58:39 ERROR 404: Not Found.

--2015-07-10 21:58:39-- http://.../
Resolving ... (...)... failed: Name or service not known.
wget: unable to resolve host address `...'
--2015-07-10 21:58:39-- http://armv7l.tgz/
Resolving armv7l.tgz (armv7l.tgz)... failed: Name or service not known.
wget: unable to resolve host address `armv7l.tgz'