0

Problem in getting Weather Station to work
Moderators: adafruit_support_bill, adafruit

Please be positive and constructive with your questions and comments.

Re: Problem in getting Weather Station to work

by MrBean14 on Thu Sep 13, 2018 1:37 pm

Same here :(

MrBean14
 
Posts: 20
Joined: Mon Sep 03, 2018 5:07 pm

Re: Problem in getting Weather Station to work

by adafruit_support_carter on Thu Sep 13, 2018 1:45 pm

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.

adafruit_support_carter
 
Posts: 9792
Joined: Tue Nov 29, 2016 2:45 pm

Re: Problem in getting Weather Station to work

by MrBean14 on Thu Sep 13, 2018 1:51 pm

I already started with a clean install.
I'm using Windows 7

MrBean14
 
Posts: 20
Joined: Mon Sep 03, 2018 5:07 pm

Re: Problem in getting Weather Station to work

by adafruit_support_carter on Thu Sep 13, 2018 1:53 pm

Did you delete the folder?
C:\Users\(username)\AppData\Local\Arduino15

adafruit_support_carter
 
Posts: 9792
Joined: Tue Nov 29, 2016 2:45 pm

Re: Problem in getting Weather Station to work

by MrBean14 on Thu Sep 13, 2018 3:04 pm

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.

13-09-2018 20-51-52.png
13-09-2018 20-51-52.png (32.32 KiB) Viewed 167 times


Now I get a completely different error :

Code: Select all | TOGGLE FULL SIZE
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


A new strange thing appears now when I look under the "examples" folder under the "File" menu :

13-09-2018 20-53-17.png
13-09-2018 20-53-17.png (10.28 KiB) Viewed 167 times


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

by MrBean14 on Thu Sep 13, 2018 3:18 pm

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... :-( :-( :-(

Code: Select all | TOGGLE FULL SIZE
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

by MrBean14 on Thu Sep 13, 2018 3:32 pm

For extra info, both following examples do work without any issue :

13-09-2018 21-21-37.png
13-09-2018 21-21-37.png (88.97 KiB) Viewed 162 times

MrBean14
 
Posts: 20
Joined: Mon Sep 03, 2018 5:07 pm

Re: Problem in getting Weather Station to work

by adafruit_support_carter on Thu Sep 13, 2018 5:37 pm

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.

adafruit_support_carter
 
Posts: 9792
Joined: Tue Nov 29, 2016 2:45 pm

Re: Problem in getting Weather Station to work

by MrBean14 on Fri Sep 14, 2018 1:48 am

Hello,

at the moment of the screencapture, this was indeed the case but I did install it directly after.
Same result.

Best regards,

Davy

MrBean14
 
Posts: 20
Joined: Mon Sep 03, 2018 5:07 pm

Re: Problem in getting Weather Station to work

by adafruit_support_carter on Fri Sep 14, 2018 11:44 am

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.
Screenshot from 2018-09-14 08-33-14.png
Screenshot from 2018-09-14 08-33-14.png (23.63 KiB) Viewed 131 times

adafruit_support_carter
 
Posts: 9792
Joined: Tue Nov 29, 2016 2:45 pm

Re: Problem in getting Weather Station to work

by MrBean14 on Fri Sep 14, 2018 12:35 pm

14-09-2018 18-25-33.png
14-09-2018 18-25-33.png (23.25 KiB) Viewed 130 times

MrBean14
 
Posts: 20
Joined: Mon Sep 03, 2018 5:07 pm

Re: Problem in getting Weather Station to work

by adafruit_support_carter on Fri Sep 14, 2018 1:15 pm

Oops. That's fine, but it's actually complaining about a different file. Sorry. So this message:
C:\Users\MrBean\Documents\Arduino\esp8266-weather-station-color/esp8266-weather-station-color.ino:308: undefined reference to `TouchControllerWS::loadCalibration()'

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?

adafruit_support_carter
 
Posts: 9792
Joined: Tue Nov 29, 2016 2:45 pm

Re: Problem in getting Weather Station to work

by MrBean14 on Fri Sep 14, 2018 2:15 pm

14-09-2018 20-02-06.png
14-09-2018 20-02-06.png (30.27 KiB) Viewed 125 times


14-09-2018 20-03-21.png
14-09-2018 20-03-21.png (43.69 KiB) Viewed 125 times


14-09-2018 20-04-23.png
14-09-2018 20-04-23.png (36.97 KiB) Viewed 125 times

MrBean14
 
Posts: 20
Joined: Mon Sep 03, 2018 5:07 pm

Re: Problem in getting Weather Station to work

by adafruit_support_carter on Fri Sep 14, 2018 2:43 pm

In your TouchControllerWS.cpp file, delete this line from the top of the file:
Code: Select all | TOGGLE FULL SIZE
#ifdef HAVE_TOUCHPAD

and this line at the bottom of the file:
Code: Select all | TOGGLE FULL SIZE
#endif // HAVE_TOUCHPAD

adafruit_support_carter
 
Posts: 9792
Joined: Tue Nov 29, 2016 2:45 pm

Re: Problem in getting Weather Station to work

by MrBean14 on Fri Sep 14, 2018 4:43 pm

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

MrBean14
 
Posts: 20
Joined: Mon Sep 03, 2018 5:07 pm

Please be positive and constructive with your questions and comments.