You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
First of all, thanks for sharing!
I had trouble getting something to show up in the UI.
So by luck I went down the rabbit hole and the called the plugin code manually which presented me the error:
Traceback (most recent call last): File "/home/pi/oprint/lib/python3.7/site-packages/octoprint_emc2101/EMC2101.py.bck", line 50, in <module> print('{0:0.1f} | {1:0.1f}'.format(temperature, fanspeed)) NameError: name 'temperature' is not defined
1.) logged in as pi
2.) activated python source oprint/bin/activate
3.) tested the script python /home/pi/oprint/lib/python3.7/site-packages/octoprint_emc2101/EMC2101.py 0 0
4.) copied the script and played around (not a python guy)
First of all, thanks for sharing!
I had trouble getting something to show up in the UI.
So by luck I went down the rabbit hole and the called the plugin code manually which presented me the error:
Traceback (most recent call last): File "/home/pi/oprint/lib/python3.7/site-packages/octoprint_emc2101/EMC2101.py.bck", line 50, in <module> print('{0:0.1f} | {1:0.1f}'.format(temperature, fanspeed)) NameError: name 'temperature' is not defined
1.) logged in as pi
2.) activated python
source oprint/bin/activate
3.) tested the script
python /home/pi/oprint/lib/python3.7/site-packages/octoprint_emc2101/EMC2101.py 0 0
4.) copied the script and played around (not a python guy)
I changed the following code block:
to
Now the script reports the temperature, bypassing the external or internal temperature call depending on the given flag, which failed in my case.
The text was updated successfully, but these errors were encountered: