CircuitSetup / Split-Single-Phase-Energy-Meter

Split Single-phase Energy Meter
https://www.crowdsupply.com/circuitsetup/split-single-phase-energy-meter
MIT License
260 stars 57 forks source link

Installation help #77

Open k7faq opened 1 year ago

k7faq commented 1 year ago

Where can I find instructions to follow to install the software needed to configure these devices I purchased?

Attempting to follow https://github.com/CircuitSetup/Split-Single-Phase-Energy-Meter/tree/master/Software/EmonESP#option-1-using-platformio

I also tried using Arduino IDE. Again, I could not figure out what software was required where to cause Arduino IDE to recognize my devices.

I am new to using Arduino products and really just do not have the time to go on a long journey to figure this out.

Can someone help me? I am using Mac OS 13.1 with Python 3.10.6

CircuitSetup commented 1 year ago

I'm sorry the process is so confusing. Are you installing on an ESP32 for the single phase or 6 channel meter? Do you want to use EmonESP or ESPHome? EmonESP is best used for EmonCMS, where ESPHome is best used with Home Assistant.

k7faq commented 1 year ago

I have two 6 channel boards. I am not sure which EmonESP or ESPHome would best suit my needs so I could try each. Reading the docs I am confused on the process in which to be able to reach a point I can download the application to the ESP32 board. Trying Platform.io I encounter these errors: In file included from src/mqtt.cpp:30: src/mqtt.h:36:10: fatal error: AsyncMqttClient.h: No such file or directory

I managed to add this library and that error is gone. But I am stumped with this error that I do not understand which library to be installed to resolve.

src/emoncms.cpp: In function 'void emoncms_publish(const char*)': src/emoncms.cpp:49:5: error: 'WiFi' was not declared in this scope

k7faq commented 1 year ago

When I opened the wifi.cpp file I find that "WiFi is undefined" on line 92 WiFi.enableAP(true);. Same holds true for other instances of "WiFi'.

At the end of the compiler log I get ` *** [.pio/build/emonesp32/src/mqtt.cpp.o] Error 1

*** [.pio/build/emonesp32/src/emoncms.cpp.o] Error 1

*** [.pio/build/emonesp32/src/wifi.cpp.o] Error 1

*** [.pio/build/emonesp32/src/ota.cpp.o] Error 1

*** [.pio/build/emonesp32/src/src.ino.cpp.o] Error 1

*** [.pio/build/emonesp32/src/web_server.cpp.o] Error 1

Compiling .pio/build/emonesp32/libbee/WiFi/WiFi.cpp.o `