# Emoncms with existing Pi running Apache2

**URL:** <https://community.openenergymonitor.org/t/emoncms-with-existing-pi-running-apache2/504>\
**Category:** Emoncms\
**Created:** [24 May 2016 12:49 UTC](https://community.openenergymonitor.org/t/emoncms-with-existing-pi-running-apache2/504 "2016-05-24T12:49:39Z")\
**Posts on this page:** 14\
**Page:** 1

<div class="post-metadata">

**Author:** ![nigeldodd](https://community.openenergymonitor.org/user_avatar/community.openenergymonitor.org/nigeldodd/32/17948_2.png) [@nigeldodd](https://community.openenergymonitor.org/u/nigeldodd)\
**Post date:** [24 May 2016 12:49 UTC](https://community.openenergymonitor.org/t/emoncms-with-existing-pi-running-apache2/504/1 "2016-05-24T12:49:39Z")

</div>

I have an Arduino with current sensors communicating by radio with a Pi. Unfortunately the supplied SD card for the Pi appears to have corrupted sectors so I need to start again.

I already have a Pi 3 running as a web server. Presumably I can add the hardware radio module to this Pi and use it to run emoncms as well? What software do I need?

thanks

---

<div class="post-metadata">

**Author:** ![nigeldodd](https://community.openenergymonitor.org/user_avatar/community.openenergymonitor.org/nigeldodd/32/17948_2.png) [@nigeldodd](https://community.openenergymonitor.org/u/nigeldodd)\
**Post date:** [24 May 2016 14:14 UTC](https://community.openenergymonitor.org/t/emoncms-with-existing-pi-running-apache2/504/2 "2016-05-24T14:14:48Z")

</div>

OK I have found  
[https://github.com/emoncms/raspberrypi](https://github.com/emoncms/raspberrypi)  
which explains this.

I have another question. I want to install the drivers for the RFM12Pi v 2.6 hardware module and test it on my Pi 3. I am looking at  
[https://github.com/emoncms/raspberrypi](https://github.com/emoncms/raspberrypi)

but it seems as if all this is replaced by  
emonhub

I need to read this. Thanks for reading.

---

<div class="post-metadata">

**Author:** ![glyn.hudson](https://community.openenergymonitor.org/user_avatar/community.openenergymonitor.org/glyn.hudson/32/35003_2.png) [@glyn.hudson](https://community.openenergymonitor.org/u/glyn.hudson)\
**Post date:** [24 May 2016 18:56 UTC](https://community.openenergymonitor.org/t/emoncms-with-existing-pi-running-apache2/504/3 "2016-05-24T18:56:43Z")

</div>

I would highly recommend starting with a pre built image to run emoncms on a RaspberryPi. Image can be downloaded here:

> **[emonSD pre built SD card Download & Change Log · openenergymonitor/emonpi...](https://github.com/openenergymonitor/emonpi/wiki/emonSD-pre-built-SD-card-Download-&-Change-Log)**
>
> Raspberry Pi Based Energy Monitor. Hardware, Firmware & related software for the PI. - emonSD pre built SD card Download & Change Log · openenergymonitor/emonpi Wiki

See emonSD forum category and follow user guide:

> **[Guide | OpenEnergyMonitor](https://guide.openenergymonitor.org)**
>
> OpenEnergyMonitor User Guide

---

<div class="post-metadata">

**Author:** ![borpin](https://community.openenergymonitor.org/user_avatar/community.openenergymonitor.org/borpin/32/193_2.png) [@borpin](https://community.openenergymonitor.org/u/borpin)\
**Post date:** [24 May 2016 20:40 UTC](https://community.openenergymonitor.org/t/emoncms-with-existing-pi-running-apache2/504/4 "2016-05-24T20:40:25Z")

</div>

I would start here [emoncms/readme.md at master · emoncms/emoncms · GitHub](https://github.com/emoncms/emoncms/blob/master/docs/RaspberryPi/readme.md) it gives you instructions for installing emoncms from scratch on an existing setup. I did this about 9 months ago and I only remember one issue (although I can’t remember what).

{edit} I installed the OS onto a HDD rather than to an SD card. The SD card errors are probably due to too many write cycles. The HDD was simply and old one out of an end of life laptop in a cheap case from Amazon. There is a script to move the OS to an HDD somewhere.

---

<div class="post-metadata">

**Author:** ![glyn.hudson](https://community.openenergymonitor.org/user_avatar/community.openenergymonitor.org/glyn.hudson/32/35003_2.png) [@glyn.hudson](https://community.openenergymonitor.org/u/glyn.hudson)\
**Post date:** [25 May 2016 09:03 UTC](https://community.openenergymonitor.org/t/emoncms-with-existing-pi-running-apache2/504/5 "2016-05-25T09:03:54Z")

</div>

> I would start here [https://github.com/emoncms/emoncms/blob/master/docs/RaspberryPi/readme.md](https://github.com/emoncms/emoncms/blob/master/docs/RaspberryPi/readme.md) it gives you instructions for installing emoncms from scratch on an existing setup

Following the Raspberry Pi install guide will work fine if the file system is installed onto an external hard drive. However due to the disk write rate of a logging application such as emoncms I would not recommend using it with an sd card without the low write optimisations implemented on the pre built image. The guide the build the image with the low write changes can be found here:

[https://github.com/openenergymonitor/emonpi/blob/master/docs/SD-card-build.md](https://github.com/openenergymonitor/emonpi/blob/master/docs/SD-card-build.md)

The pre built image is based on standard raspbian with emoncms setup and optimised to work out of the box with zero setup and extensively tested for stability and reliability. Using the pre built image will allow us to offer better support as you will be starting from a known starting point.

---

<div class="post-metadata">

**Author:** ![borpin](https://community.openenergymonitor.org/user_avatar/community.openenergymonitor.org/borpin/32/193_2.png) [@borpin](https://community.openenergymonitor.org/u/borpin)\
**Post date:** [25 May 2016 20:31 UTC](https://community.openenergymonitor.org/t/emoncms-with-existing-pi-running-apache2/504/6 "2016-05-25T20:31:20Z")

</div>

> [@glyn.hudson](#):
>
> Following the Raspberry Pi install guide will work fine if the file system is installed onto an external hard drive.

It might be worth adding this as a line at the beginning of the Readme.md

> [@glyn.hudson](#):
>
> The pre built image is based on standard raspbian with emoncms setup and optimised to work out of the box with zero setup and extensively tested for stability and reliability.

Are there build notes detailing the changes made to the standard raspbian image? Many of the changes made are really good just for general raspbian images so would be good to document somewhere. I am presuming you have a build script you use?

I think there needs to be a recognition that not everyone wants to use a Pi just for Emoncms so constantly simply pushing that agenda can have a negative impact. Me, the pi that runs emoncms does a whole lot more as well, but I am really reluctant to upgrade from 9.2 as I suspect it will cause a whole load of angst.

---

<div class="post-metadata">

**Author:** ![Paul](https://community.openenergymonitor.org/user_avatar/community.openenergymonitor.org/paul/32/28_2.png) [@Paul](https://community.openenergymonitor.org/u/Paul)\
**Post date:** [25 May 2016 21:38 UTC](https://community.openenergymonitor.org/t/emoncms-with-existing-pi-running-apache2/504/7 "2016-05-25T21:38:37Z")

</div>

> [@borpin](#):
>
> I think there needs to be a recognition that not everyone wants to use a Pi just for Emoncms so constantly simply pushing that agenda can have a negative impact. Me, the pi that runs emoncms does a whole lot more as well,

Totally agree, I don’t warm to this either…  
A similar discouraging [discussion has taken place on Github](https://github.com/emoncms/emoncms/pull/528#issuecomment-221316934) over the past few days

Paul

---

<div class="post-metadata">

**Author:** ![Jon](https://community.openenergymonitor.org/user_avatar/community.openenergymonitor.org/jon/32/1876_2.png) [@Jon](https://community.openenergymonitor.org/u/Jon)\
**Post date:** [25 May 2016 21:55 UTC](https://community.openenergymonitor.org/t/emoncms-with-existing-pi-running-apache2/504/8 "2016-05-25T21:55:05Z")

</div>

Paul / Brian - Me being a bit new to all of this - please help me understand. What do you use for emoncms? Or maybe that isn’t the issue. Sorry to be naive.

> [@Paul](#):
>
> > [@borpin](#):
> >
> > I think there needs to be a recognition that not everyone wants to use a Pi just for Emoncms so constantly simply pushing that agenda can have a negative impact. Me, the pi that runs emoncms does a whole lot more as well,
> 
> Totally agree, I don’t warm to this either…
> 
> Paul

---

<div class="post-metadata">

**Author:** ![Paul](https://community.openenergymonitor.org/user_avatar/community.openenergymonitor.org/paul/32/28_2.png) [@Paul](https://community.openenergymonitor.org/u/Paul)\
**Post date:** [25 May 2016 21:58 UTC](https://community.openenergymonitor.org/t/emoncms-with-existing-pi-running-apache2/504/9 "2016-05-25T21:58:09Z")

</div>

> [@Jon](#):
>
> What do you use for emoncms?

Sorry, don’t follow…

---

<div class="post-metadata">

**Author:** ![Jon](https://community.openenergymonitor.org/user_avatar/community.openenergymonitor.org/jon/32/1876_2.png) [@Jon](https://community.openenergymonitor.org/u/Jon)\
**Post date:** [25 May 2016 22:01 UTC](https://community.openenergymonitor.org/t/emoncms-with-existing-pi-running-apache2/504/10 "2016-05-25T22:01:00Z")

</div>

~~from this line here... It sounds like you don't use a Pi. Or does this mean the Pi is used for LOTS of thing plus some emon stuff.~~

~~Keep in mind my only experience with a Raspberry Pi is the emonPi. I had never used anything Pi-ish before.~~

**EDIT:** Never mind - I read thru the github link provided. Tnx!

---

<div class="post-metadata">

**Author:** ![Paul](https://community.openenergymonitor.org/user_avatar/community.openenergymonitor.org/paul/32/28_2.png) [@Paul](https://community.openenergymonitor.org/u/Paul)\
**Post date:** [25 May 2016 22:14 UTC](https://community.openenergymonitor.org/t/emoncms-with-existing-pi-running-apache2/504/11 "2016-05-25T22:14:47Z")

</div>

Despite it’s size and cost, the Raspberry Pi is quite powerful, and emoncms hardly pushes it’s resources, so many users combine emoncms with other functionality. For example, my v2 RP runs;

- Emoncms

- A media server which stores & serves HD video to my TV & tablet, and my mp3 collection to my phone & audio system.

- A fileserver which enables my laptop, tablet and phone to be securely backed up.

- A webserver serving an extremely boring and incomplete blog.

As well as node-red and lots of other functions too.

Paul

---

<div class="post-metadata">

**Author:** ![Robert.Wall](https://community.openenergymonitor.org/user_avatar/community.openenergymonitor.org/robert.wall/32/38246_2.png) [@Robert.Wall](https://community.openenergymonitor.org/u/Robert.Wall)\
**Post date:** [25 May 2016 22:15 UTC](https://community.openenergymonitor.org/t/emoncms-with-existing-pi-running-apache2/504/12 "2016-05-25T22:15:14Z")

</div>

Brian wrote (my bold)

> [@Jon](#):
>
> [many don’t] use a Pi **just** for Emoncms

which meant that he believes many people could and might use it for other things as well as, and at the same time as, using it for emonCMS.

---

<div class="post-metadata">

**Author:** ![Jon](https://community.openenergymonitor.org/user_avatar/community.openenergymonitor.org/jon/32/1876_2.png) [@Jon](https://community.openenergymonitor.org/u/Jon)\
**Post date:** [25 May 2016 22:18 UTC](https://community.openenergymonitor.org/t/emoncms-with-existing-pi-running-apache2/504/13 "2016-05-25T22:18:34Z")

</div>

got it! I read thru the github link and that helped! So this type of use would never use the image. Now the light finally came on (no energy related pun intended)

---

<div class="post-metadata">

**Author:** ![Jon](https://community.openenergymonitor.org/user_avatar/community.openenergymonitor.org/jon/32/1876_2.png) [@Jon](https://community.openenergymonitor.org/u/Jon)\
**Post date:** [26 May 2016 16:41 UTC](https://community.openenergymonitor.org/t/emoncms-with-existing-pi-running-apache2/504/14 "2016-05-26T16:41:43Z")

</div>

Split this topic on 26 May 2016 16:41 UTC

2 posts were split to a new topic: [Can somebody please confirm that this image works in Pi’s 1,2 and 3?](https://community.openenergymonitor.org/t/can-somebody-please-confirm-that-this-image-works-in-pis-1-2-and-3/540)
