Difference between revisions of "Component: BBC Weather Observation (Comms: IoT/Cloud)"
Line 13: | Line 13: | ||
==BBC Weather Observation component== | ==BBC Weather Observation component== | ||
− | Easily allows you to collect observed weather metrics for your area using the BBC Weather data service. Supports temperature and | + | Easily allows you to collect observed weather metrics for your area using the BBC Weather data service. Supports temperature and humidity, pressure, Wind direction 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== | ==Component Source Code== | ||
Line 85: | Line 85: | ||
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. | 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. | ||
+ | |||
+ | |||
==Macro reference== | ==Macro reference== |
Latest revision as of 11:57, 3 November 2023
Author | MatrixTSL |
Version | 1.0 |
Category | Comms: IoT/Cloud |
Contents
BBC Weather Observation component
Easily allows you to collect observed weather metrics for your area using the BBC Weather data service. Supports temperature and humidity, pressure, Wind direction 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_BBCWeatherObservation.fcfx
Please click here to view the component source code (Beta): FC_Comp_Source_BBCWeatherObservation.fcfx
Detailed description
No detailed description exists yet for this component
Examples
Here is a basic example to read the observation data and report the Manchester weather information for today and tomorrow, 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.
Macro reference
GetHumidity
![]() |
GetHumidity |
Reads the reported humidity in Relative Humdity. | |
![]() |
Return |
GetLocationName
![]() |
GetLocationName |
Reads the reported location name as a string. | |
![]() |
Return |
GetPressure
![]() |
GetPressure |
Reads the reported air pressure in milli bar (mb). Please note this data may not be available for your selected location. | |
![]() |
Return |
GetTemperature
![]() |
GetTemperature |
Reads the reported temperature in the selected scale. | |
![]() |
Scale |
0 = Celcius, 1 = Farenheit | |
![]() |
Return |
GetWindDirection
![]() |
GetWindDirection |
Reads the reported wind direction as a string. Please note this data may not be available for your selected location. | |
![]() |
Return |
GetWindSpeed
![]() |
GetWindSpeed |
Reads the reported wind speed in MPH. Please note this data may not be available for your selected location. | |
![]() |
Return |
Initialise
![]() |
Initialise |
Sets up the component ready to collect weather data. | |
![]() |
Return |
RequestData
SetLocationCode