Qrome / printer-monitor

OctoPrint 3D Printer Monitor using Wemos D1 Mini ESP8266
MIT License
479 stars 164 forks source link

after 2.5 upgrade cannot get weather info #97

Open papperone opened 5 years ago

papperone commented 5 years ago

I upgraded from old 2.1 version to 2.5 my setup and since then I can't see any info about weather; no icons, 0°C and N/A is only I've displayed on OLED and in the main webpage of printmonitor I've only "Please Configure Weather API". I'm sure I setup correctly API and city info (as they were in the previous version) and I tested that they do work from my browser with this URL "http://api.openweathermap.org/data/2.5/forecast?id={CITYCODE}&APPID={MYAPIKEY}" and I get the JSON with all the right data. Can you help to fix this behaviour?

shadowCZ75 commented 4 years ago

I have the same problem again.

SohaibSiddique commented 2 years ago

I have also faced the same problem but while debugging I have added some print lines but with those lines, the weather is working 😄 , it is the problem with the WiFi clients I guess the client would not connect. FYI @papperone @shadowCZ75

Serial.println("Getting Weather Data");
  Serial.println(apiGetData);
  Serial.println("server name below");
  Serial.println(servername);
  Serial.println(weatherClient.connect(servername, 80));