# Which version of emonhub to use

**URL:** <https://community.openenergymonitor.org/t/which-version-of-emonhub-to-use/8626>\
**Category:** emonHub\
**Created:** [26 September 2018 18:54 UTC](https://community.openenergymonitor.org/t/which-version-of-emonhub-to-use/8626 "2018-09-26T18:54:56Z")\
**Posts on this page:** 7\
**Page:** 1

<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:** [26 September 2018 18:54 UTC](https://community.openenergymonitor.org/t/which-version-of-emonhub-to-use/8626/1 "2018-09-26T18:54:56Z")

</div>

I currently have the following version of emonhub that has been in use for a long time, possibly I got it from Noah.

```auto
Pre-Release Development Version (rc1.2)

```

Doing some system reorganisation and I want to reinstall it on a new Pi Zero W. I know there have been some developments so I’d rather bring it up to date. However, the [GitHub repository](https://github.com/openenergymonitor/emonhub) simply talks about the ‘emon-pi’ variant so I am wondering what I should install?

The RFM module is the old RFM12Pi V2.6 which again I know needs some specific settings.

---

<div class="post-metadata">

**Author:** ![TrystanLea](https://community.openenergymonitor.org/user_avatar/community.openenergymonitor.org/trystanlea/32/31_2.png) [@TrystanLea](https://community.openenergymonitor.org/u/TrystanLea)\
**Post date:** [26 September 2018 21:17 UTC](https://community.openenergymonitor.org/t/which-version-of-emonhub-to-use/8626/2 "2018-09-26T21:17:18Z")

</div>

Hello @borpin, there’s a long discussion on the status of the different variants of emonhub and what the future direction is here (linked post is summary of work to be done): [EmonHub Development - #44 by TrystanLea](https://community.openenergymonitor.org/t/emonhub-development/6432/44). Im working on the indexed inputs part for emoncms at the moment, I know @pb66 is really busy, but wants to at some point review the code and points raised so that we can work towards a single version.

The emon-pi variant is stable, if you want to try out the developments by all means do so. The emon-pi variant name is a bit misleading as it will work on any system. If your happy with your current setup and emonhub version then dont feel there’s a need to switch either.

---

<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:** [26 September 2018 21:32 UTC](https://community.openenergymonitor.org/t/which-version-of-emonhub-to-use/8626/3 "2018-09-26T21:32:02Z")

</div>

@TrystanLea, thanks.

Just trying it and I am getting an error (different error - needed some packages installed)

```auto
2018-09-26 22:53:58,088 INFO MainThread EmonHub emonHub emon-pi variant v2.1.1
2018-09-26 22:53:58,091 INFO MainThread Opening hub...
2018-09-26 22:53:58,093 INFO MainThread Logging level set to DEBUG
2018-09-26 22:53:58,106 INFO MainThread Creating EmonHubJeeInterfacer 'RFM2Pi'
2018-09-26 22:53:58,113 ERROR MainThread Unable to create 'RFM2Pi' interfacer: 'module' object has no attribute 'SerialException'

```

[edit] should mention I am not using the installer as I am not running Raspbian on my Pi.

---

<div class="post-metadata">

**Author:** ![TrystanLea](https://community.openenergymonitor.org/user_avatar/community.openenergymonitor.org/trystanlea/32/31_2.png) [@TrystanLea](https://community.openenergymonitor.org/u/TrystanLea)\
**Post date:** [26 September 2018 22:13 UTC](https://community.openenergymonitor.org/t/which-version-of-emonhub-to-use/8626/4 "2018-09-26T22:13:57Z")

</div>

Yes I think you need:

```auto
sudo apt-get install -y python-pip python-serial python-configobj

```

and possibly:

```auto
sudo pip install paho-mqtt

```

There’s a little more here in the emonpi emonSD build guide on emonhub installation:  
[https://github.com/openenergymonitor/emonpi/blob/master/docs/SD-card-build.md](https://github.com/openenergymonitor/emonpi/blob/master/docs/SD-card-build.md)

including running the emonhub installer, but that’s for a raspberrypi system

```auto
git clone https://github.com/openenergymonitor/emonhub.git && emonhub/install

```

---

<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:** [26 September 2018 22:45 UTC](https://community.openenergymonitor.org/t/which-version-of-emonhub-to-use/8626/5 "2018-09-26T22:45:04Z")

</div>

Good question @borpin!  
This is the single most divisive issue facing emonpi/self build alignment and has been ongoing for far too long, and raised many times previously.  
It would be really nice if @TrystanLea & @pb66 could bring this to some conclusion.

Paul

---

<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:** [27 September 2018 06:32 UTC](https://community.openenergymonitor.org/t/which-version-of-emonhub-to-use/8626/6 "2018-09-27T06:32:11Z")

</div>

I’m getting there - and I’ll write it up for the docs when I am done. I raised a similar issue before I discovered ☹ [EmonHub Install - different instructions](https://community.openenergymonitor.org/t/emonhub-install-different-instructions/3061)

@TrystanLea - you are right. I already had pip installed but I installed `serial` and `configobj` via pip as well as `paho-mqtt`. I’m not familiar enough with the process to understand the difference between installing via `apt-get` or `pip`.

I also rewrote the `emonhub.service` file based on the work by @Greebo for service-runner as well as modifying the install method.

Finally I amended my ‘emonhub.conf’ file in line with [emonhub/emonhub.conf at emon-pi · openenergymonitor/emonhub · GitHub](https://github.com/openenergymonitor/emonhub/blob/emon-pi/conf/emonhub.conf) - I am not sure I have that quite right though as I do not use the mqtt interface, just the HTTP one and the emonth setup seemed completely different.

I still get the error I posted above but I realised overnight that I seem to remember there is a need to disable the serial console and I also did not check the name of the serial port.

@Paul can you remind me if I am right about the serial console and how to check which is the right serial port please?

---

<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:** [27 September 2018 18:21 UTC](https://community.openenergymonitor.org/t/which-version-of-emonhub-to-use/8626/7 "2018-09-27T18:21:23Z")

</div>

I Realised that my plan had a major flaw. I’m using the Pi Zero for presence detection via Bluetooth and I can’t do Bluetooth and use the UART at the same time. So for the moment, it is staying where it is.
