New user old emon devices

sorry if this is in the wrong place but you have to start somewhere.

I have had this emon pi, Emonvs, emonTX v4 hanging around for years and never got anywhere with it. so now I have some time to use I’m thinking about trying to get it up and running.
I think I’ve read the install process but how do you get it working ?
I don’t have any CT clamps until later in the week, so I’m just trying to get the temperature sensor or even to voltage sensor logging but no luck. anyone willing to help me in my troubles.

TIA

Andy

Welcome, Andy, to the OEM forum.

The bad news is you’ve got a steep learning curve. The good news is we’ve all been there and know what you face, and there are plenty of people here able to advise you.

So, how far have you got?
Plugged the emonVs into the emonPi (using the correct socket if there are two 8-pin “RJ45” sockets on your emonPi - or is one a 6-pin?) and plugged your emonVs into a handy mains outlet?
Fired up a computer and got sight of emonCMS in a web browser?
Created an account in emonCMS?
Started to find you way around emonCMS?

You don’t need the c.t’s to get voltage or temperatures showing, so that’s not a worry. You can set those up later.
The same for the emonTx4 - you can get that going after you’re familiar with the emonPi and emonCMS.

Hi Robert,

I’ve connected the pi into the usb c on the enomvs then plugged the emonvs into the tx port marked emonvs I can log into the pi’s address 192.168.1.78 which takes me to inputs thats where I am stuck as I don’t dont know for here what to configure so I can see some data all be it temp for now, whilst the ct clips arrive. web is the only way of connecting atm as I dont have a pi keyboard as I think you can enable ssh but you have to do it by adding some code to the pi internally. The keyboard is on order as well.

Andy

If I understand you correctly, you are using a free-standing Raspberry Pi to communicate with the emonPi. How do you access the Internet normally, because that’s how the emonPi/emonCMS is designed to work, via your LAN. It appears as just another web server.

You don’t need to use SSH normally, certainly not for the initial setup and configuration - unless you’ve already done some damage to emonCMS. :anguished:

hi Robert,

May have not explained myself very well.

Many years ago I purchased am EmonPi, EmonVs, and an EmonTX v4 with the intension of building a system that could monitor the house electricity etc, etc.
nut due to work and the like it got pushed to the back and stayed there for a while, now I have a bit of slack in my calendar I thought I’d blow the cobwebs off the hardware and resurrect the project.

This is where I have ended up with older hardware thats not seen the light of day for while.

Sorry for any confusion.

Andy

So here’s where to start.

Connect the emonVs and emonPi together using the “Ethernet-looking” cable. It IS NOT Ethernet, it actually carries 5 V power and the voltage samples, so never connect it to a router or laptop.
Plug the emonVs into the mains power outlet. The emonPi should power up and you should see something like this:


(I don’t have an emonPi2, only an original - but they use near enough the same software.)

That display comes from the “emon” part of the emonPi, which starts up very quickly. The RPi inside the emonPi will be booting and then it takes over and you see this:

If you have a laptop or whatever with Ethernet and a spare cable, connect the laptop & emonPi using their Ethernet ports, and follow 5. Connecting via Ethernet (the easy way) here:

You’ll then be able to type the emonPi’s dotted IP address into a web browser and connect to emonCMS. The first thing you see is a screen to register as a new user or log in. This brings you to just above ** 7. EmonCMS setup** in the documentation.
What isn’t written here is, you almost certainly won’t continue like this forever with the wired Ethernet connection. You need to manually set the Wi-Fi up inside emonCMS. We’ll get to that later.

If you don’t have Ethernet on your laptop, you need to tell the emonPi, using its own screen and push-button if it hasn’t done it or it’s timed out, to become a Wi-Fi Access Point.
You then follow 6. Connecting via Wi-Fi here:

to set up the Wi-Fi in the emonPi with your router’s SSID & password.
What those instructions don’t say is you have to drop your LAN connection on your laptop and connect the laptop instead to the emonPi AP, then after you’ve set up and connected the emonPi to your LAN via the router’s Wi-Fi, reconnect your laptop to your router’s Wi-Fi as normal. From here on in, you always (almost) do everything via Wi-Fi and your LAN, using a web browser on your laptop - or phone.

You can by default only have one user of emonCMS, don’t lose the password you set because recovery can be real pain.

When you have successfully got into emonCMS, you’ll have a screen something like this.

Post again when you’ve got this far and I’ll lead you through the next steps - either setting up Wi-Fi manually and then looking for inputs, or if you’ve set up the Wi-Fi, then it’s straight to inputs.

Hi Roger, I’m ready to do battle with the Inputs I’ll hazard a guess it will be T1 on the emonTX.

Andy

Who is Roger?

You need to confirm what you’ve done, or tell me if you had a problem. Otherwise, I’m working on dead reckoning and just hoping you’ve not skipped an important step. So where did you get to, and what have you done?

Have you found the page above: Setup → Inputs? Have you got a page like that - bearing in mind my emonPi1 has only two c.t. inputs? Are you reading a sensible number for Vrms? Does it change a little every 10 s or so? You won’t have anything in the second column (e.g. “log” “kwh” “kwhd”).

Robert

sorry my mistake I’m in the process of doing some other work for someone called Roger and typed in the wrong name.
I have the Pi, VS and TX4 powered up and can web to the emoncms and can get to the pages

once again I apologise for using the wrong name

Ok, you won’t see anything on the Feeds page until you create a Feed. The Feed is the database, and it is created when you send data to it, and you do that on the Inputs page, as a step as you “process” the Input data. Until you do something with the incoming data NOTHING IS SAVED. It just sits there on the Inputs page and when the next tranche of data arrives, the ‘old’ data is overwritten and it’s gone forever.

So go back to the Inputs page, and you’ll create a Feed to store the rms voltage. Click the spanner icon at the end of the Vrms line. You’ll see a page like this:

In the left-most box, the default is exactly what we want – “Log to feed”. If you expand the drop-down, you’ll see all the available processes. In the blue area below is an explanation of what the process does. Moving to the right, in the next box is CREATE NEW (we want a new feed because we know one to store Vrms doesn’t exist), and the next box tells where it came from, and the one after that is the name of the individual Feed. You can, and probably will want to, edit these names. For “Engine”, for this data that arrives regularly at fixed time intervals (9.8 s, I happen to know :wink: ), choose “Emoncms Fixed Interval Timeseries” and for “Select Interval”, you must choose an interval longer than the interval for the data (otherwise, you get NULL values in the database that play havoc with the graphs). So choose 10s, longer if you wish, and click Add.
If you have finished with this Input, click ‘Changed press to save’ (bottom right).
But for fun, we’ll add another Feed. We’ll call it DeltaV, and it will be the difference between the nominal 230 V and the actual voltage.
So, still editing processes for Vrms, expand the drop-down and under Calibration, select ‘+’.
In Value, type -230 (we add a negative value to subtract) and click Add.
Now Log to a new feed, exactly as above, but call it “DeltaV”.
Remember to click ‘Changed…’ bottom right before you leave the page. Click Close.
Now go to the Feeds page and you should see two (new) Feeds. Leave it for a few minutes, then click on the name of a Feed. This will open a time graph “Data Viewer” and if you play around with the line of boxes under ‘Data viewer’ to expand and position the viewing window over the data, you should see something a bit like this (OK, I don’t have a voltage connected to this emonPi!).

This has covered the basics of saving and conditioning the incoming data.

When you connect your emonTx4, the data Inputs should appear automatically, and you can handle the voltage (if you have a splitter on the “Ethernet-lookalike” from the emonVs) and everything else in the same way.

Let me know how you get on.