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
62 stars 17 forks source link

Issue in void updateData(OLEDDisplay *display) with #7

Open anduweb opened 7 years ago

anduweb commented 7 years ago

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
anduweb commented 7 years ago

I'm using the exact hardware mentioned (Wemos D1 mini with a DHT22). Suggestions welcomed.

neptune2 commented 7 years ago

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

Additional required library for automatic Daylight Saving Time adjust

You also need to get an API key for the Wunderground data: https://www.wunderground.com/