Buy the components
How long can ESP8266 sleep? This firmware code will test it out.
If only ESP8266 is used, short pin D0
to pin RST
to enable wakeup. Then connect the USB power to a WeMos module, open the serial monitor and wait for the console to show wakeup.
It wakes up about 3 hours, 45 minutes later.