Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Interesting issue with dosing schedule
#46
Hi Arne, sorry I found an error in my code so you would have had problems today if you uploaded before midnight on Friday. This was my mistake.

   currentWeekday = weekday() + 1;
   if (currentWeekday >= 7) currentWeekday = 0;

Friday is day 6 so when it searched Saturday (day 7) it changed the currentWeekday to 7 but then the line in bold says if currentWeekday is 7 or greater change the currentWeekday to 0. Meaning Saturday will never come. :(  

I've sent you a new sketch for the display, only it needs to be uploaded.
Reply to top


Messages In This Thread
Interesting issue with dosing schedule - by Arne - 06-01-2017, 03:59 AM
RE: Interesting issue with dosing schedule - by Rob F - 06-24-2017, 02:54 PM

Possibly Related Threads…
Thread Author Replies Views Last Post
  Issue with Upgrade to 5.20 aquaalgae 1 2,513 01-12-2020, 09:23 PM
Last Post: Rob F
  Problem with dosing pumps Arne 37 29,450 01-31-2017, 03:00 AM
Last Post: Arne
  Disable dosing pump Arne 2 4,231 01-25-2017, 03:30 AM
Last Post: Arne

Forum Jump:

Current time: 05-02-2024, 05:48 AM