Commit Graph

11 Commits

Author SHA1 Message Date
JayWll c6369f7795 Added posting to twitter when the plant needs water 2020-04-17 17:08:47 -06:00
Glitch (jasonsplant) 7ec5440bb5 Adding /showsettings endpoint to display settings table 2020-04-13 17:34:37 +00:00
JayWll bbad48ee90 Added handlers to set flags when a new reading is received
- Reset the 'low' and 'alert' flags if the reading is greater than high-trigger
- Set the 'low' flag if it isn't set, and the reading is less than low-trigger
- Send an alert and set the 'alert' flag if the 'low' flag is more than 5 days old
2020-04-13 11:04:27 -06:00
JayWll 0711674a79 Adjust all functions to use factored out database definition 2020-04-11 13:07:57 -06:00
JayWll b5b49c5424 Adding dotenv to app.js to enable running in dev environment 2020-04-11 13:00:00 -06:00
JayWll b64126a7fe Refactoring database and model definition into its own file 2020-04-11 12:57:35 -06:00
JayWll 555ae80afc Simplifying database connection options 2020-04-11 12:29:56 -06:00
JayWll 8b3a8b8c9b Adding fallback to port 4200 for development server 2020-04-11 12:10:24 -06:00
Glitch (jasonsplant) bea81bc280 Adding export endpoint to move live data to dev environment 2020-04-10 17:51:31 +00:00
JayWll 4aaec6bd9b Cleaning up 2020-01-04 12:19:04 -07:00
JayWll c8877d182a Moving nodeJS app files to nodeapp subfolder 2020-01-04 11:27:28 -07:00