GithubHelp home page GithubHelp logo

renemarc / home-assistant-doomsday-clock Goto Github PK

View Code? Open in Web Editor NEW
8.0 2.0 1.0 90 KB

πŸ•š Display the Doomsday Clock inside your Home Assistant's …fallout shelter? 😱

Home Page: https://community.home-assistant.io/t/doomsday-clock-custom-sensor/40758

License: Apache License 2.0

Python 100.00%
python3 home-assistant homeassistant custom-components hacs doomsday-clock

home-assistant-doomsday-clock's Introduction

πŸ•š
Doomsday Clock sensor
🏑 a Home Assistant custom component …for your fallout shelter? 😱

GitHub Release Commits to be deployed Sensor Home Assistant Community Store Custom Updater Community Forum Maintainer All Contributors PRs Welcome License Tweet

Add support for the Doomsday Clock world threat assessment index from the Bulletin of the Atomic Scientists inside the Home Assistant open-source home automation platform.

Be sure to ⭐️ this repo if you find it useful! πŸ˜ƒ

Sensor state card Sensor details

Sensor state card and details popup.

πŸ”

Description πŸ•š

The Doomsday Clock helps monitor how close humanity is to a man-made global catastrophe, its own destruction if you will, either through nuclear war or climate change. Useful in case egocentric psychopaths keep on playing Russian roulette with humanity's future. Makes a great addition to your fallout shelter's Home Assistant build! 😱

The clock doesn't change often, at most once a year, and offers no API. Since we rely on web scraping of TheBulletin.org the component has a goodwill throttle of 6 hours (21,600 seconds), but it would be best to set the scan interval for the sensor to 1 day (86,400 seconds) or more.

πŸ”

Usage πŸ’» Home Assistant Community Store Custom Updater

To enable the Doomsday Clock sensor in your installation:

  1. Install the component using one of these methods:
    • Using HACS (Home Assistant Community Store):
      Add the following URL as a custom integration repository through the Community Store interface.
      https://github.com/renemarc/home-assistant-doomsday-clock
    • Using Custom Updater (now deprecated):
      Add the following to your configuration.yaml file.
      custom_updater:
        component_urls:
          - https://raw.githubusercontent.com/renemarc/home-assistant-doomsday-clock/master/tracker.json
    • Manually:
      Copy the folder /custom_components/doomsday_clock/ to your configuration's /custom_components/ directory (create it if needed).
  2. Add the sensor to your configuration.yaml file (see below ⬇️).
  3. Restart Home Assistant.
  4. Despair. 😭
  5. Tell your government representatives that you want to live in a healthy, peaceful world free from nuclear threats and fossil fuel pollution.
    πŸ•ŠπŸŒ±
    It's easy and fast, just find and tweet them using these free online lists:

πŸ”

Configuration βš™

# Example configuration.yaml entry
sensor:
  - platform: doomsday_clock
    scan_interval: 86400
  • icon (string) (optional)
    Material Design Icon that illustrates the sensor. (default = mdi:nuke)
  • name (string) (optional)
    Custom name of sensor. (default = Doomsday Clock)
  • scan_interval (number) (optional)
    Number of seconds between polls. (minimum = 21600 seconds [6 hours])
  • unit_of_measurement (string) (optional)
    Custom unit of measurement for the value. (default = min)
  • value_template (template) (optional)
    Custom template to manipulate the state of the sensor.

πŸ”

Contributors ✨ All Contributors Community Forum

RenΓ©-Marc Simard
RenΓ©-Marc Simard

πŸ’» πŸ“–
jamiepryer
jamiepryer

πŸ›
John Dyer
John Dyer

πŸ€”

This project follows the all-contributors specification (emoji key available here). Found a bug, want to suggest an idea or share some improvements? Contributions of any kind are welcome! πŸ˜ƒ

πŸ”

Thanks πŸ’•

πŸ”

Don't forget to ⭐️ this repo! πŸ˜ƒ

home-assistant-doomsday-clock's People

Contributors

allcontributors[bot] avatar renemarc avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar

Forkers

weetahix

home-assistant-doomsday-clock's Issues

Integration doomsday_clock not found when trying to verify its sensor platform.

hey,
followed your instructions, but get this error:

Integration doomsday_clock not found when trying to verify its sensor platform.

Senror:

  • platform: doomsday_clock
    scan_interval: 86400

file location: \HASSIO\config\custom_components\sensor

i have rebooted Hassio
i have double checked all spelling and that the py is correct (taken from raw)

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.