Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Robo-Tank Web App - Development
#13
Time for a little update. I'm making some gains but it will still be another month at least, I've decided I need more done before releasing but I'm quite happy with how it's coming along, everything has been working great.

I got through quite a few more minor details for what was already working and added an .htaccess file to finally sort out caching different file types, there was a problem with icons sometimes not updating because it was reading cached files instead of from the server so that little mystery is solved.

The pins available table I posted above has been changed so all available pins are in the same table. I added a little color so it's easier to spot which pins are used vs available. Again this is just temporary, later it'll be converted to step by step guides but this will remain non the less. This auto updates when new I2C devices are detected.

[Image: pins_available3-optimized.PNG]


Schedules

The new addition is the scheduling system, I haven't added it to the backend yet as I want to get the custom rules and custom modes running at the same time as they all work together in some form. 

I like the DataTables jQuery library I was using, the above table is it however it looks horrible on mobile and doesn't fit the screen, you have to scroll horizontally. That's why making the schedules took longer than I planned as I decided to make my own sortable table with customizable pagination which was a bit of a challenge, at some point I'm going to see if I can add an instant Ajax search function like DataTables as that is a sweet feature and then I can get ride of it. For large tables that search will be needed. 

I'm not 100% happy with the look but will tweak over time. On the right side of the top header you can see 7 icons, those are to filter what you're viewing and your selection is saved. There's a setting to change this to a dropdown box as well, a picture following shows it. You can filter by All schedules, AC, DC, Dosing, Feeding, Custom Rules or Custom Modes. You can click on any column to sort ascending or descending. In the image below it's sorted by schedules on Mondays. The up/down grey icon turns aqua and icon changes to a ASC or DESC icon, 3 icons total.

You can change how many schedules show per page but I've yet to place that setting somewhere, it is saved as well.

This view is on desktop, when the screen size shrinks as in different devices being used columns will auto hide so it always fits on the screen. The last couple images is a screen that's 380 pixels wide.

Like the light modes you can enable/disable a schedule, delete a schedule or edit basic parameters using the icons on the right side.

Forgive the poor schedule examples, I quickly added and duplicated data to get the table working.

[Image: schedules-optimized.PNG]

If you click on a row in the table it will expand and spell out what the schedule will do and eventually show the next schedule upcoming. The 2nd line saying "If maintenance is running schedule will run" will be changing as I've decided to go a slightly different direction with feeding and maintenance modes. I'll explain that later.

[Image: schedules2-optimized.PNG]

This is filtered to show only AC outlets, you can see the dropdown box instead of icons on this picture. Yes looks like that dropdown needs to be sorted.  K0505  K05163

[Image: schedules4-optimized.PNG]

The picture below you can see the available features on the scheduling side. All schedules except for lights use the same millisecond system. Basically all schedules in the system backend are converted to millis and then goes through each as time goes by.

You can select if schedule is on or off and what days or X number of days it will run. If you only wanted a schedule to run every 30 days you can tick the "repeat" box, the days will disappear and enter how many days between schedules you want. I'll also be adding the option for a one time schedule that deletes it's self after running. If you wanted someone scheduled every Monday and every 30 days you can create two schedules, there's no limit on how many you can set for any piece of equipment.

The option at the bottom will be moved to the custom modes system which can be used for maintenance, feeding or whatever you desire. 

[Image: schedules3-optimized.PNG]

The next two pictures are at 380 pixels wide, same as my phone. 

[Image: schedules6-optimized.PNG]


[Image: schedules5-optimized.PNG]


Custom Rules

Currently I'm throwing together something to get the custom rules running. Custom rules are what you use to control various equipment using any available parameter. The main widget page will have a table showing all custom rules similar to schedules but I haven't made it yet. 

When you create a custom rule you first select how the rule will be triggered, it can be via schedule, sensor or manually. 

[Image: customRules-optimized.PNG]


If you select sensor the next page will show all sensors in system, water, temp, various probes, flow meters etc, anything that outputs info. Later I'll expand it to respond to AC/DC port statuses. The names under the icons is the custom name you use for them. I'll do better with the icons later.

[Image: customRules2-optimized.PNG]


Once you select the sensor, in this case a temperature sensor, it'll ask to set the level. The initial value shown will be whatever the sensor currently reads, then you can adjust the whole or decimal number using the buttons and select if <= or >=. This will be the same screen for pH type probes, humidity etc. 

[Image: customRules3-optimized.PNG]

If you selected an optical sensor, non-contact sensor or float switch the option would be "Touching Water" or "Not Touching Water". 

[Image: customRules4-optimized.PNG]

That's as far as I got. K05106  

After this step it will ask what equipment you want to control, everything connected will be available and you can select multiple pieces of equipment including ability to run a dosing pump that's been setup to do it's thing.
Next based on equipment selected it will ask a few more very important questions but you need to stay tuned for those.  K0519
[-] The following 3 users Like Rob F's post:
  • albinochicken89, 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,637 02-04-2024, 06:44 PM
Last Post: Rob F

Forum Jump:

Current time: 04-27-2024, 06:01 PM