Skip to content
forked from emoncms/sync

In development: Download or upload emoncms feed data between local and remote emoncms server's

License

Notifications You must be signed in to change notification settings

energylocal/sync

This branch is 68 commits behind emoncms/sync:master.

Folders and files

NameName
Last commit message
Last commit date

Latest commit

author
TrystanLea
Nov 16, 2023
782bdc6 · Nov 16, 2023
Oct 9, 2022
Nov 4, 2023
Jul 2, 2019
Aug 27, 2023
Apr 26, 2020
Oct 27, 2018
Nov 16, 2023
Mar 29, 2022
Aug 4, 2023
Sep 24, 2019
Oct 9, 2022
Jan 10, 2022

Repository files navigation

Sync module for emoncms

Download and upload feeds between a local and remote emoncms server

syncmodule.png

  1. Login to your local installation of emoncms.
  2. Navigate to Setup > Sync
  3. Enter your emoncms.org username and password to bring up the list of available feeds.
  4. Click Download all, or download feeds individually
  5. Browse the feeds locally, that's it!

You may also be interested in the python based emoncms backup utility if you do not wish to setup a local emoncms instance to download/backup/archive emoncms data from a remote server such as emoncms.org: https://github.com/emoncms/usefulscripts/tree/master/backup_py

Automatic EmonPi, Emonbase Update

The Sync module is included in the default EmonPi/EmonBase software stack as of 26th April 2018. If you do not see the sync module under the emoncms Setup tab try running EmonPi or EmonBase update from the Administration page on your EmonPi/EmonBase.

Manual Linux Installation

Note: The sync module has hard coded paths for the emoncms directory location that point to: /var/www/emoncms. If your installation has emoncms installed in /var/www/html/emoncms you will need a symlink to /var/www/emoncms:

ln -s /var/www/html/emoncms /var/www/emoncms

The setting $home_dir or $emoncms_dir in emoncms settings.php also need to be set to reflect your system.

Install the sync module to /opt/emoncms/modules (you may need to create those directories first):

cd /opt/emoncms/modules
git clone https://github.com/emoncms/sync.git

Symlink the web part of the sync module to the public html emoncms modules directory:

ln -s /opt/emoncms/modules/sync/sync-module /var/www/emoncms/Modules/sync

Update the emoncms mysql database via the Admin > Update interface. Click on 'Update Database' next to the 'Update Database Only' option.

Install Service Runner

The sync module downloads or uploads data using a script that runs in the background. This script can be automatically called using the emoncms service runner. See Emoncms: Service-runner installation details here.

Troubleshooting

  • Check that the $homedir or $emoncms_dir setting is set appropriately on your emoncms installation
  • If your emoncms installation is in /var/www/html/emoncms, make a symlink to /var/www/emoncms as described above.

To run the sync process manually:

cd /opt/emoncms/modules/sync
sudo php sync_run.php

About

In development: Download or upload emoncms feed data between local and remote emoncms server's

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • PHP 99.8%
  • Shell 0.2%