Commit Graph

633 Commits

Author SHA1 Message Date
Gunnar Beutner ac41b08671 derp 2023-12-09 17:29:22 +01:00
Gunnar Beutner 05812bd11a Implement a new experimental filter
This filter is based on one key observation:

Assuming stationary receivers and transmitters: Given several RSSI
measurements, e.g. -70, -50 and -90 we can deduce that the measurement
with the smallest error must be -50, i.e. the highest observed measurement.
This is because the measured signal strength can never be above the true
signal strength and can only ever get worse due to varying levels of
attenuation or multipath issues.
2023-12-09 07:59:38 +01:00
Gunnar Beutner 00ff50e71f sdfasdfsdfsadf 2023-12-09 07:39:03 +01:00
Gunnar Beutner eeedb1fba7 dfjsadflkjsadklfjaskdlf 2023-12-07 10:53:35 +01:00
Gunnar Beutner 9f0ea040f1 WIP: ignore stale values 2023-12-06 15:40:27 +01:00
Gunnar Beutner 571e677a63 WIP: Channel info 2023-12-06 15:40:27 +01:00
Gunnar Beutner d523ac961e Add PlatformIO environment for Seeed Studio XIAO ESP32C3
Without the custom flash mode setting the devices weren't able to write
to the filesystem.
2023-12-06 15:40:25 +01:00
Gunnar Beutner 5a0ffebfaa Battery sensor for TTGO 2023-12-06 15:40:12 +01:00
Gunnar Beutner e4bbb1d11c
Add build timestamp to the version number (#1145)
I've found this rather useful when repeatedly deploying updated firmware
images to a large number of nodes.

The patch carefully avoids full rebuilds of any "real" source files by
putting the timestamp into a separate .cpp file. It also works around
PlatformIO's build cache that would happily permanently cache the timestamp
file if we were using __DATE__.

The Python script isn't entirely necessary because we could just simply
touch the timestamp file via extra_scripts to force a rebuild. But we'd
need _some_ kind of script anyway and this way we can format the timestamp
more easily than is possible with C++.
2023-12-05 06:02:03 -05:00
Darrell 11e3e3dc63
Create CODEOWNERS (#1153) 2023-12-05 10:59:41 +00:00
dependabot[bot] 6a2d2b786b
Bump postcss-load-config from 4.0.2 to 5.0.2 in /ui (#1148)
Bumps [postcss-load-config](https://github.com/postcss/postcss-load-config) from 4.0.2 to 5.0.2.
- [Release notes](https://github.com/postcss/postcss-load-config/releases)
- [Changelog](https://github.com/postcss/postcss-load-config/blob/main/CHANGELOG.md)
- [Commits](https://github.com/postcss/postcss-load-config/compare/v4.0.2...5.0.2)

---
updated-dependencies:
- dependency-name: postcss-load-config
  dependency-type: direct:development
  update-type: version-update:semver-major
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2023-12-05 05:58:55 -05:00
dependabot[bot] e61174303d
Bump mime from 3.0.0 to 4.0.0 in /ui (#1149)
Bumps [mime](https://github.com/broofa/mime) from 3.0.0 to 4.0.0.
- [Changelog](https://github.com/broofa/mime/blob/main/CHANGELOG.md)
- [Commits](https://github.com/broofa/mime/compare/v3.0.0...v4.0.0)

---
updated-dependencies:
- dependency-name: mime
  dependency-type: direct:development
  update-type: version-update:semver-major
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2023-12-05 05:58:10 -05:00
dependabot[bot] a78e270142
Bump postcss from 8.4.31 to 8.4.32 in /ui (#1150)
Bumps [postcss](https://github.com/postcss/postcss) from 8.4.31 to 8.4.32.
- [Release notes](https://github.com/postcss/postcss/releases)
- [Changelog](https://github.com/postcss/postcss/blob/main/CHANGELOG.md)
- [Commits](https://github.com/postcss/postcss/compare/8.4.31...8.4.32)

---
updated-dependencies:
- dependency-name: postcss
  dependency-type: direct:development
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2023-12-05 05:47:28 -05:00
dependabot[bot] bfcd14c8df
Bump svelte from 4.2.7 to 4.2.8 in /ui (#1151)
Bumps [svelte](https://github.com/sveltejs/svelte/tree/HEAD/packages/svelte) from 4.2.7 to 4.2.8.
- [Release notes](https://github.com/sveltejs/svelte/releases)
- [Changelog](https://github.com/sveltejs/svelte/blob/svelte@4.2.8/packages/svelte/CHANGELOG.md)
- [Commits](https://github.com/sveltejs/svelte/commits/svelte@4.2.8/packages/svelte)

---
updated-dependencies:
- dependency-name: svelte
  dependency-type: direct:development
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2023-12-05 05:47:16 -05:00
dependabot[bot] d460463e36
Bump tailwindcss from 3.3.5 to 3.3.6 in /ui (#1152)
Bumps [tailwindcss](https://github.com/tailwindlabs/tailwindcss) from 3.3.5 to 3.3.6.
- [Release notes](https://github.com/tailwindlabs/tailwindcss/releases)
- [Changelog](https://github.com/tailwindlabs/tailwindcss/blob/master/CHANGELOG.md)
- [Commits](https://github.com/tailwindlabs/tailwindcss/compare/v3.3.5...v3.3.6)

---
updated-dependencies:
- dependency-name: tailwindcss
  dependency-type: direct:development
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2023-12-05 05:47:00 -05:00
DTTerastar daca669bed Fix negative variance 2023-12-03 08:14:45 -05:00
Darrell f84b89555c
Use default advertising intervals to fix high variance (#1139) 2023-11-29 23:09:08 +00:00
Darrell c002b1fd80
Add variance reporting (#1135)
Add variance to mqtt
2023-11-29 16:48:08 -05:00
dependabot[bot] 472f557e7a
Bump svelte-preprocess from 5.1.0 to 5.1.1 in /ui (#1133)
Bumps [svelte-preprocess](https://github.com/sveltejs/svelte-preprocess) from 5.1.0 to 5.1.1.
- [Changelog](https://github.com/sveltejs/svelte-preprocess/blob/main/CHANGELOG.md)
- [Commits](https://github.com/sveltejs/svelte-preprocess/compare/v5.1.0...v5.1.1)

---
updated-dependencies:
- dependency-name: svelte-preprocess
  dependency-type: direct:development
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2023-11-29 16:42:46 -05:00
dependabot[bot] 6eade0db8d
Bump @sveltejs/vite-plugin-svelte from 2.5.2 to 2.5.3 in /ui (#1134)
Bumps [@sveltejs/vite-plugin-svelte](https://github.com/sveltejs/vite-plugin-svelte/tree/HEAD/packages/vite-plugin-svelte) from 2.5.2 to 2.5.3.
- [Release notes](https://github.com/sveltejs/vite-plugin-svelte/releases)
- [Changelog](https://github.com/sveltejs/vite-plugin-svelte/blob/main/packages/vite-plugin-svelte/CHANGELOG.md)
- [Commits](https://github.com/sveltejs/vite-plugin-svelte/commits/@sveltejs/vite-plugin-svelte@2.5.3/packages/vite-plugin-svelte)

---
updated-dependencies:
- dependency-name: "@sveltejs/vite-plugin-svelte"
  dependency-type: direct:development
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2023-11-29 16:42:31 -05:00
dependabot[bot] 3e9d4463a2
Bump svelte from 4.2.3 to 4.2.7 in /ui (#1125)
Bumps [svelte](https://github.com/sveltejs/svelte/tree/HEAD/packages/svelte) from 4.2.3 to 4.2.7.
- [Release notes](https://github.com/sveltejs/svelte/releases)
- [Changelog](https://github.com/sveltejs/svelte/blob/svelte@4.2.7/packages/svelte/CHANGELOG.md)
- [Commits](https://github.com/sveltejs/svelte/commits/svelte@4.2.7/packages/svelte)

---
updated-dependencies:
- dependency-name: svelte
  dependency-type: direct:development
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2023-11-21 15:12:58 -05:00
dependabot[bot] 846eac65a8
Bump postcss-load-config from 4.0.1 to 4.0.2 in /ui (#1126)
Bumps [postcss-load-config](https://github.com/postcss/postcss-load-config) from 4.0.1 to 4.0.2.
- [Release notes](https://github.com/postcss/postcss-load-config/releases)
- [Changelog](https://github.com/postcss/postcss-load-config/blob/main/CHANGELOG.md)
- [Commits](https://github.com/postcss/postcss-load-config/compare/v4.0.1...v4.0.2)

---
updated-dependencies:
- dependency-name: postcss-load-config
  dependency-type: direct:development
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2023-11-21 15:12:12 -05:00
Darrell 35ff460809
Update dependabot.yml 2023-11-14 19:11:59 -05:00
Darrell eab5e92aea
Send events (#1120) 2023-11-13 13:43:27 +00:00
Darrell 434e1dbf2a
Try to fix gh actions (#1117) 2023-11-12 20:57:14 +00:00
DTTerastar 394bd26f43 Misc 2023-11-12 15:22:09 -05:00
DTTerastar ba9a5b2ef2 Fix the upload releases 2023-11-12 15:19:31 -05:00
Darrell 25992881cc
Use matrix build to speed up (#1115) 2023-11-12 15:02:50 -05:00
DTTerastar c3896cdbfe Set branch and sha in master 2023-11-12 14:24:16 -05:00
Darrell 72d786c148
Improve 1-Euro distance filtering, add spike filter (#1108)
* Spike detection
* Remove SoftFilters
2023-11-12 18:27:18 +00:00
Darrell bb81432836
Fix race condition (#1114) 2023-11-12 18:20:11 +00:00
DTTerastar da87ad544c Misc fix 2023-11-12 13:04:07 -05:00
Darrell afa5f4c3aa
Update release-drafter.yml (#1112) 2023-11-11 20:46:55 +00:00
Gunnar Beutner a6e5a18dae
Copy all statistics values when a device's MAC address changes (#1098)
When a device's MAC address changes we attempt to keep old distance
measurements. This can be improved by also copying the filter state
and a few more related values.
2023-11-11 13:36:32 -05:00
Darrell 6eb2347e6e
Add mqtt command skip_ms and skip_distance (#1109) 2023-11-11 13:05:39 +00:00
dependabot[bot] 7ccc8792cf
Bump svelte-preprocess from 5.0.4 to 5.1.0 in /ui (#1103)
Bumps [svelte-preprocess](https://github.com/sveltejs/svelte-preprocess) from 5.0.4 to 5.1.0.
- [Changelog](https://github.com/sveltejs/svelte-preprocess/blob/main/CHANGELOG.md)
- [Commits](https://github.com/sveltejs/svelte-preprocess/commits)

---
updated-dependencies:
- dependency-name: svelte-preprocess
  dependency-type: direct:development
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2023-11-11 12:38:50 +00:00
dependabot[bot] 89addb048b
Bump @sveltejs/vite-plugin-svelte from 2.5.0 to 2.5.2 in /ui (#1102)
Bumps [@sveltejs/vite-plugin-svelte](https://github.com/sveltejs/vite-plugin-svelte/tree/HEAD/packages/vite-plugin-svelte) from 2.5.0 to 2.5.2.
- [Release notes](https://github.com/sveltejs/vite-plugin-svelte/releases)
- [Changelog](https://github.com/sveltejs/vite-plugin-svelte/blob/@sveltejs/vite-plugin-svelte@2.5.2/packages/vite-plugin-svelte/CHANGELOG.md)
- [Commits](https://github.com/sveltejs/vite-plugin-svelte/commits/@sveltejs/vite-plugin-svelte@2.5.2/packages/vite-plugin-svelte)

---
updated-dependencies:
- dependency-name: "@sveltejs/vite-plugin-svelte"
  dependency-type: direct:development
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2023-11-11 07:16:20 -05:00
dependabot[bot] 7c7a295578
Bump svelte from 4.2.2 to 4.2.3 in /ui (#1104)
Bumps [svelte](https://github.com/sveltejs/svelte/tree/HEAD/packages/svelte) from 4.2.2 to 4.2.3.
- [Release notes](https://github.com/sveltejs/svelte/releases)
- [Changelog](https://github.com/sveltejs/svelte/blob/svelte-4/packages/svelte/CHANGELOG.md)
- [Commits](https://github.com/sveltejs/svelte/commits/svelte@4.2.3/packages/svelte)

---
updated-dependencies:
- dependency-name: svelte
  dependency-type: direct:development
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2023-11-11 07:15:51 -05:00
Gunnar Beutner 4e440b29f0
Add missing return in BleFingerprint::fingerprintServiceAdvertisements / Fix incorrect check in hextostr() (#1097)
* Add missing return in BleFingerprint::fingerprintServiceAdvertisements

This isn't _strictly_ required because setId() ignores "downgrades" to more
generic ID types (i.e. from ID_TYPE_FLORA to ID_TYPE_AD in this case) but
skips running unnecessary code and makes the code more readable.

* Fix incorrect check in hextostr()

This function decodes hex-encoded strings (e.g. "41" -> "A"). Previously we'd
check whether the output buffer's size is a multiple of two. This would
incorrectly reject valid uses of the function. Instead we should check the
input string's length.
2023-11-09 17:46:53 -05:00
Darrell c70436e0a9
Fix nan being serialized (fixes #1038) (#1094) 2023-11-09 22:44:39 +00:00
dependabot[bot] 7436d55f2a
Bump @sveltejs/vite-plugin-svelte from 2.4.6 to 2.5.0 in /ui (#1100)
Bumps [@sveltejs/vite-plugin-svelte](https://github.com/sveltejs/vite-plugin-svelte/tree/HEAD/packages/vite-plugin-svelte) from 2.4.6 to 2.5.0.
- [Release notes](https://github.com/sveltejs/vite-plugin-svelte/releases)
- [Changelog](https://github.com/sveltejs/vite-plugin-svelte/blob/main/packages/vite-plugin-svelte/CHANGELOG.md)
- [Commits](https://github.com/sveltejs/vite-plugin-svelte/commits/@sveltejs/vite-plugin-svelte@2.5.0/packages/vite-plugin-svelte)

---
updated-dependencies:
- dependency-name: "@sveltejs/vite-plugin-svelte"
  dependency-type: direct:development
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2023-11-09 21:55:29 +00:00
dependabot[bot] fae6e58bdd
Bump rollup-plugin-css-only from 4.5.0 to 4.5.2 in /ui (#1093)
Bumps [rollup-plugin-css-only](https://github.com/thgh/rollup-plugin-css-only) from 4.5.0 to 4.5.2.
- [Release notes](https://github.com/thgh/rollup-plugin-css-only/releases)
- [Changelog](https://github.com/thgh/rollup-plugin-css-only/blob/v4/CHANGELOG.md)
- [Commits](https://github.com/thgh/rollup-plugin-css-only/commits)

---
updated-dependencies:
- dependency-name: rollup-plugin-css-only
  dependency-type: direct:development
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2023-11-07 04:50:04 -05:00
Darrell bd9e1d0dd4
Fix include not always working, add visible to fingerprints ui (#1088)
Fix include not always working, add !visible to fingerprints
2023-11-05 17:26:04 +00:00
Darrell 63f5f9ab48
More null refs... (#1085) 2023-11-04 21:37:27 -04:00
Darrell 594d59ac44
Fix null ref error (#1084) 2023-11-05 00:18:01 +00:00
dependabot[bot] 4f804d9d05
Bump concurrently from 8.2.1 to 8.2.2 in /ui (#1078)
Bumps [concurrently](https://github.com/open-cli-tools/concurrently) from 8.2.1 to 8.2.2.
- [Release notes](https://github.com/open-cli-tools/concurrently/releases)
- [Commits](https://github.com/open-cli-tools/concurrently/compare/v8.2.1...v8.2.2)

---
updated-dependencies:
- dependency-name: concurrently
  dependency-type: direct:development
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2023-11-04 21:47:29 +00:00
Darrell f9ba8eb246
Add devices table (#1083) 2023-11-04 21:43:27 +00:00
Darrell 5a54372cd6
Improvements to Enroll UI (#1082)
Improvements to Enroll
2023-11-04 20:54:45 +00:00
dependabot[bot] 9f707ed03c
Bump rollup-plugin-css-only from 4.4.0 to 4.5.0 in /ui (#1079)
Bumps [rollup-plugin-css-only](https://github.com/thgh/rollup-plugin-css-only) from 4.4.0 to 4.5.0.
- [Release notes](https://github.com/thgh/rollup-plugin-css-only/releases)
- [Changelog](https://github.com/thgh/rollup-plugin-css-only/blob/v4/CHANGELOG.md)
- [Commits](https://github.com/thgh/rollup-plugin-css-only/commits)

---
updated-dependencies:
- dependency-name: rollup-plugin-css-only
  dependency-type: direct:development
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2023-11-03 21:54:07 +00:00
Darrell 705345274c
Use updated version of esphome/ESPAsyncWebServer (#1077) 2023-11-03 08:59:56 -04:00