Skip to content

Releases: LuxuSam/PhysicalButton

Installation Fix for Python Versions < 3.8 - 29 February 2024

29 Feb 15:02
58b71c9
Compare
Choose a tag to compare

Release Notes - Version v0.6.2

This update addresses an issue where new installations would fail if the Python version used was below 3.8.

Bug Fixes:

  • Fixed an issue where new installations failed for users with Python versions below 3.8.
    • Ensure compatibility by using the appropriate version of gpiozero for older Python versions.

Happy button pushing!

For a quick guide on setting up the plugin, refer to the README file under Configuration - Overview.

Fix Enabled While Printing - 22 July 2022

22 Jul 16:36
Compare
Choose a tag to compare

This update fixes a problem with the option "Enable while printing".

Bug Fixes:

  • Enabled while printing did not disable the button when the option was deselected. It was actually the complete opposite and the button could then only be used while printing.

Happy button pushing!

A quick guide on how to set up the plugin can be found in the README file under Configuration - Overview.

Plugin Activity, Backup, Disable Buttons - 30 June 2022

30 Jun 09:56
Compare
Choose a tag to compare

New Features:

  • New activity - Plugin:
    • Plugin developers now have the ability to include functionality from their plugin into Physical Button!
    • How this can be done can be found here.
  • A new action has been added: unselect file.
  • "System Command" activity now uses a bash shell.
  • Buttons can now be disabled
  • Buttons can now be disabled while printing
  • A simple backup system has been added to save a file locally in order to later restore buttons. This also makes it possible to share configuration files with other people!
  • More precise descriptions have been added to the plugin repository page and here.

Bug Fixes:

  • None 🎉

Other Changes:

  • Some coding improvements:
    • distribute code into multiple files
    • use of Python coding guidelines

Happy button pushing!

A quick guide on how to set up the plugin can be found in the README file under Configuration - Overview.

Output Activity - 19 October 2021

19 Oct 12:38
Compare
Choose a tag to compare

New Features:

  • New activity - output:
    • You can add an activity to put a HIGH or LOW level or toggle it on an GPIO for a given amount of time
    • If a time of 0 is specified, the output will not toggle until reset by button push or settings save/OctoPrint start
    • Specify the value of the output pin when OctoPrint starts up or when a button is pushed
    • Possible to run asynchronously with following activities
  • New action - start latest:
    • This new action starts the latest uploaded file
    • Also available as toggle with cancel
  • Semi-automatic activity identifiers:
    • If no custom identifier was used, the plugin now sets an identifier depending on the activity
      • Action: uses action name if no custom name was specified
      • File: uses file name if no custom name was specified or if identifier contains a printable file format
      • Output: uses output gpio, time and value if no custom name was specified
      • Gcode/System: uses the first line of the command if the identifier is either 'New GCODE/System' or if it's empty

Bug Fixes:

  • None 🎉

Other Changes:

  • The settings interface now has a cleaner structure

Happy button pushing!

A quick guide on how to set up the plugin can be found in the README file under Configuration - Overview.

File Activity and other changes - 23 August 2021

23 Aug 10:25
Compare
Choose a tag to compare

New Features:

  • Added activity to select a file by specifying the path, by either

    • giving an absolute path to a file, for instance:
      /home/pi/Some/Folder/PhysicalButton.gcode
    • giving the relative path to a file inside the uploads folder, for instance:
      Some/Folder/PhysicalButton.gcode
    • giving the path to a file on the SD-card of the printer, for instance:
      @sd:Some/Folder/PhysicalButton.gcode
  • Added a new action, namely 'toggle start-cancel'

  • Added a check to see if an activity failed

    • If yes, the remaining activities will be aborted and an error message is written to octoprint.log

Bug Fixes:

  • If a GPIO was set to none, the buttons that would be set up afterwards were skipped
  • If a GPIO was set to none, the button reaction failed

Other Changes:

  • Renamed 'toggle pause' to 'toggle pause-resume' for clarity
    • If you are using that action, switch to the new one in the action configuration

Happy button pushing!

A quick guide on how to set up the plugin can be found in the README file under Configuration - Overview.

File Activity and other changes - 22 August 2021

22 Aug 17:28
Compare
Choose a tag to compare

New Features:

  • Added activity to select a file by specifying the path, by either

    • giving an absolute path to a file, for instance:
      /home/pi/Some/Folder/PhysicalButton.gcode
    • giving the relative path to a file inside the uploads folder, for instance:
      Some/Folder/PhysicalButton.gcode
    • giving the path to a file on the SD-card of the printer, for instance:
      @sd:Some/Folder/PhysicalButton.gcode
  • Added a new action, namely 'toggle start-cancel'

  • Added a check to see if an activity failed

    • if yes, the remaining activities will be aborted and an error message is written to octoprint.log

Bug Fixes:

  • If a GPIO was set to none, the buttons that would be set up afterwards were skipped

Other Changes:

  • Renamed 'toggle pause' to 'toggle pause-resume' for clarity
    • If you are using that action, switch to the new one in the action configuration

Happy button pushing!

A quick guide on how to set up the plugin can be found in the README file under Configuration - Overview.

Fix Cleanup Error - 17 August 2021

17 Aug 10:41
Compare
Choose a tag to compare

This updates fixes an error which could occur on cleaning up old settings.

Bug Fixes:

  • added missing argument to on_settings_cleanup()

Other Changes:

  • Added issue templates to GitHub, please use them accordingly :)

Happy button pushing!

A quick guide on how to set up the plugin can be found in the README file under Configuration.

New Action & Additional GPIOs & Bug Fix - 15 August 2021

15 Aug 17:24
Compare
Choose a tag to compare

New Features:

  • Added the pause toggle action. This action can be used to pause and resume a print using only one button.
  • Added GPIO14, GPIO15 and GPIO19 to the list of available pins, as these can also be used for simple button input.

Bug Fixes:

  • Added a check to skip a button configuration if GPIO is set to none. This previously resulted in an error on settings save.

Other Changes:

  • Added a note about the need of using sudo for some system commands.

Happy button pushing!

A quick guide on how to set up the plugin can be found in the README file under Configuration.

New Action & Additional GPIOs - 15 August 2021

15 Aug 15:47
Compare
Choose a tag to compare

New Features:

  • Added the pause toggle action. This action can be used to pause and resume a print using only one button.
  • Added GPIO14, GPIO15 and GPIO19 to the list of available pins, as these can also be used for simple button input.

Other Changes:

  • Added a note about the need of using sudo for some system commands.

Happy button pushing!

A quick guide on how to set up the plugin can be found in the README file under Configuration.

System Commands - 07 August 2021

07 Aug 16:21
Compare
Choose a tag to compare

This updates brings a new activity type to the plugin, namely System Commands.

The system activity can be used to execute any shell commands.

In addition GPIO 2 & 3 have been added to the list of available pins.

Thanks to @skobkars for the implementation!