From 832309ffdd12316b9b178dd58bee8a7cc2c12cca Mon Sep 17 00:00:00 2001 From: damachin3 Date: Thu, 9 Apr 2026 15:40:24 +0200 Subject: [PATCH 01/10] version 3.1.0 --- .SRCINFO | 2 +- .github/workflows/install.yml | 8 +- Makefile | 185 +++++++++++++----- PKGBUILD | 2 - VERSION | 2 +- aur/PKGBUILD | 1 - .../plugins/coolerdash/config.json | 4 +- .../plugins/coolerdash/manifest.toml | 2 +- .../plugins/coolerdash/ui/index.html | 20 +- packaging/coolerdash.spec | 1 - packaging/debian/install | 1 - src/device/config.c | 12 ++ src/device/config.h | 2 + src/main.c | 126 +++++++++++- src/mods/circle.c | 21 +- src/mods/circle.h | 6 + src/mods/display.c | 20 +- src/mods/display.h | 2 + src/mods/dual.c | 11 +- src/srv/cc_conf.c | 16 +- src/srv/cc_conf.h | 6 + src/srv/cc_main.c | 18 ++ src/srv/cc_main.h | 7 + tests/test_scaling.c | 150 +++++++------- 24 files changed, 470 insertions(+), 155 deletions(-) diff --git a/.SRCINFO b/.SRCINFO index 263bbf9..99f944e 100644 --- a/.SRCINFO +++ b/.SRCINFO @@ -1,6 +1,6 @@ pkgbase = coolerdash pkgdesc = Plug-in for CoolerControl that extends the LCD functionality with additional features - pkgver = 3.0.5 + pkgver = 3.1.0 pkgrel = 1 url = https://github.com/damachine/coolerdash install = coolerdash.install diff --git a/.github/workflows/install.yml b/.github/workflows/install.yml index db4b518..095dc82 100644 --- a/.github/workflows/install.yml +++ b/.github/workflows/install.yml @@ -125,12 +125,12 @@ jobs: exit 1 fi - # Check CC-Plugin Lib JS files + # Check CC-Plugin Lib JS is NOT installed (served by CoolerControl) if [ -f "/tmp/install-test/etc/coolercontrol/plugins/coolerdash/ui/cc-plugin-lib.js" ]; then - echo "✅ Plugin Lib JS files installed" - else - echo "❌ Plugin Lib JS files not found" + echo "❌ Plugin Lib JS should NOT be installed (served by CoolerControl)" exit 1 + else + echo "✅ Plugin Lib JS correctly not installed (served by CoolerControl)" fi # Check desktop files diff --git a/Makefile b/Makefile index 54f2640..11dbc3e 100644 --- a/Makefile +++ b/Makefile @@ -1,12 +1,33 @@ -.PHONY: clean install uninstall debug logs help detect-distro install-deps check-deps +.PHONY: all clean distclean install install-strip installdirs uninstall check debug logs help detect-distro install-deps check-deps +.DELETE_ON_ERROR: VERSION := $(shell cat VERSION) -SUDO ?= sudo +# Auto-detect: skip sudo when running as root (e.g. sudo make install) +ifeq ($(shell id -u),0) + SUDO ?= +else + SUDO ?= sudo +endif REALOS ?= yes -CC = gcc -CFLAGS = -Wall -Wextra -O2 -std=c99 -march=x86-64-v3 -Iinclude $(shell pkg-config --cflags cairo jansson libcurl) -LIBS = $(shell pkg-config --libs cairo jansson libcurl) -lm +# Compiler +CC ?= gcc +MARCH ?= x86-64-v3 + +# External dependencies (pkg-config, cached) +PKG_CFLAGS := $(shell pkg-config --cflags cairo jansson libcurl) +PKG_LIBS := $(shell pkg-config --libs cairo jansson libcurl) + +# User-overridable flags +CFLAGS ?= -Wall -Wextra -O2 -march=$(MARCH) +CPPFLAGS ?= +LDFLAGS ?= + +# Required project flags (always applied) +override CFLAGS += -std=c99 +override CPPFLAGS += -Iinclude $(PKG_CFLAGS) +LDLIBS = $(PKG_LIBS) -lm + TARGET = coolerdash # Directories @@ -25,6 +46,23 @@ MANIFEST = etc/coolercontrol/plugins/coolerdash/manifest.toml MANPAGE = man/coolerdash.1 README = README.md +# GNU standard install directories +prefix ?= /usr +exec_prefix ?= $(prefix) +libexecdir ?= $(exec_prefix)/libexec +sysconfdir ?= /etc +datarootdir ?= $(prefix)/share +datadir ?= $(datarootdir) +mandir ?= $(datarootdir)/man + +# Install commands +INSTALL ?= install +INSTALL_PROGRAM ?= $(INSTALL) +INSTALL_DATA ?= $(INSTALL) -m 644 + +# Plugin directory (derived) +PLUGINDIR = $(sysconfdir)/coolercontrol/plugins/coolerdash + # Colors for terminal output RED = \033[0;31m GREEN = \033[0;32m @@ -35,15 +73,19 @@ CYAN = \033[0;36m WHITE = \033[1;37m RESET = \033[0m +# Default target (GNU convention) +all: $(TARGET) + # Standard Build Target - Standard C99 project structure $(TARGET): $(OBJDIR) $(BINDIR) $(OBJECTS) $(MAIN_SOURCE) @printf "\n$(PURPLE)Manual Installation Check:$(RESET)\n" @printf "If you see errors about 'conflicting files' or manual installation, run 'make uninstall' and remove leftover files in /opt/coolerdash, /etc/coolerdash, /etc/systemd/system/coolerdash.service.\n\n" @printf "$(CYAN)Compiling $(TARGET) (Standard C99 structure)...$(RESET)\n" @printf "$(BLUE)Structure:$(RESET) src/ include/ build/ bin/\n" + @printf "$(BLUE)CPPFLAGS:$(RESET) $(CPPFLAGS)\n" @printf "$(BLUE)CFLAGS:$(RESET) $(CFLAGS)\n" - @printf "$(BLUE)LIBS:$(RESET) $(LIBS)\n" - $(CC) $(CFLAGS) -o $(BINDIR)/$(TARGET) $(MAIN_SOURCE) $(OBJECTS) $(LIBS) + @printf "$(BLUE)LDLIBS:$(RESET) $(LDLIBS)\n" + $(CC) $(CPPFLAGS) $(CFLAGS) $(LDFLAGS) -o $(BINDIR)/$(TARGET) $(MAIN_SOURCE) $(OBJECTS) $(LDLIBS) @printf "$(GREEN)Build successful: $(BINDIR)/$(TARGET)$(RESET)\n" # Create build directory @@ -61,7 +103,7 @@ $(BINDIR): $(OBJDIR)/%.o: $(SRCDIR)/%.c | $(OBJDIR) @mkdir -p $(dir $@) @printf "$(YELLOW)Compiling module: $<$(RESET)\n" - @$(CC) $(CFLAGS) -MMD -MP -c $< -o $@ + @$(CC) $(CPPFLAGS) $(CFLAGS) -MMD -MP -c $< -o $@ -include $(OBJECTS:.o=.d) @@ -88,6 +130,9 @@ clean: rm -rf $(OBJDIR) $(BINDIR) @printf "$(GREEN)Cleanup completed$(RESET)\n" +# GNU standard: distclean removes everything clean does (no autoconf here) +distclean: clean + # Detect Linux distro via release files, os-release as fallback detect-distro: @if [ -f /etc/arch-release ]; then \ @@ -187,11 +232,23 @@ check-deps: printf "$(GREEN)All dependencies found$(RESET)\n"; \ fi +# Run tests (GNU standard target) +check: $(OBJDIR) + @printf "$(CYAN)Running tests...$(RESET)\n" + $(CC) $(CPPFLAGS) $(CFLAGS) -I./src -o $(OBJDIR)/test_scaling tests/test_scaling.c -lm + ./$(OBJDIR)/test_scaling + @printf "$(GREEN)All tests passed$(RESET)\n" + # Install binary to /usr/libexec, plugin data to /etc/coolercontrol/plugins/coolerdash/ install: check-deps $(TARGET) @printf "\n" @printf "$(WHITE)=== COOLERDASH INSTALLATION ===$(RESET)\n" @printf "\n" + @if [ -z "$(DESTDIR)" ] && [ "$(REALOS)" = "yes" ] && [ "$$(id -u)" -ne 0 ]; then \ + printf "$(RED)Error: Installation requires root privileges$(RESET)\n"; \ + printf "$(YELLOW)Run: sudo make install$(RESET)\n"; \ + exit 1; \ + fi @if [ "$(REALOS)" = "yes" ]; then \ printf "$(CYAN)Migration: Checking for legacy files and services...$(RESET)\n"; \ LEGACY_FOUND=0; \ @@ -283,41 +340,45 @@ install: check-deps $(TARGET) fi @printf "\n" @printf "$(CYAN)Installing plugin files...$(RESET)\n" - @install -dm755 "$(DESTDIR)/etc/coolercontrol/plugins/coolerdash" - @install -Dm755 $(BINDIR)/$(TARGET) "$(DESTDIR)/usr/libexec/coolerdash/coolerdash" - @install -m644 $(README) "$(DESTDIR)/etc/coolercontrol/plugins/coolerdash/README.md" - @install -m644 CHANGELOG.md "$(DESTDIR)/etc/coolercontrol/plugins/coolerdash/CHANGELOG.md" - @install -m644 VERSION "$(DESTDIR)/etc/coolercontrol/plugins/coolerdash/VERSION" - @install -m666 etc/coolercontrol/plugins/coolerdash/config.json "$(DESTDIR)/etc/coolercontrol/plugins/coolerdash/config.json" - @install -dm755 "$(DESTDIR)/etc/coolercontrol/plugins/coolerdash/ui" - @install -m644 etc/coolercontrol/plugins/coolerdash/ui/index.html "$(DESTDIR)/etc/coolercontrol/plugins/coolerdash/ui/index.html" - @install -m644 etc/coolercontrol/plugins/coolerdash/ui/cc-plugin-lib.js "$(DESTDIR)/etc/coolercontrol/plugins/coolerdash/ui/cc-plugin-lib.js" - @install -m644 images/shutdown.png "$(DESTDIR)/etc/coolercontrol/plugins/coolerdash/shutdown.png" - @install -m644 $(MANIFEST) "$(DESTDIR)/etc/coolercontrol/plugins/coolerdash/manifest.toml" - @sed -i 's/{{VERSION}}/$(VERSION)/g' "$(DESTDIR)/etc/coolercontrol/plugins/coolerdash/manifest.toml" - @sed -i 's/{{VERSION}}/$(VERSION)/g' "$(DESTDIR)/etc/coolercontrol/plugins/coolerdash/ui/index.html" - @printf " $(GREEN)Binary:$(RESET) $(DESTDIR)/usr/libexec/coolerdash/coolerdash\n" - @printf " $(GREEN)Config JSON:$(RESET) $(DESTDIR)/etc/coolercontrol/plugins/coolerdash/config.json\n" - @printf " $(GREEN)Web UI:$(RESET) $(DESTDIR)/etc/coolercontrol/plugins/coolerdash/ui/index.html\n" - @printf " $(GREEN)Plugin Lib:$(RESET) $(DESTDIR)/etc/coolercontrol/plugins/coolerdash/ui/cc-plugin-lib.js\n" - @printf " $(GREEN)Plugin:$(RESET) $(DESTDIR)/etc/coolercontrol/plugins/coolerdash/manifest.toml\n" + @$(INSTALL) -d "$(DESTDIR)$(PLUGINDIR)" + @$(INSTALL_PROGRAM) -D $(BINDIR)/$(TARGET) "$(DESTDIR)$(libexecdir)/coolerdash/coolerdash" + @$(INSTALL_DATA) $(README) "$(DESTDIR)$(PLUGINDIR)/README.md" + @$(INSTALL_DATA) CHANGELOG.md "$(DESTDIR)$(PLUGINDIR)/CHANGELOG.md" + @$(INSTALL_DATA) VERSION "$(DESTDIR)$(PLUGINDIR)/VERSION" + @if [ -f "$(DESTDIR)$(PLUGINDIR)/config.json" ]; then \ + $(INSTALL) -m 666 etc/coolercontrol/plugins/coolerdash/config.json "$(DESTDIR)$(PLUGINDIR)/config.json.new"; \ + printf " $(YELLOW)Config:$(RESET) Existing config.json preserved. New defaults saved as config.json.new\n"; \ + else \ + $(INSTALL) -m 666 etc/coolercontrol/plugins/coolerdash/config.json "$(DESTDIR)$(PLUGINDIR)/config.json"; \ + fi + @$(INSTALL) -d "$(DESTDIR)$(PLUGINDIR)/ui" + @$(INSTALL_DATA) etc/coolercontrol/plugins/coolerdash/ui/index.html "$(DESTDIR)$(PLUGINDIR)/ui/index.html" + @$(INSTALL_DATA) images/shutdown.png "$(DESTDIR)$(PLUGINDIR)/shutdown.png" + @$(INSTALL_DATA) $(MANIFEST) "$(DESTDIR)$(PLUGINDIR)/manifest.toml" + @sed -i 's/{{VERSION}}/$(VERSION)/g' "$(DESTDIR)$(PLUGINDIR)/manifest.toml" + @sed -i 's/{{VERSION}}/$(VERSION)/g' "$(DESTDIR)$(PLUGINDIR)/ui/index.html" + @printf " $(GREEN)Binary:$(RESET) $(DESTDIR)$(libexecdir)/coolerdash/coolerdash\n" + @printf " $(GREEN)Config JSON:$(RESET) $(DESTDIR)$(PLUGINDIR)/config.json\n" + @printf " $(GREEN)Web UI:$(RESET) $(DESTDIR)$(PLUGINDIR)/ui/index.html\n" + @printf " $(GREEN)Plugin Lib:$(RESET) Served by CoolerControl at /plugins/lib/cc-plugin-lib.js\n" + @printf " $(GREEN)Plugin:$(RESET) $(DESTDIR)$(PLUGINDIR)/manifest.toml\n" @printf " $(GREEN)Image:$(RESET) shutdown.png (coolerdash.png)\n" @printf " $(GREEN)Documentation:$(RESET) README.md, LICENSE, CHANGELOG.md, VERSION\n" @printf "\n" - @printf "$(CYAN)Note: Plugin binary is available at /usr/libexec/coolerdash/coolerdash$(RESET)\\n" + @printf "$(CYAN)Note: Plugin binary is available at $(libexecdir)/coolerdash/coolerdash$(RESET)\\n" @printf "\n" @printf "$(CYAN)Installing documentation...$(RESET)\n" - @install -Dm644 $(MANPAGE) "$(DESTDIR)/usr/share/man/man1/coolerdash.1" - @printf " $(GREEN)Manual:$(RESET) $(DESTDIR)/usr/share/man/man1/coolerdash.1\n" + @$(INSTALL_DATA) -D $(MANPAGE) "$(DESTDIR)$(mandir)/man1/coolerdash.1" + @printf " $(GREEN)Manual:$(RESET) $(DESTDIR)$(mandir)/man1/coolerdash.1\n" @printf "$(CYAN)Installing license...$(RESET)\n" - @install -Dm644 LICENSE "$(DESTDIR)/usr/share/licenses/coolerdash/LICENSE" - @printf " $(GREEN)License:$(RESET) $(DESTDIR)/usr/share/licenses/coolerdash/LICENSE\n" + @$(INSTALL_DATA) -D LICENSE "$(DESTDIR)$(datarootdir)/licenses/coolerdash/LICENSE" + @printf " $(GREEN)License:$(RESET) $(DESTDIR)$(datarootdir)/licenses/coolerdash/LICENSE\n" @printf "$(CYAN)Installing desktop shortcut...$(RESET)\n" - @install -Dm644 etc/applications/coolerdash.desktop "$(DESTDIR)/usr/share/applications/coolerdash.desktop" - @printf " $(GREEN)Shortcut:$(RESET) $(DESTDIR)/usr/share/applications/coolerdash.desktop\n" + @$(INSTALL_DATA) -D etc/applications/coolerdash.desktop "$(DESTDIR)$(datadir)/applications/coolerdash.desktop" + @printf " $(GREEN)Shortcut:$(RESET) $(DESTDIR)$(datadir)/applications/coolerdash.desktop\n" @printf "$(CYAN)Installing icon...$(RESET)\n" - @install -Dm644 etc/icons/coolerdash.svg "$(DESTDIR)/usr/share/icons/hicolor/scalable/apps/coolerdash.svg" - @printf " $(GREEN)Icon:$(RESET) $(DESTDIR)/usr/share/icons/hicolor/scalable/apps/coolerdash.svg\n" + @$(INSTALL_DATA) -D etc/icons/coolerdash.svg "$(DESTDIR)$(datadir)/icons/hicolor/scalable/apps/coolerdash.svg" + @printf " $(GREEN)Icon:$(RESET) $(DESTDIR)$(datadir)/icons/hicolor/scalable/apps/coolerdash.svg\n" @printf "\n" @printf "$(WHITE)INSTALLATION SUCCESSFUL$(RESET)\n" @printf "\n" @@ -332,11 +393,30 @@ install: check-deps $(TARGET) @printf " $(PURPLE)Show manual:$(RESET) man coolerdash\n" @printf "\n" +# Install with stripped binary (GNU standard target) +install-strip: + $(MAKE) install INSTALL_PROGRAM='$(INSTALL_PROGRAM) -s' + +# Create install directories without installing (GNU standard target) +installdirs: + $(INSTALL) -d "$(DESTDIR)$(libexecdir)/coolerdash" + $(INSTALL) -d "$(DESTDIR)$(PLUGINDIR)" + $(INSTALL) -d "$(DESTDIR)$(PLUGINDIR)/ui" + $(INSTALL) -d "$(DESTDIR)$(mandir)/man1" + $(INSTALL) -d "$(DESTDIR)$(datarootdir)/licenses/coolerdash" + $(INSTALL) -d "$(DESTDIR)$(datadir)/applications" + $(INSTALL) -d "$(DESTDIR)$(datadir)/icons/hicolor/scalable/apps" + # Uninstall Target uninstall: @printf "\n" @printf "$(WHITE)=== COOLERDASH UNINSTALLATION ===$(RESET)\n" @printf "\n" + @if [ -z "$(DESTDIR)" ] && [ "$(REALOS)" = "yes" ] && [ "$$(id -u)" -ne 0 ]; then \ + printf "$(RED)Error: Uninstallation requires root privileges$(RESET)\n"; \ + printf "$(YELLOW)Run: sudo make uninstall$(RESET)\n"; \ + exit 1; \ + fi @if [ "$(REALOS)" = "yes" ]; then \ printf "$(CYAN)Stopping and disabling services...$(RESET)\n"; \ $(SUDO) systemctl stop cc-plugin-coolerdash.service >/dev/null 2>&1 || true; \ @@ -397,14 +477,14 @@ uninstall: LEGACY_FOUND=1; \ fi; \ fi - @$(SUDO) rm -rf "$(DESTDIR)/etc/coolercontrol/plugins/coolerdash" - @$(SUDO) rm -rf "$(DESTDIR)/usr/libexec/coolerdash" - @$(SUDO) rm -rf "$(DESTDIR)/usr/share/licenses/coolerdash" - @$(SUDO) rm -f "$(DESTDIR)/usr/share/man/man1/coolerdash.1" - @$(SUDO) rm -f "$(DESTDIR)/usr/share/applications/coolerdash.desktop" + @$(SUDO) rm -rf "$(DESTDIR)$(PLUGINDIR)" + @$(SUDO) rm -rf "$(DESTDIR)$(libexecdir)/coolerdash" + @$(SUDO) rm -rf "$(DESTDIR)$(datarootdir)/licenses/coolerdash" + @$(SUDO) rm -f "$(DESTDIR)$(mandir)/man1/coolerdash.1" + @$(SUDO) rm -f "$(DESTDIR)$(datadir)/applications/coolerdash.desktop" # Legacy cleanup: remove udev rule if installed by older version @$(SUDO) rm -f "$(DESTDIR)/usr/lib/udev/rules.d/99-coolerdash.rules" - @$(SUDO) rm -f "$(DESTDIR)/usr/share/icons/hicolor/scalable/apps/coolerdash.svg" + @$(SUDO) rm -f "$(DESTDIR)$(datadir)/icons/hicolor/scalable/apps/coolerdash.svg" @if [ "$(REALOS)" = "yes" ]; then \ if id -u coolerdash >/dev/null 2>&1; then \ $(SUDO) userdel -rf coolerdash; \ @@ -417,8 +497,9 @@ uninstall: @printf "\n" # Debug Build -debug: CFLAGS += -g -DDEBUG -fsanitize=address -debug: LIBS += -fsanitize=address +debug: CPPFLAGS += -DDEBUG +debug: CFLAGS += -g -fsanitize=address +debug: LDFLAGS += -fsanitize=address debug: $(TARGET) @printf "$(GREEN)Debug build created with AddressSanitizer: $(BINDIR)/$(TARGET)$(RESET)\n" @@ -434,13 +515,17 @@ help: @printf "$(WHITE)========================================$(RESET)\n" @printf "\n" @printf "$(YELLOW)Build Targets:$(RESET)\n" - @printf " $(GREEN)make$(RESET) - Compiles the program\n" - @printf " $(GREEN)make clean$(RESET) - Removes compiled files\n" - @printf " $(GREEN)make debug$(RESET) - Debug build with AddressSanitizer\n" + @printf " $(GREEN)make$(RESET) - Compiles the program\n" + @printf " $(GREEN)make clean$(RESET) - Removes compiled files\n" + @printf " $(GREEN)make distclean$(RESET) - Same as clean (no autoconf)\n" + @printf " $(GREEN)make check$(RESET) - Runs unit tests\n" + @printf " $(GREEN)make debug$(RESET) - Debug build with AddressSanitizer\n" @printf "\n" @printf "$(YELLOW)Installation:$(RESET)\n" - @printf " $(GREEN)make install$(RESET) - Installs binary + plugin data + systemd units\n" - @printf " $(GREEN)make uninstall$(RESET)- Uninstalls the program\n" + @printf " $(GREEN)make install$(RESET) - Installs binary + plugin data\n" + @printf " $(GREEN)make install-strip$(RESET)- Installs with stripped binary\n" + @printf " $(GREEN)make installdirs$(RESET) - Creates install directories only\n" + @printf " $(GREEN)make uninstall$(RESET) - Uninstalls the program\n" @printf "\n" @printf "$(YELLOW)Plugin Management:$(RESET)\n" @printf " $(GREEN)systemctl enable --now coolercontrold.service$(RESET) - Active CoolerControl service\n" @@ -457,7 +542,7 @@ help: @printf " $(GREEN)README.md$(RESET) - English (main documentation)\n" @printf "\n" @printf "$(YELLOW)Version Usage:$(RESET)\n" - @printf " $(GREEN)Program:$(RESET) /usr/libexec/coolerdash/coolerdash [mode]\n" - @printf " $(GREEN)Config:$(RESET) /etc/coolercontrol/plugins/coolerdash/config.json\n" + @printf " $(GREEN)Program:$(RESET) $(libexecdir)/coolerdash/coolerdash [mode]\n" + @printf " $(GREEN)Config:$(RESET) $(PLUGINDIR)/config.json\n" @printf " $(GREEN)Web UI:$(RESET) CoolerControl Plugin Settings\n" @printf "\n" diff --git a/PKGBUILD b/PKGBUILD index 7deb63b..355ca99 100644 --- a/PKGBUILD +++ b/PKGBUILD @@ -47,7 +47,6 @@ build() { cp -a README.md CHANGELOG.md VERSION LICENSE "${srcdir}/" cp -a etc/coolercontrol/plugins/coolerdash/config.json "${srcdir}/etc/coolercontrol/plugins/coolerdash/" cp -a etc/coolercontrol/plugins/coolerdash/ui/index.html "${srcdir}/etc/coolercontrol/plugins/coolerdash/ui/" - cp -a etc/coolercontrol/plugins/coolerdash/ui/cc-plugin-lib.js "${srcdir}/etc/coolercontrol/plugins/coolerdash/ui/" cp -a images/shutdown.png "${srcdir}/images/" cp -a man/coolerdash.1 "${srcdir}/man/" cp -a etc/coolercontrol/plugins/coolerdash/manifest.toml "${srcdir}/etc/coolercontrol/plugins/coolerdash/" @@ -79,7 +78,6 @@ package() { install -dm755 "${pkgdir}/etc/coolercontrol/plugins/coolerdash/ui" install -m644 "${srcdir}/etc/coolercontrol/plugins/coolerdash/ui/index.html" "${pkgdir}/etc/coolercontrol/plugins/coolerdash/ui/index.html" - install -m644 "${srcdir}/etc/coolercontrol/plugins/coolerdash/ui/cc-plugin-lib.js" "${pkgdir}/etc/coolercontrol/plugins/coolerdash/ui/cc-plugin-lib.js" install -Dm644 "${srcdir}/images/shutdown.png" "${pkgdir}/etc/coolercontrol/plugins/coolerdash/shutdown.png" install -Dm644 "${srcdir}/etc/coolercontrol/plugins/coolerdash/manifest.toml" "${pkgdir}/etc/coolercontrol/plugins/coolerdash/manifest.toml" diff --git a/VERSION b/VERSION index eca690e..fd2a018 100644 --- a/VERSION +++ b/VERSION @@ -1 +1 @@ -3.0.5 +3.1.0 diff --git a/aur/PKGBUILD b/aur/PKGBUILD index 17f2310..1f09e6b 100644 --- a/aur/PKGBUILD +++ b/aur/PKGBUILD @@ -65,7 +65,6 @@ package() { install -dm755 "${pkgdir}/etc/coolercontrol/plugins/coolerdash/ui" install -m644 "${srcdir}/${pkgname}/etc/coolercontrol/plugins/coolerdash/ui/index.html" "${pkgdir}/etc/coolercontrol/plugins/coolerdash/ui/index.html" - install -m644 "${srcdir}/${pkgname}/etc/coolercontrol/plugins/coolerdash/ui/cc-plugin-lib.js" "${pkgdir}/etc/coolercontrol/plugins/coolerdash/ui/cc-plugin-lib.js" install -m644 "${srcdir}/${pkgname}/images/shutdown.png" "${pkgdir}/etc/coolercontrol/plugins/coolerdash/shutdown.png" install -m644 "${srcdir}/${pkgname}/etc/coolercontrol/plugins/coolerdash/manifest.toml" "${pkgdir}/etc/coolercontrol/plugins/coolerdash/manifest.toml" diff --git a/etc/coolercontrol/plugins/coolerdash/config.json b/etc/coolercontrol/plugins/coolerdash/config.json index 9d3c34e..80fc1e0 100644 --- a/etc/coolercontrol/plugins/coolerdash/config.json +++ b/etc/coolercontrol/plugins/coolerdash/config.json @@ -107,6 +107,8 @@ "positioning": { "degree_spacing": 16, "label_offset_x": 0, - "label_offset_y": 0 + "label_offset_y": 0, + "margin_top": 0, + "margin_bottom": 0 } } diff --git a/etc/coolercontrol/plugins/coolerdash/manifest.toml b/etc/coolercontrol/plugins/coolerdash/manifest.toml index d50e6fe..8cf79d3 100644 --- a/etc/coolercontrol/plugins/coolerdash/manifest.toml +++ b/etc/coolercontrol/plugins/coolerdash/manifest.toml @@ -3,7 +3,7 @@ type = "integration" version = "{{VERSION}}" description = "Monitor telemetry data on an AIO liquid cooler with an integrated LCD display" executable = "/usr/libexec/coolerdash/coolerdash" -#args = "--verbose" +args = "--verbose" privileged = true url = "https://github.com/damachine/coolerdash" author = "damachine" diff --git a/etc/coolercontrol/plugins/coolerdash/ui/index.html b/etc/coolercontrol/plugins/coolerdash/ui/index.html index c508bb5..d8a199d 100644 --- a/etc/coolercontrol/plugins/coolerdash/ui/index.html +++ b/etc/coolercontrol/plugins/coolerdash/ui/index.html @@ -4,7 +4,7 @@ CoolerDash Settings - +