Commit graph

426 commits

Author SHA1 Message Date
Laura Klünder
97d18892e1 validate negative one distance as None 2024-12-26 17:09:32 +01:00
Laura Klünder
710ec5411a make locateibeaconpeerschema a bit more forgiving 2024-12-26 16:00:18 +01:00
Laura Klünder
7919d94c74 support infoelems in wifi data 2024-12-26 01:49:16 +01:00
Jenny Paxian
ebfc683f7c
Fixes some issues with the location button being invisible (#207)
* Fakemobileclient should return a dict of wifi.data, instead of data, since we have bluetooth beacons too

* Use dict instead of list for beacon measurement in fakemobileclient and editor script

* Use distance directly

* BeaconMeasurementDataSchema add default

* Route from current location

* Do not try to set Score if no location found
2024-12-23 22:13:32 +01:00
Jenny Paxian
82b13e16a0
Use dict in fakemobileclient for data, add default to BeaconMeasurementDataSchema (#206)
* Fakemobileclient should return a dict of wifi.data, instead of data, since we have bluetooth beacons too

* Use dict instead of list for beacon measurement in fakemobileclient and editor script

* Use distance directly

* BeaconMeasurementDataSchema add default
2024-12-23 18:01:03 +01:00
Laura Klünder
ac1650e3bc remove validation_alias 2024-12-23 17:39:16 +01:00
Laura Klünder
8feac6bf43 use shcmea for beaconmeasurement data and fix some related things 2024-12-23 16:26:15 +01:00
Laura Klünder
34b5ad58bf another invalid geometry fuckery fix 2024-12-20 19:27:11 +01:00
Gwendolyn
af472e57ef typos 2024-12-20 12:36:04 +01:00
Laura Klünder
dc98e927a5 fix node_addition being set a by default when it should be dict 2024-12-19 12:26:32 +01:00
Laura Klünder
e9d1709015 missing import 2024-12-19 00:06:06 +01:00
Laura Klünder
a4a7f02d0b fix syntax error 2024-12-19 00:06:06 +01:00
Laura Klünder
5264b0599a and even more type hinting for the route 2024-12-17 23:36:30 +00:00
Laura Klünder
c2ae631d84 fix type hinting import 2024-12-17 23:23:27 +00:00
Laura Klünder
098c272ba2 actually fix route type hinting 2024-12-17 23:22:41 +00:00
Laura Klünder
29c8b01e33 more type hinting, now in the route class 2024-12-17 23:19:46 +00:00
Laura Klünder
53070ef4f9 fix typo 2024-12-17 22:54:37 +00:00
Laura Klünder
0637b120cd more router typehinting 2024-12-17 22:54:15 +00:00
Laura Klünder
387fdc62be more typehinting in route and router 2024-12-17 22:28:52 +00:00
Laura Klünder
c4e3ca197e add "in meters" to iBeacon distance 2024-12-16 21:48:28 +00:00
Gwendolyn
c25b12c1c0 slimmer and more correct routing item schema 2024-12-16 16:13:21 +01:00
Laura Klünder
2fbe659a8e serialize waytype correctly please 2024-12-15 18:26:43 +00:00
Laura Klünder
6428a39a04 allow waytypes to be excluded by default 2024-12-15 18:25:16 +00:00
Laura Klünder
26ea7c7152 shortwaytypeschema needs no explicit serialization 2024-12-09 15:43:07 +01:00
Laura Klünder
d151bc7888 serialize waytype correct 2024-12-09 15:29:30 +01:00
Laura Klünder
c1eb47a0e0 fewer explicit serialize() calls 2024-12-04 15:44:53 +01:00
Laura Klünder
9f609d9205 simplify serialize calls some more in routing etec 2024-12-04 15:43:03 +01:00
Laura Klünder
f2f67a1cbb route result should use more schema 2024-12-04 15:27:06 +01:00
Laura Klünder
00ec22c334 fix locationredirects breaking querysets 2024-12-04 12:42:03 +01:00
Laura Klünder
71131cc5c5 store all processupdates result files in mapupdate-based directory 2024-09-17 01:43:38 +02:00
Laura Klünder
50aef0bed3 fix columns with access restrictions 2024-09-05 16:52:06 +02:00
Laura Klünder
dc6df1fb7b fix convert_scans not working for some reason 2024-08-28 14:56:59 +02:00
Laura Klünder
2bc044e91f move all other code to AltitudeArea.points, no multi-point implementation yet 2024-08-18 21:48:17 +02:00
Laura Klünder
3ad6631916 add ibeacon todo in locator 2024-03-31 19:38:47 +02:00
Laura Klünder
fe9b448fde use convert_wifi_scan 2024-03-31 19:38:23 +02:00
Laura Klünder
76b8858923 Locator now can deal with ibeacons in theory 2024-03-31 19:36:02 +02:00
Laura Klünder
3be707f52b accept empty SSIDs 2024-03-31 18:58:57 +02:00
Laura Klünder
7fa75e1617 full scancollector implementation with all kinds of nice features 2024-03-31 18:49:35 +02:00
Laura Klünder
20fbcc9139 wifimeasurement → beaconmeasurement… and editor scancollector implementation 2024-03-31 16:23:15 +02:00
Laura Klünder
35d030a6fd make locate still work (only using wifi_peers for now) 2024-03-31 15:28:04 +02:00
Laura Klünder
31c7dad72f add ibeacon scan code to c3nav.js and endpoint 2024-03-31 15:26:44 +02:00
Laura Klünder
bf9d113677 METRCIS→METRICS 2024-03-30 22:12:27 +01:00
Jenny Danzmayr
d1ba39df1c fixed prometheus statistics to correctly use labels 2024-03-30 20:04:55 +01:00
Laura Klünder
03426c1989 model_dump() needs to use mode="json" 2024-03-29 15:01:39 +01:00
Laura Klünder
0d91a71b9f overhaul entire report process 2024-03-24 17:38:24 +01:00
Laura Klünder
372db50224 add bluetooth and UWB parameters to RangingBeacon model 2024-03-10 13:45:20 +01:00
Laura Klünder
0fd789173a change all of the MeshMessages c-models from dataclasses to pydantic 2024-03-09 17:19:08 +01:00
Laura Klünder
ce49a103da import shortest_path correctly 2024-02-07 20:05:32 +01:00
Laura Klünder
2b0df524cb import scipy.linalg.norm lazily 2024-02-07 20:05:15 +01:00
Laura Klünder
8c8ef12cf0 make linter happy 2024-02-07 18:34:28 +01:00