dsmurl / the-system-controller-4

This is the working code of the System Conroller V4 designed for grass roots industrial systems management.
GNU Affero General Public License v3.0
2 stars 1 forks source link

Pretty Display Conditions And Actions #27

Open dsmurl opened 9 years ago

dsmurl commented 9 years ago

Branch - PrettyDisplayConditionsAndActions

We need a simple function or two to render the rules conditions array and the rules actions array as a human readable format. This will be used in the tables to display conditions and rules to the user on the front end.

So,

[["Sensor/1/value","GreaterThan","123"]] may become "Moisture sensor reading greater than 123" and [["Device/1/value","1"]] may become "Water Solenoid turns on"