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

Adopt OctoLight #1229

Merged
merged 6 commits into from
Sep 16, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 9 additions & 1 deletion _data/notices.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -227,4 +227,12 @@
text: Version 3.1.3+ of this plugin is available from a new maintainer, but your version still looks for updates at the
repository of the old maintainer. Please uninstall the old plugin from the plugin manager, then reinstall from the plugin
repository to update it. The release notes of the version by the new maintainer can be found at the "Read more..." link below.
link: https://github.com/derekantrican/OctoPrint-Webhooks/releases/tag/3.1.3
link: https://github.com/derekantrican/OctoPrint-Webhooks/releases/tag/3.1.3
- plugin: octolight
pluginversions: ["<0.1.5"]
versions: ["0.1.0", "0.1.1", "0.1.2", "0.1.3", "0.1.4"]
date: 2023-9-16 12:00:00Z
text: Version 0.1.5 of this plugin is available from a new maintainer, but your version still looks for updates at the
repository of the old maintainer. Please re-install the plugin from the repository to update and keeping your
settings. The release notes of the version by the new maintainer can be found at the "Read more..." link below.
link: https://github.com/thomst08/OctoLight/releases/tag/v0.1.5
4 changes: 3 additions & 1 deletion _data/update_check_overlays.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -51,4 +51,6 @@ SlicerSettingsParser:
user: larsjuhw
webhooks:
user: derekantrican
pip: https://github.com/derekantrican/OctoPrint-Webhooks/archive/{target_version}.zip
pip: https://github.com/derekantrican/OctoPrint-Webhooks/archive/{target_version}.zip
octolight:
user: thomst08
33 changes: 29 additions & 4 deletions _plugins/octolight.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,16 +5,17 @@ id: octolight
title: OctoLight
description: A simple plugin, that add's a button to the navbar, toggleing GPIO on the RPi. It can be used for turning on and off a light.
authors:
- Steven Thomson
- Žiga Kralj
#- second autor name
license: AGPLv3

# today's date in format YYYY-MM-DD, e.g.
date: 2021-01-18

homepage: https://github.com/gigibu5/OctoLight
source: https://github.com/gigibu5/OctoLight
archive: https://github.com/gigibu5/OctoLight/archive/master.zip
homepage: https://github.com/thomst08/OctoLight
source: https://github.com/thomst08/OctoLight
archive: https://github.com/thomst08/OctoLight/archive/master.zip

# Set this to true if your plugin uses the dependency_links setup parameter to include
# library versions not yet published on pypi. SHOULD ONLY BE USED IF THERE IS NO OTHER OPTION!
Expand Down Expand Up @@ -81,4 +82,28 @@ compatibility:

---

A simple plugin that adds a button to the navigation bar for toggleing a GPIO pin on the Raspberry Pi. I use it for turning ON and OFF the light on my 3D printer.
A simple plugin that adds a button to the navigation bar for toggling a GPIO pin on the Raspberry Pi. This plugin has the function to turn on or off based on a printer event or manually through a user interaction. Printer events can also trigger a light turn off after a specified time.

![WebUI interface](/assets/img/plugins/octolight/screenshoot.png)


## Configuration
![Settings panel](/assets/img/plugins/octolight/settings.png)

Curently, you can configure settings:
- `Light PIN`: The pin on the Raspberry Pi that the button controls.
- Default value: 13
- The pin number is saved in the **board layout naming** scheme (gray labels on the pinout image below).
- **!! IMPORTANT !!** The Raspberry Pi can only control the **GPIO** pins (orange labels on the pinout image below)
![Raspberry Pi GPIO](/assets/img/plugins/octolight/rpi_gpio.png)

- `Inverted output`: If true, the output will be inverted
- Usage: if you have a light, that is turned off when voltage is applied to the pin (wired in negative logic), you should turn on this option, so the light isn't on when you reboot your Raspberry Pi.

- `Setup Delay Turn off time`: This sets a time out for when the light will automatically turn its self off in an event
- Default value: 5
- Note: This value is in minutes

- `Setup Printer Events`: This allows you to select what you would like the light to do on a printer event
- Default is nothing
- Set the light to do nothing, turn on, turn off, or turn on then turn itself off after the delay time value
Binary file added assets/img/plugins/octolight/rpi_gpio.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added assets/img/plugins/octolight/settings.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading