Hi All,
Is it possible to install the gateway on a standard Raspbian wheezy? instead of the standard SD card image?
Is it the same/similar to this post? or am I going to missing a lot of things?
http://emoncms.org/site/docs/raspberrypigatewaybuild
Thanks Josh
Re: Gateway/RPi on standard Debian Wheezy
Hi.
I develop the gateway on a Raspbian system.
It is RW. I didn't make it read-only, although I try to limit logging and I don't use local emoncms instance.
Follow the instructions you pointed to in order to have the RFM2Pi board working.
For the gateway installation, there are indications in the readme (https://github.com/Jerome-github/oem_gateway) but I suppose the instructions on your help page should work just as fine.
Re: Gateway/RPi on standard Debian Wheezy
Thanks, I'm not the greatest at all this but I'll have a read and a play around with what you linked.
I plan on running emoncms on my server so hopefully not too much written to the sd card.
Josh
Re: Gateway/RPi on standard Debian Wheezy
In the gateway parameters, set logging level to CRITICAL. Turn it to DEBUG only if you have issues to investigate.
Re: Gateway/RPi on standard Debian Wheezy
Okay I've run up to:
It has copied everything to /home/pi/oem_gateway/
I'm trying to set it up to run as a daemon so it stays on and runs on boot up. I've run this fine:
I've then copied the file across and edited:
I'm not 100% sure what to change with the arguments but the path I think is this:
DAEMON=/home/pi/oem_gateway
My questions:
1) is that correct? What is the $NAME part. I can't test it as
2) (after running "sudo chmod 755 /etc/init.d/oemgateway") when I run
I get
The file is there but I'm not sure what is happening.
Thanks Josh
Re: Gateway/RPi on standard Debian Wheezy
TL;DR, your config:
DAEMON=/enter/your/installation/path/here/$NAME
DAEMON_ARGS="--logfile /var/log/oemgateway/oemgateway.log"
------------------------------------------------------------
# Customize init script: path, command line arguments
You need to change the install path, and the arguments.
Your path is /home/pi/oem_gateway/
$NAME refers to the line above. It will be replaced by oemgateway.
You need to enter /home/pi/oem_gateway/$NAME, which resolves as DAEMON=/home/pi/oem_gateway/oemgateway.
The possible arguments are --logfile /var/log/oemgateway/oemgateway.log and --config-file /path/to/config/file.
You don't need to specify the config-file path since you're using the default path if you followed the steps in the readme. You could skip the --logfile argument to disable logging the hard way, but it's fine to keep it here and set DEBUG as CRITICAL. You won't get any logging, but it will be easier to activate it the day you need it.
Re: Gateway/RPi on standard Debian Wheezy
Thanks for the help with the paths.
I figured out why I was getting this:
when I run
I get
It was because I was copy and pasting the command from the readme. there is an a there instead of an e.
It reads oemgataway not oemgateway.
Thanks Josh
Re: Gateway/RPi on standard Debian Wheezy
Oooooops, my bad.
Thanks for the feedback. I fixed the readme.
BTW you can use
Easier to memorize.
Re: Gateway/RPi on standard Debian Wheezy
Thanks for all the help, finally got it all going.
One thing I had to change was the oemgateway.conf file to log to emoncms.org
Original file:
[[emoncms_remote]]
type = OemGatewayEmoncmsBuffer
[[[init_settings]]]
[[[runtime_settings]]]
domain = domain.tld
apikey = 673e7954c00f635f953f18b79a881859
protocol = http://
active = True
path = /emoncms
I had to change the domain and remove the path to:
[[emoncms_remote]]
type = OemGatewayEmoncmsBuffer
[[[init_settings]]]
[[[runtime_settings]]]
domain = emoncms.org
apikey = 673e7954c00f635f953f18b79a881859
protocol = http://
active = True
path =
Not sure if that is the expected behavior. I've now got to sort out my feeds and stuff.
Thanks Josh
Re: Gateway/RPi on standard Debian Wheezy
Your new config is correct. We definitely need to provide better sample configs.