Emoncms v7 to v8.5 on Pi (converting timestore to phpfina)

Hi all

 

I have been successfully using my setup for the past year based off [2014-02-23-emoncms_raspberrypi_hdd_stack.zip], I thought it was about time to upgrade.

I followed the procedure to update emoncms and it was working well (data points coming in, data available in the dashboards) until I installed the Redis packages. Then nothing.

Looking through the notes here, v8 needs to use the emonhub - so followed the instructions to upgrade / install this.

 

Emonhub appears to be working (can recieve data points and tries to post them) If it posts data to the v7 emoncms distribution - it appears to work. When I point emonhub to the v8.5.0 distribution the post returns errors in the log - which can be replicated by trying the posts manually.

V7

http://[[address]]/emoncms_7/input/bulk.json?apikey=[[magickey]]&data=[[1431584290.18,10,28,2733,380,286,23701,178]]&sentat=1431584290

Returns

ok

 

V8.5.0

http://[[address]]/emoncms/input/bulk.json?apikey=[[magickey]]&data=[[1431584290.18,10,28,2733,380,286,23701,178]]&sentat=1431584290

 

Returns

Notice: Undefined offset: 1 in /var/www/emoncms/Modules/feed/feed_model.php on line 395

Fatal error: Call to a member function post() on a non-object in /var/www/emoncms/Modules/feed/feed_model.php on line 395

 

Using v8.5.0, if I investigate some of the feeds - and open some in the Data viewer, the following error appears:

Request error
Notice: Undefined offset: 1 in /var/www/emoncms/Modules/feed/feed_model.php on line 467

Fatal error: Call to a member function get_data() on a non-object in /var/www/emoncms/Modules/feed/feed_model.php on line 467

 

Can anyone point me in the direction of what I may have missed ? At this point all the pre-req software required for a full linux install is present on my pi (went through this just incase something was missing from the upgrade notes).

 

I really would like to keep the current setup plus historical data.

 

Upgrade Links used:

emoncms:

https://github.com/emoncms/emoncms/blob/master/docs/Upgrading.md

Emonhub:

http://openenergymonitor.org/emon/node/5986

Cheers

 

 

 

 

pb66's picture

Re: Emoncms v7 to v8.5 on Pi (converting timestore to phpfina)

gonzocrazy's picture

Re: Emoncms v7 to v8.5 on Pi (converting timestore to phpfina)

Thanks for the pointer Paul, not exactly the same issue.

I have installed 8.4 as well now and have emonHub submitting data to it - this combination works - I can now see updates to the Input and Feed data. Current and historic data can be seen in 8.4 via the Feeds but nothing is visible in the dashboards (in 7, 8,4 or 8.5) - all appears as empty graphs (with timescale navigation) -which confuses me as at least v7 should still be able to read this data?

 

Cheers

 

 

 

gonzocrazy's picture

Re: Emoncms v7 to v8.5 on Pi (converting timestore to phpfina)

And the solution to that problem is , somewhere the datasource for the graphs has been hardcoded to be http://[host]/emoncms - so emoncms can not 'run' from any other directory IE http://host/emoncms_v7.

 

 

TrystanLea's picture

Re: Emoncms v7 to v8.5 on Pi (converting timestore to phpfina)

Hello @gonzocrazy, the error Notice: Undefined offset: 1 in /var/www/emoncms/Modules/feed/feed_model.php on line 467 and line 395 relates to emoncms trying to use engine  1 which is timestore. Emoncms v8.5 removed timestore support, a little while back I made a start on documenting how to migrate timestore to phpfina here http://openenergymonitor.org/emon/node/10380?page=19.  If you have a go following that, that should then sort the errors, happy to help if you have any questions about the migration procedure.

Comment viewing options

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