Good morning.
I am using “emoncms portal” to log data from a solar installation installed in a remote house. It works fine and I am satisfied with this.
Now I decided to create a local instance of the program installing the software on a linux box running Ubuntu 18.04 (emoncms Version: 10.8.5).
I want to synchronize the feeds coming from the emoncms portal to local instance.
The installation instructions of sync module seem to not been updated with the actual release of emoncms software (in the paper it’s suggested to edit a file settings.php and change it, but emoncms now use a settings.ini file instead).
So I had to correct some errors in order to make the software to work (partially !).
For example in sync_controller.php the following instruction had a parameter less (I added the parameter after $options ‘’)
$result = $feed->create($session[‘userid’],$tag,$name,$engine,$options,’’);
I had to create by hand the directories /var/opt/emoncms/phpfina and the other for timeseries , etc…
Actually I was able to download the list of feeds as well the inputs.
After Downloaded the feeds (sync feed menu) I get the list on the feed page , the data is in TIMESTORE (0 bytes).
Running sudo php sync_run.php the first time I get the download of all feeds data (example):
{“action”:“download”,“local_id”:60,“remote_server”:“https://emoncms.org”,“remote_id”:450928,“engine”:5,“remote_apikey”:“ff441103cdd16ec18708b09efebd5578”}
/var/opt/emoncms/phpfina/–downloaded: 857740 bytes
the feed page show the last measure of feed but no history.
Manually I download the inputs and I can see the values but not automatic update happens.
My question is : I have to download the inputs and create new feeds starting by here ?
or just download the feeds (but I do not see the history)