Component: BBC Weather Forecast (Comms: IoT/Cloud): Difference between revisions
m Text replacement - "class="wikitable" style="width:60%; background-color:#FFFFFF;"" to "class="mtx-class-macrotable wikitable"" |
m Text replacement - "width="10%" align="center" style="background-color:#D8C9D8;" align="center"" to "width="10%" align="center" class="mtx-class-macrohead"" |
||
| Line 95: | Line 95: | ||
{| class="mtx-class-macrotable wikitable" | {| class="mtx-class-macrotable wikitable" | ||
|- | |- | ||
| width="10%" align="center" | | width="10%" align="center" class="mtx-class-macrohead" | [[File:Fc9-comp-macro.png]] | ||
| width="90%" style="background-color:#D8C9D8; color:#4B008D;" | '''GetDayName''' | | width="90%" style="background-color:#D8C9D8; color:#4B008D;" | '''GetDayName''' | ||
|- | |- | ||
| Line 109: | Line 109: | ||
{| class="mtx-class-macrotable wikitable" | {| class="mtx-class-macrotable wikitable" | ||
|- | |- | ||
| width="10%" align="center" | | width="10%" align="center" class="mtx-class-macrohead" | [[File:Fc9-comp-macro.png]] | ||
| width="90%" style="background-color:#D8C9D8; color:#4B008D;" | '''GetDaySummary''' | | width="90%" style="background-color:#D8C9D8; color:#4B008D;" | '''GetDaySummary''' | ||
|- | |- | ||
| Line 123: | Line 123: | ||
{| class="mtx-class-macrotable wikitable" | {| class="mtx-class-macrotable wikitable" | ||
|- | |- | ||
| width="10%" align="center" | | width="10%" align="center" class="mtx-class-macrohead" | [[File:Fc9-comp-macro.png]] | ||
| width="90%" style="background-color:#D8C9D8; color:#4B008D;" | '''GetHumidity''' | | width="90%" style="background-color:#D8C9D8; color:#4B008D;" | '''GetHumidity''' | ||
|- | |- | ||
| Line 137: | Line 137: | ||
{| class="mtx-class-macrotable wikitable" | {| class="mtx-class-macrotable wikitable" | ||
|- | |- | ||
| width="10%" align="center" | | width="10%" align="center" class="mtx-class-macrohead" | [[File:Fc9-comp-macro.png]] | ||
| width="90%" style="background-color:#D8C9D8; color:#4B008D;" | '''GetLocationName''' | | width="90%" style="background-color:#D8C9D8; color:#4B008D;" | '''GetLocationName''' | ||
|- | |- | ||
| Line 151: | Line 151: | ||
{| class="mtx-class-macrotable wikitable" | {| class="mtx-class-macrotable wikitable" | ||
|- | |- | ||
| width="10%" align="center" | | width="10%" align="center" class="mtx-class-macrohead" | [[File:Fc9-comp-macro.png]] | ||
| width="90%" style="background-color:#D8C9D8; color:#4B008D;" | '''GetMaxTemperature''' | | width="90%" style="background-color:#D8C9D8; color:#4B008D;" | '''GetMaxTemperature''' | ||
|- | |- | ||
| Line 170: | Line 170: | ||
{| class="mtx-class-macrotable wikitable" | {| class="mtx-class-macrotable wikitable" | ||
|- | |- | ||
| width="10%" align="center" | | width="10%" align="center" class="mtx-class-macrohead" | [[File:Fc9-comp-macro.png]] | ||
| width="90%" style="background-color:#D8C9D8; color:#4B008D;" | '''GetMinTemperature''' | | width="90%" style="background-color:#D8C9D8; color:#4B008D;" | '''GetMinTemperature''' | ||
|- | |- | ||
| Line 189: | Line 189: | ||
{| class="mtx-class-macrotable wikitable" | {| class="mtx-class-macrotable wikitable" | ||
|- | |- | ||
| width="10%" align="center" | | width="10%" align="center" class="mtx-class-macrohead" | [[File:Fc9-comp-macro.png]] | ||
| width="90%" style="background-color:#D8C9D8; color:#4B008D;" | '''GetPollution''' | | width="90%" style="background-color:#D8C9D8; color:#4B008D;" | '''GetPollution''' | ||
|- | |- | ||
| Line 203: | Line 203: | ||
{| class="mtx-class-macrotable wikitable" | {| class="mtx-class-macrotable wikitable" | ||
|- | |- | ||
| width="10%" align="center" | | width="10%" align="center" class="mtx-class-macrohead" | [[File:Fc9-comp-macro.png]] | ||
| width="90%" style="background-color:#D8C9D8; color:#4B008D;" | '''GetPressure''' | | width="90%" style="background-color:#D8C9D8; color:#4B008D;" | '''GetPressure''' | ||
|- | |- | ||
| Line 217: | Line 217: | ||
{| class="mtx-class-macrotable wikitable" | {| class="mtx-class-macrotable wikitable" | ||
|- | |- | ||
| width="10%" align="center" | | width="10%" align="center" class="mtx-class-macrohead" | [[File:Fc9-comp-macro.png]] | ||
| width="90%" style="background-color:#D8C9D8; color:#4B008D;" | '''GetSunrise''' | | width="90%" style="background-color:#D8C9D8; color:#4B008D;" | '''GetSunrise''' | ||
|- | |- | ||
| Line 231: | Line 231: | ||
{| class="mtx-class-macrotable wikitable" | {| class="mtx-class-macrotable wikitable" | ||
|- | |- | ||
| width="10%" align="center" | | width="10%" align="center" class="mtx-class-macrohead" | [[File:Fc9-comp-macro.png]] | ||
| width="90%" style="background-color:#D8C9D8; color:#4B008D;" | '''GetSunset''' | | width="90%" style="background-color:#D8C9D8; color:#4B008D;" | '''GetSunset''' | ||
|- | |- | ||
| Line 245: | Line 245: | ||
{| class="mtx-class-macrotable wikitable" | {| class="mtx-class-macrotable wikitable" | ||
|- | |- | ||
| width="10%" align="center" | | width="10%" align="center" class="mtx-class-macrohead" | [[File:Fc9-comp-macro.png]] | ||
| width="90%" style="background-color:#D8C9D8; color:#4B008D;" | '''GetUVRisk''' | | width="90%" style="background-color:#D8C9D8; color:#4B008D;" | '''GetUVRisk''' | ||
|- | |- | ||
| Line 259: | Line 259: | ||
{| class="mtx-class-macrotable wikitable" | {| class="mtx-class-macrotable wikitable" | ||
|- | |- | ||
| width="10%" align="center" | | width="10%" align="center" class="mtx-class-macrohead" | [[File:Fc9-comp-macro.png]] | ||
| width="90%" style="background-color:#D8C9D8; color:#4B008D;" | '''GetVisibility''' | | width="90%" style="background-color:#D8C9D8; color:#4B008D;" | '''GetVisibility''' | ||
|- | |- | ||
| Line 273: | Line 273: | ||
{| class="mtx-class-macrotable wikitable" | {| class="mtx-class-macrotable wikitable" | ||
|- | |- | ||
| width="10%" align="center" | | width="10%" align="center" class="mtx-class-macrohead" | [[File:Fc9-comp-macro.png]] | ||
| width="90%" style="background-color:#D8C9D8; color:#4B008D;" | '''GetWindDirection''' | | width="90%" style="background-color:#D8C9D8; color:#4B008D;" | '''GetWindDirection''' | ||
|- | |- | ||
| Line 287: | Line 287: | ||
{| class="mtx-class-macrotable wikitable" | {| class="mtx-class-macrotable wikitable" | ||
|- | |- | ||
| width="10%" align="center" | | width="10%" align="center" class="mtx-class-macrohead" | [[File:Fc9-comp-macro.png]] | ||
| width="90%" style="background-color:#D8C9D8; color:#4B008D;" | '''GetWindSpeed''' | | width="90%" style="background-color:#D8C9D8; color:#4B008D;" | '''GetWindSpeed''' | ||
|- | |- | ||
| Line 301: | Line 301: | ||
{| class="mtx-class-macrotable wikitable" | {| class="mtx-class-macrotable wikitable" | ||
|- | |- | ||
| width="10%" align="center" | | width="10%" align="center" class="mtx-class-macrohead" | [[File:Fc9-comp-macro.png]] | ||
| width="90%" style="background-color:#D8C9D8; color:#4B008D;" | '''Initialise''' | | width="90%" style="background-color:#D8C9D8; color:#4B008D;" | '''Initialise''' | ||
|- | |- | ||
| Line 315: | Line 315: | ||
{| class="mtx-class-macrotable wikitable" | {| class="mtx-class-macrotable wikitable" | ||
|- | |- | ||
| width="10%" align="center" | | width="10%" align="center" class="mtx-class-macrohead" | [[File:Fc9-comp-macro.png]] | ||
| width="90%" style="background-color:#D8C9D8; color:#4B008D;" | '''RequestData''' | | width="90%" style="background-color:#D8C9D8; color:#4B008D;" | '''RequestData''' | ||
|- | |- | ||
| Line 329: | Line 329: | ||
{| class="mtx-class-macrotable wikitable" | {| class="mtx-class-macrotable wikitable" | ||
|- | |- | ||
| width="10%" align="center" | | width="10%" align="center" class="mtx-class-macrohead" | [[File:Fc9-comp-macro.png]] | ||
| width="90%" style="background-color:#D8C9D8; color:#4B008D;" | '''SetForecastDay''' | | width="90%" style="background-color:#D8C9D8; color:#4B008D;" | '''SetForecastDay''' | ||
|- | |- | ||
| Line 348: | Line 348: | ||
{| class="mtx-class-macrotable wikitable" | {| class="mtx-class-macrotable wikitable" | ||
|- | |- | ||
| width="10%" align="center" | | width="10%" align="center" class="mtx-class-macrohead" | [[File:Fc9-comp-macro.png]] | ||
| width="90%" style="background-color:#D8C9D8; color:#4B008D;" | '''SetLocationCode''' | | width="90%" style="background-color:#D8C9D8; color:#4B008D;" | '''SetLocationCode''' | ||
|- | |- | ||
Revision as of 14:16, 13 July 2026
| Author | MatrixTSL |
| Version | 1.0 |
| Category | Comms: IoT/Cloud |
BBC Weather Forecast component
Easily allows you to collect observed weather metrics for your area using the BBC Weather data service. Supports temperature and humidity etc. for your selected area. Also available are Wind Direction, Wind Speed and Air Pressure but please note these are not always available depending on your selected area. This component is used for data gathering from the internet.
Component Source Code
Please click here to download the component source project: FC_Comp_Source_BBCWeatherForecast.fcfx
Please click here to view the component source code (Beta): 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.
Here is an example of a next-day weather predictor that also shows the current-day weather for a ESP32 embedded device
Macro reference
GetDayName
| GetDayName | |
| Gets the name of the currently selected day as a string. | |
| Return | |
GetDaySummary
| GetDaySummary | |
| Gets the summary of the currently selected day as a string. | |
| Return | |
GetHumidity
| GetHumidity | |
| Reads the forecast humidity in Relative Humdity for the selected day. | |
| Return | |
GetLocationName
| GetLocationName | |
| Reads the reported location name as a string. | |
| Return | |
GetMaxTemperature
| GetMaxTemperature | |
| Reads the forecast maximum temperature in the selected scale for the selected day. | |
| Scale | |
| 0 = Celcius, 1 = Farenheit | |
| Return | |
GetMinTemperature
| GetMinTemperature | |
| Reads the forecast minimum temperature in the selected scale for the selected day. | |
| Scale | |
| 0 = Celcius, 1 = Farenheit | |
| Return | |
GetPollution
| GetPollution | |
| Reads the forecast pollution as a string for the selected day. | |
| Return | |
GetPressure
| GetPressure | |
| Reads the forecast air pressure in milli bar (mb) for the selected day. | |
| Return | |
GetSunrise
| GetSunrise | |
| Reads the forecast sunrise time as a string for the selected day. | |
| Return | |
GetSunset
| GetSunset | |
| Reads the forecast sunset time as a string for the selected day. | |
| Return | |
GetUVRisk
| GetUVRisk | |
| Reads the forecast UV Risk for the selected day. | |
| Return | |
GetVisibility
| GetVisibility | |
| Reads the forecast visibility for the selected day. | |
| Return | |
GetWindDirection
| GetWindDirection | |
| Reads the forecast wind direction as a string for the selected day. | |
| Return | |
GetWindSpeed
| GetWindSpeed | |
| Reads the reported wind speed in MPH for the selected day. | |
| Return | |
Initialise
| Initialise | |
| Sets up the component ready to collect weather data. | |
| Return | |
RequestData
SetForecastDay
| SetForecastDay | |
| Chooses which day of the three day forecast to look at. | |
| Day | |
| 0 = Today, 1 = Tomorrow, 2 = Day After Tomorrow | |
| Return | |
SetLocationCode