Skip to content

Commit 5477293

Browse files
authored
Merge pull request #8 from MagicMicky/develop
Develop
2 parents 9be5878 + 67994b9 commit 5477293

File tree

4 files changed

+22
-9
lines changed

4 files changed

+22
-9
lines changed

.github/workflows/hacs.yml

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
name: HACS Validation
2+
3+
on:
4+
push:
5+
pull_request:
6+
schedule:
7+
- cron: "0 0 * * *"
8+
9+
jobs:
10+
validate:
11+
runs-on: ubuntu-latest
12+
steps:
13+
- uses: actions/checkout@v3
14+
- name: HACS Validation
15+
uses: hacs/action@main
16+
with:
17+
category: "plugin"

README.md

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,15 @@
11
# Calendar Heatmap Card
22

33
[![HACS Badge](https://img.shields.io/badge/HACS-Custom-orange.svg)](https://github.com/custom-components/hacs)
4+
[![HACS Validation](https://github.com/MagicMicky/lovelace-calendar-heatmap-card/workflows/HACS%20Validation/badge.svg)](https://github.com/MagicMicky/lovelace-calendar-heatmap-card/actions/workflows/hacs.yml)
45
[![GitHub Release](https://img.shields.io/github/release/MagicMicky/lovelace-calendar-heatmap-card.svg)](https://github.com/MagicMicky/lovelace-calendar-heatmap-card/releases)
56
[![License](https://img.shields.io/github/license/MagicMicky/lovelace-calendar-heatmap-card.svg)](LICENSE)
67

78
> ⚠️ **AI-Assisted Development Warning**: This project has been largely developed with the assistance of AI tools (Claude and Cursor). I only have a basic understanding of what this code does and have been using this project as a way to experiment with AI-assisted development while creating a component I wanted for my dashboard. The code may contain inconsistencies, and best practices might only be partially followed due to the contextual limitations of AI. Use at your own risk and feel free to contribute improvements!
89
910
A custom Lovelace card for Home Assistant that visualizes entity activity data as a calendar heatmap, similar to GitHub's contribution graph. Perfect for tracking game activity, device usage, or any time-based data.
1011

11-
![Calendar Heatmap Card](https://raw.githubusercontent.com/MagicMicky/lovelace-calendar-heatmap-card/main/docs/images/card-preview.png)
12+
![Calendar Heatmap Card](https://raw.githubusercontent.com/MagicMicky/lovelace-calendar-heatmap-card/main/docs/images/calendar-heatmap.png)
1213

1314
## Features
1415

@@ -59,7 +60,6 @@ Add the card to your Lovelace dashboard:
5960
type: custom:calendar-heatmap-card
6061
entity: sensor.game_activity
6162
title: My Gaming Activity
62-
days_to_show: 365
6363
```
6464
6565
### Configuration Options
@@ -68,7 +68,6 @@ days_to_show: 365
6868
|--------|------|---------|-------------|
6969
| `entity` | string | (Required) | Entity ID to display history for |
7070
| `title` | string | "Game Activity" | Card title |
71-
| `days_to_show` | number | 365 | Number of days of history to display (Note: In v3.3.0+, the actual display is automatically adjusted based on available space) |
7271
| `ignored_states` | array | ["unknown", "idle", "offline", ""] | States to ignore in calculations |
7372
| `refresh_interval` | number | 300 | Refresh interval in seconds |
7473
| `start_day_of_week` | string | "monday" | Day to start the week on ("monday" or "sunday") |
@@ -209,8 +208,8 @@ The Calendar Heatmap Card will:
209208

210209
This gives you a beautiful visualization of your gaming habits over time, showing which days you played the most and which games dominated your play time.
211210

212-
![Discord Gaming Activity Example](https://raw.githubusercontent.com/MagicMicky/lovelace-calendar-heatmap-card/main/docs/images/discord-example.png)
213-
*Example of Discord gaming activity visualization (you may want to replace this with your own screenshot)*
211+
![Discord Gaming Activity Example](https://raw.githubusercontent.com/MagicMicky/lovelace-calendar-heatmap-card/main/docs/images/calendar-heatmap.png)
212+
*Example of Discord gaming activity visualization*
214213

215214
## Troubleshooting
216215

docs/images/calendar-heatmap.png

25.6 KB
Loading

hacs.json

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,5 @@
11
{
22
"name": "Calendar Heatmap Card",
3-
"render_readme": true,
43
"filename": "dist/calendar-heatmap-card.js",
5-
"content_in_root": false,
6-
"homeassistant": "2023.8.0",
7-
"type": "plugin"
4+
"content_in_root": false
85
}

0 commit comments

Comments
 (0)