Page 2 of 2

Re: Scheduled reboot Toon 1 for getting sluggish.

Posted: Tue Apr 12, 2022 9:46 am
by RDNZL
4nuts wrote: Tue Apr 12, 2022 7:03 am by 4nuts » 12 Apr 2022 06:03
I have it on my Toon1:

eneco-001-00xxxx:~# which crontab
/usr/bin/crontab

Re: Scheduled reboot Toon 1 for getting sluggish.

Posted: Tue Apr 12, 2022 12:28 pm
by hvxl
It's provided by the cron package:

Code: Select all

toon:~# opkg files cron
Package cron (3.0pl1-r8) is installed on root and has the following files:
/etc/init.d/cron
/var/cron/tabs/
/var/cron/
/usr/bin/crontab
/usr/sbin/cron
I don't recall if I installed that package manually, but maybe you can.

Re: Scheduled reboot Toon 1 for getting sluggish.

Posted: Tue Apr 12, 2022 5:52 pm
by 4nuts
RDNZL wrote: Tue Apr 12, 2022 9:46 am
4nuts wrote: Tue Apr 12, 2022 7:03 am by 4nuts » 12 Apr 2022 06:03
I have it on my Toon1:

eneco-001-00xxxx:~# which crontab
/usr/bin/crontab
Hi Ron,

On my Toon1 no crontab here, maybe installed later manually ?

Re: Scheduled reboot Toon 1 for getting sluggish.

Posted: Sat Apr 16, 2022 7:10 pm
by Havym
No crontab on my Toon1 here...

Code: Select all

eneco-001-14****:~# opkg files cron
Collected errors:
 * opkg_files_cmd: Package cron not installed.
How can i manually install cron on a toon?


@4nuts, is it possible to share the python code?
4nuts wrote: Sun Apr 10, 2022 11:08 am The python code does the following:
-1- Setup an SSH connection to the Toon
-2- Daily @ 4 am it sents out the ssh command /sbin/shutdown -r now , the Toon will reboot and freeup the memory.
-3- every minute send the following command to the Toon : uptime , free and iostat -c 1 1 and store the results in Homeassistant via MQTT.

Re: Scheduled reboot Toon 1 for getting sluggish.

Posted: Sat Apr 16, 2022 8:51 pm
by Toonz

Re: Scheduled reboot Toon 1 for getting sluggish.

Posted: Mon Apr 18, 2022 10:56 pm
by Havym
Thanks! :D

Re: Scheduled reboot Toon 1 for getting sluggish.

Posted: Fri Apr 22, 2022 9:01 pm
by 4nuts
Toonz wrote: Sat Apr 16, 2022 8:51 pm cron ipk can be found here: http://files.domoticaforum.eu/index.php ... on/ipk/qb2

install via "opkg install http://files.domoticaforum.eu/uploads/T ... r8_qb2.ipk"
Great ! now crontab is running on my Toon1.
No more remote Python Reboot :D

Re: Scheduled reboot Toon 1 for getting sluggish.

Posted: Sat Sep 17, 2022 9:37 am
by Micha_123
cannot install it on toon1

Installing cron (3.0pl1-r8) to root...
Collected errors:
* opkg_install_pkg: Package cron md5sum mismatch. Either the opkg or the package index are corrupt. Try 'opkg update'.
* opkg_install_cmd: Cannot install package cron.


ok, i have made the VPN connection

./update-rooted.sh -o

and then i ran opkg install cron

then i rebooted the toon to close the vpn connection to eneco

Re: Scheduled reboot Toon 1 for getting sluggish.

Posted: Sat Sep 17, 2022 4:59 pm
by oepi-loepi
I also made an app in the toonstore for reboot. Every monday night it will be rebooted

Re: Scheduled reboot Toon 1 for getting sluggish.

Posted: Sun Sep 18, 2022 3:59 pm
by 4nuts
oepi-loepi wrote: Sat Sep 17, 2022 4:59 pm I also made an app in the toonstore for reboot. Every monday night it will be rebooted
that is nice to have it in the toonstore , but for me a restart on weekly basis will not work, after 3-4 days the Toon slows down.
So I reboot every night with a crontab and that works great. :D

Re: Scheduled reboot Toon 1 for getting sluggish.

Posted: Sun Sep 18, 2022 10:02 pm
by oepi-loepi
Ok, maybe..just maybe i will adjust the app to have the interval al variable.

Re: Scheduled reboot Toon 1 for getting sluggish.

Posted: Fri Apr 12, 2024 3:17 pm
by Doerakker
the lastest version of this app reboots on day 1 3 and 5

Re: Scheduled reboot Toon 1 for getting sluggish.

Posted: Sun Apr 14, 2024 11:45 pm
by oepi-loepi
Correct:

if ((day == 1 || day == 3 || day == 5) & (timeStr == "3:30" || timeStr == "03:30") )