| 3031 | } |
| 3032 | |
| 3033 | String windDirectionIcon(const int degrees) { |
| 3034 | const String directions[] = {"\uf044", "\uf043", "\uf048", "\uf087", "\uf058", "\uf057", "\uf04d", "\uf088"}; |
| 3035 | int index = (degrees + 22) / 45; |
| 3036 | if (index >= 8) { |
| 3037 | index = 0; |
| 3038 | } |
| 3039 | return directions[index]; |
| 3040 | } |
| 3041 | |
| 3042 | void getLocation(JsonObject &cfgobj) { |
| 3043 | const String lat = cfgobj["#lat"]; |
no outgoing calls
no test coverage detected