-
Notifications
You must be signed in to change notification settings - Fork 113
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
Button at the top of OctoPi interface stopped working #180
Comments
Same for me, thank your for opening a ticket. was on bcm14 (TX UART) and thought this was the problem. Switched to BCM4(GPIO) and tried with many settings. Switching with invert button does work but not on the mentioned button on top of Octoprint GUI |
I have the same issue. Relay is connected to pin 16 on RPi3b. Before update in the settings I had selected GPIO Pin 16, after update I had to change it to 23. |
Got pretty much the same problem. Log says this after clicking button: octoprint | 2021-04-16 11:10:16,915 - octoprint.plugins.psucontrol - INFO - Switching PSU On |
Sadly, this method just allows the button to turn green, but it doesn't actually affect my printer in any way. |
I can't reproduce. Please provide the following info: Version of OctoPrint-PSUControlOperating System running OctoPrintPrinter model & used firmware incl. versionLink to octoprint.log with octoprnt.plugins.psucontrol set to DEBUGBrowser console logs ( See https://www.wickedlysmart.com/hfjsconsole/ ) |
I send all needed data as soon as possible, but it will take a while. |
I do use other plugins that use RPi.GPIO including my own. Plugin works with the newer builtin GPIO and a sub plugin that maintains RPi.GPIO. Once I get some logs I should be able to see something or have something to work from. |
This latest version doesn't work for me either. The previous version worked like a charm. I wished this was tested more thoroughly. |
Got any logs to provide or would you rather it's never fixed? |
It's happening to me too. When I press the button logs show: 2021-04-16 13:54:38,960 - octoprint.plugins.psucontrol - INFO - Switching PSU On I also get the following when trying the plugin 2021-04-16 13:57:16,727 - octoprint.plugins.psucontrol - INFO - Switching PSU On My power is on pin 18 (GPIO24) with a pi 4b. |
Version of OctoPrint-PSUControlOperating System running OctoPrintPrinter model & used firmware incl. versionLink to octoprint.log with octoprnt.plugins.psucontrol set to DEBUGBrowser console logs ( See https://www.wickedlysmart.com/hfjsconsole/ ) |
If I "invert" the pin I get 2021-04-16 14:02:38,731 - octoprint.plugins.psucontrol - INFO - Switching PSU Off |
by playing with it a lot and not using plug. The PSU is now on and button is green. When I press the button to turn off I get: 2021-04-16 14:04:40,740 - octoprint.plugins.psucontrol - INFO - Switching PSU Off and the PSU stays on. |
Sorry @kantlivelong, my comment was uncalled for. I'll post my logs soon. |
1.0.0
OctoPrint 1.5.3 - Python 2.7.13 - OctoPi 0.16.0
Shouldn't matter as the printer is not even connected or powered at this point, but: Mendel 90 running Marlin 2.0.7
|
I was able to fix things by editing /boot/config.txt and adding the following at the end: gpio=24=op,dh This forces the GPIO24 to be an output. PSU control button now works. |
Note above fix was with using the plugin. Does not work without plugin and change to /boot/config.txt |
Also a full pi reboot was required for /boot/config.txt change to take affect. |
@Arakon THANK YOU 🥇 Give this build a try: https://github.com/kantlivelong/OctoPrint-PSUControl/archive/refs/heads/issue_180_fix.zip |
You shouldn't need to do this. Revert the change and give the build linked above a try. |
Seems to not have worked with the new version. Also, on a side note, when installing the GPIO Plugin, Octoprint wants to refresh, but for the plugin to show up properly and work, it actually needs to restart octoprint completely. |
My bad, goofed on the push. Retry if you can :) |
Raspberry Pi 4 |
That did the trick. However, the printer now turns on automatically as soon as Octoprint starts up, while the button assumes it is turned off. So you have to press the button once to make it believe it's on, and then again to turn it off. |
This should fix that. Hopefully that's all but 🤷 https://github.com/kantlivelong/OctoPrint-PSUControl/archive/refs/heads/issue_180_fix.zip |
Yup, seems to work as intended now. |
Once I get a few other confirmations I'll push this out as 1.0.1. |
Can confirm the button works now. "Invert sensing" option appears fixed too, since it doesn't change the output gpio state anymore. Sensing on same Pin doesn't work for me, but I am sure thats not related to this issue here. |
Kind of expected since the pin shouldn't be setup as both an output and an input. Really better off using Internal mode. If anything that can be enhanced. |
It worked with the old method though. If you read an output, it should return the last written value. Not sure how thats implemented in Python-Periphery. If thats a different command to the one used for sensing, could you implement it? |
Opened #182 . For now use Internal for sensing. |
Okay. I took out my /boot/config.txt fix. Rebooted the pi then installed your 180 fix and everything is working now. Thank you very much! |
Will do. Thanks for opening and thank you for the quick fix of this. |
Set initial GPIO output valued based on invertonoffGPIOPin #180
The fix did the trick, switched to internal sensing and it works now. |
I'm on PSU control 1.0.0 I was able to get the pin to toggle when I disabled the Filament Sensors Revolutions plugin (only other thing using the GPIO) I guess I test the patch next... |
I can confirm also that the fix in the zip file above works as expected. |
Version 1.0.1 has been released which addresses this. |
I'm using a Mendel 90 with this wiring setup (minus the lights): https://hydraraptor.blogspot.com/2014/06/lights-camera-action.html
I'm using a Raspberry 3b, with the power on wire connected to physical pin 22/GPIO25.
After updating to PSUControl 1.0.0, the plugin stopped working for me.
After experimenting a bit, I found that GPIO25 will switch the printer on once I set it to 25 and Save, and off when I select "Invert" and save.
However, the lightning bolt button at the top of the OctoPi interface has no function at all anymore for me, only way to turn the printer on or off is to go into settings and toggle the "Invert" setting on or off.
The text was updated successfully, but these errors were encountered: