How to update emonhub ?

Hi,

I would like to know how to update emonhub on my Pi.
I'm using the ready-to-go SD card image (emonSD-13-08-14.img.zip) with emonhub rc1.0.

Do a simple "git pull" is enough ? from what directory ?
Do my configuration file (/boot/emonhub.conf) will be erased ?
Something to change in that configuration file with the new version rc1.x ?

Thank's !

Eric

pb66's picture

Re: How to update emonhub ?

Hi Eric

The git pull would need to be done from the emonhub directory which is located in /home/pi so

cd /home/pi/emonhub
rpi-rw
​git pull

should do it, however there were some small changes made to the SD card version and I am far from confident about predicting what git is likely to do at the best of times. For this reason I have not documented or automated the update process yet.

It's always wise to create a copy of the settings file "just in case" personally I've had no issues at all when I upgrade using git but I'm not using the SD card image, 

Glyn reported he had no issues when he updated, but I can't say with any certainty if that means "it worked first time with no intervention" or "it was easy enough for someone well versed in git".

I'm more than happy to be "on standby" in case something doesn't go as planned but I would hope it would work ok.

I would of liked a "emonhub --update" command or similar but I was out voted when I pushed for this at the planning stage, maybe a future version will have some commands to ease updates and also looking at logfiles and opening the conf for editing, who knows?

Paul

Eric_AMANN's picture

Re: How to update emonhub ?

Hi Paul,

Thank's for your clear reply. Now, I know the possible drawback of a "git pull". What about the advantages ? I mean, what does the last version of emonhub (rc1.2 ?) bring compare to rc 1.0 ?

Eric

 

 

pb66's picture

Re: How to update emonhub ?

Hi, Eric. I've PM'd you as I couldn't post here. 

Paul Reed's picture

Re: How to update emonhub ?

Like Paul, I'm not using a read-only file system, but just updated emonhub as per above using git, and all went well with no difficulties encountered.

Paul

Comment viewing options

Select your preferred way to display the comments and click "Save settings" to activate your changes.