From 9329f1e992932109610cc5e0026fa66f78ffabf3 Mon Sep 17 00:00:00 2001 From: Ryan Voots Date: Fri, 9 May 2025 13:47:22 -0400 Subject: [PATCH] first import ready, need to make it pull from last one and increment --- README.md | 1 + sql/import-from-influx.sql | 3 +++ 2 files changed, 4 insertions(+) create mode 100644 README.md create mode 100644 sql/import-from-influx.sql 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); +