Git Product home page Git Product logo

bom_forecast's Introduction

The bom forecast sensor platform uses the Australian Bureau of Meteorology (BOM) as a source for forecast meteorological data.

  • Each sensor will be given the device_id of "bom [optionalname] friendlyname units"
  • A name is optional but if multiple BOM weather stations are used a name will be required.
  • The sensor checks for new data every minute, starting 30 minutes after the timestamp of the most recent data as the data is updated every half-hour.

To add the BOM weather observation to your installation, create this folder strictire in your /config directory:

  • “custom_components/bom_forecast”.

Then, drop the following files into that folder:

  • __init__.py
  • manifest.json
  • sensor.py

Finally, add the following to your configuration.yaml file:

# Example configuration.yaml entry
sensor:
  - platform: bom_forecast
    product_id: IDV10450
    name: Melbourne
    forecast_days: 3
    rest_of_today: True
    friendly: True
    friendly_state_format: '{max}, {summary}'
    monitored_conditions:
      - 'max'
      - 'min'
      - 'chance_of_rain'
      - 'possible_rainfall'
      - 'summary'
      - 'detailed_summary'

To get the Product ID for any BOM city:

  • Go to this website and search for "City Forecast", or "Town Forecast".
  • The Product ID for your city will be in the left most column, or at the bottom of the page, and will look like "IDV10450"

Configuration variables:

  • product_id (Optional): The Product ID string as identified from the BOM website. If not given, defaults to the closest city.
  • name (Optional): The name you would like to give to the weather forecast.
  • forecast_days (Optional): The number of days of forecast you would like, maximum is 6. If not given, defaults to 6.
  • rest_of_today (Optional): Would you like to create a sensor for the forecast for the rest of today. Defaults to true.
  • friendly (Optional): Friendly mode will only create one sensor per day of forecast, and will have all the forecast information as sensor attributes. Defaults to false.
  • friendly_state_format (Optional): Friendly state format allows you to format the state of your forecast sensors when in friendly mode. For example, '{min} to {max}, {summary}' will display the state as '10 to 25, Cloudy'. Defaults to '{summary}'.
  • monitored_conditions (Required): A list of the conditions to monitor.

bom_forecast's People

Contributors

bremor avatar nickneos avatar michaelthomasmpt avatar

Watchers

James Cloos avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.