i have a self hosted install of emon cms at a hosting company that gives me unlimited data on database, so for that reason i use the mysql feed engine exclusive, they also dont care much about how frequent i submit data (thou i suspect they did not know what they where answering me) but i did give them detailed info on what i was doing
now i know that the pi sd card image is different and uses a mix of phpfina and phptime series
is it still possible to port the setup including dashboard etc and the feed themselfes from one install to the other?
Not trying to nit-pick, but AIUI, the definition of self-hosted as used with regards to an instance of
emonCMS is taken to mean a local copy. i.e. one running on one of your machines vice one
running on emoncms.org or a machine provided by a hosting company.
Again, my aim here is not to nit-pick, but to try and avoid any possible confusion for other users,
especially new ones.
I edited the title of the thread to reflect the above statement.
OK.
Could you elaborate a bit on what youâre asking here: is it still possible to port the setup including dashboard etc and the feed themselfes from one install to the other?
Indeed they are.
But, all you need do is issue the command rpi-rw to put the filesystem in read-write mode
whereupon you can make the changes you need/want.
Issuing the command rpi-ro returns the system to read-only mode.
The read-write command has a timeout function, so if the rpi-ro command isnât issued, the
filesystem will return to read-only mode after the timeout.
Thatâs what I thought.
So now Iâm a bit confused. You want to go from a remote host, to one of your RasPis.
Why do you say then i would not call it a local copy?
The title says from remote to local. Is that not correct?
Yes, that can be done. Many do exactly that. (except their âremote hostâ is emoncms.org) but the underlying principle is the same. (the version of emonCMS that emoncms.org uses is different than the version one installs on a RasPi)
Thereâs a thread that discusses using the sync module to do that task.
Itâs not a straightforward operation and there seem to be some caveats along the way.
Search the forum for sync module
Are you trying to install this on the hosted service? (I sort of lost the thread to this bit).
REDIS is only used to trigger the shell script. Your bigger problem may well be the hosting company does not allow shell scripts to be executed. If they do, you can just run the script directly.
If I understand this correctly, you have a local Pi install that you wish to move to a remote hosted version of emoncms and move from the file based data storage to mysql data storage.
If so, I donât know how that conversion might be done. As the volume of data is really quite small unless you are storing a large number of feeds, I donât think there is much advantage for you.
Depends on how old the SDCard image is. This used to be the case to reduce wear on the SD Card, but recent changes mean that this is no longer the case. More importantly, âlow writeâ actually means that the data to be written is buffered so you get one write at greater intervals rather than lots of small writes very regularly.