Skip to content

Instantly share code, notes, and snippets.

@gavinhogan
Created January 29, 2022 14:48
Show Gist options
  • Save gavinhogan/dc86c5300906db0813d83844d7b0b071 to your computer and use it in GitHub Desktop.
Save gavinhogan/dc86c5300906db0813d83844d7b0b071 to your computer and use it in GitHub Desktop.
Getting local manager Dashboard up and running in Home Assistant
#using pirateweather to get darksky-like local weather - https://github.com/alexander0042/pirate-weather-ha
weather:
- platform: pirateweather
api_key: !secret pirateweather_api_key
- platform: pirateweather
api_key: !secret pirateweather_api_key
# Additional optional values:
latitude: 42.6526
longitude: -73.7562
name: Albany
- platform: pirateweather
api_key: !secret pirateweather_api_key
# Additional optional values:
latitude: 40.7128
longitude: -74.0060
name: NYC
- platform: pirateweather
api_key: !secret pirateweather_api_key
# Additional optional values:
latitude: 33.7490
longitude: -84.3880
name: Atlanta
- platform: pirateweather
api_key: !secret pirateweather_api_key
# Additional optional values:
latitude: 25.7617
longitude: -80.1918
name: Miami
#Get local RSS news feeds via feedparser https://github.com/custom-components/feedparser
sensor:
- platform: feedparser
name: Albany News Feed
feed_url: 'https://wnyt.com/rssFeeds/rss10114.xml'
date_format: '%a, %b %d %I:%M %p'
scan_interval:
hours: 1
- platform: feedparser
name: NYC News Feed
feed_url: 'https://www.nbcnewyork.com/?rss=y'
date_format: '%a, %b %d %I:%M %p'
scan_interval:
hours: 1
- platform: feedparser
name: Atlanta News Feed
feed_url: 'https://atlanta.cbslocal.com/feed/'
date_format: '%a, %b %d %I:%M %p'
scan_interval:
hours: 1
- platform: feedparser
name: Miami News Feed
feed_url: 'https://www.local10.com/arcio/rss/category/news/?size=10'
date_format: '%a, %b %d %I:%M %p'
scan_interval:
hours: 1
# need to include https://github.com/iantrich/list-card for displaying the RSS feeds
views:
- title: US East Coast
badges: []
cards:
- type: vertical-stack
title: Albany
cards:
- type: weather-forecast
entity: weather.albany
- type: custom:list-card
entity: sensor.albany_news_feed
title: Albany News
feed_attribute: entries
row_limit: 8
columns:
- title: Headline
field: title
add_link: link
- type: vertical-stack
title: New York City
cards:
- type: weather-forecast
entity: weather.nyc
name: New York City
- type: custom:list-card
entity: sensor.nyc_news_feed
title: NYC News
feed_attribute: entries
row_limit: 8
columns:
- title: Headline
field: title
add_link: link
- type: vertical-stack
title: Atlanta
cards:
- type: weather-forecast
entity: weather.atlanta
- type: custom:list-card
entity: sensor.atlanta_news_feed
title: Atlanta News
feed_attribute: entries
row_limit: 8
columns:
- title: Headline
field: title
add_link: link
- type: vertical-stack
title: Miami
cards:
- type: weather-forecast
entity: weather.miami
- type: custom:list-card
entity: sensor.miami_news_feed
title: Miami News
feed_attribute: entries
row_limit: 8
columns:
- title: Headline
field: title
add_link: link

This is just meant to be some tips to help you get this up and running. If you are new to Home Assistant, or HACS then this is probably not a good place to start.

Remember that feeds will take a file to initially download, so the dashboard will be slow to populate after an restart I don't know if the pirate api has notable limits that will stop this from working after a certain number of locations but it seemed to be fine with the 4 I added.

Someone mentioned COVID data. I am pretty sure this is available for HASSIO. Probably a similar approach would apply.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment