-
Notifications
You must be signed in to change notification settings - Fork 2.2k
Dummy Data Injector #5566
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Open
SuksAE
wants to merge
8
commits into
letscontrolit:mega
Choose a base branch
from
SuksAE:Dummy_Injector
base: mega
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Open
Dummy Data Injector #5566
Changes from 3 commits
Commits
Show all changes
8 commits
Select commit
Hold shift + click to select a range
4ab36a7
Initial Commit
SuksAE 13fdd39
added documentation
SuksAE b593c03
removed debug flag
SuksAE 538bb70
implemented PR review feedback in code
SuksAE bbbd151
implemented PR review feedback in documentation
SuksAE 281e942
added P187_data_struct.cpp
SuksAE 2076263
moved time handling into P187_data_struct::plugin_read
SuksAE 465aa34
Merge branch 'letscontrolit:mega' into Dummy_Injector
SuksAE File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1,5 +1,7 @@ | ||
| @ECHO OFF | ||
|
|
||
| set PYTHONUTF8=1 | ||
|
|
||
| pushd %~dp0 | ||
|
|
||
| REM Command file for Sphinx documentation | ||
|
|
||
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,120 @@ | ||
| .. include:: ../Plugin/_plugin_substitutions_p18x.repl | ||
| .. _P187_page: | ||
|
|
||
| |P187_typename| | ||
| ================================================== | ||
|
|
||
| |P187_shortinfo| | ||
|
|
||
| Plugin details | ||
| -------------- | ||
|
|
||
| Type: |P187_type| | ||
|
|
||
| Name: |P187_name| | ||
|
|
||
| Status ESP32: |P187_status| | ||
|
|
||
| Status ESP8266: |P187_status_lb| | ||
|
|
||
| GitHub: |P187_github|_ | ||
|
|
||
| Maintainer: |P187_maintainer| | ||
|
|
||
| Used libraries: |P187_usedlibraries| | ||
|
|
||
| Introduction | ||
| ------------ | ||
|
|
||
| The Dummy Data Injector plugin simulates peripheral data output. It can be used e.g. to test IOT backend systems by providing input data for debugging. | ||
| Up to four synchronized data streams can be generated per deployment of the plugin. | ||
|
|
||
| There are following output configurations possible: | ||
|
|
||
| * **Sinus**: sinus shaped output values. The datastream can be configured in Amplitude, Offset, Period and Phase. | ||
|
|
||
| * **Trapezoid**: trapezoid shaped output values. The datastream's On-Level, Off-Level, Period, On-Time, Rise-Time and Fall-Time can be configured. | ||
|
|
||
| * **Random**: generates random output values. Minimum and Maximum values can be configured. | ||
|
|
||
| .. image:: P187_Output_Combined.png | ||
| :alt: Output view | ||
|
|
||
|
|
||
| Configuration | ||
| ------------- | ||
|
|
||
| .. image:: P187_Config_Initial.png | ||
| :alt: Device configuration | ||
|
|
||
| * **Name**: Required by ESPEasy, must be unique among the list of available devices/tasks. | ||
|
|
||
| * **Enabled**: The device can be disabled or enabled. When not enabled, no output data is generated. | ||
|
|
||
| Device Settings | ||
| ^^^^^^^^^^^^^^^ | ||
|
|
||
| Depending on the selected 'Number Output values', up to four sections are used to configure the output values (press 'Submit' after changing) : | ||
|
|
||
| Output Sinus | ||
| ~~~~~~~~~~~~ | ||
|
|
||
| .. image:: P187_Config_Sinus.png | ||
| :alt: Output sinus configuration | ||
|
|
||
| * **Amplitude**: Amplitude of the signal (integer value -65537 to +65537) | ||
| * **Offset**: Offset from 0-Line (integer value -65537 to +65537) | ||
| * **Period**: period time in seconds (integer value 60 - 3600) | ||
| * **Phase**: phase offset in degrees (integer value 0 - 359) | ||
|
|
||
| .. image:: P187_Output_Sinus2.png | ||
| :alt: Output sinus view | ||
|
|
||
| - for floating value output, use formula to divide output levels (e.g. floating value output with 2 decimals use the formula '%value%/100') | ||
|
|
||
| Output Trapezoid | ||
| ~~~~~~~~~~~~~~~~ | ||
|
|
||
| .. image:: P187_Config_Trapezoid.png | ||
| :alt: Output trapezoid configuration | ||
|
|
||
| * **On-Level**: output level during On-Time period (integer value -65537 to +65537) | ||
| * **Off-Level**: output level during Off-Time period (integer value -65537 to +65537) | ||
| * **Period**: period time in seconds (must be greater than On-Time + Rise-Time + Fall-Time) | ||
| * **On-Time**: duration of On-Time period in seconds | ||
| * **Rise-Time**: duration of linear slope from Off-Level to On-Level | ||
| * **Fall-Time**: duration of linear slope from On-Level to Off-Level | ||
|
|
||
| .. image:: P187_Output_Trapezoid2.png | ||
| :alt: Output trapezoid view | ||
|
|
||
| - for inverted output, swap On-Level value with Off-Level value. | ||
| - for floating value output, use formula to divide output levels (e.g. floating value output with 2 decimals use the formula '%value%/100') | ||
|
|
||
| Output Random | ||
| ~~~~~~~~~~~~~ | ||
|
|
||
| .. image:: P187_Config_Random.png | ||
| :alt: Output random configuration | ||
|
|
||
| * **Max-Level**: maximum output level (integer value -65537 to +65537) | ||
| * **Min-Level**: minimum output level (integer value -65537 to +65537) | ||
|
|
||
| .. image:: P187_Output_Random2.png | ||
| :alt: Output random view | ||
|
|
||
| - for floating value output, use formula to divide output levels (e.g. floating value output with 2 decimals use the formula '%value%/100') | ||
|
|
||
| Change log | ||
| ---------- | ||
|
|
||
| .. versionadded:: 1.0 | ||
| ... | ||
|
|
||
| |added| | ||
| Initial release version. | ||
|
|
||
|
|
||
|
|
||
|
|
||
|
|
||
|
SuksAE marked this conversation as resolved.
Outdated
|
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.