Description
This project is a Simulator source for Exosite’s ExoSense which uses ExoEdge
Install
Installing a build can be done in several ways:
Installing From Source
$ python setup.py install
Installing From Builds
$ pip install dist/*.whl
Installing From Builds
$ pip install exoedge_simulator
ExoSense Configuration
Below is an example config_io that works for generating a sin_wave
{
"channels": {
"000": {
"channel_name": "000",
"description": "Sin Wave",
"display_name": "Sin Wave",
"properties": {
"data_type": "TEMPERATURE",
"data_unit": "DEG_FAHRENHEIT",
"device_diagnostic": false,
"max": null,
"min": null,
"precision": 2
},
"protocol_config": {
"app_specific_config": {
"function": "sin_wave",
"parameters": {
"amplitude": 1,
"offset": 0,
"period": 60,
"precision": 2
}
},
"application": "Simulator",
"down_sample": "ACT",
"input_raw": {},
"interface": null,
"report_on_change": false,
"report_rate": 10000,
"sample_rate": 10000,
"timeout": null
}
}
}
}
Available Functions
The following are functions supported by the simulator, including their parameters with defaults. Additional parameters can be included, and will be ignored.
fourteen
Returns 14
"function": "fourteen",
"parameters": {}
current_time
Returns the current timestamp
"function": "current_time",
"parameters": {}
echo
Echo a value into a string
"function": "echo",
"parameters": {
"value": "Hello World"
}
strip_non_numeric
Strip out non-numeric characters from string
"function": "strip_non_numeric",
"parameters": {
"value": "1234BEEF"
}
sin_wave
Generate a sin wave from the current time
"function": "sin_wave",
"parameters": {
"period": 60,
"amplitude": 1,
"offset": 0,
"precision": 2
}
cos_wave
Generate a cos wave from the current time
"function": "cos_wave",
"parameters": {
"period": 60,
"amplitude": 1,
"offset": 0,
"precision": 2
}
location
Generate location data from the current time and a starting location
Moves in a circle every period seconds. Path is radius decimal degrees from the center point defined by latitude and longitude.
"function": "location",
"parameters": {
"latitude": None,
"longitude": None,
"period": 60,
"radius": 0.1,
"precision": 6
}
random_integer
Get a random integer between two values
"function": "random_integer",
"parameters": {
"lower": 0,
"upper": 10
}
random_sleep
Sleep for a random number of seconds
"function": "random_sleep",
"parameters": {
"lower": 0,
"upper": 10
}
ip_address
- Returns a string that represents the ip address in octet form of the iface parameter given.
- Parameters:
interface: The network interface. Use ifconfig (MAC, linux) or ipconfig (Windows) to check the interface.
"function": "ip_address",
"parameters": {
"interface":"en0"
}
return something like: {“000”: [“192.168.2.143”]}
Metadata
Release files for exoedge-simulator 21.10.7
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| exoedge_simulator-21.10.7-py2.py3-none-any.whl | Python 3, Python 2 | none | any | Details for exoedge_simulator-21.10.7-py2.py3-none-any.whl |
Release files / exoedge_simulator-21.10.7-py2.py3-none-any.whl
| Download URL | exoedge_simulator-21.10.7-py2.py3-none-any.whl |
|---|---|
| Size | 18.9 kB |
| Tags | Python 2 Python 3 |
|
SHA-256 checksum How to use checksums |
8d8cf91c3009191ced539f38a4bfc426199b2d6b1c6ac674f9e98e704e8b7413
|
|
BLAKE2b-256 checksum How to use checksums |
3848b80e83e897610c42124dd12c67baa02e82aa4fb276b13ea5623a05fc3b6e
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/3.4.2 importlib_metadata/4.8.1 pkginfo/1.7.1 requests/2.26.0 requests-toolbelt/0.9.1 tqdm/4.62.2 CPython/3.9.1
|
Security for exoedge-simulator 21.10.7
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.