emonHP Wi-fi and setting up

hi folks,
i set things up about a year ago, got some readings from linking in through qr code. i’m trying to set up wi-fi as i now have wi-fi close enough to get a signal. there is no data logged from jun 24. there is no admin section either.

help please, but try to keep it simple!

Welcome, Simon, to the OEM forum.

You tell us precious little about your installation, so there’s very little to go on.

If you are trying to set up Wi-Fi, how did you get that screenshot?

What equipment do you have?

Is your emonCMS running on an emonPi or something else? and is that emonPi actually a Heatpump Monitor?

Before June 24th, you imply you were getting data? Where from? And how? What has stopped? What did you change to stop it?

Is there any movement on the emonCMS Inputs page?

If you can provide us with more information, it will make it a lot easier for someone to help you.

thanks for the reply Robert, it’s a heat pump monitor, i fitted and set it up about a year ago but with no wi-fi just left it to run. i got the screenshot by logging into emoncms.org which i had done previously, can’t remember how i got the stats online now though it may have been a remote access and upload . nothing has changed since initial set up. i do remember looking at the parameters for putting all the details as public regarding the make, type and all the other requirements and thought i would come back to that part!

Do you really mean the on-line version of emonCMS, and not your local emonCMS? If that is the case, you must be using either Wi-Fi or a fixed Ethernet connection into your router. Can you confirm please.

Are you now referring to heatpumpmonitor.org?

hi, online version not using wi-fi as don’t know how to connect and not connected by ethernet cable, how do i get local emon? and yes to heatpumpmonitor

cheers

Did the OEM Shop do it for you?
Strictly speaking, Heatpump Monitor support is included in the price you paid - however I know Trystan has commitments which mean he’s not as available as he’d like.

You need to know its IP address - your router should be able to tell you. If you log in to your router’s Admin page, you should have a page that lists the devices that are connected, they might have addresses like 192.168.1.65 If there is one, try to log in to it using a laptop or phone. You should see a login screen like this

The bad news is, it will need the username and password you set a year ago. Report how far you get with this, and we’ll take it from there. Those might be on the printed sheet that came with your Heatpump Monitor.

nothing showing up on router, have logged into webpage and there is no way to sign wi-fi in as per previous screenshot

It’s a long shot, are you able to connect the Heatpump Monitor to your router using an Ethernet cable?

If not, do you have an SD card reader, which you can use to write a file onto the SD card in your Raspberry Pi inside the Heatpump Monitor?

not until sparky wires up all the ethernet and mmmm…

I can’t think of a way of getting your HP Monitor into Access Point mode, which is what you need to do, when you can’t access it in the first place. I don’t think this exists - but just check that you don’t have an option to turn on Access Point mode from the front panel button. If it is, activate it and with a laptop or smartphone, you should see a Wi-Fi network called “emonpi” or (I’m guessing) “emonhp”. If so, the password might be " emonpi2016" or (guessing again) “emonhp” or “emonhp2016”.

If that fails (as I suspect it will), do you have an SD card reader, which you can use to write a file onto the SD card in your Raspberry Pi inside the Heatpump Monitor? This will need a Linux machine - Windoze can’t read the SD Card, and it will format and destroy it if you let it.. However, you can download almost any Linux onto a bootable thumb drive are run it off that without installing it permanently, and edit the SD card that way.

If you have, you need to do a controlled shutdown of your Heatpump Monitor (cycle through the menu using the button on the front), then take the end off where the CT connectors are and the SD card is underneath the push button.

On the SD Card, find the file "/etc/wpa_supplicant/wpa_supplicant.conf " (it might be somewhere else :roll_eyes:) and open it with a text editor. Change it so that it reads something like mine (below), obviously putting your details to replace the square brackets and what’s inside them. Both will need to be in quotes if there are spaces inside.

ctrl_interface=DIR=/var/run/wpa_supplicant GROUP=netdev
update_config=1
country=GB

network={
        ssid=[Your SSID]
        psk=[Your Wi-Fi password]
}

You should know your SSID and password, if not, they should be on a label on the router.

N.B.
The official RPi info says this - but my file doesn’t have the two extra lines.

country=US
ctrl_interface=DIR=/var/run/wpa_supplicant GROUP=netdev
update_config=1
network={
 ssid="YOURSSID"
 scan_ssid=1
 psk="YOURPASSWORD"
 key_mgmt=WPA-PSK
}

Put the SD card back into the Pi and power up. It should connect straight away into your LAN. (If you know the devices that are usually connected, the Heatpump Monitor is the new one.)

this is what i don’t understand, i have the tp-link mesh app and there is nothing for emon,

The last page of https://files.openenergymonitor.org/emonhp-pi2.pdf explains the WiFi access point and how to access it, that Robert mentioned. Through this it’s quite easy to setup your emonhp to connect to your WiFi.

Unless your emonhp has been setup to connect to your tp-link WiFi the app won’t see it.

And this does indeed appear to be the case.

This - as far as I understand - is the problem. Is the HeatPumpMonitor in AP mode? I sort-of asked above:

or has it been set up to work to an “old” SSID? - Simon infers it’s never been set up to work on Wi-Fi, but I’m not sure this can be correct, especially as the default is to work to emoncms.org. If some data once got to emoncms.org, then it looks as if that’s wrong.

As I started my most recent post, I don’t know a way to get it back into AP mode without being able to get in to the Pi to edit the SD card, hence why I think Simon has to shut it down and install a valid wpa_supplicant.conf A request to @TrystanLea : can the front panel button have “AP Mode” on the menu?

Of course, Wi-Fi could simply have failed hardware-wise. We can’t rule that in or out at present.

Reading the above, another question:
@simplysimon Has your SSID or Wi-Fi password changed since the HeatPump Monitor was set up?

thanks guys, tried logging into emonhp.local on my phone but got a ‘page not found’, dug out a laptop and connected to it without any problem. all sorted now and connected to the network. can now start to see how the hp is running and what sort of figures i’m getting from it.

1 Like

hi all.

i got a pi 3b (secondhand) and flashed emonSD-01Feb24 onto a sd with etcher. however when i boot it, it doesn’t give me a wireless access point to connect to, i am sure i’m missing something stupid, any idea? power is 5v 2.1a, its on and flashing and I can see the wifi access point for the ebus adaptor plugged onto the shell. I did reflash the sd card but didn’t help.

You can always write the Wi-Fi details into a file on the SD card. It goes into the root directory of the rootfs partition, the name of the file is wpa_supplicant.conf and it’s content is this:

ctrl_interface=DIR=/var/run/wpa_supplicant GROUP=netdev
update_config=1
country=GB

network={
        ssid="[YOUR_SSID]"
        psk="[YOUR_WI-FI_PASSWORD]"
}

(Add your Wi_Fi details with the quotes but without the square brackets.)

Thank you. I did see that suggestion higher up, however I couldn’t see that file you mention on the boot, maybe as I’m on windows.

I’ll have to see if I can borrow an Ethernet off a friend and connect it directly to router.

Take the SD card out of the Pi and put it in the computer where you ran Etcher - add the file there. Any text editor will create it.

I don’t know Windows any more, sorry.

Ah! I’m sorry, it’s been a long day and I misread you. I have now written this. But still don’t see it. I’ll get an Ethernet as I wonder if there’s a WiFi issue on the pi.

Thanks

What’s that? Cable? Adapter? Certainly an Ethernet cable between the RPi and your router is the sure way to get in.