37 Commits

Author SHA1 Message Date
Alpaca Jam
3910750ede change reading interval default to 30 secs which helps the chart update faster for fresh load case 2023-04-03 17:50:48 -07:00
Alpaca Jam
cb4f56c6b5 polish co2_meter.js and remove virtual device and change default interval to 30 sec 2023-03-31 18:09:28 -07:00
Vincent Scheib
e98e2f79c1 Implement toggling between Celsius / Fahrenheit 2023-03-31 17:42:01 -07:00
Vincent Scheib
36ce92c96d Add Example Data Button 2023-03-31 16:44:37 -07:00
Jack Hsieh
05b2135ddd Show dialog on the chart when device is disconnected 2023-03-31 13:20:42 -07:00
Alpaca Jam
287930a29b prettier storage.js and add comments to public methods 2023-03-31 11:37:26 -07:00
Alpaca Jam
9023a728f1 move dbInitialized into transaction oncomplete event 2023-03-30 17:18:38 -07:00
Alpaca Jam
94b5575eb2 move internal and temperature unit into setting store 2023-03-30 17:18:38 -07:00
Jack Hsieh
1618bf3014 Add calibration period and refactor inputReport 2023-03-30 17:07:14 -07:00
Vincent Scheib
fe3da60b34 Update chart upon new data. 2023-03-30 16:44:08 -07:00
Alpaca Jam
b8d5c5ada6 check store name before creating when version changed 2023-03-30 15:37:55 -07:00
Vincent Scheib
db77f19c67 Populate chart data. 2023-03-30 15:33:25 -07:00
Vincent Scheib
c4ab8795c6 Change IDB version number due to schema change 2023-03-30 15:08:21 -07:00
Vincent Scheib
0c73960ce1 Add promise to storage constructor. 2023-03-30 15:02:04 -07:00
Vincent Scheib
ce0338899c Work in progress for data into chart. 2023-03-30 14:36:37 -07:00
Jack Hsieh
4e20cf9381 Use message channel for message broadcasting and move common constant to constant.js 2023-03-30 14:15:55 -07:00
Alpaca Jam
ef4435269a add support for storing temperature and query temperature in range 2023-03-29 21:56:33 -07:00
Alpaca Jam
fe39ef3d9e add in Storage 2023-03-29 19:51:06 -07:00
Vincent Scheib
b3fdd1f988 Renaming items in background.js
Name methods more clearly for what they are doing.
Collapse some code when possible to be inline.
2023-03-29 18:12:27 -07:00
Alpaca Jam
069f00ba5e use indexedDB to store CO2 reading 2023-03-29 17:29:38 -07:00
Vincent Scheib
76cbaaa352 Update extension tool tip to show connected/disconnected status. 2023-03-29 16:43:45 -07:00
Jack Hsieh
3348a02c6b Add temp reading 2023-03-29 14:03:34 -07:00
Jack Hsieh
52bba9e812 handle background page device disconnect/connect 2023-03-29 12:13:01 -07:00
Vincent Scheib
74123d16be Simplify settings and storage. 2023-03-28 21:53:56 -07:00
Vincent Scheib
9e7bb45be2 Add third-party/idb-keyval, use to set/get interval. 2023-03-28 20:49:54 -07:00
Alpaca Jam
dc0ea319b3 update v2.4 /module/co2_meter.js change to return reject promise instead of Error in 2023-03-28 16:11:09 -07:00
Alpaca Jam
b685c3b708 update v2.3 /module/co2_meter.js await device to close before open device in 2023-03-28 16:02:48 -07:00
Alpaca Jam
837a7ba22e update v2.2 /module/co2_meter.js make non-static and add guarding flag for exccessive reading 2023-03-28 15:45:46 -07:00
Jack Hsieh
851fbecdc7 background page handle disconnect connect device 2023-03-28 15:42:52 -07:00
Vincent Scheib
1e41e2e1b5 Import idb-keyval indexedDB library into storage.js, with trivial usage. 2023-03-28 14:25:15 -07:00
Alpaca Jam
b0a921409a v2.1 update /module/co2_meter.js 2023-03-28 13:45:55 -07:00
Alpaca Jam
ce817d55da v2.1 update /module/co2_meter.js add support for virtual meter and connection listener also rquestPermission 2023-03-28 13:45:55 -07:00
Alpaca Jam
ab36755792 update v2 of /module/co2_meter.js which access all methods from CO2Meter class 2023-03-27 17:44:28 -07:00
Alpaca Jam
2a9dd5284f verion 1.0 /module/co2_meter.js 2023-03-27 15:59:52 -07:00
Jack Hsieh
f177d7bed2 background page to read CO2 periodically based on the stored interval 2023-03-27 15:09:03 -07:00
Vincent Scheib
adeb88d90b Add stubs for settings storage writing 2023-03-27 14:42:23 -07:00
Vincent Scheib
05879fce21 Initial storage module stub. 2023-03-27 14:09:26 -07:00