Hello,
i'm from germany and i would like to use the emontx with my raspberry pi.
i use the emontx_ct123 as firmware, but it dosn't work.
i have found this errormassage in the logfile on my pi.
> /var/log/rfm2pigateway/rfm2pigateway.log
2013-10-17 02:42:16,443 WARNING Couldn't get settings. Retrying in 10 sec...
2013-10-17 02:42:45,975 INFO Setting RFM2Pi | baseid: 15
2013-10-17 02:42:46,979 INFO Setting RFM2Pi | frequency: 8
2013-10-17 02:42:48,023 INFO Setting RFM2Pi | sgroup: 210
2013-10-17 02:55:18,321 DEBUG Opening serial port: /dev/ttyAMA0
2013-10-17 02:55:18,454 WARNING Couldn't get settings, Exception: Traceback (most recent call last):
File "/var/www/emoncms/Modules/raspberrypi/rfm2pigateway.py", line 367, in get_settings
settings[s[0]] = s[1].replace("\\","")
IndexError: list index out of range
please help me in simple englisch what is wrong ;)
Re: rfm2pigateway error
Mm iv not seen this before. Are you running the stock emoncms gateway image?http://emoncms.org/site/docs/raspberrypigateway
Re: rfm2pigateway error
He is using a local emoncms installation with the RPi plugin, not the standalone gateway:
/var/www/emoncms/Modules/raspberrypi/rfm2pigateway.py
The error is here:
https://github.com/emoncms/raspberrypi/blob/master/rfm2pigateway.py#L367
Probably because settings is not of the expected form. Most likely, the request for settings failed. This could be caught with a nicer exception, perhaps.
This has nothing to do with the emontx_ct123 sketch in your emonTX.
Did you do the mySQL installation and all ? Can you detail your installation process ? SD card image ? Ready-made ? Which ? From scratch ? Which steps did you follow ?
Can you try, once logged into your local emoncms installation, to open in your browser the following URL (adapted to your setup) ?
http://localhost/emoncms/raspberrypi.get.json
(local host if you run the browser on the Pi, otherwise, the hostname or IP address of the Pi, anyway, the same URL your use to connect to your local emoncms to parameter and watch the outputs).
You should get the parameters the gateway script expects, like:
{"userid":"1","sgroup":"210",...,"remoteprotocol":"http:\\/\\/"}
If not (most likely), then that's the problem. I'd expect a mySQL connection error.