From 71add54bf2c37f9c396ad7d9b63a3f1ab6e7e800 Mon Sep 17 00:00:00 2001 From: Siegfried Siegert Date: Sat, 2 Mar 2024 13:03:14 +0100 Subject: [PATCH 1/4] opkg: only install atb-dc-libraries --- etc/psa_update/opkg_commands | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/etc/psa_update/opkg_commands b/etc/psa_update/opkg_commands index 807f1f1..967b8e7 100755 --- a/etc/psa_update/opkg_commands +++ b/etc/psa_update/opkg_commands @@ -8,10 +8,11 @@ opkg update opkg install prepare-update opkg install atbupdatetool opkg install mxt-touch-reset +opkg install atb-dc-libraries # opkg remove atb-accountingtool # opkg install atb-accountingtool -opkg --cache /var/cache/opkg --download-only upgrade -opkg --cache /var/cache/opkg upgrade +#opkg --cache /var/cache/opkg --download-only upgrade +#opkg --cache /var/cache/opkg upgrade # opkg remove apism # opkg install apism opkg info apism From b415712c0c32852bec03ef48807b5d43ff3d54cd Mon Sep 17 00:00:00 2001 From: Siegfried Siegert Date: Wed, 6 Mar 2024 10:18:44 +0100 Subject: [PATCH 2/4] Add SystemControl.ini -> reboot at 0, 7, 13 --- etc/atb/SystemControl.ini | 85 +++++++++++++++++++++++++++++++++++++++ 1 file changed, 85 insertions(+) create mode 100644 etc/atb/SystemControl.ini diff --git a/etc/atb/SystemControl.ini b/etc/atb/SystemControl.ini new file mode 100644 index 0000000..e8b9624 --- /dev/null +++ b/etc/atb/SystemControl.ini @@ -0,0 +1,85 @@ +[AT_TASKS] +1\arguments=restart, atbapp +1\envs= +1\hourOfDay=4 +1\id=ATBAPP_RESTART +1\program=/bin/systemctl +2\arguments=restart, apism +2\envs= +2\hourOfDay=4 +2\id=APISM_RESTART +2\program=/bin/systemctl +3\arguments=start, atbupdatetool +3\envs= +3\hourOfDay=1 +3\id=PTU5UPDATE +3\program=/bin/systemctl + +4\arguments= +4\envs= +4\hourOfDay=0 +4\id=REBOOT_0 +4\program=/sbin/reboot + +5\arguments= +5\envs= +5\hourOfDay=7 +5\id=REBOOT_7 +5\program=/sbin/reboot + +6\arguments= +6\envs= +6\hourOfDay=13 +6\id=REBOOT_13 +6\program=/sbin/reboot + +size=6 + +[BACKLIGHT] +SensorMax=3500 +SensorMin=0 +curve=1 +dimLowValue=499 +dimMax=100 +dimMin=20 +inputBrightness=499 + +[COMMON] +startBacklightController=true +startMQTTController=false +startMonitoringController=false +startSuspendController=false + +[MONITORING] +http_dataFormat=HTTP +http_host=127.0.0.1 +http_ignoreSslErrors=on +http_port=5000 +http_protocol=http +http_service= +monitoring_heartbeatInterval=60 +protocol=mqtt +useDeviceId=on +useRingbuffer=on + +[MQTT] +mqtt_QoS=0 +mqtt_TopicDeviceType=MP +mqtt_TopicPrefix=ATB +mqtt_TopicScheme=ATB_ISMAS +mqtt_debug=on +mqtt_host=mqtt2.atb-comm.de +mqtt_password=xyz123 +mqtt_port=8883 +mqtt_useSsl=on +mqtt_username=testuser + +[NETWORKCHECK] +PingHost=google.com +networkRestart=/sbin/ifup -a +setOOO=off +useNetworkCheck=on + +[SUSPEND] +program=/home/root/system_powerdown_wakeup.sh +suspendLoopTimerValue=8 From 1043aa004055fa4db4af7b480c53534a19058b4b Mon Sep 17 00:00:00 2001 From: Siegfried Siegert Date: Wed, 6 Mar 2024 13:32:10 +0100 Subject: [PATCH 3/4] PTU5SystemController: switch on monitoring --- etc/atb/SystemControl.ini | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/etc/atb/SystemControl.ini b/etc/atb/SystemControl.ini index e8b9624..d407b9a 100644 --- a/etc/atb/SystemControl.ini +++ b/etc/atb/SystemControl.ini @@ -46,8 +46,8 @@ inputBrightness=499 [COMMON] startBacklightController=true -startMQTTController=false -startMonitoringController=false +startMQTTController=true +startMonitoringController=true startSuspendController=false [MONITORING] From 1e120dca551d0edc3648dc60d038e9d18d68fa48 Mon Sep 17 00:00:00 2001 From: Siegfried Siegert Date: Wed, 6 Mar 2024 15:13:59 +0100 Subject: [PATCH 4/4] Revert making reeboots! --- etc/atb/SystemControl.ini | 32 ++++++++++++++++---------------- 1 file changed, 16 insertions(+), 16 deletions(-) diff --git a/etc/atb/SystemControl.ini b/etc/atb/SystemControl.ini index d407b9a..7dfd03e 100644 --- a/etc/atb/SystemControl.ini +++ b/etc/atb/SystemControl.ini @@ -15,25 +15,25 @@ 3\id=PTU5UPDATE 3\program=/bin/systemctl -4\arguments= -4\envs= -4\hourOfDay=0 -4\id=REBOOT_0 -4\program=/sbin/reboot +#4\arguments= +#4\envs= +#4\hourOfDay=0 +#4\id=REBOOT_0 +#4\program=/sbin/reboot -5\arguments= -5\envs= -5\hourOfDay=7 -5\id=REBOOT_7 -5\program=/sbin/reboot +#5\arguments= +#5\envs= +#5\hourOfDay=7 +#5\id=REBOOT_7 +#5\program=/sbin/reboot -6\arguments= -6\envs= -6\hourOfDay=13 -6\id=REBOOT_13 -6\program=/sbin/reboot +#6\arguments= +#6\envs= +#6\hourOfDay=13 +#6\id=REBOOT_13 +#6\program=/sbin/reboot -size=6 +size=3 [BACKLIGHT] SensorMax=3500