https://github.com/statikelektrik/ptai_device_simulator
A device simulator to not block development workflow on web-server part.
https://github.com/statikelektrik/ptai_device_simulator
coap-client emulation predictive-modeling simulation
Last synced: about 1 year ago
JSON representation
A device simulator to not block development workflow on web-server part.
- Host: GitHub
- URL: https://github.com/statikelektrik/ptai_device_simulator
- Owner: StatikElektrik
- Created: 2023-08-12T20:41:25.000Z (almost 3 years ago)
- Default Branch: main
- Last Pushed: 2023-11-07T07:20:28.000Z (over 2 years ago)
- Last Synced: 2025-02-14T20:40:58.326Z (over 1 year ago)
- Topics: coap-client, emulation, predictive-modeling, simulation
- Language: Python
- Homepage:
- Size: 17.6 KB
- Stars: 0
- Watchers: 0
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# PTAI Embedded Systems Simulator
This 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.
It creates a function, and creates arbitrary data with specified error rates. It then sends the data to the ThingsBoard server.
## Usage
```bash
~$ python3 main.py --function_type=[FUNCTION_TYPE] --error_rate=[ERROR_RATE] --frequency=[FREQUENCY] --duration=[DURATION]
```
### Environmental Variables
Create a `.env` file in the root directory of the project. Not all the variables are required, but the ones that are not provided with
environmental variables will need to be provided as command line arguments.
```bash
# IoT Platform Variables
THINGSBOARD_HOST="[HOST_COAP_URL_HERE]"
THINGSBOARD_PORT="[HOST_COAP_PORT_HERE]"
# Device Variables
DEVICE_MAC_ADDR="[MAC_ADDRESS_HERE]"
DEVICE_TOKEN="[DEVICE_TOKEN_HERE]"
DEVICE_PROVISION_KEY="[DEVICE_PROVISION_KEY_HERE]"
DEVICE_PROVISION_SECRET="[DEVICE_PROVISION_SECRET_HERE]"
```