80 Commits

Author SHA1 Message Date
Joseph Medley
ca5740965f Work on sandbox sample update. 2023-05-11 11:17:00 -07:00
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
Vincent Scheib
a9f9876ca9 Change small icon to CO2 text 2023-04-01 15:12:54 -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
ddb6866fcb Close dialog button 2023-03-31 16:51:05 -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
Vincent Scheib
047b026f32 Chart style: time axis respects time of data, no data points 2023-03-31 11:38:16 -07:00
Alpaca Jam
287930a29b prettier storage.js and add comments to public methods 2023-03-31 11:37:26 -07:00
Alpaca Jam
a3cff1a173 remove idb-keyvalue 2023-03-31 11:35:51 -07:00
Vincent Scheib
853156582a Display chart in Fahrenheit 2023-03-31 11:22:17 -07:00
Vincent Scheib
2393dd0c09 Add .map files for third party code to remove devtools warnings. 2023-03-31 10:01:31 -07:00
Vincent Scheib
880f50b7a1 Remove co2meter.html 2023-03-31 09:56:17 -07:00
Alpaca Jam
794a4ed45d remove reading out interval and temp unit log 2023-03-30 17:18:38 -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
Vincent Scheib
355a38bf92 Use flexbox to layout pages. 2023-03-30 17:11:52 -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
45fe828e35 increase popup window and iframe size 2023-03-30 16:18:39 -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
Jack Hsieh
be1a6b273a Use set for clients in background page 2023-03-30 14:40:11 -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
Vincent Scheib
abbacfc63e Continued: chart out of popup into chart.html for iframing 2023-03-30 13:26:10 -07:00
Vincent Scheib
6b6ac894f2 Refactor chart out of popup into chart.html for iframing 2023-03-30 12:04:52 -07:00
Jack Hsieh
745fae38b3 background page boardcasting reading updated 2023-03-30 11:02:14 -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
Vincent Scheib
09786ef331 Merge remote-tracking branch 'origin/main' 2023-03-29 15:15:00 -07:00
Vincent Scheib
28210888ad Add chart to popup.html with chartjs etc. 2023-03-29 15:14:12 -07:00
Jack Hsieh
3348a02c6b Add temp reading 2023-03-29 14:03:34 -07:00
Vincent Scheib
a7fadc353a Rename *_script.js files to only *.js. 2023-03-29 13:24:16 -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