Commit Graph

85 Commits

Author SHA1 Message Date
simon aa6b150d25 ignore unsave import message 2021-07-30 18:00:17 +07:00
simon 5bf25699df try this again with this __pycahche__ thing 2021-07-30 17:58:00 +07:00
simon dc4e5703f3 handle nan value in year comparison data 2021-07-30 17:57:07 +07:00
simon c51e843947 return a validation value for the monitor to restart on value error 2021-07-30 17:55:00 +07:00
simon ffb25d5559 exporting 10 days to table header 2021-07-21 17:07:39 +07:00
simon f74927774c add post_data to output for debug 2021-07-20 16:30:42 +07:00
simon d87f449e21 set id for autorefresh graph 2021-07-19 11:10:14 +07:00
simon 398d3411c2 better aqi value and category conversion from pm2.5 amount 2021-07-18 19:10:11 +07:00
simon 77b1c211b5 typo for pycache ignore 2021-07-14 21:01:46 +07:00
simon c7af9c7114 mobile frontent improvement 2021-07-14 21:01:10 +07:00
simon cda956da02 updated for new comined flask app 2021-07-12 13:21:41 +07:00
simon 4c727dc8aa recreating all monthly graphs if needed 2021-07-11 22:47:13 +07:00
simon 2d6ef3a447 reverse data table json export to newest on top 2021-07-11 22:46:34 +07:00
simon adde5b75c4 some housekeeping 2021-07-07 19:18:06 +07:00
simon 129caa06a4 indexing on epoch_time for faster where queries 2021-07-07 19:17:26 +07:00
simon efc2a61520 point to new api endpoints 2021-07-07 19:16:33 +07:00
simon 0ac8d21284 major app rebuild into a single flask application 2021-07-07 19:08:46 +07:00
simon a8641d94a6 updating input function for new db layout 2021-06-04 18:25:09 +07:00
simon 78a628dc4f sending sensor_id for future multiple sensors and some better error correction 2021-06-03 17:08:53 +07:00
simon 32a74c611c adding backupdir variable to db rotate 2021-05-15 21:47:08 +07:00
simon 497d530f64 showing nice social preview img on top 2021-05-09 12:27:51 +07:00
simon b1e3b62e4b auto rotating pg dump files 2021-05-09 12:26:38 +07:00
simon e3e0f294c3 now directly mounting dyn folder into container instead of second root to allow php to read it from web_root 2021-04-14 17:29:46 +07:00
simon fd28ca9ca3 creating aqi tables now directly with php, js just for coloring 2021-04-14 17:27:59 +07:00
simon 1a76c3633f rewrote get_epoch for a more robust date dedection 2021-04-13 17:02:41 +07:00
simon 0eee8a36fc added initial monthly graph to frontent 2021-04-03 18:52:56 +07:00
simon 4857960c07 moved last year comparison to graphs page 2021-04-02 18:37:35 +07:00
simon 4b75e880b5 added monthly graph and json export to backend 2021-04-02 18:27:18 +07:00
simon 6a28abcc58 added US AQI subtitle to cloud to make it obvious 2021-03-26 14:17:18 +07:00
simon 05a71389cd improved readability in last-7.png with better date format 2021-03-26 14:15:45 +07:00
simon d122bda8b6 added year comparison graph to frontent 2021-03-22 19:36:14 +07:00
simon 4b478d47a9 reduced to last 7days for better layout 2021-03-22 19:35:45 +07:00
simon f7cb5ffb03 standard good-bad colors through front and backend 2021-03-21 16:58:56 +07:00
simon e2b0506b9f exporting table to barchart in backend 2021-03-21 15:53:56 +07:00
simon 6b187607bb refactored to have color_colums in a separte reusable function 2021-03-21 15:52:58 +07:00
simon 7853a9febb added year comparison table to frontent 2021-03-21 12:33:10 +07:00
simon 4d9b2ddd2f closing plt to no accumulate memory over time 2021-03-21 12:32:39 +07:00
simon 360ff9422e interpolate single NaN value for nicer graph 2021-03-20 09:44:18 +07:00
simon e2d95166ba creating json file in backend to populate year comp table 2021-03-20 09:29:08 +07:00
simon da37342332 more useful log output with row count for each table 2021-03-19 13:06:07 +07:00
simon a2f88a795c skip if no lastThreeImg is found 2021-03-19 13:04:01 +07:00
simon 74972282af refreshing current.png on an interval with query string 2021-03-14 12:33:02 +07:00
simon 1ec5023c53 some example postgresql commands in use 2021-03-13 19:13:50 +07:00
simon 282662d6e1 restructured to allow preloader to run async, for now with timeout... 2021-03-13 19:11:25 +07:00
simon db700d07bb added preloader so css can be applied properly even after dom loaded 2021-03-13 19:10:26 +07:00
simon 3c7ce744f9 adding helper files to sync up to deploy and update automatically 2021-03-11 18:10:19 +07:00
simon eaa36d8e06 added hourly avg graph to frontend 2021-03-11 18:09:53 +07:00
simon e3286af0cd backend creating bar chart for hourly avg aqi values 2021-03-08 12:40:16 +07:00
simon 0fe1e73d17 context about pandas and matplotlib in the backend 2021-03-08 11:14:38 +07:00
simon 054a544ee6 newest updates notification via php incl into colorbox on top 2021-03-07 22:03:35 +07:00