Sync module not working for me

I've been using the system for a couple months now, and really enjoying it.  I have been logging data to emoncms.org, and am now setting up to log to my RaspberryPi. 

So I just did a fresh install of emoncms and the sync module from github, created an empty mysql database.

I'd like to transfer over the data that has been accumulating on emoncms.org, so I ran Sync, filled in the two fields with "http://emoncms.org" and my emoncms.org write API key.  Then I got the messages:

Warning: Creating default object from empty value in /var/www/emoncms/Modules/sync/sync_controller.php on line 76
Fatal error: Cannot use object of type stdClass as array in /var/www/emoncms/Modules/sync/sync_controller.php on line 101

If I try again, Sync doesn't ask me for the server and API Key, it just shows the message:

Fatal error: Cannot use object of type stdClass as array in /var/www/emoncms/Modules/sync/sync_controller.php on line 101

The URL called by Sync is:

http://raspberrypi/emoncms/sync?url=http://emoncms.org&remotekey=[MY_API_KEY]

I had a look at the PHP code referenced in the error messages, but couldn't figure it out.  I read through the blog posts at:

http://openenergymonitor.blogspot.com/2012/09/data-portability-importing...

and

http://openenergymonitor.blogspot.co.uk/2012/09/data-portability-version...

but couldn't glean any clues.

Thanks for any ideas or hints in helping me get this working.

-Ed

 

TrystanLea's picture

Re: Sync module not working for me

Hello Ed, I was sure I had updated the sync module to work with the modular version of emoncms but looking at it again this morning I realise I missed quite a lot. Anyway I have updated it now to work and have tested it, so if you download the latest version of the sync module that should do it.

Thanks for trying to work it out and reading the blogs.

Trystan

edllew's picture

Re: Sync module not working for me

Thank you.  The Sync module does now work better for me.  I haven't verified that it works fully as expected, and unfortunately I don't have time right at the moment to fully check it out.  But I will return to this in a couple weeks and verify operation.

 

-Ed

 

ukmoose's picture

Re: Sync module not working for me

 

 

Comment viewing options

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