esp8266-weather-station-oled-DST
esp8266-weather-station-oled-DST copied to clipboard
Issue in void updateData(OLEDDisplay *display) with
It seems that when I compile I get this:
Arduino: 1.8.1 (Windows 10), Board: "WeMos D1 R2 & mini, 160 MHz, 921600, 4M (3M SPIFFS)"
C:\Users\User\Documents\Arduino\WIRELESS_UNIT_BDROOM\WIRELESS_UNIT_BDROOM.ino: In function 'void updateData(OLEDDisplay*)':
WIRELESS_UNIT_BDROOM:384: error: no matching function for call to 'WundergroundClient::updateConditions(const String&, const String&, const String&, const String&)'
wunderground.updateConditions(WUNDERGRROUND_API_KEY, WUNDERGRROUND_LANGUAGE, WUNDERGROUND_COUNTRY, WUNDERGROUND_CITY);
^
C:\Users\User\Documents\Arduino\WIRELESS_UNIT_BDROOM\WIRELESS_UNIT_BDROOM.ino:384:119: note: candidate is:
In file included from C:\Users\User\Documents\Arduino\WIRELESS_UNIT_BDROOM\WIRELESS_UNIT_BDROOM.ino:69:0:
C:\Users\User\Documents\Arduino\libraries\ESP8266_Weather_Station/WundergroundClient.h:61:10: note: void WundergroundClient::updateConditions(String, String, String)
void updateConditions(String apiKey, String country, String city);
^
C:\Users\User\Documents\Arduino\libraries\ESP8266_Weather_Station/WundergroundClient.h:61:10: note: candidate expects 3 arguments, 4 provided
WIRELESS_UNIT_BDROOM:386: error: no matching function for call to 'WundergroundClient::updateForecast(const String&, const String&, const String&, const String&)'
wunderground.updateForecast(WUNDERGRROUND_API_KEY, WUNDERGRROUND_LANGUAGE, WUNDERGROUND_COUNTRY, WUNDERGROUND_CITY);
^
C:\Users\User\Documents\Arduino\WIRELESS_UNIT_BDROOM\WIRELESS_UNIT_BDROOM.ino:386:117: note: candidate is:
In file included from C:\Users\User\Documents\Arduino\WIRELESS_UNIT_BDROOM\WIRELESS_UNIT_BDROOM.ino:69:0:
C:\Users\User\Documents\Arduino\libraries\ESP8266_Weather_Station/WundergroundClient.h:62:10: note: void WundergroundClient::updateForecast(String, String, String)
void updateForecast(String apiKey, String country, String city);
^
C:\Users\User\Documents\Arduino\libraries\ESP8266_Weather_Station/WundergroundClient.h:62:10: note: candidate expects 3 arguments, 4 provided
exit status 1
no matching function for call to 'WundergroundClient::updateConditions(const String&, const String&, const String&, const String&)'
This report would have more information with
"Show verbose output during compilation"
option enabled in File -> Preferences.
PS. If I use a weatherStation library newer to the first one (0.0.9) I also get a lot of the below:
Build options changed, rebuilding all
libraries\ESP8266_Weather_Station\ThingspeakClient.cpp.o: In function `ThingspeakClient::startObject()':
C:\Users\User\Documents\Arduino\libraries\ESP8266_Weather_Station/ThingspeakClient.cpp:55: multiple definition of `ThingspeakClient::whitespace(char)'
sketch\ThingspeakClient.cpp.o:sketch/ThingspeakClient.cpp:55: first defined here
libraries\ESP8266_Weather_Station\ThingspeakClient.cpp.o: In function `ThingspeakClient::getCreatedAt()':
```...it goes on
I'm using the exact hardware mentioned (Wemos D1 mini with a DHT22). Suggestions welcomed.
It compiles with no errors or warnings for me using Arduino 1.8.2 I don't know why you are getting the errors listed above.
Are you able to compile and run the Arduino File->Examples->01.Basics->blink.ino example? Have you selected the "Wemos D1 R2 & mini" board?
If you can successfully compile Blink for the Wemos D1 mini: Please make sure that you install the Software requirements from the front page:
Software Requirements/ Libraries
- Arduino IDE with ESP8266 platform installed
- ESP8266 Weather Station Library I have Version 1.2.0 installed
- ESP8266 OLED SSD1306 Library - I have Version 3.2.7 installed
- WifiManager Library - I have 0.12.0 installed
- DHT Sensor Library - I have 1.2.3 installed [ just added to the SW requirements]
Additional required library for automatic Daylight Saving Time adjust
- simpleDSTadjust Library - I have 1.2.0 installed
You also need to get an API key for the Wunderground data: https://www.wunderground.com/