Difference between revisions of "Component: BBC Weather Forecast (Comms: IoT/Cloud)"
Line 15: | Line 15: | ||
Easily allows you to collect three day forecasted weather metrics for your area using the BBC Weather data service. Supports Min/Max temperature, Wind Direction, Wind Speed, Visibility, Pressure, Humidty, UV Risk, Pollution and Sun Rise/Set times for your selected area. | Easily allows you to collect three day forecasted weather metrics for your area using the BBC Weather data service. Supports Min/Max temperature, Wind Direction, Wind Speed, Visibility, Pressure, Humidty, UV Risk, Pollution and Sun Rise/Set times for your selected area. | ||
− | ==Component | + | ==Component Source Code== |
− | + | Please click here for the component source code: [https://www.flowcode.co.uk/wikicopy/componentsource/FC_Comp_Source_BBCWeatherForecast.fcfx FC_Comp_Source_BBCWeatherForecast.fcfx] | |
==Detailed description== | ==Detailed description== | ||
+ | |||
+ | |||
Line 32: | Line 34: | ||
==Examples== | ==Examples== | ||
+ | |||
+ | |||
Line 337: | Line 341: | ||
|- | |- | ||
| colspan="2" | Maximum time to wait for valid incoming data. | | colspan="2" | Maximum time to wait for valid incoming data. | ||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
|} | |} |
Revision as of 17:44, 9 November 2022
Author | MatrixTSL |
Version | 1.0 |
Category | Comms: IoT/Cloud |
Contents
BBC Weather Forecast component
Easily allows you to collect three day forecasted weather metrics for your area using the BBC Weather data service. Supports Min/Max temperature, Wind Direction, Wind Speed, Visibility, Pressure, Humidty, UV Risk, Pollution and Sun Rise/Set times for your selected area.
Component Source Code
Please click here for the component source code: FC_Comp_Source_BBCWeatherForecast.fcfx
Detailed description
No detailed description exists yet for this component
Examples
Here is a basic example to read the three day forecast data and report the information on a graphical display.
The location can be set by adjusting the BBC Weather location property, see the component property tooltips for more information on how to do this.
On an embedded device you would need a TCP/IP component to allow the communications to the BBC server. This then links to the Network Comms component.
Downloadable macro reference
![]() |
GetMaxTemperature |
Reads the forecast maximum temperature in the selected scale for the selected day. | |
![]() |
Scale |
0 = Celcius, 1 = Farenheit | |
![]() |
Return |
![]() |
GetVisibility |
Reads the forecast visibility for the selected day. | |
![]() |
Return |
![]() |
GetDaySummary |
Gets the summary of the currently selected day as a string. | |
![]() |
Return |
![]() |
GetMinTemperature |
Reads the forecast minimum temperature in the selected scale for the selected day. | |
![]() |
Scale |
0 = Celcius, 1 = Farenheit | |
![]() |
Return |
![]() |
GetWindDirection |
Reads the forecast wind direction as a string for the selected day. | |
![]() |
Return |
![]() |
GetPollution |
Reads the forecast pollution as a string for the selected day. | |
![]() |
Return |
![]() |
GetSunset |
Reads the forecast sunset time as a string for the selected day. | |
![]() |
Return |
![]() |
GetHumidity |
Reads the forecast humidity in Relative Humdity for the selected day. | |
![]() |
Return |
![]() |
GetDayName |
Gets the name of the currently selected day as a string. | |
![]() |
Return |
![]() |
GetWindSpeed |
Reads the reported wind speed in MPH for the selected day. | |
![]() |
Return |
![]() |
GetSunrise |
Reads the forecast sunrise time as a string for the selected day. | |
![]() |
Return |
![]() |
GetPressure |
Reads the forecast air pressure in milli bar (mb) for the selected day. | |
![]() |
Return |
![]() |
SetForecastDay |
Chooses which day of the three day forecast to look at. | |
![]() |
Day |
0 = Today, 1 = Tomorrow, 2 = Day After Tomorrow | |
![]() |
Return |
![]() |
GetUVRisk |
Reads the forecast UV Risk for the selected day. | |
![]() |
Return |
![]() |
GetLocationName |
Reads the reported location name as a string. | |
![]() |
Return |
![]() |
Initialise |
Sets up the component ready to collect weather data. | |
![]() |
Return |