More github changes

This commit is contained in:
2020-05-10 03:16:06 +03:00
parent fd4613d346
commit 13f2ff8912
2 changed files with 72 additions and 8 deletions
@@ -24,11 +24,51 @@ cards:
- type: entities - type: entities
title: Github title: Github
icon: mdi:github-circle icon: mdi:github-circle
style: |
#states > div:last-child {
margin: 0 -16px -16px -16px;
}
entities: entities:
- entity: sensor.time_picker_card_downloads - entity: sensor.time_picker_card_downloads
icon: mdi:clock icon: mdi:clock
name: Time Picker Card · Downloads
- entity: sensor.time_picker_card_stars
icon: mdi:star
name: Time Picker Card · Stars
- entity: sensor.folder_card_downloads - entity: sensor.folder_card_downloads
icon: mdi:folder icon: mdi:folder
name: Folder Card · Downloads
- entity: sensor.folder_card_stars
icon: mdi:star
name: Folder Card · Stars
- type: custom:mini-graph-card
align_state: left
entities:
- color: var(--accent-color)
entity: sensor.github_rate_limit_remaining
name: Github · Rate Limit · Remaining
group: false
points_per_hour: 20
line_width: 3
hour24: true
hours_to_show: 3
show:
fill: fade
icon: false
# name: false
# state: false
legend: false
tap_action:
action: none
- type: "custom:weather-card"
current: true
details: true
entity: weather.dark_sky
forecast: true
- type: vertical-stack
cards:
- type: entities - type: entities
title: Quarantine title: Quarantine
icon: mdi:biohazard icon: mdi:biohazard
@@ -43,14 +83,6 @@ cards:
- red: 100 - red: 100
- entity: sensor.quarantine_times_left - entity: sensor.quarantine_times_left
name: Times left name: Times left
- type: "custom:weather-card"
current: true
details: true
entity: weather.dark_sky
forecast: true
- type: vertical-stack
cards:
- type: "custom:travel-time-card" - type: "custom:travel-time-card"
title: Travel time title: Travel time
columns: columns:
+32
View File
@@ -1,15 +1,47 @@
sensor: sensor:
- platform: rest
resource: "https://api.github.com/rate_limit"
name: Github rate limit remaining
value_template: '{{ value_json.rate.remaining }}'
unit_of_measurement: 'queries'
scan_interval: 60
headers:
Authorization: !secret github_access_token
- platform: rest
resource: "https://api.github.com/repos/GeorgeSG/lovelace-time-picker-card"
name: Time Picker Card stars
value_template: '{{ value_json.stargazers_count }}'
unit_of_measurement: 'stars'
scan_interval:
hours: 1
headers:
Authorization: !secret github_access_token
- platform: rest - platform: rest
resource: "https://api.github.com/repos/GeorgeSG/lovelace-time-picker-card/releases/latest" resource: "https://api.github.com/repos/GeorgeSG/lovelace-time-picker-card/releases/latest"
name: Time Picker Card downloads name: Time Picker Card downloads
value_template: '{{ value_json.assets[0].download_count }}' value_template: '{{ value_json.assets[0].download_count }}'
unit_of_measurement: 'downloads'
scan_interval: 60 scan_interval: 60
headers: headers:
Authorization: !secret github_access_token Authorization: !secret github_access_token
- platform: rest
resource: "https://api.github.com/repos/GeorgeSG/lovelace-folder-card"
name: Folder Card stars
value_template: '{{ value_json.stargazers_count }}'
unit_of_measurement: 'stars'
scan_interval:
hours: 1
headers:
Authorization: !secret github_access_token
- platform: rest - platform: rest
resource: "https://api.github.com/repos/GeorgeSG/lovelace-folder-card/releases/latest" resource: "https://api.github.com/repos/GeorgeSG/lovelace-folder-card/releases/latest"
name: Folder Card downloads name: Folder Card downloads
value_template: '{{ value_json.assets[0].download_count }}' value_template: '{{ value_json.assets[0].download_count }}'
unit_of_measurement: 'downloads'
scan_interval: 60 scan_interval: 60
headers: headers:
Authorization: !secret github_access_token Authorization: !secret github_access_token