Hi Team,
I notice a strange functioning with the planned tasks.
At first, I create a soft shutdown task at 3.30pm in the planning console Sixfab, and Ideleted it in a second time. But since, every day at 3.30pm my system stops!
I do not know how to delete this task from the memory of the HAT.
Can you help me ?
Thank you in advance,
Alexandre
Yes I save the configuration after deleting the task
I tried to delete the events via the python API but nothing to do: Every day at 3.30pm my system stops !
I have no idea, help !
Please try the code below and share the output.
from power_api import SixfabPower, Definition, Event
node = SixfabPower()
node.get_scheduled_event_ids()
There are 2 functions to remove the scheduling events.
Hi @ensar
There are no retour output at 3:11pm.
root@b0x:/opt/sixfab/pms/api/example# cat test.py
from power_api import SixfabPower, Definition, Event
node = SixfabPower()
node.get_scheduled_event_ids()
root@b0x:/opt/sixfab/pms/api/example# python3 test.py
root@b0x:/opt/sixfab/pms/api/example#
I wait 3:30 to see what’s going on today
Bad news: the system has just shutdown
tail -f /var/log/daemon.log
Jun 1 15:34:25 b0x python3[1308]: DEBUG:root:[FEEDER] Done, releasing setters
Jun 1 15:34:35 b0x python3[1308]: DEBUG:root:[FEEDER] Starting, locking
Jun 1 15:34:35 b0x python3[1308]: Raspberry Pi will shutdown in 5 seconds!
Hi @ensar,
Today the PI did not stop at 3.30pm like the other days :
Yesterday, after our discussions, I stopped and uninstalled the PMS services on my system, then I deleted my device from the sixfab console and I created a new device with my usual planning tasks (shutdown at 23:30 pm and start at 6:30) .
Perhaps that the deletion of my scheduled task at 15h30 on the PMS console did not work, this despite the actions of deleting and saving the configuration overthe sixfab console.
I’m still interested in trying to debug the MCU.
If you have a tutorial this could help me
Regards,
Alexandre
Hi @ensar ,
Post resolved because I no longer have a problem after reinstalling the PMS service and creating a new device on the sixfab cloud console.
But, I think there is a bug because despite the removal of the scheduled task on the console, the scheduling task continued to run.
Regard Alexandre
Hi @adm,
I’m sorry for this bug. I’ll get back to you as soon as possible after fixing this bug.
Sincerely.
Re,
unfortunately, I spoke too quickly yesterday
This day at 3.30pm, my system stops soft again
Jun 4 15:31:54 b0x python3[1279]: Sending PUBLISH (d0, q0, r0, m698), 'b'/device/***/feed'', ... (507 bytes)
Jun 4 15:31:54 b0x python3[1279]: DEBUG:root:[FEEDER] Done, releasing setters
Jun 4 15:32:04 b0x python3[1279]: DEBUG:root:[FEEDER] Starting, locking
Jun 4 15:32:04 b0x python3[1279]: Raspberry Pi will shutdown in 5 seconds!
..
I do not know what to do.
Help me