{"id":18266725,"url":"https://github.com/statikelektrik/ptai_device_simulator","last_synced_at":"2025-04-09T02:22:08.762Z","repository":{"id":205941310,"uuid":"677845462","full_name":"StatikElektrik/ptai_device_simulator","owner":"StatikElektrik","description":"A device simulator to not block development workflow on web-server part.","archived":false,"fork":false,"pushed_at":"2023-11-07T07:20:28.000Z","size":18,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":0,"default_branch":"main","last_synced_at":"2025-02-14T20:40:58.326Z","etag":null,"topics":["coap-client","emulation","predictive-modeling","simulation"],"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/StatikElektrik.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}},"created_at":"2023-08-12T20:41:25.000Z","updated_at":"2023-11-07T07:20:33.000Z","dependencies_parsed_at":"2023-11-07T08:28:47.479Z","dependency_job_id":"2d476619-2654-4e5c-9cb3-ece39e86b604","html_url":"https://github.com/StatikElektrik/ptai_device_simulator","commit_stats":null,"previous_names":["statikelektrik/ptai_device_simulator"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/StatikElektrik%2Fptai_device_simulator","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/StatikElektrik%2Fptai_device_simulator/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/StatikElektrik%2Fptai_device_simulator/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/StatikElektrik%2Fptai_device_simulator/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/StatikElektrik","download_url":"https://codeload.github.com/StatikElektrik/ptai_device_simulator/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":247963070,"owners_count":21024950,"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","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":["coap-client","emulation","predictive-modeling","simulation"],"created_at":"2024-11-05T11:24:36.893Z","updated_at":"2025-04-09T02:22:08.737Z","avatar_url":"https://github.com/StatikElektrik.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"# PTAI Embedded Systems Simulator\nThis is a data simulator for the PTAI Embedded Systems project. It is designed to simulate the data that would be sent from the embedded system to the ThingsBoard server.\nIt creates a function, and creates arbitrary data with specified error rates. It then sends the data to the ThingsBoard server.\n\n## Usage\n```bash\n~$ python3 main.py --function_type=[FUNCTION_TYPE] --error_rate=[ERROR_RATE] --frequency=[FREQUENCY] --duration=[DURATION]\n```\n\n### Environmental Variables\nCreate a `.env` file in the root directory of the project. Not all the variables are required, but the ones that are not provided with\nenvironmental variables will need to be provided as command line arguments.\n\n```bash\n# IoT Platform Variables\nTHINGSBOARD_HOST=\"[HOST_COAP_URL_HERE]\"\nTHINGSBOARD_PORT=\"[HOST_COAP_PORT_HERE]\"\n\n# Device Variables\nDEVICE_MAC_ADDR=\"[MAC_ADDRESS_HERE]\"\nDEVICE_TOKEN=\"[DEVICE_TOKEN_HERE]\"\nDEVICE_PROVISION_KEY=\"[DEVICE_PROVISION_KEY_HERE]\"\nDEVICE_PROVISION_SECRET=\"[DEVICE_PROVISION_SECRET_HERE]\"\n```","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fstatikelektrik%2Fptai_device_simulator","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fstatikelektrik%2Fptai_device_simulator","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fstatikelektrik%2Fptai_device_simulator/lists"}