Git Product home page Git Product logo

Comments (13)

gulliverrr avatar gulliverrr commented on May 3, 2024

Which version is working for you as the latest does not work for me?

from octoprint-ledstripcontrol.

precision avatar precision commented on May 3, 2024

Hrm, it sounds maybe a version itis type thing in ~/.octoprint/config.yaml. If you know your GPIO pins try removing everything from there and let it set up fresh values.

from octoprint-ledstripcontrol.

precision avatar precision commented on May 3, 2024

I need more info to diagnose this, can you grab the octoprint.log for me?

from octoprint-ledstripcontrol.

ShagoY avatar ShagoY commented on May 3, 2024

OctoPrint Version 1.3.7rc3

2018-03-31 01:58:46,484 - octoprint.plugins.LEDStripControl - DEBUG - LEDStripControl on_settings_save()
2018-03-31 01:58:46,486 - octoprint.plugins.LEDStripControl - DEBUG - _unregister_leds()
2018-03-31 01:58:46,491 - octoprint.plugins.LEDStripControl - DEBUG - _register_leds()
2018-03-31 01:58:46,493 - octoprint.plugins.LEDStripControl - DEBUG - got pin(13)
2018-03-31 01:58:46,494 - octoprint.plugins.LEDStripControl - DEBUG - _setup_pin(13)
2018-03-31 01:58:46,497 - octoprint.server.api.settings - ERROR - Could not save settings for plugin LED Strip Control (0.3.3)
Traceback (most recent call last):
File "/home/pi/oprint/local/lib/python2.7/site-packages/octoprint/server/api/settings.py", line 485, in _saveSettings
plugin.on_settings_save(data["plugins"][plugin_id])
File "/home/pi/oprint/local/lib/python2.7/site-packages/octoprint_LEDStripControl/init.py", line 182, in on_settings_save
self._register_leds()
File "/home/pi/oprint/local/lib/python2.7/site-packages/octoprint_LEDStripControl/init.py", line 117, in _register_leds
self._leds[i] = self._setup_pin(pin)
File "/home/pi/oprint/local/lib/python2.7/site-packages/octoprint_LEDStripControl/init.py", line 95, in _setup_pin
p.start(startup)
ValueError: dutycycle must have a value from 0.0 to 100.0

from octoprint-ledstripcontrol.

precision avatar precision commented on May 3, 2024

from octoprint-ledstripcontrol.

precision avatar precision commented on May 3, 2024

I just commited a quick fix that I think will work. I won't be back at my printer witht the LEDs on it to test this out by hand. Sorry about the flakiness of this, I should have reverted the initial patch that caused this instead of trying to fix it on the fly.

from octoprint-ledstripcontrol.

ShagoY avatar ShagoY commented on May 3, 2024

OctoPrint 1.3.6
octoprint.util.pip - INFO - Version of pip is 9.0.1
LED Strip Control (0.3.4) = /home/pi/oprint/local/lib/python2.7/site-packages/octoprint_LEDStripControl

no change :

2018-04-01 - py.warnings - WARNING - /home/pi/oprint/local/lib/python2.7/site-packages/octoprint_LEDStripControl/init.py:109: RuntimeWarning: No channels have been set up yet - nothing to clean up! Try cleaning up at the end of your program instead!
GPIO.cleanup()

2018-04-01 - octoprint.server.api.settings - ERROR - Could not save settings for plugin LED Strip Control (0.3.4)
Traceback (most recent call last):
File "/home/pi/oprint/local/lib/python2.7/site-packages/OctoPrint-1.3.6-py2.7.egg/octoprint/server/api/settings.py", line 462, in _saveSettings
plugin.on_settings_save(data["plugins"][plugin_id])
File "/home/pi/oprint/local/lib/python2.7/site-packages/octoprint_LEDStripControl/init.py", line 182, in on_settings_save
self._register_leds()
File "/home/pi/oprint/local/lib/python2.7/site-packages/octoprint_LEDStripControl/init.py", line 117, in _register_leds
self._leds[i] = self._setup_pin(pin)
File "/home/pi/oprint/local/lib/python2.7/site-packages/octoprint_LEDStripControl/init.py", line 94, in _setup_pin
p = GPIO.PWM(pin, float(startup))
ValueError: frequency must be greater than 0.0

config.yaml :
plugins:
LEDStripControl:
_config_version: 1
b: 13
g: 15
on_startup: false
r: 11

from octoprint-ledstripcontrol.

precision avatar precision commented on May 3, 2024

@ShagoY if you could, please try 0.3.5 which I just pushed in that commit.

from octoprint-ledstripcontrol.

ShagoY avatar ShagoY commented on May 3, 2024

I delete entry on my config.yaml after reinstalling but when i change value, i got the same error :

LED Strip Control (0.3.5) = /home/pi/oprint/local/lib/python2.7/site-packages/octoprint_LEDStripControl

py.warnings - WARNING - /home/pi/oprint/local/lib/python2.7/site-packages/octoprint_LEDStripControl/init.py:109: RuntimeWarning: No channels have been set up yet - nothing to clean up! Try cleaning up at the end of your program instead!
GPIO.cleanup()

octoprint.server.api.settings - ERROR - Could not save settings for plugin LED Strip Control (0.3.5)
Traceback (most recent call last):
File "/home/pi/oprint/local/lib/python2.7/site-packages/OctoPrint-1.3.6-py2.7.egg/octoprint/server/api/settings.py", line 462, in _saveSettings
plugin.on_settings_save(data["plugins"][plugin_id])
File "/home/pi/oprint/local/lib/python2.7/site-packages/octoprint_LEDStripControl/init.py", line 182, in on_settings_save
self._register_leds()
File "/home/pi/oprint/local/lib/python2.7/site-packages/octoprint_LEDStripControl/init.py", line 117, in _register_leds
self._leds[i] = self._setup_pin(pin)
File "/home/pi/oprint/local/lib/python2.7/site-packages/octoprint_LEDStripControl/init.py", line 95, in _setup_pin
p.start(float(startup))
ValueError: dutycycle must have a value from 0.0 to 100.0

When i try gcode :
octoprint.util.comm - ERROR - Error while processing hook LEDStripControl for phase queuing and command M150 B255:
Traceback (most recent call last):
File "/home/pi/oprint/local/lib/python2.7/site-packages/OctoPrint-1.3.6-py2.7.egg/octoprint/util/comm.py", line 2419, in _process_command_phase
hook_results = hook(self, phase, command, command_type, gcode, subcode=subcode)
File "/home/pi/oprint/local/lib/python2.7/site-packages/octoprint_LEDStripControl/init.py", line 150, in HandleM150
if self._leds[l]:
KeyError: 'w'

BTW i was roolback to octoprint 1.3.6.

from octoprint-ledstripcontrol.

precision avatar precision commented on May 3, 2024

Thank you for testing for me. I'm going to setup a RPi.GPIO system tomorrow and get this fixed once and for all.

from octoprint-ledstripcontrol.

precision avatar precision commented on May 3, 2024

I just uploaded a new version. I didn't realize that Octoprint wouldn't transparently migrate configurations to new settings. I tested this version with old (RGB) configurations under both pigpiod and rpi.gpio and they upgraded and worked fine. It should install as 0.3.6.

from octoprint-ledstripcontrol.

ShagoY avatar ShagoY commented on May 3, 2024

No more error on log. thx

from octoprint-ledstripcontrol.

precision avatar precision commented on May 3, 2024

Great to hear, thanks!

from octoprint-ledstripcontrol.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.