{"id":37865148,"url":"https://github.com/starwit/msu-manager","last_synced_at":"2026-01-21T12:09:37.203Z","repository":{"id":318290558,"uuid":"1070405888","full_name":"starwit/msu-manager","owner":"starwit","description":"A linux package providing a device agent with API for MSU (power control, network monitoring, etc.)","archived":false,"fork":false,"pushed_at":"2026-01-16T19:08:15.000Z","size":915,"stargazers_count":0,"open_issues_count":2,"forks_count":0,"subscribers_count":0,"default_branch":"main","last_synced_at":"2026-01-17T04:48:14.471Z","etag":null,"topics":["embedded"],"latest_commit_sha":null,"homepage":"","language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"agpl-3.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/starwit.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null,"notice":null,"maintainers":null,"copyright":null,"agents":null,"dco":null,"cla":null}},"created_at":"2025-10-05T21:15:50.000Z","updated_at":"2026-01-15T15:52:52.000Z","dependencies_parsed_at":"2025-10-06T11:03:39.158Z","dependency_job_id":"b12c76a9-5952-4ad4-943f-b2b81fc34508","html_url":"https://github.com/starwit/msu-manager","commit_stats":null,"previous_names":["starwit/power-toggle-service","starwit/msu-manager"],"tags_count":12,"template":false,"template_full_name":null,"purl":"pkg:github/starwit/msu-manager","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/starwit%2Fmsu-manager","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/starwit%2Fmsu-manager/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/starwit%2Fmsu-manager/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/starwit%2Fmsu-manager/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/starwit","download_url":"https://codeload.github.com/starwit/msu-manager/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/starwit%2Fmsu-manager/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":28632782,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-01-21T04:47:28.174Z","status":"ssl_error","status_checked_at":"2026-01-21T04:47:22.943Z","response_time":86,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.5:443 state=error: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["embedded"],"created_at":"2026-01-16T16:36:38.353Z","updated_at":"2026-01-21T12:09:37.198Z","avatar_url":"https://github.com/starwit.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"# MSU Manager Service\nThis components manages various aspects for Mobilytix Sensoring Units among which are power and thermal management.\\\nOne of its core features is receiving commands from the [HCU (Hardware Control Unit)](https://github.com/starwit/msu-controller). It is shipped for Debian based Linux distributions and is tested with Ubuntu. \n\n## Local Development\nApp consists of two parts: Python backend and React frontend.\n\n### Build Frontend\nCopy settings template in a new file and configure frontend values like so:\n```yaml\nfrontend:\n  enabled: true\n  path: 'frontend/dist'\n```\nThen run in folder frontend:\n```bash\nnpm install\nnpm run build\n```\n\n### Run backend\nTo run the application manually you can use Poetry:\n```bash\npoetry install\npoetry run fastapi run msu_manager/main.py\n```\n\nApplication will serve frontend under: http://localhost:8000. If you run npm start in frontend folder, you let npm compile React code on the fly.\n\n## Run tests\n- Run all tests with `poetry run pytest -v`\n- Run modem tests (do not run by default, because they require attached hardware) with `poetry run pytest tests/test_modem_xyz`\n\n## Usage\n\nService is shipped as APT package, see [release](https://github.com/starwit/msu-manager/releases) page to download latest package. How to configure and use service see [manual](doc/MANUAL.md).\n\n## Build\n\nHere are all necessarey information for developers, to build and run service.\n\n### Prerequisites\nThings you need to build package.\n\n* Python \n* Poetry\n* build-essentials\n* npm\n\n### Build APT package\nMakefile has target to build an APT package. Virtual environment is created by exporting Poetry dependencies into a requirements.txt file. APT is build like so:\n```bash\npoetry self add poetry-plugin-export\nmake build-deb\n```\n\nAPT package can then be found in folder _target_. You can test installation using Docker, however SystemD (probably) won't work.\n```bash\ndocker run -it --rm -v ./target:/app  jrei/systemd-ubuntu:latest bash\napt update \u0026\u0026 apt install -y /app/msu-manager_0.0.7_all.deb\n```\nYou can however test, if everything is installed to the right place. If you want to test service use the following examples:\n```bash\ncurl localhost:8000/api/hcu/message -H \"Content-Type: application/json\" -d '{\"type\": \"HEARTBEAT\",\"version\" : \"0.0.3\"}'\ncurl localhost:8000/api/hcu/message -H \"Content-Type: application/json\" -d '{\"type\": \"LOG\", \"level\": \"info\", \"message\": \"temperature was read\"}'\ncurl localhost:8000/api/hcu/message -H \"Content-Type: application/json\" -d '{\"type\": \"METRIC\", \"key\": \"temp0\", \"value\": \"42.0\"}'\ncurl localhost:8000/api/hcu/message -H \"Content-Type: application/json\" -d '{\"type\": \"SHUTDOWN\"}'\ncurl localhost:8000/api/hcu/message -H \"Content-Type: application/json\" -d '{\"type\": \"RESUME\"}'\n```\n\n## Changelog\n\n### 3.0.1\n- Fix exception in /api/gps/position endpoint if no GPS fix exists\n\n### 3.0.0\n- Major overhaul of uplink_monitor skill\n  - Breaking changes in uplink_monitor configuration (consult the [settings template](./settings.template.yaml)\n  - Connection check now first consults uplink interface byte counters and only attempts a ping if no traffic was recorded (this should help in scenarios with a saturated uplink, where ICMP might get lost)\n- Improved TCL IKE41VE1 integration\n  - Implement reconnection logic in Python (as part of the app for better control)\n  - Add a reboot feature as a last resort (if modem cannot be detected at all)\n- APT: Due to above changes, more fine grained sudo rules are needed (this should be updated automatically during installation)\n\n### 2.0.1\n- APT: Fix msumanager user lacking permissions to access serial devices","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fstarwit%2Fmsu-manager","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fstarwit%2Fmsu-manager","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fstarwit%2Fmsu-manager/lists"}