Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Robo-Tank Web App - Development
#33
Still hard at it, I think I have a decent interface for the custom rules finished. Spent quite a bit of time trying to get it as easy to use as possible, hopefully I some what succeeded. It looks ok on all screen sizes, I test by changing the browser size. Visually there's things to improve but I must go on for now. None of this actually works on the backend yet but the database tables are working and the test rules seen are being read from it.

This is the main screen for the custom rules. You can see there are 3 of them. I will be adding buttons on the right side to delete, edit and disable so I guess it's not finished yet, a few more hours to go.

[Image: rules.PNG]


When you click on a row it expands and shows the details, you can expand more than one.

[Image: rules2.PNG]


Now let's go through the steps to add a custom rule. This is what you see when the "Add Custom Rule" button is pressed.

We'll select the "Sensor" button.

[Image: rules3.PNG]


Now it'll ask for a sensor.

[Image: rules4.PNG]


This is the list. The types of sensors are separated, later flow meters, EC etc will be available, anything that outputs a value.

In the temperature sensor section you can see 2 rows for "Room", that's a DHT22 which has humidity as well. These are the custom names, I named the sensors like that so I can track them easier.

[Image: rules5.PNG]


As you can see "Sensor 4" was selected, the system knows what each sensor is so the screen text and images fit accordingly. If sensor 4 was defined as a non-contact sensor the image would be one of those in the same format. There's also an image for optical and a generic for other sensors. A little off topic but these images will be the ones on the dashboard in info boxes so you can always see the state of each sensor.

The entire blue boxes are buttons so they are large for mobile. 

[Image: rules6.PNG]


After selecting a trigger level it draws the delay setting and asks if you want to use a 2nd sensor. I need to update the text to say "How long should the float switch continually hold". This means the float must not touch water for 15 consecutive seconds. I recommend at least 1 second as things will switch real time so waves can make something turn on/off really quick.

[Image: rules7.PNG]


The first sensor is configured, now we can setup the 2nd sensor if selected.

First it will spell out the first sensor and we'll select OR in this example.

[Image: rules8.PNG]


Now we go through the same steps as the first sensor. You can see the drop down removed sensor 4 as it's already being used.

[Image: rules9.PNG]


This time will select a temperature sensor, other sensors that have a value such as pH will be like this. I don't particularly like the <= and >= buttons but nothing was coming to me. The default value that appears is the live value of that sensor as it's assumed the setting a person is after will be in that range. The longer you hold the up/down buttons the quicker the number rolls. Personally I like buttons to change values over typing them in for the visual effect but later through out the program I'll have a feature that you double click the value and it will change to a text box so you can type in instead of fumbling with buttons.

[Image: rules10.PNG]


Again it draws the delay option and now we can select the equipment to control.

[Image: rules11.PNG]


Now it prints all the equipment available, later lights will be there for custom modes. If I disable Outlet 2 it wouldn't appear here. This is the point of being able to disable ports on the controller so they don't clog up other screens.

I did forgot to put a legend for available options so that will be there. You click each icon to cycle through the options.

Grey          = No Action
Green        = On
Red           = Off
Red/Green = On/Off
Green/Red = Off/On

The backend won't care about on/off or off/on order, that gets shorted in next step, it's only for visual effects.

[Image: rules12.PNG]


Now it shows everything selected and a delay before each action can be added. You can see it added extra line for on/off off/on, these the delays must be different, an error will appear explaining if a user doesn't understand. You can see "Power Head" will turn off 10 seconds after rule starts and turn back on 110 seconds later or 120 seconds after custom rule starts. Down the road I'll probably change the language for option on duplicate outputs so a person can say 110 seconds later or something. I'll also add a small button so user can use seconds, minutes or hours for the delay.

You can see for the dosing pump a 2nd option is available "Ignore". Sadly I need more than one word to describe it which messes up the layout on small screen. That will be sorted. The point of this option is so the dosing pump won't run again for that period no matter what other rules or schedules have planned. Basically a safety feature so you don't overdose. This also isn't reflected in the main menu or review new rule screen yet but will be.

[Image: rules15.png]


Finally it asks for a custom name, I left it empty so you can see it won't move forward without. 

[Image: rules16.PNG]


Now you can review the rule and save it. I have the data ready to go to backend so for now the UI is basically finished. You can see the width is fixed so dosing pump name is pushing icon down, lots of polishing required so things like that will be part of beta. :) Plus none of these layouts are set in stone yet.

[Image: rules17.PNG]

I hope this all makes sense, let me know your thoughts. There will be one more system for custom modes, these will cover things like feeding mode, maintenance, etc so this is only half. Between the two I don't think there will be much it can't do. The custom modes will come after beta release.

Later there will be a few more options, things like enable/disable ATO, heater etc. For the beta release there will be no ATO or heater systems but you can use two custom rules to set things like that up. Sub systems like those will be at top of list after initial release.

I've also been tying up lose ends here and there only a few minor ones remaining. This is real list I need to worry about, more than I like but hey. If you can think of anything important I'm forgetting let me know.
  • Add custom rules to backend (hard to estimate, around a week)
  • Email system UI and backend (looking like this will be a lot more trouble than expected with c++, maybe a week)
  • pH calibration, want something nice (2 days)
  • Add a logging system starting with basic logs (1-2 days)
  • Add "manual" mode for AC outlets and DC ports (1 day)
  • Figure out a system to manage chart options (1 day)
  • Add auto/manual program update and backup feature (1 day)
  • Option to auto submit any errors to an specified email, could be me (1 day)
  • Add DC ports, dosing pumps and custom rules to existing scheduling system in backed (few hours - 1 day)
  • Add dashboard auto update for dosing vessels and light modes (couple hours)
  • Add upcoming schedule list in front end (1-2 days) Not really necessary though
So yeah the two big hurdles are custom rules and email. Custom rules I know I'll get through, it's mainly a lot of testing, but it's a learning curve for the emails, at least how I want to do it. I think I'll do emails first as that's the unknown and has me  K05106.
[-] The following 4 users Like Rob F's post:
  • albinochicken89, Dom59, JFReyes, Weasel1960
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,644 02-04-2024, 06:44 PM
Last Post: Rob F

Forum Jump:

Current time: 04-28-2024, 08:52 AM