Take in the weather and write.
yeonju last edited by
I want to use the weather as api.
I’d like to mark the weather with compliments and use the right words.
For example, take your coat with a temperature of 3 degrees. Like
Help me what to do. TT
@yeonju the default compliments module has already the possibility to show compliments based on weather https://github.com/MichMich/MagicMirror/tree/master/modules/default/compliments#compliment-configuration
However, it doesn’t support the temperature, only the weather type.
If you want to create your own module take a look on this parts of the code:
- Weather module sending the weather data to other modules https://github.com/MichMich/MagicMirror/blob/master/modules/default/currentweather/currentweather.js#L492
- Compliments module processing the information https://github.com/MichMich/MagicMirror/blob/master/modules/default/compliments/compliments.js#L168-L198