Simple Emontx over WIFI / OpenWRT - EmonWRT

I was looking for something very simple just to connect some home electrical meter to the Emoncms. I just thought I would also share this idea.

I basically connected an Emontx v2 (cheaper) to a WR703n WIFI router with their serial port. Then I wrote a script to forward to data to the emoncms server.

It works pretty well and I find it good to have just only one unit that does that basic job.

I explained all the inside here and called it EmonWRT.

If anyone like the idea and want to contribute to improve it I'd be really happy to hear about you.

 

jtjaeger's picture

Re: Simple Emontx over WIFI / OpenWRT - EmonWRT

I just setup my wr703n with openWrt, and am trying to configure it with an Emontx as you've described on your site.

Your link for the emonwrt_forwarder.sh script seems to be broken -  would you be willing to send this to me, or point me to the right spot? 

Thanks, great idea on this setup!

chacal's picture

Re: Simple Emontx over WIFI / OpenWRT - EmonWRT

The link is fixed now. Just realised you might need a configuration file example to place inside /etc/config. I wrote This howto for completion.

Good to hear you like the idea as well. Personally I find excellent to get rid of SD cards which tend to be unreliable.

Don't hesitate to share your code if you develop it further.

 

jtjaeger's picture

Re: Simple Emontx over WIFI / OpenWRT - EmonWRT

I got the file, and the config and howto are helpful too - thanks for that.

I'm setting up a emonTx shield on an Arduino Uno, which will send the "EMONWRT CSV_DATA" over USB to the wr703n (no direct serial connection). I'm hosting a local Emoncms server on a raspberry pi.

I'll share the code once I get it up and running. Again, great idea, thanks for documenting it so well.

chacal's picture

Re: Simple Emontx over WIFI / OpenWRT - EmonWRT

So I take you are using the usb as a serial device? Are you reading from /dev/ttyUSB0 or similar maybe?

I will include the serial port as a parameter in the config file in next version. This should allow for setup like yours to be easily editable.

chacal's picture

Re: Simple Emontx over WIFI / OpenWRT - EmonWRT

I have now added RF support for forwarding data from rfm12b sensors.

wrt54g's picture

Re: Simple Emontx over WIFI / OpenWRT - EmonWRT

hello
I also found this idea very interesting and I wanted to test it on a arduino yun seen that mounts openwrt in order to have a unique piece but does not work I do not know why!

Comment viewing options

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