Hi,
I have an older Pi2 and bought an EmonTXv3. I created an SD card from emonSD-17Oct19 which boots fine. Because I didn’t buy an EmonPi and my Pi2 doesn’t have Wifi, I decided to wire the serial port on the pi directly to the EmonTXv3.
One thing of note is that the firstbootupdate process failed. There were lots of corrupt git repositories on the SD card image. Example:
Updating /opt/emoncms/modules/backup module
- git branch: stable
- git tags: 2.0.0-34-g993f3ac
- no local changes
- running: git pull origin stable
error: object file .git/objects/c8/94afc436443773ed8a9b3707e45406b10aac71 is empty
error: object file .git/objects/c8/94afc436443773ed8a9b3707e45406b10aac71 is empty
fatal: loose object c894afc436443773ed8a9b3707e45406b10aac71 (stored in .git/objects/c8/94afc436443773ed8a9b3707e45406b10aac71) is corrupt
fatal: the remote end hung up unexpectedly
Already on ‘stable’
Your branch is up to date with ‘origin/stable’.
Updating /opt/emoncms/modules/demandshaper module
- git branch: stable
error: object file .git/objects/16/30622c688469b6af2d8ea13605310e9a37ece3 is empty
error: object file .git/objects/16/30622c688469b6af2d8ea13605310e9a37ece3 is empty
fatal: loose object 1630622c688469b6af2d8ea13605310e9a37ece3 (stored in .git/objects/16/30622c688469b6af2d8ea13605310e9a37ece3) is corrupt - git tags:
error: object file .git/objects/16/30622c688469b6af2d8ea13605310e9a37ece3 is empty
error: object file .git/objects/16/30622c688469b6af2d8ea13605310e9a37ece3 is empty
fatal: loose object 1630622c688469b6af2d8ea13605310e9a37ece3 (stored in .git/objects/16/30622c688469b6af2d8ea13605310e9a37ece3) is corrupt - no local changes
- running: git pull origin stable
error: object file .git/objects/16/30622c688469b6af2d8ea13605310e9a37ece3 is empty
fatal: loose object 1630622c688469b6af2d8ea13605310e9a37ece3 (stored in .git/objects/16/30622c688469b6af2d8ea13605310e9a37ece3) is corrupt
error: object file .git/objects/16/30622c688469b6af2d8ea13605310e9a37ece3 is empty
error: object file .git/objects/16/30622c688469b6af2d8ea13605310e9a37ece3 is empty
fatal: loose object 1630622c688469b6af2d8ea13605310e9a37ece3 (stored in .git/objects/16/30622c688469b6af2d8ea13605310e9a37ece3) is corrupt
I had to go through a few iterations of removing modules and so forth, cloning and checking out stable before I could get the firstbootupdate process to finish successfully.
After that, I had trouble because there was no settings.ini and so forth.
Anyway, after a bit of googling and experimentation, I believe I have the system up and running. I was able to create a user on the web frontend.
I wired up the EmonTXv3 to the serial ports (looks like the silk-screen on the EmonTxv3 has the Tx and Rx labels backwards. Thankfully I buzzed the pins with my meter first to confirm they’re 3v3). I was able to confirm via minicom that the EmonTx was sending records:
ct1:0,ct2:0,ct3:0,ct4:0,vrms:11231,pulse:0
and I was able to get Emonhub configured to read those records:
2019-10-29 12:16:11,635 DEBUG Serial 122 NEW FRAME : ct1:0,ct2:0,ct3:0,ct4:0,vrms:11234,pulse:0
2019-10-29 12:16:11,636 DEBUG Serial 122 Timestamp : 1572351371.63
2019-10-29 12:16:11,638 DEBUG Serial 122 From Node : 0
2019-10-29 12:16:11,639 DEBUG Serial 122 Values : [0, 0, 0, 0, 11234, 0]
2019-10-29 12:16:11,640 DEBUG Serial 122 Sent to channel(start)’ : ToEmonCMS
2019-10-29 12:16:11,641 DEBUG Serial 122 Sent to channel(end)’ : ToEmonCMS
2019-10-29 12:16:11,688 DEBUG MQTT Publishing: emon/0/ct1 0
2019-10-29 12:16:11,691 DEBUG MQTT Publishing: emon/0/ct2 0
2019-10-29 12:16:11,694 DEBUG MQTT Publishing: emon/0/ct3 0
2019-10-29 12:16:11,697 DEBUG MQTT Publishing: emon/0/ct4 0
2019-10-29 12:16:11,700 DEBUG MQTT Publishing: emon/0/vrms 11234
2019-10-29 12:16:11,703 DEBUG MQTT Publishing: emon/0/pulse 0
2019-10-29 12:16:11,706 INFO MQTT Publishing: emonhub/rx/0/values 0,0,0,0,11234,0
(my CT’s aren’t connected to anything yet).
So I find myself asking “now what?”. Questions:
-
In the web frontend it looks like I need to create an input but I don’t know how to bind the serial ‘node’ from EmonHub to EmonCMS?
-
I have the temperature sensor plugged into the RJ-45 on the EmonTX but I don’t see the temperature reading in the serial frame. How does that information get transmitted?
My eventual goal is to get this information into my HomeAssistant instance which I think I’ll probably do via MQTT so that’s no problem. But using EmonCMS would be nice as well. I hope to eventually buy a couple more EmonTX’s because my acreage has 3 panels in 2 different places.