I received this as a PM from rbreuss. Answering here. Please don't use PM for questions (although you may PM me if you think I can answer and may have missed your public question in the flow).
[...] I have a working local EMONCMS at Raspi/HDD/SD platform and I dont know, whether or not is it possible to use OEM gateway at this platform (whether it makes sense) and if so, how to install and configure it.
Well, if you're happy with your setup, keep it as it is. You probably run the .php script to feed emonCMS with the data from the serial port.
However, you may need the OEM Gateway for a specific feature (own sensor input that doesn't go through the RFM2Pi board, buffering,...). In this case, follow the installation steps in the README (see github page: https://github.com/Jerome-github/oem_gateway). You'll need to stop the php script from running (see below).
The parameters are generally set through the configuration file. It is also possible to parameter through emonCMS GUI just like you currently do, but then you're limited to the options offered by the GUI, there's no use using the OEM Gateway, you might as well keep the php script,
[...] Is there any step by step "cookbook for dummies", how to install properly OEM gateway to Raspi with EMONCMS?
That should be the README. Please ask if it is not clear. Maybe we need to add some info in there.
Regarding the currently running php script. It is running automatically on startup. You'd need to stop it from running on startup, and either to stop currently running instance, or just reboot. If you decide to do this, I think you'll need to comment a line in /etc/rc.local. Can't say out of memory. If you decided to do that, please see the docs and/or ask here.
There are many possible configurations. This can be confusing. Since it is not obvious which you're using, consider specifying it when asking. For instance by referring to the names found in the docs: http://emoncms.org/, or by saying which ready-to-go SD Card you bought, if you did buy one.
Re: OEM gateway coexisting with EMONCMS
My platform is heterogenous, self made, based od various sources. Energy meter is based on Arduino Due with RFM modul, based on Boredman modif of standard EMON lib. Temperatures are meassured by Arduino Yun, sending data via Ethernet to base station json based command. Base station is based on Raspberry with HD and SD with fresh installation of EMONCMS v 8.0.9 following great tutorial of Paul. RFM receiver of Raspberry is Jeelink via USB. No one standard OEM module, no bought ready-to-go SD card.
I read that readme at OEM gateway page, but what Im missing there (and it is probably due my very limited knowledge of LINUX environment) is, how to install OEM gateway to my system. Now I have pure installation of raspbian and EMONCMS, but think, OEM gateway files are not in my system now. Im sorry, if my questions are quite stupid...
Radek
Re: OEM gateway coexisting with EMONCMS
@ rbreuss - You are currently using an apt installed copy of emoncms, beware of making any unusual changes to the installation that may get overwritten by using apt-get update. with that array of inputs the oemgateway may work better for you but you would be better off without the emoncms-module-rfn12pi installed if you are installing oemgateway as that has it's own rfm12pi access.
@ Jérôme - is it a must to disable the php script ? will the 2 clash or cause problem? I have had both running at once without an issue, or was that just a lucky fluke ?
Paul
Re: OEM gateway coexisting with EMONCMS
@rbreuss, I'm hoping to try and make the oem_gateway available through APT in the next couple of days, if you can hang on that long. If not, you'll need to clone it from github and follow the install instructions in the readme.
https://github.com/Jerome-github/oem_gateway
Re: OEM gateway coexisting with EMONCMS
@pb66
I don't see how one can have both the php and the python script reading the same serial port. I think when OEM Gateway opens it, it keeps it open, so no one else can open it. Then perhaps the php script tries and fails at opening then just quits.
If the two are running, which one do you expect to read the serial port ? Which one deals with a specific frame of data ? Can it be any ? But then, what if you configured the gateway differently from the php script ?
Of course, you could think of a tricky case where you'd configure the Gateway not to read the serial port, and the php script to send the data to the Gateway on localhost, once this one is able to receive data through emoncms API like you suggested. (I still need to think about and answer that request...), although I don't see the point.
Re: OEM gateway coexisting with EMONCMS
OK thanks Jérôme, I have no desire to run both as such, I was just thrown by your comment as I knew I had not previously disabled php when oemgateway was running and wanted to understand the situation better.
When i had both running I was not accessing the serial port so that will explain how I "fluked" it. I didn't have the rfm2pi installed, most local data was coming in via port 50011 and some arrived via apikey'd url.
I hadn't considered the serial port maybe an issue as I wasn't using it at the time.
Paul
Re: OEM gateway coexisting with EMONCMS
Sure I can wait, no prob. Just let me know then, please.