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

Can't save settings #66

Open
derekantrican opened this issue Dec 30, 2022 · 2 comments
Open

Can't save settings #66

derekantrican opened this issue Dec 30, 2022 · 2 comments

Comments

@derekantrican
Copy link

derekantrican commented Dec 30, 2022

Just installed this plugin. Connected the sensor. Restarted Octoprint. Set Pin number to "11" and clicked "Save". Upon opening the settings back up, none of the settings were saved.

octoprint.log shows the following error:

2022-12-30 05:22:39,141 - octoprint.plugins.filamentsensorsimplified - INFO - Saving settings for Filament Sensor Simplified
2022-12-30 05:22:39,150 - octoprint.server.api.settings - ERROR - Could not save settings for plugin Filament Sensor Simplified (0.3.3)
Traceback (most recent call last):
  File "/home/pi/oprint/lib/python3.7/site-packages/octoprint/server/api/settings.py", line 1139, in _saveSettings
    plugin.on_settings_save(data["plugins"][plugin_id])
  File "/home/pi/oprint/lib/python3.7/site-packages/octoprint/util/__init__.py", line 1688, in wrapper
    return f(*args, **kwargs)
  File "/home/pi/oprint/lib/python3.7/site-packages/octoprint_filamentsensorsimplified/__init__.py", line 284, in on_settings_save
    usage = GPIO.gpio_function(pin_to_save)
RuntimeError: Please set pin numbering mode using GPIO.setmode(GPIO.BOARD) or GPIO.setmode(GPIO.BCM)

Screen recording:

@derekantrican
Copy link
Author

Ok, upon changing the "Board mode" to "GPIO/BCM mode" and saving again, it seems to have saved. But now it seems to be stuck on that setting:

image

What does this mean?

Also, seems like something with the default value needs to be fixed with that dropdown if the saving isn't working

@loroff
Copy link

loroff commented Jan 25, 2023

bonjours moi j avais le meme probleme j ai desinstallé le plug in Exclude Region et apres sa fonctionné pourquoi ? je ne sais pas

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

No branches or pull requests

2 participants