Comments (13)
Which version is working for you as the latest does not work for me?
from octoprint-ledstripcontrol.
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.
I need more info to diagnose this, can you grab the octoprint.log for me?
from octoprint-ledstripcontrol.
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.
from octoprint-ledstripcontrol.
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.
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.
@ShagoY if you could, please try 0.3.5 which I just pushed in that commit.
from octoprint-ledstripcontrol.
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.
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.
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.
No more error on log. thx
from octoprint-ledstripcontrol.
Great to hear, thanks!
from octoprint-ledstripcontrol.
Related Issues (20)
- Problem LEDStripControl
- KeyError: 'w' HOT 7
- adressable leds HOT 1
- add a button on octopi page to light on/off the led HOT 1
- Cannot trigger with M150 command (Prusa I3 Mk2s) HOT 9
- M150 Codes Ignored By Terminal HOT 2
- Help HOT 1
- Cabling + Compatibility Ender 3 HOT 9
- Just a simple white LED strip HOT 3
- Orange Pi Support HOT 4
- Unable To Save Config Without Reboot Then Freeze HOT 7
- Wrong link for pigpiod.
- After updating to newest octoprint version - only HOT 13
- After install, Octoprint can't start up HOT 5
- Documentation link not working HOT 2
- Not running consistently HOT 8
- Not an actual issue, more of a question. HOT 1
- Plug-in enables two lights per one M150 command HOT 3
- Settings will not save and octo hangs
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from octoprint-ledstripcontrol.