Weather station and wifi repeater based ESP 8266

Hello all,

I propose here a very simple assembly with these two functions : extend your wifi and get weather datas.
(particularly interesting if you place your board outside... under cover of course)

I haven't invented much, it's a compilation and adaptation (meritorious!) of various codes found on the net. Sources and authors are cited at the top of the .ino file.

All you need is an ESP WEMOS with, better still, an antenna ; e.g. this kit:
https://fr.aliexpress.com/item/1005005933528007.html

(warning: an ESP32 won't do)
and a BME280 sensor :
https://fr.aliexpress.com/item/1005006995581799.html


(a 5 V phone charger could replace the on-board power supply)

Watch out for the small zero-ohm resistor which must be turned if you're using the external antenna ! (a simple bridge will probably work just as well)
antenne

No wiring diagram (laziness!)... pins are defined in the code
PCB2

Beware of the choice in line 149 of the code.
Because in reality the network is not “extended” but the ESP creates a second access point ; the choice is to differentiate it or not... both solutions have their advantages/disadvantages !

Any idea of the result?
On the wifi side: (I've chosen a single name for both APs) :


The ESP will be able to provide about 4Mb. Enough for HD1080 video streaming (... but only one! )

BME280 side: your web page :


(in the code, take care to compensate for sensor calibration if necessary)

///////////////////////////////////////// ENJOY ///////////////////////////////////////////
ESP8266_WifiExtender_and_BME280_AF.ino (8,1 Ko)
html.h (9,1 Ko)

1 Like

hmm, this routes traffic to the net ? Ive seen some "repeater" code implemented on esp8266 that looked so different....

Hello

Citation hmm, this routes traffic to the net ?

... there are several forks around the “martin-ger” github ([GitHub - martin-ger/esp_wifi_repeater: A full functional WiFi Repeater (correctly: a WiFi NAT Router)])
but they're still bin files.
As far as I know, there's only one “readable” code, the one I started from.
And yes, it works perfectly! (at home anyway), the two screenshots aren't fake...

Clarification perhaps? the code must be compiled on “LOLIN(WEMOS) D1 mini pro”.

1 Like

This topic was automatically closed 180 days after the last reply. New replies are no longer allowed.