Emoncms local updating to remote emoncms

Afternoon all
I am using sync to send my data over from local emoncms to remote emoncms, this then is uploaded to heatpumpmonitor.org. The problem i have is that it will not update automatically fro local to remote, I have to use sync each time. Does anyone have any ideas what i’m doing wrong please.
Thanks
Mike

There should be something called service-runner running - this can be checked on the Admin page. That should then run the sync_run.php script to upload the selected feeds.

See this page for more information.

You can use the following cron entry (in the user crontab on your local emoncms), suggesting 7 minutes past 2am in the morning as a random upload point here.

7 2 * * * php /opt/emoncms/modules/sync/sync_upload.php 2>&1

you say it Tim like I am a nuerosurgeon and understands it, but i will have a go. lol Thanks for uploading to heatpumpmonitor.org

Hello @Satwelsh you need the crontab entry that @Zarch mentioned.

1. SSH into your emonBase/emonhp (are you familiar with that step?).
2. Open crontab from the command line:

crontab -e

3. Add the sync_upload script as an entry there, I’ve changed it to 14 minutes past 2am :slight_smile:

14 2 * * * php /opt/emoncms/modules/sync/sync_upload.php 2>&1

save and exit.

To test an upload, just run:

php /opt/emoncms/modules/sync/sync_upload.php

from the command line

1 Like

Brill thanks Trystan as soon as i get in it will be done.

1 Like