Nie możesz wybrać więcej, niż 25 tematów Tematy muszą się zaczynać od litery lub cyfry, mogą zawierać myślniki ('-') i mogą mieć do 35 znaków.
 
 
 
 
Blaz Smehov a08f381800 feat: add switching between ml and filter algorithm, various fixes in context use, script for creating docker images, various bug fixes regarding persistence in db, persisting alerts in db and CRUD operations for alerts 3 tygodni temu
..
api chore: big refactoring job 3 tygodni temu
auth chore: big refactoring job 3 tygodni temu
build feat: add switching between ml and filter algorithm, various fixes in context use, script for creating docker images, various bug fixes regarding persistence in db, persisting alerts in db and CRUD operations for alerts 3 tygodni temu
config chore: big refactoring job 3 tygodni temu
seed chore: big refactoring job 3 tygodni temu
README.md chore: big refactoring job 3 tygodni temu
_common.sh chore: big refactoring job 3 tygodni temu

README.md

Scripts

Organized by concern. Default server URL is http://localhost:1902; override with BASE_URL.

Layout

Directory Purpose
api/ Server API tests and examples
config/ Server/config operations (settings, parser configs)
auth/ Auth token (for remote/protected APIs)
seed/ Dev seed data (e.g. trackers)

API (api/)

  • smoke_test.sh – Full smoke test: gateways, zones, trackerzones, trackers (list, update, delete). Requires jq.
    ./scripts/api/smoke_test.sh
    BASE_URL=http://host:1902 ./scripts/api/smoke_test.sh
    
  • tracks.sh – Tracks query examples (getTracks with limit, from, to). Optional first arg: tracker UUID.
    ./scripts/api/tracks.sh
    ./scripts/api/tracks.sh <tracker-uuid>
    

Config (config/)

  • settings.sh – PATCH /reslevis/settings (algorithm, thresholds, etc.).
  • add_parser.sh – POST /configs/beacons to add a decoder/parser config (e.g. Eddystone).

Auth (auth/)

  • token.sh – Get OAuth token from auth server. Set env: CLIENT_SECRET, USERNAME, PASSWORD; optional AUTH_URL, CLIENT_ID, AUDIENCE. Prints token to stdout.
    export CLIENT_SECRET=... USERNAME=... PASSWORD=...
    TOKEN=$(./scripts/auth/token.sh)
    curl -H "Authorization: Bearer $TOKEN" "$BASE_URL/reslevis/getTrackers"
    

Seed (seed/)

  • seed_trackers.sh – POST multiple trackers for dev (same payloads as former bulk seed).
    ./scripts/seed/seed_trackers.sh
    

Shared

  • _common.sh – Sourced by other scripts; sets BASE_URL (default http://localhost:1902). Do not run directly.