# Homeyduino get weather info

**URL:** <https://community.homey.app/t/homeyduino-get-weather-info/50982>\
**Category:** Questions & Help\
**Tags:** app\
**Created:** [August 30, 2021, 7:34pm UTC](https://community.homey.app/t/homeyduino-get-weather-info/50982 "2021-08-30T19:34:58Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![Thomas\_Buran](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/thomas_buran/32/107750_2.png) [@Thomas\_Buran](https://community.homey.app/u/Thomas_Buran)\
**Post date:** [August 30, 2021, 7:34pm UTC](https://community.homey.app/t/homeyduino-get-weather-info/50982/1 "2021-08-30T19:34:58Z")

</div>

Hello. I’m working on displaying temperatures in my rooms, time and weather using ESP8266.  
Everything is working fine except getting info about weather (sunny,rain,cloudy,thunderstorm etc.). I’m using openWeatherMap.

It’s easy for me receiving temperature because it’s float and temperature = Homey.value.toFloat() works good. But I’m lost when I received text.

Here are my functions [homeyduino - Pastebin.com](https://pastebin.com/3EMGTQ4q)

Thanks!

btw this is how it looks:

 ![240964364_501183061090762_1607079031659594149_n](https://us1.discourse-cdn.com/flex025/uploads/athom/original/3X/3/a/3a5ca8f737ec6594155592ad89c1f472b012032e.jpeg)

---

<div class="post-metadata">

**Author:** ![JPe4619](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/jpe4619/32/9017_2.png) [@JPe4619](https://community.homey.app/u/JPe4619)\
**Post date:** [August 30, 2021, 11:48pm UTC](https://community.homey.app/t/homeyduino-get-weather-info/50982/2 "2021-08-30T23:48:47Z")

</div>

When you receive a String, you don’t have to convert it into a String.

---

<div class="post-metadata">

**Author:** ![Thomas\_Buran](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/thomas_buran/32/107750_2.png) [@Thomas\_Buran](https://community.homey.app/u/Thomas_Buran)\
**Post date:** [August 31, 2021, 3:41pm UTC](https://community.homey.app/t/homeyduino-get-weather-info/50982/3 "2021-08-31T15:41:19Z")

</div>

Thank you. So…how should be looks like my function if I want to print it on the Serial Monitor? Because this doesn’t works:

String weatherDescription

void onReceivedWeatherDescription(){  
weatherDescription = Homey.value;  
Serial.printf(“weather description %s \n” , weatherDescription);  
}

I get this: weather stat is ,#⸮?

---

<div class="post-metadata">

**Author:** ![JPe4619](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/jpe4619/32/9017_2.png) [@JPe4619](https://community.homey.app/u/JPe4619)\
**Post date:** [August 31, 2021, 4:12pm UTC](https://community.homey.app/t/homeyduino-get-weather-info/50982/4 "2021-08-31T16:12:39Z")

</div>

> [@Thomas\_Buran](#):
>
> Serial.printf(“weather description %s \n” , weatherDescription);

Not sure you can do the print and the formatting in 1 command.

First try simple: Serial.print(“weather description =” + weatherDescription);

---

<div class="post-metadata">

**Author:** ![Thomas\_Buran](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/thomas_buran/32/107750_2.png) [@Thomas\_Buran](https://community.homey.app/u/Thomas_Buran)\
**Post date:** [August 31, 2021, 4:31pm UTC](https://community.homey.app/t/homeyduino-get-weather-info/50982/5 "2021-08-31T16:31:34Z")

</div>

> [@JPe4619](#):
>
> Serial.print(“weather description =” + weatherDescription);

it works! Thanks

---

<div class="post-metadata">

**Author:** ![Arnold\_vd\_Linden](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/arnold_vd_linden/32/19336_2.png) [@Arnold\_vd\_Linden](https://community.homey.app/u/Arnold_vd_Linden)\
**Post date:** [September 1, 2021, 6:03pm UTC](https://community.homey.app/t/homeyduino-get-weather-info/50982/6 "2021-09-01T18:03:01Z")

</div>

That looks very nice 👍🏻  
Is there a chance I can use your code to set this up?  
Perhaps you can post the code and the hardware list to Github, so that I and others can use it and maybe make it better 😀

Thank you 🙏
