Skip to content

Instantly share code, notes, and snippets.

@aquarta
aquarta / standalone_dev_spec.yaml
Last active February 15, 2026 19:03
Standalone BLE devices specifications for github.com/aquarta/bleiot
devices:
MoveSense:
name: "Movesense 223430000418"
shortName: "Movesense 223430000418"
address: "0C:8C:DC:41:E2:7B"
services:
# - uuid: "0000180d-0000-1000-8000-00805f9b34fb"
# name: "Heart Rate Service"
# characteristics:
# - uuid: "00002a37-0000-1000-8000-00805f9b34fb"
@aquarta
aquarta / docker-compose.yml
Created February 14, 2026 16:44
docker compose yaml for github.com/aquarta/bleiot and github.com/ziobongy/q-iot-fe and https://github.com/ziobongy/q-iot-be
services:
mqtt:
image: emqx/emqx-enterprise:5.10.0
hostname: emqx
ports:
- 1883:1883
- 8083:8083
- 8084:8084
- 8883:8883
- 18083:18083
@aquarta
aquarta / movesense_dynamic_json_for_qiot.json
Created February 14, 2026 16:40
Movesense dynamic json for github.com/ziobongy/q-iot-fe
{
"movesense_whiteboard": {
"measures": [
{
"SingleMeasurementParser": [
{
"name": "stimestamp",
"path": "Body.Timestamp",
"type": "integer"
},
@aquarta
aquarta / Example log txt
Last active March 20, 2025 07:21
Get serial stats with STM32WB05 UART infinite writer
PS C:\Users\antonio> & C:/oapps/Python37-32/python.exe c:/Users/antonio/Downloads/test_serial.py
Starting serial statistics tracker on COM5 at 921600 baud
Press Ctrl+C to stop
------------------------------------------------------------
Time | Bytes/sec | Bits/sec | Total Bytes
------------------------------------------------------------
22:21:37.349 | 93105.35 | 744842.79 | 94160
22:21:38.359 | 93445.46 | 747563.64 | 94346
22:21:39.371 | 93490.70 | 747925.63 | 94642
22:21:40.381 | 93499.38 | 747995.02 | 94465
@aquarta
aquarta / Readme.md
Last active March 18, 2025 19:29
mqtt_load_test.py

python mqtt_load_test.py --broker localhost --time 10 --topic CompanyX/building1/test --threads 1000

@aquarta
aquarta / sensor_demo_bleak.py
Created March 17, 2025 07:59
stm sensordemo bluenrg bleak script
import asyncio
import logging
import time
from bleak import BleakScanner, BleakClient
from bleak.backends.device import BLEDevice
from bleak.backends.characteristic import BleakGATTCharacteristic
from bleak.uuids import register_uuids
@aquarta
aquarta / gh-pages.md
Created May 30, 2024 15:03 — forked from ramnathv/gh-pages.md
Creating a clean gh-pages branch

Creating a clean gh-pages branch

This is the sequence of steps to follow to create a root gh-pages branch. It is based on a question at [SO]

cd /path/to/repo-name
git symbolic-ref HEAD refs/heads/gh-pages
rm .git/index
git clean -fdx
echo "My GitHub Page" > index.html
@aquarta
aquarta / context_config.json
Last active May 30, 2024 14:11
simple json datamodel
{
"dataModel.Battery": "https://raw.githubusercontent.com/smart-data-models/dataModel.Battery/master/context.jsonld",
"dataModel.Building": "https://raw.githubusercontent.com/smart-data-models/dataModel.Building/master/context.jsonld",
"dataModel.Device": "https://raw.githubusercontent.com/smart-data-models/dataModel.Device/master/context.jsonld"
}
@aquarta
aquarta / get_gps_termux.py
Last active April 21, 2024 14:14
get_gps_termux .py
import json
import subprocess
import os
IS_TERMUX = os.environ.get("TERMUX_VERSION", None)
import json
import time
from datetime import datetime
from concurrent.futures import ThreadPoolExecutor