Skip to content

Commit 35ea56c

Browse files
authored
Some wll deserved maintainence (#57)
* dropshadow optional, working devcontainer with HA * fixes * remove stuff * gitignore * Re-add yaml files * re-add yaml
1 parent a2b47e8 commit 35ea56c

27 files changed

+1030
-784
lines changed

.devcontainer/Dockerfile

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
FROM python:3.10-bullseye
2+
3+
RUN curl -sL https://deb.nodesource.com/setup_16.x | bash - && \
4+
apt-get update && \
5+
apt-get upgrade -y && \
6+
apt-get install -y --no-install-recommends \
7+
python3-dev nodejs bluez libffi-dev libssl-dev libjpeg-dev \
8+
zlib1g-dev autoconf build-essential libopenjp2-7 \
9+
libtiff5 libturbojpeg0-dev tzdata libpcap0.8
10+
11+
12+
RUN useradd -rm homeassistant && \
13+
mkdir /srv/homeassistant && \
14+
chown homeassistant:homeassistant /srv/homeassistant && \
15+
cd /srv/homeassistant && \
16+
python3 -m pip install wheel && \
17+
pip3 install homeassistant==2023.4.2
18+
19+
20+

.devcontainer/HA/config/.gitignore

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
/*.*
2+
!.gitignore
3+
!*.yaml
4+
5+
www/custom_cards/*.*
6+
!*.md
7+
blueprints
8+
deps
9+
tts
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
[]
Lines changed: 35 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,35 @@
1+
2+
# Loads default set of integrations. Do not remove.
3+
default_config:
4+
5+
# Load frontend themes from the themes folder
6+
frontend:
7+
themes: !include_dir_merge_named themes
8+
9+
# Text to speech
10+
tts:
11+
- platform: google_translate
12+
13+
lovelace:
14+
mode: yaml
15+
resources:
16+
- url: /local/custom_cards/canvas-gauge-card.js
17+
type: module
18+
19+
sensor:
20+
- platform: systemmonitor
21+
resources:
22+
- type: disk_use_percent
23+
arg: /home
24+
- type: memory_use_percent
25+
- type: processor_use
26+
# - type: last_boot
27+
# - type: network_out
28+
# arg: "wlp2s0"
29+
- type: load_1m
30+
#- type: load_5m
31+
#- type: load_15m
32+
33+
automation: !include automations.yaml
34+
script: !include scripts.yaml
35+
scene: !include scenes.yaml

.devcontainer/HA/config/scenes.yaml

Whitespace-only changes.

.devcontainer/HA/config/scripts.yaml

Whitespace-only changes.
Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
2+
# Use this file to store secrets like usernames and passwords.
3+
# Learn more at https://www.home-assistant.io/docs/configuration/secrets/
4+
some_password: welcome
Original file line numberDiff line numberDiff line change
@@ -1,56 +1,55 @@
1-
resources:
2-
- url: http://127.0.0.1:5000/canvas-gauge-card.js?v6
3-
type: module
4-
views:
5-
- title: Example
6-
cards:
7-
- type: "custom:canvas-gauge-card"
8-
name: Canvas Guage Card Development
9-
card_height: 125
10-
#background_color: "#000"
11-
entity: sensor.processor_use
12-
gauge:
13-
colorValueBoxBackground: "#000"
14-
borderShadowWidth: 0
15-
borderOuterWidth: 0
16-
borderMiddleWidth: 0
17-
borderInnerWidth: 0
18-
animationDuration: 1500
19-
animationRule: linear
20-
borders: false
21-
colorPlate: "#ddd"
22-
height: 210
23-
highlights:
24-
- color: "rgba(200, 50, 50, .75)"
25-
from: 80
26-
to: 100
27-
majorTicks:
28-
- "0"
29-
- "10"
30-
- "20"
31-
- "30"
32-
- "40"
33-
- "50"
34-
- "60"
35-
- "70"
36-
- "80"
37-
- "90"
38-
- "100"
39-
maxValue: 100
40-
minValue: 0
41-
minorTicks: 2
42-
needleCircleInner: false
43-
needleCircleOuter: true
44-
needleCircleSize: 7
45-
needleType: arrow
46-
needleWidth: 2
47-
startAngle: 90
48-
strokeTicks: true
49-
ticksAngle: 180
50-
type: radial-gauge
51-
valueBox: false
52-
width: 210
53-
style:
54-
left: 4.2%
55-
top: 9.6%
56-
transform: none
1+
title: Hellströms home
2+
views:
3+
- cards:
4+
- type: "custom:canvas-gauge-card"
5+
card_height: 220
6+
entity: sensor.processor_use
7+
# dropshadow: false
8+
gauge:
9+
# colorValueBoxBackground: "#000"
10+
borderShadowWidth: 0
11+
borderOuterWidth: 0
12+
borderMiddleWidth: 0
13+
borderInnerWidth: 0
14+
animationDuration: 1500
15+
animationRule: linear
16+
borders: false
17+
colorPlate: "#ddd"
18+
# data-width: 400
19+
# data-height: 400
20+
height: 400
21+
# width: 100%
22+
highlights:
23+
- color: "rgba(200, 50, 50, .75)"
24+
from: 80
25+
to: 100
26+
majorTicks:
27+
- "0"
28+
- "10"
29+
- "20"
30+
- "30"
31+
- "40"
32+
- "50"
33+
- "60"
34+
- "70"
35+
- "80"
36+
- "90"
37+
- "100"
38+
maxValue: 100
39+
minValue: 0
40+
minorTicks: 2
41+
needleCircleInner: false
42+
needleCircleOuter: true
43+
needleCircleSize: 7
44+
needleType: arrow
45+
needleWidth: 2
46+
startAngle: 90
47+
strokeTicks: true
48+
ticksAngle: 180
49+
type: radial-gauge
50+
valueBox: false
51+
52+
style:
53+
left: 4.2%
54+
top: 9.6%
55+
transform: none
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
This is the place where you should copy the card js file. Use the devcontainer vscode task `Deploy` for it.

.devcontainer/configuration.yaml

Lines changed: 0 additions & 18 deletions
This file was deleted.

0 commit comments

Comments
 (0)