Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Robo-Tank Web App - Development
#94
Well I think tomorrow is the big day, get your SD card ready.  K05164 

This is what I've done lately.
  • Added very basic emails to schedules and custom rules
  • Added the smart start feature, this goes through all schedules for AC outlets, DC ports and lights and checks the custom rules. It makes sure everything goes to the state it should be in at the time of startup. Today if you restart in the middle of a light mode it won't continue the fade but instead set the levels according to the end of the mode it would be fading on, later it'll continue in the middle of a fade. For outputs it first checks schedules and adjusts the outputs accordingly then it will check custom rules and readjust the outputs according to the sensor status. For example if you have a couple ATO custom rules and the sensors are saying ATO should run it will run as soon as controller starts. If the sensors say ATO shouldn't run it won't. The program is fully running in about 0.3 seconds however the program won't launch until a network connection is made to the Pi and the time is captured, that can take 10 seconds on my network. This is another reason I'm pushing the RTC, I'm hoping with that running the program can be up within 1 second once the Pi gets power. Remember get a real time clock (RTC), DS3231 or DS1307 for next release. I've been running this over a year and it's never crashed due to time, never really crashed period, but 100% it will if it's running and a connection is lost to network and it can't update the time, I know that will happen to someone sometime so please get an RTC if you use program long term. You use dupont jumpers to connect it to the external I2C port on controller so fairly easy to add.
  • Added "Restart Controller" button to system settings page.
  • Found a couple UI bugs for light modes page so that was good. Also added some instructions as there's a temporary feature that will likely confuse, this will be gone later.
  • This one was torcher, the program install process. As I've been building this I've been updating a script to install everything similar to the one I have for reef-pi. The problem for Robo-Tank was when PHPMyAdmin got installed it prompted a couple times for the user to select an option. This was horrible as someone's going to select the wrong option. After about 8 hours or so I actually got it, was a nightmare as I needed to reinstall Pi OS, update, install and repeat. 20 minute process every time I made the slightest change, so yeah you better appreciate the clean installation.  K05163
  • Added an enabled/disable feature for email alerts, forgot that was needed. 
  • Cleaned up installation wizard for new UI and added the "Auto Update" setting. 
  • Fixed various UI and program bugs, for next release I'll be tracking all the changes in the program.
Cleaned up the custom rules UI, now you can see the delay after it doses and things are spelled out clearer.

[Image: rules24.PNG]


When you create a custom rule the "No More Doses for X Minutes" will be filled with the default value given to each dosing pump. If you change this it will be used for the rule and the default delay will continue to be used for schedules. This is basically an override for this specific rule.

[Image: rules25.PNG]


Did more work on the configure ports screen. Now you can click on the DB9 connectors and it'll show all the ports for it and allow changing custom name, if it's enabled and the icon. Currently for function there's only AC power bar but later the extensions I offer will be there. These are all assigned as "AC Outlets" if you made something custom and want to change the function for each pin go to the "Advanced" tab.

I added this as I think I'll be adding it to the one time initial setup wizard. I was going to just assign all ports as controller is labeled and have all enabled but this is the first place a person needs to visit so I'll probably add it with some one time instructions. I think it's fairly straight forward, click any port and set the settings as you need. If you don't use that port disable it so it's hidden in program. If you have a dosing pump plugged into a DC port, select that port, set function to dosing pump, change name and save. Then when you're finished going through the ports the dashboard will be nicely populated with everything you use instead of just everything. This could take 10 - 30 minutes though as you need to click each port and enable/disable and assign custom names but I guess that needs to be done anyways. Just thinking later there could be a skip button and everything is enabled with default names.

[Image: configure_ports5.PNG]

So by tomorrow night I should be posting how to install it. I won't be sending an email or posting about it for a couple days, I want to make sure you guys can actually install and use it. Feeling good but a little nervous, if I've learned one things from all this it's real world use and bench testing are not the same. Still haven't tried installing on a Pi 4 or Zero W, may or may not do that. If it's a problem it could take a while to figure out why and delay release so I almost don't want to try even though I think it'll be ok.  K05106
Reply to top


Messages In This Thread
Robo-Tank Web App - Development - by Rob F - 04-18-2021, 12:41 AM
RE: Robo-Tank Web App - by tutuss21 - 04-18-2021, 01:26 AM
RE: Robo-Tank Web App - by JFReyes - 04-18-2021, 04:31 AM
RE: Robo-Tank Web App - by Jerry W - 04-18-2021, 11:00 AM
RE: Robo-Tank Web App - by Dom59 - 04-18-2021, 03:07 PM
RE: Robo-Tank Web App - by Rob F - 04-18-2021, 03:07 PM
RE: Robo-Tank Web App - by fred73 - 04-19-2021, 05:16 PM
RE: Robo-Tank Web App - by rott - 04-23-2021, 07:51 AM
RE: Robo-Tank Web App - by Dom59 - 04-23-2021, 10:31 AM
RE: Robo-Tank Web App - by Rob F - 04-23-2021, 11:11 AM
RE: Robo-Tank Web App - by loksik.lubos - 04-25-2021, 02:03 PM
RE: Robo-Tank Web App - by Rob F - 04-25-2021, 08:47 PM
RE: Robo-Tank Web App - by Rob F - 05-23-2021, 12:50 AM
RE: Robo-Tank Web App - by albinochicken89 - 06-13-2021, 12:30 PM
RE: Robo-Tank Web App - by Rob F - 06-13-2021, 06:54 PM
RE: Robo-Tank Web App - by rott - 06-19-2021, 07:38 PM
RE: Robo-Tank Web App - by Rob F - 06-19-2021, 07:41 PM
RE: Robo-Tank Web App - by rott - 06-20-2021, 03:05 PM
RE: Robo-Tank Web App - by Weasel1960 - 06-23-2021, 04:13 AM
RE: Robo-Tank Web App - by Rob F - 06-23-2021, 04:46 PM
RE: Robo-Tank Web App - by Rob F - 07-08-2021, 11:40 PM
RE: Robo-Tank Web App - by Weasel1960 - 07-11-2021, 04:59 PM
RE: Robo-Tank Web App - by Dom59 - 07-09-2021, 09:34 AM
RE: Robo-Tank Web App - by Rob F - 07-09-2021, 05:48 PM
RE: Robo-Tank Web App - by Rob F - 07-11-2021, 08:54 PM
RE: Robo-Tank Web App - by Rob F - 07-16-2021, 10:10 PM
RE: Robo-Tank Web App - by Weasel1960 - 07-22-2021, 09:07 PM
RE: Robo-Tank Web App - by Rob F - 07-22-2021, 09:58 PM
RE: Robo-Tank Web App - by Rob F - 07-29-2021, 12:37 AM
RE: Robo-Tank Web App - by Brooks - 07-29-2021, 12:56 PM
RE: Robo-Tank Web App - by albinochicken89 - 07-29-2021, 01:02 PM
RE: Robo-Tank Web App - by Rob F - 07-29-2021, 01:38 PM
RE: Robo-Tank Web App - by Rob F - 08-10-2021, 09:35 PM
RE: Robo-Tank Web App - by Rob F - 08-11-2021, 12:13 AM
RE: Robo-Tank Web App - by Brooks - 08-11-2021, 10:21 AM
RE: Robo-Tank Web App - by albinochicken89 - 08-11-2021, 02:24 PM
RE: Robo-Tank Web App - by Rob F - 08-11-2021, 04:36 PM
RE: Robo-Tank Web App - by deeproot - 08-11-2021, 09:24 PM
RE: Robo-Tank Web App - by Rob F - 08-11-2021, 10:30 PM
RE: Robo-Tank Web App - by deeproot - 08-11-2021, 10:41 PM
RE: Robo-Tank Web App - by Rob F - 08-11-2021, 11:11 PM
RE: Robo-Tank Web App - by zee_zout - 08-12-2021, 08:16 AM
RE: Robo-Tank Web App - by Rob F - 08-12-2021, 03:36 PM
RE: Robo-Tank Web App - by Rob F - 08-12-2021, 04:49 PM
RE: Robo-Tank Web App - by Weasel1960 - 08-13-2021, 07:25 AM
RE: Robo-Tank Web App - by Rob F - 08-13-2021, 01:55 PM
RE: Robo-Tank Web App - by Rob F - 08-17-2021, 12:15 AM
RE: Robo-Tank Web App - by Brooks - 08-25-2021, 04:01 AM
RE: Robo-Tank Web App - by Rob F - 08-25-2021, 08:19 PM
RE: Robo-Tank Web App - by deeproot - 08-25-2021, 11:05 PM
RE: Robo-Tank Web App - by Rob F - 08-26-2021, 01:05 AM
RE: Robo-Tank Web App - by Brooks - 08-26-2021, 10:53 AM
RE: Robo-Tank Web App - by Rob F - 08-29-2021, 12:20 AM
RE: Robo-Tank Web App - by Rob F - 08-30-2021, 10:47 PM
RE: Robo-Tank Web App - by deeproot - 08-30-2021, 11:08 PM
RE: Robo-Tank Web App - by Rob F - 08-30-2021, 11:16 PM
RE: Robo-Tank Web App - by deeproot - 08-30-2021, 11:32 PM
RE: Robo-Tank Web App - by Rob F - 08-30-2021, 11:58 PM
RE: Robo-Tank Web App - by Weasel1960 - 09-04-2021, 11:40 PM
RE: Robo-Tank Web App - by JFReyes - 08-31-2021, 06:00 AM
RE: Robo-Tank Web App - by Rob F - 08-31-2021, 09:48 AM
RE: Robo-Tank Web App - by coaxman - 08-31-2021, 01:25 PM
RE: Robo-Tank Web App - by Rob F - 08-31-2021, 03:48 PM
RE: Robo-Tank Web App - by deeproot - 08-31-2021, 11:42 PM
RE: Robo-Tank Web App - by Rob F - 09-01-2021, 06:58 AM
RE: Robo-Tank Web App - by Rob F - 09-05-2021, 09:06 AM
RE: Robo-Tank Web App - by Rob F - 09-09-2021, 09:20 PM
RE: Robo-Tank Web App - by Rob F - 09-09-2021, 10:06 PM
RE: Robo-Tank Web App - by coaxman - 09-10-2021, 06:07 PM
RE: Robo-Tank Web App - by Rob F - 09-10-2021, 07:54 PM
RE: Robo-Tank Web App - by Rob F - 09-10-2021, 08:13 PM
RE: Robo-Tank Web App - by Rob F - 09-11-2021, 07:41 PM
RE: Robo-Tank Web App - by Weasel1960 - 09-11-2021, 08:30 PM
RE: Robo-Tank Web App - by Rob F - 09-11-2021, 09:05 PM
RE: Robo-Tank Web App - by Rob F - 09-13-2021, 03:21 PM
RE: Robo-Tank Web App - by albinochicken89 - 09-13-2021, 04:17 PM
RE: Robo-Tank Web App - by Rob F - 09-13-2021, 04:51 PM
RE: Robo-Tank Web App - by pwest - 09-18-2021, 03:10 PM
RE: Robo-Tank Web App - by Rob F - 09-18-2021, 03:35 PM
RE: Robo-Tank Web App - by Rob F - 09-19-2021, 11:40 PM
RE: Robo-Tank Web App - by Brooks - 09-20-2021, 05:15 AM
RE: Robo-Tank Web App - by Dom59 - 09-20-2021, 10:59 AM
RE: Robo-Tank Web App - by Rob F - 09-20-2021, 03:13 PM
RE: Robo-Tank Web App - by Rob F - 09-27-2021, 01:23 AM
RE: Robo-Tank Web App - by Rob F - 09-29-2021, 09:14 PM
RE: Robo-Tank Web App - by fietsenrex - 10-01-2021, 07:18 AM
RE: Robo-Tank Web App - by Brooks - 10-01-2021, 07:22 AM
RE: Robo-Tank Web App - by Rob F - 10-01-2021, 09:40 AM
RE: Robo-Tank Web App - by Rob F - 10-01-2021, 10:29 AM
RE: Robo-Tank Web App - by fietsenrex - 10-01-2021, 10:49 AM
RE: Robo-Tank Web App - by Rob F - 10-01-2021, 11:49 AM
RE: Robo-Tank Web App - by fietsenrex - 10-01-2021, 01:03 PM
RE: Robo-Tank Web App - by Rob F - 10-01-2021, 07:27 PM
RE: Robo-Tank Web App - by Rob F - 10-08-2021, 10:48 AM
RE: Robo-Tank Web App - by albinochicken89 - 10-08-2021, 10:56 AM
RE: Robo-Tank Web App - by Rob F - 10-08-2021, 11:04 AM
RE: Robo-Tank Web App - by Dom59 - 10-08-2021, 12:01 PM
RE: Robo-Tank Web App - Development - by Rob F - 10-09-2021, 12:42 PM
RE: Robo-Tank Web App - Development - by Dom59 - 10-15-2021, 12:26 PM
RE: Robo-Tank Web App - Development - by Rob F - 10-15-2021, 12:33 PM
RE: Robo-Tank Web App - Development - by Dom59 - 10-15-2021, 12:39 PM
RE: Robo-Tank Web App - Development - by Rob F - 10-15-2021, 01:34 PM
RE: Robo-Tank Web App - Development - by Rob F - 12-18-2021, 02:32 PM

Possibly Related Threads…
Thread Author Replies Views Last Post
  How to Install Robo-Tank App Rob F 8 2,628 02-04-2024, 06:44 PM
Last Post: Rob F

Forum Jump:

Current time: 04-27-2024, 11:35 AM