neptune2 / esp8266-weather-station-oled-DST

Customized version of Squix78 ESP8266 OLED Weather Station w/ Auto Daylight Saving Time Adjust and other mods using SSD1306 OLED. See https://github.com/squix78/esp8266-weather-station for original code and library
61 stars 17 forks source link

Wifi SSID & Password #1

Closed mike-rankin closed 7 years ago

mike-rankin commented 7 years ago

There is no place to enter the wifi ssdid and password. How is it supposed to connect to wifi?

neptune2 commented 7 years ago

There are 2 different ways:

1: Uncomment Line 252 in the esp8266-weather-station-oled-DST.ino file to use WiFiManager:

251:  // Uncomment for testing wifi manager
252:  wifiManager.resetSettings();

Remember to comment this line out, recompile and upload again after successfully setting SSID and PASSWORD in browser See WiFiManager Library for more details on using WiFiManager.

2: Alternately, uncomment Line 259 to set an SSID and PASSWORD:

258:  //Manual Wifi
259:  WiFi.begin(SSID, PASSWORD);
mike-rankin commented 7 years ago

I added #define SSID "My SSID" and #define PASS "My PASSWORD" to the top, uncommented wifiManager.resetSettings(); but still no luck. It hangs at the screen with 'connect to AP & random numbers.

IoTMike commented 7 years ago

I was able to manually set it uncommenting line 259 as noted above. I comment out the following lines (basically eliminate all references to WiFiManager):

55:  //#include <WiFiManager.h>
202: //void configModeCallback (WiFiManager *myWiFiManager);
250: //  WiFiManager wifiManager;
253: //  wifiManager.setAPCallback(configModeCallback);
256: //  wifiManager.autoConnect();
333: /* void configModeCallback (WiFiManager *myWiFiManager) {
...thru line 346: */ }
Andrew252010 commented 7 years ago

Hello. I made a weather station according to your code and scheme. But the bmp images are not displayed. Only empty places. With the code from squix78, too, the icons are not visible. I get data from the weather server. BMP files are loaded. I tried to format SPIFFS, but it does not help. Everything worked. Here is the answer. https://github.com/squix78/esp8266-weather-station-color/issues/10

neptune2 commented 7 years ago

@Andrew252010 Your entry is in the wrong project (this is the OLED version - not the color LCD version). Also, please open a new issue instead of posting out-of-context to an existing issue. Please open a new issue in https://github.com/neptune2/esp8266-weather-station-color-DST/issues