Community
OpenEnergyMonitor

Community

EmonPi 3 B+ how to add wifi wemos d1 mini esp8266 and pull feeds

mqtt
emonpi
emoncms
Tags: #<Tag:0x00007f16a8ae20c0> #<Tag:0x00007f16a8ae1f80> #<Tag:0x00007f16a8ae1e40>

(Brett) #1

HI

I have downloaded emonPi image for Pi3 B+ the latest update for emoncms

I have a diy BMS Management Console
emonCMS Integration
Host: 192.168.1.132
HTTP Port: 80
Node offset: 26
URI: /emoncms/input/bulk?data=
API key: 63d20c5a1cc7542*******************d4

Pi is set up on wifi 26 node as is my BMS as it is sending data but pi not transfuring to feeds list

My wemos d1 mini is coded by stuard pittaway and colin hickey.
192.168.1.162


coming to setting up the emoncms im not sure what im doing wrong but im not getting any feeds as there no updates on the new emonpi.

As i have looked there no videos that i can find with setting up and pulling the battery management feeds posting to emoncms from my emonPI3b+

Alos getting this error when trying to add functions to dashboard

emoncms%20error

Raspberry Pi 3 b+ is running on wifi but first install was on Wlan there was a log showing of 33mb but now is not show.

May have to do another etcher and reload emonPi october18 version again


(Brian Orpin) #2

For the second problem, try clearing the browser cache and or try it in a private window.

For the first, what is your hardware? An EmonPi or an EmonBase?

Did you do a backup and restore of the old system?


(Glyn Hudson) #3

Have you seen our backup and restore user guide?


(Brett) #4

My device is a raspberry pi3 B+ running [Pre built emonSD SD-card Image] emonSD-30Oct18 edition.

I etched the image on sd card about a week ago.

Iv been building my DIY BMS system and the program running to monitor cells is emoncms so i guess to answer your question it would be emonpi only software.

I havent backed up anything on the system as of yet, but if i could get feeds to posted to emonpi then i will back up everything when dashboard is set up as well.


(Paul Reed) #5

Brett, I’ve edited your first post in this thread to obfuscate your system API key, as it’s something that should not be made public.

Paul
Moderator


(Brett) #6

Thank you so much Paul didnt know API couldnt be made public


(Brett) #7

If im working with a fresh install of emonSD-30Oct18 pre-built on an raspberry pi 3 b+.

As im confused now in which device i need to add to list of devices (openenergerymonitor)
or
Controller (MQTT) was im running a wireless feed to my local router that is also RPI3 (emonpiOS) wireless connected to my router.

If i can get the wireless connectivity sorted out then the feeds and inputs part i understand.


(Trystan Lea) #8

Looking at the dashboard battery widget error, does the feed that your using have data in it? could it be an empty feed. I was able to produce an error if the feed was empty but could not replicate the exact same one that your seeing.


(Brian Orpin) #9

If you are trying to pass data from the D1 to the EmonCMS (running on your Pi), the question is, how does the D1 export it‚Äôs data; ‚Äėwireless feed‚Äô in itself is not a data protocol.

The Devices bit fits better with standard OEM products (EmonTX, EmonTH etc).

[edit] could you post a link to the source (Github Repo) of the BMS you are using please.


(Brett) #10

Here is stuarts pittaway https://github.com/stuartpittaway/diyBMS


this is my bms running and can see it on line via IP address if i can see it via wifi should be posting feeds to Pi.
But if i dont have device set up rite then feeds cant see device that its reading the feeds from.

On of the guys on DIY BMS said the same as my first post but that is about all .

Red light status means it in bypass meaning burning off power


(Brian Orpin) #11

Yes, but how is that being done?

[edit] I realised it is the BMS from this discussion. DIY Lithium Battery Balancer and monitoring (BMS)

@stuart can you confirm how your BMS communicates (MQTT?) and what might be needed to set that up?


(stuart) #12

Its using the HTTP BULK upload API call.

Code is here…

and hits the HTTP endpoint /emoncms/input/bulk


(Brian Orpin) #13

Great thanks.

@aussiegwapo

Can you check;

  • The API key you have put into the config on the D1 is the RW Key and not the Read only key.
  • Are there any errors in the Emoncms log (in the administration screen)?

Can you confirm do do not see anything in the ‚ÄėInputs‚Äô page on Emoncms under node 26?


(Brett) #14

I change the api to write and its showing up in inputs now.
So what o thought was read only had to be write to emoncms