Skip to content
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

Implemented GPIO #404

Draft
wants to merge 3 commits into
base: master
Choose a base branch
from
Draft

Conversation

RPGFabi
Copy link

@RPGFabi RPGFabi commented Jun 7, 2022

  • Created own GPIO-Control to split up GPIO from Telegram
  • Added GPIO-Command /gpio_XXX_YYY XXX is either info or the Pin, YYY is the action (toggle, off, on)
  • Implemented new Settings and changed SettingsVersion to 6
  • Changed Settings Migration so that it creates the default variable when migrating
  • Implemented Defaultsettings for GPIO-Side
  • Created CSS-File for GPIO
  • Created JS-File for GPIO
  • Created Own Settings Jinja-File so that the GPIO-Settings are in an own Settings Tab => Layout of the Settings is WIP => Not beautyfull but functional
  • Created GPIO Tab so that the User can interact with thoose Pins from an Tab

Now the new Functions:

  1. Add an Pin as Input/Output with Pullup/-down, BounceTime and DefaultStates
  2. Add Integervariables to use in Logic so that you can do counters, AND, OR as well as some other Logic.
  3. Add Actions. Theese can be as simple as an Message via Telegram or Activate, Deactivate or Toggle an Pin. You can also set an Emergency message (Message will be sent x*y times with an Delay of Z Secconds. Other Options are for the Printer (GCode, Pause, Resume, Abort, Set Temperature, Home Printer or do some VariableAction. Theese Action are either Triggered by an Pin, an Event or an Variable Condition.

Hope I didnt forgett anything.

RPGFabi added 3 commits June 7, 2022 12:53
- Created own GPIO-Control to split up GPIO from Telegram
- Added GPIO-Command /gpio_XXX_YYY XXX is either info or the Pin, YYY is the action (toggle, off, on)
- Implemented new Settings and changed SettingsVersion to 6
- Changed Settings Migration so that it creates the default variable when migrating
- Implemented Defaultsettings for GPIO-Side
- Created CSS-File for GPIO
- Created JS-File for GPIO
- Created Own Settings Jinja-File so that the GPIO-Settings are in an own Settings Tab => Layout of the Settings is WIP => Not beautyfull but functional
- Created GPIO Tab so that the User can interact with thoose Pins from an Tab

Now the new Functions:
1. Add an Pin as Input/Output with Pullup/-down, BounceTime and DefaultStates
2. Add Integervariables to use in Logic so that you can do counters, AND, OR as well as some other Logic.
3. Add Actions. Theese can be as simple as an Message via Telegram or Activate, Deactivate or Toggle an Pin. You can also set an Emergency message (Message will be sent x*y times with an Delay of Z Secconds. Other Options are for the Printer (GCode, Pause, Resume, Abort, Set Temperature, Home Printer or do some VariableAction. Theese Action are either Triggered by an Pin, an Event or an Variable Condition.

Hope I didnt forgett anything.
- Can now send the Variable via Telegram
- Now the Logic runs in an Thread:

Event or triggerAction start Thread via threadedTriggerLogic. now it triggeres Logic after Time and if an Variable got changed it triggeres threadedtriggerLogic (this time not as thread since it is already).
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant