Problem in getting Weather Station to work
Moderators: adafruit_support_bill, adafruit
Please be positive and constructive with your questions and comments.
- MrBean14
- Posts: 20
- Joined: Mon Sep 03, 2018 5:07 pm
Re: Problem in getting Weather Station to work
Same here :(
- adafruit_support_carter
- Posts: 29056
- Joined: Tue Nov 29, 2016 2:45 pm
Re: Problem in getting Weather Station to work
I'd suggest starting over with a clean install of the Arduino IDE. What operating system are you on? There's a certain folder you need to manually delete that's different for various operating systems.
- MrBean14
- Posts: 20
- Joined: Mon Sep 03, 2018 5:07 pm
Re: Problem in getting Weather Station to work
I already started with a clean install.
I'm using Windows 7
I'm using Windows 7
- adafruit_support_carter
- Posts: 29056
- Joined: Tue Nov 29, 2016 2:45 pm
Re: Problem in getting Weather Station to work
Did you delete the folder?
C:\Users\(username)\AppData\Local\Arduino15
C:\Users\(username)\AppData\Local\Arduino15
- MrBean14
- Posts: 20
- Joined: Mon Sep 03, 2018 5:07 pm
Re: Problem in getting Weather Station to work
I completely uninstalled Arduino and removed the folder Arduino15.
Did a reinstall of the current V 1.8.7 !
I took all the libraries as described and put them in the libraries folder.
Now I get a completely different error :
A new strange thing appears now when I look under the "examples" folder under the "File" menu :
It says "Onverenigbaar" (translated incompatible). :-( :-(
Best regards,
Davy
Did a reinstall of the current V 1.8.7 !
I took all the libraries as described and put them in the libraries folder.
Now I get a completely different error :
Code: Select all
Arduino: 1.8.7 (Windows 7), Board:"Arduino/Genuino Uno"
esp8266-weather-station-color:29:25: error: ESP8266WiFi.h: No such file or directory
compilation terminated.
exit status 1
ESP8266WiFi.h: No such file or directory
It says "Onverenigbaar" (translated incompatible). :-( :-(
Best regards,
Davy
- MrBean14
- Posts: 20
- Joined: Mon Sep 03, 2018 5:07 pm
Re: Problem in getting Weather Station to work
Forget my last post... I think I'm blonde.
Off course I did not reinstall the Huzzah board...
Now I did and this error at least is gone.
But unfortunately, this error reappears... :-( :-( :-(
Off course I did not reinstall the Huzzah board...
Now I did and this error at least is gone.
But unfortunately, this error reappears... :-( :-( :-(
Code: Select all
Arduino: 1.8.6 (Windows 7), Board:"Adafruit Feather HUZZAH ESP8266, 80 MHz, Flash, 4M (1M SPIFFS), v2 Lower Memory, Disabled, None, Only Sketch, 115200"
sketch\esp8266-weather-station-color.ino.cpp.o: In function `updateData()':
C:\Users\MrBean\Documents\Arduino\esp8266-weather-station-color/esp8266-weather-station-color.ino:308: undefined reference to `TouchControllerWS::loadCalibration()'
C:\Users\MrBean\Documents\Arduino\esp8266-weather-station-color/esp8266-weather-station-color.ino:308: undefined reference to `TouchControllerWS::startCalibration(void (**)(short, short))'
C:\Users\MrBean\Documents\Arduino\esp8266-weather-station-color/esp8266-weather-station-color.ino:309: undefined reference to `TouchControllerWS::continueCalibration()'
C:\Users\MrBean\Documents\Arduino\esp8266-weather-station-color/esp8266-weather-station-color.ino:309: undefined reference to `TouchControllerWS::isCalibrationFinished()'
sketch\esp8266-weather-station-color.ino.cpp.o: In function `OpenWeatherMapForecast::setAllowedHours(unsigned char*, unsigned char)':
C:\Users\MrBean\Documents\Arduino\libraries\esp8266-weather-station-master\src/OpenWeatherMapForecast.h:100: undefined reference to `TouchControllerWS::saveCalibration()'
sketch\esp8266-weather-station-color.ino.cpp.o: In function `setup':
C:\Users\MrBean\Documents\Arduino\esp8266-weather-station-color/esp8266-weather-station-color.ino:317: undefined reference to `TouchControllerWS::loadCalibration()'
C:\Users\MrBean\Documents\Arduino\esp8266-weather-station-color/esp8266-weather-station-color.ino:319: undefined reference to `TouchControllerWS::startCalibration(void (**)(short, short))'
C:\Users\MrBean\Documents\Arduino\esp8266-weather-station-color/esp8266-weather-station-color.ino:319: undefined reference to `TouchControllerWS::continueCalibration()'
C:\Users\MrBean\Documents\Arduino\esp8266-weather-station-color/esp8266-weather-station-color.ino:320: undefined reference to `TouchControllerWS::isCalibrationFinished()'
C:\Users\MrBean\Documents\Arduino\esp8266-weather-station-color/esp8266-weather-station-color.ino:320: undefined reference to `TouchControllerWS::saveCalibration()'
sketch\esp8266-weather-station-color.ino.cpp.o: In function `drawAstronomy()':
C:\Users\MrBean\Documents\Arduino\esp8266-weather-station-color/esp8266-weather-station-color.ino:640: undefined reference to `TouchControllerWS::isTouched(short)'
C:\Users\MrBean\Documents\Arduino\esp8266-weather-station-color/esp8266-weather-station-color.ino:462: undefined reference to `TouchControllerWS::getPoint()'
C:\Users\MrBean\Documents\Arduino\esp8266-weather-station-color/esp8266-weather-station-color.ino:464: undefined reference to `TouchControllerWS::isTouched(short)'
C:\Users\MrBean\Documents\Arduino\esp8266-weather-station-color/esp8266-weather-station-color.ino:464: undefined reference to `TouchControllerWS::getPoint()'
sketch\esp8266-weather-station-color.ino.cpp.o:(.text.startup._GLOBAL__sub_I_OPEN_WEATHER_MAP_APP_ID+0x108): undefined reference to `TouchControllerWS::TouchControllerWS(XPT2046_Touchscreen*)'
sketch\esp8266-weather-station-color.ino.cpp.o: In function `__static_initialization_and_destruction_0':
sketch/settings.h:63: undefined reference to `TouchControllerWS::TouchControllerWS(XPT2046_Touchscreen*)'
collect2.exe: error: ld returned 1 exit status
exit status 1
Fout bij het compileren voor board Adafruit Feather HUZZAH ESP8266
- MrBean14
- Posts: 20
- Joined: Mon Sep 03, 2018 5:07 pm
Re: Problem in getting Weather Station to work
For extra info, both following examples do work without any issue :
- adafruit_support_carter
- Posts: 29056
- Joined: Tue Nov 29, 2016 2:45 pm
Re: Problem in getting Weather Station to work
Looks like you missed this library:
XPT2046 TouchScreen by Paul Stoffregen
You can install it with the library manger. No need to download / move/ rename folders.
XPT2046 TouchScreen by Paul Stoffregen
You can install it with the library manger. No need to download / move/ rename folders.
- MrBean14
- Posts: 20
- Joined: Mon Sep 03, 2018 5:07 pm
Re: Problem in getting Weather Station to work
Hello,
at the moment of the screencapture, this was indeed the case but I did install it directly after.
Same result.
Best regards,
Davy
at the moment of the screencapture, this was indeed the case but I did install it directly after.
Same result.
Best regards,
Davy
- adafruit_support_carter
- Posts: 29056
- Joined: Tue Nov 29, 2016 2:45 pm
Re: Problem in getting Weather Station to work
Open your library manger:
Sketch -> Include Library -> Manage Libraries...
and in the search box type:
XPT2046 TouchScreen
and verify that the library is present and what version it is.
Sketch -> Include Library -> Manage Libraries...
and in the search box type:
XPT2046 TouchScreen
and verify that the library is present and what version it is.
- MrBean14
- Posts: 20
- Joined: Mon Sep 03, 2018 5:07 pm
- adafruit_support_carter
- Posts: 29056
- Joined: Tue Nov 29, 2016 2:45 pm
Re: Problem in getting Weather Station to work
Oops. That's fine, but it's actually complaining about a different file. Sorry. So this message:
It's acting like TouchControllerWS.h is not being #included. Which is back to where we were a few posts back. Really weird. That file is still showing up in your tabs? And all you've done is uncomment #define HAVE_TOUCHPAD in settings.h?C:\Users\MrBean\Documents\Arduino\esp8266-weather-station-color/esp8266-weather-station-color.ino:308: undefined reference to `TouchControllerWS::loadCalibration()'
- MrBean14
- Posts: 20
- Joined: Mon Sep 03, 2018 5:07 pm
- adafruit_support_carter
- Posts: 29056
- Joined: Tue Nov 29, 2016 2:45 pm
Re: Problem in getting Weather Station to work
In your TouchControllerWS.cpp file, delete this line from the top of the file:
and this line at the bottom of the file:
Code: Select all
#ifdef HAVE_TOUCHPAD
Code: Select all
#endif // HAVE_TOUCHPAD
- MrBean14
- Posts: 20
- Joined: Mon Sep 03, 2018 5:07 pm
Re: Problem in getting Weather Station to work
Carter (I hope that's your name),
this change indeed did it all ! :-) :-)
It is compiling fine now... And it has been uploaded to the device...
Unfortunately I notice now a few issues and or flaws in the design :
1. If you look at the movie, yu can see the "hour" flashing between 12/24 HR all the time, together with (in this case) the "PM" signing going on/off together with the hour.
2. The battery status is not stable. It keeps on flashing between 100% and 70%. Only when you put the little box very stable, it seems to stay at 100%. Can this have to do with a gyro on-board (no idea if this is in the device?) ?
3. I can not get the switch installed and then install the screen in the box. I suppose this can be solved by shortening the switch pins and soldering so it is not this high.
4. Very strange, but if I switch the device off and enable it again, the screen stays grey and I need to click the "reset" button on the bottom of the screen.
https://youtu.be/VT0-dVcoCe0
Best regards,
Davy
this change indeed did it all ! :-) :-)
It is compiling fine now... And it has been uploaded to the device...
Unfortunately I notice now a few issues and or flaws in the design :
1. If you look at the movie, yu can see the "hour" flashing between 12/24 HR all the time, together with (in this case) the "PM" signing going on/off together with the hour.
2. The battery status is not stable. It keeps on flashing between 100% and 70%. Only when you put the little box very stable, it seems to stay at 100%. Can this have to do with a gyro on-board (no idea if this is in the device?) ?
3. I can not get the switch installed and then install the screen in the box. I suppose this can be solved by shortening the switch pins and soldering so it is not this high.
4. Very strange, but if I switch the device off and enable it again, the screen stays grey and I need to click the "reset" button on the bottom of the screen.
https://youtu.be/VT0-dVcoCe0
Best regards,
Davy
Please be positive and constructive with your questions and comments.