Skip to content

Commit

Permalink
feat: refactored and added registration step
Browse files Browse the repository at this point in the history
  • Loading branch information
naman108 committed Sep 8, 2024
1 parent 93115c7 commit f716303
Show file tree
Hide file tree
Showing 23 changed files with 519 additions and 392 deletions.
2 changes: 2 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,8 @@ tmp1/
tmp2/
lxmf_storage/
.vscode/
telemetry.db
RTH_Store/

# Byte-compiled / optimized / DLL files
__pycache__/
Expand Down
7 changes: 0 additions & 7 deletions lxmf_telemetry/model/fields/field_telemetry_stream.py

This file was deleted.

339 changes: 183 additions & 156 deletions poetry.lock

Large diffs are not rendered by default.

12 changes: 7 additions & 5 deletions pyproject.toml
Original file line number Diff line number Diff line change
@@ -1,18 +1,20 @@
[tool.poetry]
name = "reticulum-server"
version = "0.1.0"
name = "ReticulumTelemetryHub"
version = "0.1.2"
description = ""
authors = ["naman108 <[email protected]>"]
authors = ["naman108"]
readme = "README.md"
packages = [
{ include = "reticulum_telemetry_hub" },
]

[tool.poetry.dependencies]
python = "^3.12"
python = "^3.10"
lxmf = "^0.4.4"
msgpack = "^1.0.8"
sqlalchemy = "^2.0.32"
pytest = "^8.3.2"


[build-system]
requires = ["poetry-core"]
build-backend = "poetry.core.masonry.api"
215 changes: 0 additions & 215 deletions reticulum_server/main.py

This file was deleted.

File renamed without changes.
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
from reticulum_telemetry_hub.lxmf_telemetry.model.persistance.telemeter import Telemeter


class FieldTelmetryStream():

telemeters: list[Telemeter]

File renamed without changes.
File renamed without changes.
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
from sqlalchemy import Column
from lxmf_telemetry.model.persistance.sensors.sensor import Sensor
from reticulum_telemetry_hub.lxmf_telemetry.model.persistance.sensors.sensor import Sensor
from .sensor_enum import SID_LOCATION
import struct
import RNS
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
from sqlalchemy import Column
from lxmf_telemetry.model.persistance.sensors.sensor import Sensor
from reticulum_telemetry_hub.lxmf_telemetry.model.persistance.sensors.sensor import Sensor
from .sensor_enum import SID_MAGNETIC_FIELD
import struct
import RNS
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,8 @@
from sqlalchemy import ForeignKey, DateTime
from sqlalchemy.orm import Mapped, mapped_column

from lxmf_telemetry.model.persistance.sensors.sensor_enum import SID_TIME
from lxmf_telemetry.model.persistance.sensors.sensor import Sensor
from reticulum_telemetry_hub.lxmf_telemetry.model.persistance.sensors.sensor_enum import SID_TIME
from reticulum_telemetry_hub.lxmf_telemetry.model.persistance.sensors.sensor import Sensor

class Time(Sensor):
__tablename__ = 'Time'
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,11 +3,11 @@
import LXMF
import RNS
from msgpack import packb, unpackb
from lxmf_telemetry.model.persistance import Base
from lxmf_telemetry.model.persistance.sensors.sensor import Sensor
from lxmf_telemetry.model.persistance.telemeter import Telemeter
from reticulum_telemetry_hub.lxmf_telemetry.model.persistance import Base
from reticulum_telemetry_hub.lxmf_telemetry.model.persistance.sensors.sensor import Sensor
from reticulum_telemetry_hub.lxmf_telemetry.model.persistance.telemeter import Telemeter

from lxmf_telemetry.model.persistance.sensors.sensor_mapping import sid_mapping
from reticulum_telemetry_hub.lxmf_telemetry.model.persistance.sensors.sensor_mapping import sid_mapping
from sqlalchemy import create_engine
from sqlalchemy.orm import sessionmaker, Session, joinedload

Expand Down
Empty file.
Loading

0 comments on commit f716303

Please sign in to comment.