Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Robo-Tank v6.6 is Ready
#11
Well it appears I didn't fix that 24 hour issue, (I say 24 hour but technically the first schedule doesn't run) now I'm hoping when you made your schedule instead of ticking every day of the week you used X number of days is 1?

First I edited the schedule I made yesterday so it would run immediately and it did. Then I created a new schedule but this time ticked the days and it worked, yesterday I used 1 day. I thought the schedule didn't actually run but I think I was wrong there, I'll know soon.

Anyways looks like it's nothing serious. You can be confident they will always run but of course monitor the log and how many mL's are remaining so you know. I keep my SSH terminal running 24 hours so I can see what's going on and know if the program ever crashed which I'm happy to say hasn't happened for well over a year and it's ran months not touched. I don't run the robotank.service instead just use sudo ./robotank to run it. I always check to see if schedules and custom rules do as they should, hasn't failed yet in my testing. I do love the scheduling system, when you know what the codes doing it's impossible to skip a schedule unless the program isn't running. Even if the Pi happened to lock up for X number of minutes when it resumes all schedules that were scheduled during the lockup will still run. Of course if the program goes in an infinite loop due to bad code then everything will be missed. This is mainly why I keep the SSH open so I can verify schedules and custom rules ran but that can be done through the log to.

I also just realized I only have the email and log entry happening from the scheduling code, the dosing system doesn't have it. I'm going to add that directly to dosing system as well, the function that starts the pump and when it stops. It adds a lot more to the log as 1 entry will be 3 now but I think it's worth it.

I also just realized I still have the possible infinite loop if the pca9685 can't verify it was actually switched. I'm going to change that to something like 100 tries, why not, and if not it will send alert and log, that should have been there to begin with. Maybe I'll even have it reboot the controller if it fails to verify as it's likely a locked bus. I guess like that though it's possible to have an infinite reboot loop if the I2C was down for the count. I guess I'll have to also add max number of reboots allowed lol. Before a reboot happens I could even save what it was trying to do so after reboot it'll know why it rebooted and then try switching that on/off again. This would be good if say a dosing pump didn't start due to locked I2C bus, after it reboots it would know to try again instead of skipping it.

What do you think of all this rambling? Just trying to think of ways to add fail safes. Before adding more features I want to do some polishing on what's here.
Reply to top


Messages In This Thread
Robo-Tank v6.6 is Ready - by Rob F - 02-13-2023, 12:01 AM
RE: Robo-Tank v6.6 is Ready - by gandalf - 02-14-2023, 07:13 AM
RE: Robo-Tank v6.6 is Ready - by gandalf - 02-14-2023, 10:07 AM
RE: Robo-Tank v6.6 is Ready - by TheYear2525 - 02-22-2023, 03:38 PM
RE: Robo-Tank v6.6 is Ready - by Rob F - 02-14-2023, 07:52 PM
RE: Robo-Tank v6.6 is Ready - by gandalf - 02-15-2023, 02:33 AM
RE: Robo-Tank v6.6 is Ready - by gandalf - 02-15-2023, 07:24 AM
RE: Robo-Tank v6.6 is Ready - by Rob F - 02-15-2023, 09:11 PM
RE: Robo-Tank v6.6 is Ready - by gandalf - 02-16-2023, 12:26 AM
RE: Robo-Tank v6.6 is Ready - by gandalf - 02-16-2023, 08:01 AM
RE: Robo-Tank v6.6 is Ready - by Rob F - 02-16-2023, 08:05 PM
RE: Robo-Tank v6.6 is Ready - by Rob F - 02-16-2023, 09:45 PM
RE: Robo-Tank v6.6 is Ready - by gandalf - 02-17-2023, 12:56 AM
RE: Robo-Tank v6.6 is Ready - by gandalf - 02-17-2023, 03:18 AM
RE: Robo-Tank v6.6 is Ready - by Rob F - 02-17-2023, 09:13 PM
RE: Robo-Tank v6.6 is Ready - by Rob F - 02-22-2023, 07:58 PM
RE: Robo-Tank v6.6 is Ready - by TheYear2525 - 02-24-2023, 02:43 AM
RE: Robo-Tank v6.6 is Ready - by pwest - 05-20-2023, 08:56 PM
RE: Robo-Tank v6.6 is Ready - by gandalf - 02-23-2023, 02:24 AM
RE: Robo-Tank v6.6 is Ready - by Rob F - 02-23-2023, 07:19 PM
RE: Robo-Tank v6.6 is Ready - by Rob F - 02-24-2023, 07:52 PM
RE: Robo-Tank v6.6 is Ready - by TheYear2525 - 03-16-2023, 11:33 AM
RE: Robo-Tank v6.6 is Ready - by Rob F - 03-16-2023, 07:34 PM
RE: Robo-Tank v6.6 is Ready - by Rob F - 03-16-2023, 09:32 PM
RE: Robo-Tank v6.6 is Ready - by Rob F - 03-16-2023, 10:41 PM
RE: Robo-Tank v6.6 is Ready - by gandalf - 03-17-2023, 12:22 AM
RE: Robo-Tank v6.6 is Ready - by Rob F - 03-17-2023, 12:40 AM
RE: Robo-Tank v6.6 is Ready - by gandalf - 03-17-2023, 01:05 AM
RE: Robo-Tank v6.6 is Ready - by Rob F - 03-17-2023, 01:16 AM
RE: Robo-Tank v6.6 is Ready - by matt - 03-19-2023, 09:24 AM
RE: Robo-Tank v6.6 is Ready - by Rob F - 03-19-2023, 08:23 PM
RE: Robo-Tank v6.6 is Ready - by gandalf - 03-17-2023, 01:18 AM
RE: Robo-Tank v6.6 is Ready - by Rob F - 03-17-2023, 01:35 AM
RE: Robo-Tank v6.6 is Ready - by gandalf - 03-17-2023, 04:48 AM
RE: Robo-Tank v6.6 is Ready - by Rob F - 03-17-2023, 08:20 PM
RE: Robo-Tank v6.6 is Ready - by gandalf - 03-18-2023, 04:37 AM
RE: Robo-Tank v6.6 is Ready - by Rob F - 03-18-2023, 06:10 PM
RE: Robo-Tank v6.6 is Ready - by gandalf - 03-19-2023, 11:58 AM
RE: Robo-Tank v6.6 is Ready - by Rob F - 03-19-2023, 08:28 PM
RE: Robo-Tank v6.6 is Ready - by Enigma79 - 04-04-2023, 07:37 PM
RE: Robo-Tank v6.6 is Ready - by Rob F - 04-05-2023, 01:34 AM
RE: Robo-Tank v6.6 is Ready - by Enigma79 - 04-05-2023, 09:33 AM
RE: Robo-Tank v6.6 is Ready - by Rob F - 04-05-2023, 09:34 PM
RE: Robo-Tank v6.6 is Ready - by gandalf - 04-05-2023, 11:50 PM
RE: Robo-Tank v6.6 is Ready - by Rob F - 04-06-2023, 12:39 AM
RE: Robo-Tank v6.6 is Ready - by gandalf - 04-06-2023, 01:14 AM
RE: Robo-Tank v6.6 is Ready - by Enigma79 - 04-07-2023, 06:23 AM
RE: Robo-Tank v6.6 is Ready - by matt - 04-07-2023, 09:41 AM
RE: Robo-Tank v6.6 is Ready - by Rob F - 04-07-2023, 11:02 PM
RE: Robo-Tank v6.6 is Ready - by Enigma79 - 04-08-2023, 10:35 AM
RE: Robo-Tank v6.6 is Ready - by Rob F - 04-08-2023, 11:27 PM
RE: Robo-Tank v6.6 is Ready - by zfreak_1125 - 04-13-2023, 02:09 PM
RE: Robo-Tank v6.6 is Ready - by Rob F - 04-13-2023, 09:14 PM
RE: Robo-Tank v6.6 is Ready - by simonv92 - 05-16-2023, 12:41 PM
RE: Robo-Tank v6.6 is Ready - by Rob F - 05-16-2023, 08:26 PM
RE: Robo-Tank v6.6 is Ready - by Hazelnutuz - 05-19-2023, 05:41 PM
RE: Robo-Tank v6.6 is Ready - by Rob F - 05-19-2023, 07:50 PM
RE: Robo-Tank v6.6 is Ready - by pwest - 05-21-2023, 12:56 PM
RE: Robo-Tank v6.6 is Ready - by Rob F - 05-22-2023, 05:43 PM
RE: Robo-Tank v6.6 is Ready - by pwest - 05-22-2023, 08:42 PM
RE: Robo-Tank v6.6 is Ready - by Rob F - 05-22-2023, 08:48 PM
RE: Robo-Tank v6.6 is Ready - by pwest - 05-23-2023, 07:07 AM
RE: Robo-Tank v6.6 is Ready - by Rob F - 05-23-2023, 06:07 PM
RE: Robo-Tank v6.6 is Ready - by pwest - 06-24-2023, 04:07 PM
RE: Robo-Tank v6.6 is Ready - by gandalf - 06-24-2023, 04:09 PM
RE: Robo-Tank v6.6 is Ready - by Rob F - 06-24-2023, 09:51 PM
RE: Robo-Tank v6.6 is Ready - by pwest - 06-25-2023, 10:30 AM
RE: Robo-Tank v6.6 is Ready - by Rob F - 06-24-2023, 09:53 PM
RE: Robo-Tank v6.6 is Ready - by Rob F - 06-25-2023, 07:39 PM
RE: Robo-Tank v6.6 is Ready - by gandalf - 06-26-2023, 06:04 AM
RE: Robo-Tank v6.6 is Ready - by Rob F - 06-26-2023, 11:37 PM
RE: Robo-Tank v6.6 is Ready - by loksik.lubos - 07-21-2023, 10:47 AM
RE: Robo-Tank v6.6 is Ready - by Rob F - 07-21-2023, 10:39 PM
RE: Robo-Tank v6.6 is Ready - by gandalf - 07-28-2023, 08:31 AM
RE: Robo-Tank v6.6 is Ready - by Rob F - 07-28-2023, 06:06 PM
RE: Robo-Tank v6.6 is Ready - by Enigma79 - 03-09-2024, 07:19 AM
RE: Robo-Tank v6.6 is Ready - by Rob F - 04-16-2024, 05:46 PM
RE: Robo-Tank v6.6 is Ready - by Dilsh - 04-19-2024, 06:16 PM
RE: Robo-Tank v6.6 is Ready - by Rob F - 04-23-2024, 12:00 AM
RE: Robo-Tank v6.6 is Ready - by Dilsh - 04-23-2024, 06:54 AM
RE: Robo-Tank v6.6 is Ready - by Rob F - 04-24-2024, 01:14 AM
RE: Robo-Tank v6.6 is Ready - by Dilsh - 04-25-2024, 07:35 PM
RE: Robo-Tank v6.6 is Ready - by Rob F - 04-25-2024, 09:03 PM

Possibly Related Threads…
Thread Author Replies Views Last Post
  Robo-Tank v6.0 is Ready - Now v6.5 Rob F 403 202,856 02-13-2023, 12:03 AM
Last Post: Rob F

Forum Jump:

Current time: 05-06-2024, 05:53 PM