EmonView V2

Hi,

Just installed Raspbian and Emonview V2 code on a Raspberry Pi 2 Model B. I have followed the instructions in https://github.com/emoncms/emonview).  I can see all of my nodes using Putty to SSH in to the Pi and run emonhub manually (so that bit is working).  However I get the following when running pi@raspberrypi ~ $ sudo /etc/init.d/redis-server start
Starting redis-server: failed  and if I try and use Chrome to look at the ip address (which in my case is 192.168.0.132) the browser comes up with 'This web page is unavailable'.  Do I have to do anything else (other than what it says?  Thoughts will as always be appreciated

Thanks  Andy

 

 

TrystanLea's picture

Re: EmonView V2

Hello Andy, emonview is in a very early stage of development so there will be a lot of bugs and the install docs are incomplete. But the problem appears to be redis-server not starting which is a dependency. perhaps see if you can find out why redis is not starting. There may be something in /var/log/redis

zaasman's picture

Re: EmonView V2

Hi Andy, I was in fact just installing Emonview V2 yesterday as well, and came across this thread having similar issues. I was able to get it going and thought I would share a couple points in case they may be of help. My install is on a RaspberryPi B+, but I assume it's similar.

  • Make sure you have emonview, feedwriter, redis-server and emonhub all successfully running. Following the install notes, emonhub is run manually (seems like you have that going fine). Check the others like so:
    sudo /etc/init.d/​emonview status
    sudo /etc/init.d/feedwriter status
    sudo /etc/init.d/redis-server status

    Running sudo /etc/init.d/redis-server start will return a failed error if redis is already running. I was hung up on this trying to find the problem, when there wasn't any.
  • If you need to check redis logs, ensure you have logging enabled by un-commenting the logfile configuration in /etc/redis/redis.conf (the Emonview install notes will have had you comment this out). In my case, I had to also manually create the log and permissions:
    sudo mkdir /var/log/redis
    sudo touch /var/log/redis/redis-server.log
    sudo chown -R redis:redis /var/log/redis
  • As it's currently coded, emonview expects to be installed at /home/pi/emonview, and writes node data to /home/pi/data/store. These values are hard coded, so unless you change the code you'll have to adhere to those locations. If you followed the linked RaspberryPi install doc, you will have already setup the data dir. To get feedwriter (writer.py) started without error, I had to manually create the store dir as well:
    mkdir /home/pi/data/store
  • ​Emonview hosts the web application through Flask on port 8000 (last line in server.py), so you'll have to specify that when addressing the page from a browser. In your case: http://192.168.0.132:8000.

Hope that helps someone. I now have Emonview running pretty solid, monitoring and logging my wood stove temperatures!

Zeke

pb's picture

Re: EmonView V2

The redis error got me for a while too until I found this thread: http://openenergymonitor.org/emon/node/9996

I got it. The redis-server was already running. The error message was just a bit confusing.

One can check by typing

redis-cli ping

As an answer i got

PONG

zaasman's picture

Re: EmonView V2

Yes, in fact it was that same post that tipped me off as well.. kudos to anjur!

Comment viewing options

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