Newbie issues with emoncms

I hope someone can shed some light on the whole emoncms install and upgrade path. I followed the instructions on this page http://openenergymonitor.org/emon/node/5092 to setup emoncms on my USB HDD. Everything went well and I connected to emoncms on my Pi. At the bottom it shows version 8.3.2. I notice that the current version on emoncms.org is 8.3.5.

Anyway, I then saw the posting saying that 8.5.2 has been released, and set about looking at upgrading. I initally looked at the setup on the Pi and found that the emoncms www site was pointing to /usr/share/emoncms/www. I then went to the emoncms document on https://github.com/emoncms/emoncms/blob/master/docs/Upgrading.md.

Then the confusion started. It talks about emoncms being installed in /var/www/emoncms. But the only thing in that directory is a Modules directory, with an event directory containing a README.md file. So that doesn't look right.

Can someone confirm where I'm meant to put the upgrade (I assume /usr/share/emoncms)

Also, is it possible to download feed data from my emoncms.org site and load it into a local install of emoncms 8.5.2?

Thanks,

Allen

pb66's picture

Re: Newbie issues with emoncms

Hi Allen,

The Creating a local EmonCMS installation on a Raspberry Pi guide uses the "apt-get" debian package installer which is unfortunately no longer actively developed for and therefore the packages have not been updated since v8.3.2. 

The "apt-get" method differed form the usual emoncms installation method when it came to location of the root directory (amongst other things) and it is not easily interchangeable with the mainstream project, I'm sure it can be done as I did at one point write a guide on making the switch as a temporary measure until the "apt-get" packages were updated. They never did get updated and I wouldn't recommend this as a permanent solution if at all avoidable

v8.3.5 is the "current" emoncms.org version, and it is normally a step or 2 behind the repo, the master branch is v8.4.0 although the latest version is v8.5, available in 3 variants v8.5, v8.5 extended and v8.5 low-write. Only the extended v8.5.0 has updated to v8.5.2 (but does still identify itself as v8.5.0xt).

All installed modules including the events module should be located in the Modules folder below the emoncms folder.

It is possible to move data from emoncms.org to your local emoncms, but you should be absolutely sure your local emoncms is ready to go first so that once you copy over the data they run (almost) in sync from there on, rather than having to resolve any issues after the download that result in a period of missing data on your local machine.

Quite a lot has changed since v8.3.2 and it doesn't look like the "apt-get" packaging is going to make a comeback any time soon so you will be far better off making the transition to the "normal" method before going any further. 

Paul

Comment viewing options

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