Jeelink, eMonTx, Debian and OEMGateway

Hi,

I'm new to the whole OEM thing, so please be gentle.

I've got Debian 7 running in a VM on Windows. I've installed emoncms (had to do a manual install since I couldn't get the app package to install) and it is up on my local web server. I've created a test bed for the eMonTx and I can connect from Debian to the JeeLink and get data from the eMonTx.

What I am having trouble with is getting the data from the Jeelink to Emoncms. I've seen some 'conflicting' articles or forum posts which seem to suggest OEMGateway is the suggested method to get the data. However I had seen others which mention possibly an internal method for Emoncms to get it. So I guess my first question is to confirm whether I need OEMGateway or whether there is a simple equivalent already packaged with Emoncms?

Assuming OEMGateway is the recommended method, I've tried to use OEMGateway and using the config I found in a forum post I've put an listener entry in the config with a type of EmonhubJeelink. However when I run the gateway it complains that there is no such type. I've reviewed the oemgatewaylistener.py script and can see the other classes defined, but sure enough not the Jeelink one. Do I need a different or custom interface script (that I haven't been able to find online) or should I be using a different standard class/type eg. OemGatewayRFM2PiListener?

Thanks in advance,​

Jason

 

pb66's picture

Re: Jeelink, eMonTx, Debian and OEMGateway

Hi Jason, There have been various "input interfaces" for emonCMS but currently the only recommended approach is to use emonHub. OEM Gateway was emonHub's predecessor and both the "raspberrypi" module for emoncms and the "emoncms-module-rfm2pi" debian package have been retired to focus on the 1 interface.

emonHub will work with jeelink, I use one myself with emonHub, on a windows PC.

There is more info on how to install emonHub in the Emonhub installation/update thread and to use the JeeLink you will need to make some minor changes in settings to redirect the rfm2pi interfacer to the usb port, you can also rename it if you prefer, if you were using a Pi I would of said create a new interfacer like the rfm2pi interfacer, but since you are on a pc, I assume you have no need for the rfm2pi interfacer so it may as well be altered, either way you need to end up with settings along the lines of

[[JeeLink]]
    Type = EmonHubJeeInterfacer
    [[[init_settings]]
        com_port = /dev/ttyUSB0
    [[[runtimesettings]]]
        group = 210
        baseid = 15
        frequency = 433

edit the usb port address if required and the group, baseid and frequency in the example are also the default values so can be omitted unless you wish to use a different setting.

You will need to add your emoncms apikey etc much the same as you did with OEMG.

​Paul

jandkw99's picture

Re: Jeelink, eMonTx, Debian and OEMGateway

Thanks for your help Paul.

With a bit of mucking around I've got emonhub reading from the Jeelink/emonTx. I've posted another question about why emonhub is reporting dropping invalid frames.

One comment I might make with link you sent me above, it makes mention of dev-emonhub on github. In looking for the 'release version' I found the emonhub project (https://github.com/emonhub/emonhub) and the readme it has a link to the 'release version', which has an empty project and a link to another website with some more circular links back to other documentation and the OEM website (from memory).

I guess I'm wondering is there a 'release' version of emonhub or should people just be taking a cut from the dev project? 

Regards,

Jason

pb66's picture

Re: Jeelink, eMonTx, Debian and OEMGateway

Hi Jason, The original plan was to release emonHub as a debian package, so the "Master" branch on github was reserved for the "released version", however the debian thing hasn't happened (yet) and emonHub didn't get formally released as such, the "dev" version got included on the SD card image and well, here we are.

Apologies for the lack of documentation too, I did begin work on a documentation website, but took it down as it was incomplete and development took priority as emonHub was gaining pace.

Paul

jandkw99's picture

Re: Jeelink, eMonTx, Debian and OEMGateway

Hi Paul,

Thanks for your continued support. I was thinking about documenting my experience so that it might help future nubes. If you are interested I'll send you a copy and if you think it is useful then perhaps we can find an appropriate place to post it.

Last night I also decided that I would like to extract my Solar PV data from PVOutput.org. I've seen plenty of posts wanting to extract data from emoncms and sent to PVOutput, but not the other way around. I've started writing a script which may be useful to others. I'll see how it goes.

Regards,

Jason

pb66's picture

Re: Jeelink, eMonTx, Debian and OEMGateway

Any additional documentation is helpful as it is always a bit thin, there is very little on the JeeLink.

​I'm sure there would other users that would find a tool to extract PVOutput data useful so do keep us posted.

Comment viewing options

Select your preferred way to display the comments and click "Save settings" to activate your changes.