An example output of the $weather variable that is set to custom templates in the Awesome Weather Widget PRO: https://halgatewood.com/docs/plugins/awesome-weather-widget/creating-custom-templates/
stdClass Object | |
( | |
[transient_name] => awe_4544349_f_en_f5 | |
[city_slug] => oklahoma-city | |
[api_query] => id=4544349 | |
[location] => Oklahoma City | |
[woeid] => | |
[owm_city_id] => 4544349 | |
[template] => custom | |
[custom_template_name] => hal | |
[units] => imperial | |
[units_display] => F | |
[override_title] => OKC | |
[forecast_days] => 5 | |
[show_stats] => 1 | |
[show_link] => | |
[show_icons] => 1 | |
[use_user_location] => | |
[extended_url] => | |
[extended_text] => extended forecast | |
[background_classes] => Array | |
( | |
[0] => temp6 | |
[1] => awesome-weather-wrap | |
[2] => awecf | |
[3] => awe_with_stats | |
[4] => awe_with_icons | |
[5] => awe_with_forecast | |
[6] => | |
[7] => awe_custom | |
) | |
[background_image] => | |
[background_color] => | |
[data] => Array | |
( | |
[current] => Array | |
( | |
[temp] => 86 | |
[high] => 90 | |
[low] => 82 | |
[humidity] => 54 | |
[pressure] => 1018 | |
[sunrise] => 1409140746 | |
[sunset] => 1409187819 | |
[wind_speed] => 10 | |
[wind_direction] => SE | |
[wind_speed_text] => mph | |
[condition_code] => 800 | |
[description] => sunny | |
[icon] => wi-day-sunny | |
) | |
[forecast] => Array | |
( | |
[0] => stdClass Object | |
( | |
[timestamp] => 1409162400 | |
[day_of_week] => Wed | |
[temp] => 89 | |
[high] => 92 | |
[low] => 70 | |
[night] => 78 | |
[evening] => 89 | |
[morning] => 70 | |
[pressure] => 984 | |
[humidity] => 48 | |
[wind_speed] => 8.12 | |
[wind_direction] => SSE | |
[condition_code] => 800 | |
[description] => sunny | |
[icon] => wi-day-sunny | |
) | |
[1] => stdClass Object | |
( | |
[timestamp] => 1409248800 | |
[day_of_week] => Thu | |
[temp] => 88 | |
[high] => 88 | |
[low] => 68 | |
[night] => 68 | |
[evening] => 87 | |
[morning] => 72 | |
[pressure] => 979 | |
[humidity] => 45 | |
[wind_speed] => 13.41 | |
[wind_direction] => S | |
[condition_code] => 502 | |
[description] => showers | |
[icon] => wi-rain-wind | |
) | |
[2] => stdClass Object | |
( | |
[timestamp] => 1409335200 | |
[day_of_week] => Fri | |
[temp] => 81 | |
[high] => 84 | |
[low] => 68 | |
[night] => 71 | |
[evening] => 84 | |
[morning] => 68 | |
[pressure] => 979 | |
[humidity] => 81 | |
[wind_speed] => 8.1 | |
[wind_direction] => NNW | |
[condition_code] => 801 | |
[description] => partly cloudy | |
[icon] => wi-cloudy | |
) | |
[3] => stdClass Object | |
( | |
[timestamp] => 1409421600 | |
[day_of_week] => Sat | |
[temp] => 93 | |
[high] => 94 | |
[low] => 70 | |
[night] => 80 | |
[evening] => 94 | |
[morning] => 70 | |
[pressure] => 985 | |
[humidity] => 0 | |
[wind_speed] => 9.91 | |
[wind_direction] => NE | |
[condition_code] => 800 | |
[description] => sunny | |
[icon] => wi-day-sunny | |
) | |
[4] => stdClass Object | |
( | |
[timestamp] => 1409508000 | |
[day_of_week] => Sun | |
[temp] => 95 | |
[high] => 95 | |
[low] => 73 | |
[night] => 83 | |
[evening] => 94 | |
[morning] => 73 | |
[pressure] => 984 | |
[humidity] => 0 | |
[wind_speed] => 7.13 | |
[wind_direction] => S | |
[condition_code] => 500 | |
[description] => showers | |
[icon] => wi-sprinkle | |
) | |
) | |
) | |
[provider] => openweathermaps | |
[location_url] => http://ipinfo.io/[[IP]]/json | |
[pings] => Array | |
( | |
[0] => http://api.openweathermap.org/data/2.5/weather?id=4544349&lang=en&units=imperial | |
[1] => http://api.openweathermap.org/data/2.5/forecast/daily?id=4544349&lang=en&units=imperial&cnt=7 | |
) | |
[city_id] => 4544349 | |
) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment