Skip to content

Commit

Permalink
Updated LTS version
Browse files Browse the repository at this point in the history
  • Loading branch information
mh-superbox committed Jun 6, 2022
1 parent 4e0823b commit 3a0f44b
Show file tree
Hide file tree
Showing 10 changed files with 15 additions and 52 deletions.
2 changes: 0 additions & 2 deletions buildroot/Config.in
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,6 @@ comment "Base packages"
source "$BR2_EXTERNAL_UNIPI_PATH/package/unipi-control/Config.in"
source "$BR2_EXTERNAL_UNIPI_PATH/package/unipi-python-asyncio-mqtt/Config.in"
source "$BR2_EXTERNAL_UNIPI_PATH/package/unipi-python-paho-mqtt/Config.in"
source "$BR2_EXTERNAL_UNIPI_PATH/package/unipi-python-pymodbus/Config.in"
source "$BR2_EXTERNAL_UNIPI_PATH/package/unipi-python-pyyaml/Config.in"
source "$BR2_EXTERNAL_UNIPI_PATH/package/unipi-kernel/Config.in"
source "$BR2_EXTERNAL_UNIPI_PATH/package/unipi-tools/Config.in"

Expand Down
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
check system $HOST
if loadavg (5min) > 3 then exec "/bin/telegram-send-message -s '*[unipi]* Load 5min greater then 3'"
if loadavg (15min) > 3 then exec "/bin/telegram-send-messag -s '*[unipi]* Load 15min greater then 3'"
if memory usage > 80% for 4 cycles then exec "/bin/telegram-send-messag -s '*[unipi]* Memory usage greater then 80 %'"
if swap usage > 20% for 4 cycles then exec "/bin/telegram-send-message -s '*[unipi]* Swap usage greater then 20 %'"
if loadavg (5min) > 3 then alert
if loadavg (15min) > 3 then alert
if memory usage > 80% for 4 cycles then alert
if swap usage > 20% for 4 cycles then alert

# Test the user part of CPU usage
if cpu usage (user) > 95% for 2 cycles then alert
Expand Down
2 changes: 1 addition & 1 deletion buildroot/package/unipi-control/unipi-control.hash
Original file line number Diff line number Diff line change
@@ -1 +1 @@
sha256 908b67fb7cfd5169a4c2f1bb1716cb1b843feb155a6ac4ebb7dbf195c8d732d9 1.1.1.tar.gz
sha256 e09071d36af73f42912adbf3682d77338fbd8d55d65ce47e8759afb53c1df710 1.2.0.tar.gz
11 changes: 10 additions & 1 deletion buildroot/package/unipi-control/unipi-control.mk
Original file line number Diff line number Diff line change
Expand Up @@ -4,11 +4,20 @@
#
################################################################################

UNIPI_CONTROL_VERSION = 1.1.1
UNIPI_CONTROL_VERSION = 1.2.0
UNIPI_CONTROL_SOURCE = $(UNIPI_CONTROL_VERSION).tar.gz
UNIPI_CONTROL_SITE = https://github.com/mh-superbox/unipi-control/archive/refs/tags
UNIPI_CONTROL_SETUP_TYPE = setuptools
UNIPI_CONTROL_LICENSE = MIT
UNIPI_CONTROL_LICENSE_FILES = LICENCE

define UNIPI_CONTROL_INSTALL_TARGET_CMDS
cp -rf $(@D)/src/unipi_control/installer/etc/unipi -t $(TARGET_DIR)/etc/unipi
endef

define UNIPI_CONTROL_INSTALL_INIT_SYSTEMD
$(INSTALL) -D -m 644 $(@D)/src/unipi_control/installer/etc/systemd/system/unipi-control.service \
$(TARGET_DIR)/etc/systemd/system/unipi-control.service
endef

$(eval $(python-package))
9 changes: 0 additions & 9 deletions buildroot/package/unipi-python-pymodbus/Config.in

This file was deleted.

This file was deleted.

13 changes: 0 additions & 13 deletions buildroot/package/unipi-python-pymodbus/unipi-python-pymodbus.mk

This file was deleted.

7 changes: 0 additions & 7 deletions buildroot/package/unipi-python-pyyaml/Config.in

This file was deleted.

This file was deleted.

13 changes: 0 additions & 13 deletions buildroot/package/unipi-python-pyyaml/unipi-python-pyyaml.mk

This file was deleted.

0 comments on commit 3a0f44b

Please sign in to comment.