commit 9329f1e992932109610cc5e0026fa66f78ffabf3 Author: Ryan Voots Date: Fri May 9 13:47:22 2025 -0400 first import ready, need to make it pull from last one and increment diff --git a/README.md b/README.md new file mode 100644 index 0000000..d16846a --- /dev/null +++ b/README.md @@ -0,0 +1 @@ +Some queries I'm building up to do stuff with Home Assistant LTSS and my personal health data diff --git a/sql/import-from-influx.sql b/sql/import-from-influx.sql new file mode 100644 index 0000000..4583b6d --- /dev/null +++ b/sql/import-from-influx.sql @@ -0,0 +1,3 @@ +INSERT INTO public."glucose-import" + (SELECT nextval('glucose-import_id_seq'), "glucose"."deviceSerialNumber", "glucose"."deviceType", units, value, time FROM influx.glucose); +