I liked it. Good explanation. So the next version will be Eink display with less coding, no custom made pcb boards, internal battery power instead of external power source. Love to see that.
Hi, while compiling the code it gives me this error (Compilation error: no matching function for call to 'NTPClient::NTPClient(WiFiUDP&, const char [13], const long int&)' how can I solve this? Thanks.
Hi, i was always this error on compiling exit status 1 no matching function for call to 'NTPClient::NTPClient(WiFiUDP&, const char [13], const long int&)' V 1 and V2 work fine but can't compiling V3
According to your instructions, I entered the country, city, and time zone. Checked the site. But the device did not switch to summer time (-1 hour). Code of my time zone 7200 - Ukraine +2 hours. (const long utcOffsetInSeconds = 7200)
Follow the video, after this other error in code : Compilation error: call to 'HTTPClient::begin' declared with attribute error: obsolete API, use ::begin(WiFiClient, url)
Why is this error happening? Используем библиотеку Wire версии 1.0 из папки: C:\Users\Дмитрий\AppData\Local\Arduino15\packages\esp8266\hardware\esp8266\3.0.2\libraries\Wire exit status 1 call to 'HTTPClient::begin' declared with attribute error: obsolete API, use ::begin(WiFiClient, url)
code is working after some modification, like main cant be string ( changed it with Main). http.begin(serverName) replaced with code WiFiClient client; // Create a WiFiClient object
http.begin(client, serverName); // Pass the WiFiClient object to the begin function. But code is not getting correct humidity for next days. Tried to rectify but unable to do so. Please check and rectify.
Я сделал этот проект. Работает все отлично. А кто бы смог перевести эту станцию на русский язык ? I made this project. Everything works fine. And who would be able to translate this station into Russian?
Hey Guru, I like your projects much. Now I have a problem. When compiling I get the error "cannot declare '::main' to be a global variable" Marked is line 417 "String main="";" I have modified the ESP8266_Weather_Station library. In the protocol it is: esp8266_weather_forcast_with_display_v3:417:8: error: cannot declare '::main' to be a global variable 417 | String main=""; | ^~~~ Any idea what can I do?
Idk I think the word "main" is a specialized keyword for the gcc compiler, and it is used as a function "::main", which is a cpp function. Just a guess though.
It show error during compiling in a 417 line. it says "cannot declare '::main' to be a global variable" what should i do now, can some one help me please?
@@prithvirajghose I have Tried sooooo many things by editing code and stuff during the whole week. after 1 week later it just fixed like a one snap. I just installed these library with mentioned version and replace the old library with new one in the code... 1. Adafruit_GFX v1.11.9 by adafruit. 2. NTP Client v3.2.1 by fabrice weinberg. 3. ST7735 and ST7789 v1.10.3 by adafruit. Install those and replace in the code. then try to compile. hope it will fixed.
Hi GURU, it works great. Thanks for your work. I wanted to change the language on the display (Czech), but I have a problem. The days work well, but Clouds, Rain, Clear, etc. can't be changed. I do not know where. Can you give me some advice? Thanks a lot.
well i made a method at the end of the code to display weather bitmap icon and there is a language variable i used as well. But i am not sure if it can work properly with any language except English, to change it to any other language will take a whole understanding of the code because the text alignment and all the logics also need to chnage according to the language so it might take a extra effort.
@@electronicGURU Hi GURU, thanks for the info, but it didn't help. I'll stay with English. And thanks again for your work and willingness. I look forward to your new posts.
oh now i see the problem you bought a i2c display but the one i used is spi, so either get a spi display or migrate code to i2c display. its not that difficult because they all uses adafruit gfx so only declarations you need to change.
well its easy convert images to a required resolution according to display and there are alot of image to bitmap converter online. you can then try those.
Hello Mr. electronic GURU, i have been looking on you TH-cam Channel to create the Weather Station 3. I already have done Weather Station 1 and 2. With Ver.3 you have made a great Job. But i can´t build it. Got "cannot declare '::main' to be a global variable" as error. (line 417) I have tried Arduino, Arduino Portable and Slober IDE. I have the same Version of all the libraries used on this Project. I hope you can help me. I have postet this Question also on github. MfG
Hello What do You mean with relevant parts ? I had the same problem, changed al main into' main1 but get the following error now. error: 'OpenWeatherMapCurrentData' {aka 'struct OpenWeatherMapCurrentData'} has no member named 'main1'; did you mean 'main'? I won t compile. Thanks, I hope I can get it to work Nice project Thanks
Hello, great video. I encountered an error while compiling: C:\Users\Дмитрий\Desktop\3\3.ino: In function 'String httpGETRequest(const char*)': 3:689:13: error: call to 'HTTPClient::begin' declared with attribute error: obsolete API, use ::begin(WiFiClient, url) Несколько библиотек найдено для "WiFiClient.h" Используется: C:\Users\Дмитрий\AppData\Local\Arduino15\packages\esp8266\hardware\esp8266\3.0.2\libraries\ESP8266WiFi Не используется: D:\Program Files (x86)\Arduino\libraries\WiFi exit status 1 call to 'HTTPClient::begin' declared with attribute error: obsolete API, use ::begin(WiFiClient, url)
I liked it. Good explanation. So the next version will be Eink display with less coding, no custom made pcb boards, internal battery power instead of external power source. Love to see that.
Hi GURU, it looks good, I'll have time for a while so I'll try and let you know. Thanks for your work so far. 👍 👍 👍
your welcome sir 🙂
Hi, while compiling the code it gives me this error (Compilation error: no matching function for call to 'NTPClient::NTPClient(WiFiUDP&, const char [13], const long int&)' how can I solve this? Thanks.
Hi,
i was always this error on compiling
exit status 1
no matching function for call to 'NTPClient::NTPClient(WiFiUDP&, const char [13], const long int&)'
V 1 and V2 work fine but can't compiling V3
Very nice good work top marks you did a good job, thanks for sharing the video
Very good... im going to make it
Great ❤️🔥 nice bro 🎉
thanks man
According to your instructions, I entered the country, city, and time zone. Checked the site. But the device did not switch to summer time (-1 hour). Code of my time zone 7200 - Ukraine +2 hours. (const long utcOffsetInSeconds = 7200)
Beautiful mate
thanks man
Follow the video, after this other error in code : Compilation error: call to 'HTTPClient::begin' declared with attribute error: obsolete API, use ::begin(WiFiClient, url)
Why is this error happening?
Используем библиотеку Wire версии 1.0 из папки: C:\Users\Дмитрий\AppData\Local\Arduino15\packages\esp8266\hardware\esp8266\3.0.2\libraries\Wire
exit status 1
call to 'HTTPClient::begin' declared with attribute error: obsolete API, use ::begin(WiFiClient, url)
In the landscape mode, display is only partial square. How to get a full coverage?
Witam bardzo fajne, ale czy mógłbyś dać schemat jak podłączyć
code is working after some modification, like main cant be string ( changed it with Main). http.begin(serverName) replaced with code WiFiClient client; // Create a WiFiClient object
http.begin(client, serverName); // Pass the WiFiClient object to the begin function.
But code is not getting correct humidity for next days. Tried to rectify but unable to do so. Please check and rectify.
Please upgrade this project by using openweather 3.0 api
what are the changes using st7735(1.44") 128*128 lcd
Я сделал этот проект. Работает все отлично.
А кто бы смог перевести эту станцию на русский язык ?
I made this project. Everything works fine.
And who would be able to translate this station into Russian?
Hello,
Is there any way to display characters like "á í ű ő ü ö ú ó é " correctly?
Screen 3 information is not change They stay at 0.How i fix it
Code not compiled... can u send me a esp8266 with code loaded??
Hey Guru, I like your projects much.
Now I have a problem. When compiling I get the error "cannot declare '::main' to be a global variable" Marked is line 417 "String main="";" I have modified the ESP8266_Weather_Station library.
In the protocol it is:
esp8266_weather_forcast_with_display_v3:417:8: error: cannot declare '::main' to be a global variable
417 | String main="";
| ^~~~
Any idea what can I do?
Idk I think the word "main" is a specialized keyword for the gcc compiler, and it is used as a function "::main", which is a cpp function. Just a guess though.
Use ESP8266 boards v 2.7.4
It show error during compiling in a 417 line. it says "cannot declare '::main' to be a global variable" what should i do now, can some one help me please?
facing same issue. Were you able to fix this? @electronic GURU please help
@@prithvirajghose I have Tried sooooo many things by editing code and stuff during the whole week. after 1 week later it just fixed like a one snap. I just installed these library with mentioned version and replace the old library with new one in the code...
1. Adafruit_GFX v1.11.9 by adafruit.
2. NTP Client v3.2.1 by fabrice weinberg.
3. ST7735 and ST7789 v1.10.3 by adafruit.
Install those and replace in the code. then try to compile. hope it will fixed.
Can we add small animations to it?
Hi GURU, it works great. Thanks for your work. I wanted to change the language on the display (Czech), but I have a problem.
The days work well, but Clouds, Rain, Clear, etc. can't be changed. I do not know where. Can you give me some advice? Thanks a lot.
well i made a method at the end of the code to display weather bitmap icon and there is a language variable i used as well. But i am not sure if it can work properly with any language except English, to change it to any other language will take a whole understanding of the code because the text alignment and all the logics also need to chnage according to the language so it might take a extra effort.
@@electronicGURU Hi GURU, thanks for the info, but it didn't help. I'll stay with English. And thanks again for your work and willingness. I look forward to your new posts.
your welcome sir 😊👍
well i am thinking of making a IOT news reader or something
@@electronicGURU 👍
"String httpGETRequest" will always be my error....
any schematic for the screen because i got a red st7735 cant find the schematic
if you check connections shown in video,it is there
@@electronicGURU on my st7735 the pinout layout is=LED , SCK , SDA , AO , RESET , CS , GRD , VCC my screen is the red one from amazon
oh now i see the problem you bought a i2c display but the one i used is spi, so either get a spi display or migrate code to i2c display. its not that difficult because they all uses adafruit gfx so only declarations you need to change.
@@electronicGURU How i change the declaration ?? newbie question here :)
it means find in the code where they are writing like : Adafruit_ST7735 tft = Adafruit_ST7735(TFT_CS, TFT_DC, TFT_RST);
Great job 👍
thanks bhai
How to make bitmaps?
well its easy convert images to a required resolution according to display and there are alot of image to bitmap converter online. you can then try those.
Hello Mr. electronic GURU,
i have been looking on you TH-cam Channel to create the Weather Station 3.
I already have done Weather Station 1 and 2.
With Ver.3 you have made a great Job.
But i can´t build it.
Got "cannot declare '::main' to be a global variable" as error. (line 417)
I have tried Arduino, Arduino Portable and Slober IDE.
I have the same Version of all the libraries used on this Project.
I hope you can help me.
I have postet this Question also on github.
MfG
oh i have to check the line 417, it shouldn't happen few people tried and it worked for them actually.
try changing the name of variable main everywhere in the code , may be it will work.
@@electronicGURU
Hello Mr. Guru
I've renamed the relevant parts from "main" to "main1". 🤔
Now its works. 👍
Thank you for your help !!!
greetings
your welcome, love to hear that it worked. have a nice day.
Hello
What do You mean with relevant parts ?
I had the same problem, changed al main into' main1 but get the following error now.
error: 'OpenWeatherMapCurrentData' {aka 'struct OpenWeatherMapCurrentData'} has no member named 'main1'; did you mean 'main'?
I won t compile.
Thanks, I hope I can get it to work
Nice project
Thanks
Hello, great video. I encountered an error while compiling:
C:\Users\Дмитрий\Desktop\3\3.ino: In function 'String httpGETRequest(const char*)':
3:689:13: error: call to 'HTTPClient::begin' declared with attribute error: obsolete API, use ::begin(WiFiClient, url)
Несколько библиотек найдено для "WiFiClient.h"
Используется: C:\Users\Дмитрий\AppData\Local\Arduino15\packages\esp8266\hardware\esp8266\3.0.2\libraries\ESP8266WiFi
Не используется: D:\Program Files (x86)\Arduino\libraries\WiFi
exit status 1
call to 'HTTPClient::begin' declared with attribute error: obsolete API, use ::begin(WiFiClient, url)
read the example of "include "
Ошибку (HTTPClient ...) победил.Нужно установить ESP8266 версии ниже 3-й,на пример 2.74
http.begin(wifiClient, serverName);
And... And... And... 😂
at least clean your boards Guruji😅😅
yeah next time sure, i am too lazy 🤣🤣🤣
@@electronicGURU it's okay
Maybe 😏 take it as suggestion for next video
Good luck 🤞
yeah definitely 😅 thanks for suggestion