{"id":18504200,"url":"https://github.com/derdp/chirpstack-postgresql-integration-api","last_synced_at":"2026-02-18T15:31:18.814Z","repository":{"id":260132991,"uuid":"880396033","full_name":"DerDP/chirpstack-postgresql-integration-api","owner":"DerDP","description":"The chirpstack-postgresql-integration-api repository provides middleware API integration for Chirpstack with PostgreSQL, using FastAPI. ","archived":false,"fork":false,"pushed_at":"2024-11-06T11:52:00.000Z","size":14,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-08-01T03:52:07.456Z","etag":null,"topics":["chirpstack","postgresql"],"latest_commit_sha":null,"homepage":"","language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/DerDP.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"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}},"created_at":"2024-10-29T16:41:44.000Z","updated_at":"2024-11-06T11:52:04.000Z","dependencies_parsed_at":"2025-04-22T11:44:08.469Z","dependency_job_id":null,"html_url":"https://github.com/DerDP/chirpstack-postgresql-integration-api","commit_stats":null,"previous_names":["derdp/chirpstack-postgresql-integration-api"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/DerDP/chirpstack-postgresql-integration-api","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/DerDP%2Fchirpstack-postgresql-integration-api","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/DerDP%2Fchirpstack-postgresql-integration-api/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/DerDP%2Fchirpstack-postgresql-integration-api/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/DerDP%2Fchirpstack-postgresql-integration-api/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/DerDP","download_url":"https://codeload.github.com/DerDP/chirpstack-postgresql-integration-api/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/DerDP%2Fchirpstack-postgresql-integration-api/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":279013619,"owners_count":26085298,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","status":"online","status_checked_at":"2025-10-12T02:00:06.719Z","response_time":53,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"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":["chirpstack","postgresql"],"created_at":"2024-11-06T14:03:28.867Z","updated_at":"2025-10-13T00:16:03.107Z","avatar_url":"https://github.com/DerDP.png","language":"Python","readme":"# Introduction \n\nAPI Middelware for the PostgreSQL Chirpstack integration.\t\nSwagger page is available at /docs web path.\n\n## Prerequisites\n\n- Python 3.8+\n- Chirpstack with PostgreSQL integration\n- Environment setup for the API key and database connection string\n\n# Getting Started\n\n1. Clone the Repository:\n   ```bash\n   git clone https://github.com/DerDP/chirpstack-postgresql-integration-api\n   cd chirpstack-postgresql-integration-api/code\n2.\tInstall Dependencies:\n\t```bash\n\tpip install -r requirements.txt\n\t```\n3.\tSet the following environment variables in your environment:\n\t- `API_KEY`: The API key for access to the endpoints.\n\t- `DATABASE_URL`: The PostgreSQL connection URL (e.g., `postgresql://user:password@localhost:5432/database_name`).\n\t- Or Adjust `code/app/.env` file\n4.\tDatabase Setup:\t \t\n\t- Ensure that your PostgreSQL database is running and contains the event_up table with a schema matching the `SensorData` model.\n\n\n# Run locally\n\nFrom folder `code/` execute:\n\n\n\tuvicorn app.main:app --reload\n\t\n\n# Run in Docker\n\nYou can build the docker image from `code/` folder using the following command:\n\t\n\n\tdocker build -t fastapi-chirpstack:latest --no-cache .\n\n\nTo test run docker container, run the following command:\n\n```\ndocker run -d \\\n  --name fastapi-chirpstack \\\n  -e DATABASE_URL=\"\u003cyour_database_url\u003e\" \\\n  -e API_KEY=\"\u003cyour_api_key\u003e\" \\\n  -p 8000:8000 \\\n  fastapi-chirpstack:latest\n```\n\n# k8s deployment\nAdjust the deploy.sh and yaml files in `k8s/` folder and run following commands (populate `code/app/.env` as secret is created with these values):\n\n```bash\nchmox +x deploy.sh\n./deploy.sh\n\n\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fderdp%2Fchirpstack-postgresql-integration-api","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fderdp%2Fchirpstack-postgresql-integration-api","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fderdp%2Fchirpstack-postgresql-integration-api/lists"}