Added Raspberry Pi CPU Temp #404

Merged
sschueller merged 3 commits from master into master 2021-10-17 22:13:07 +01:00
sschueller commented 2021-02-20 19:33:18 +00:00 (Migrated from github.com)
This resolves https://github.com/vitormhenrique/OctoPrint-Enclosure/issues/367
tablatronix commented 2021-04-25 20:40:52 +01:00 (Migrated from github.com)

hmm, what would cause this?

2021-04-25 19:39:58,088 - octoprint.plugin.core - ERROR - Error loading plugin enclosure
Traceback (most recent call last):
  File "/home/pi/oprint/local/lib/python2.7/site-packages/octoprint/plugin/core.py", line 1264, in _import_plugin
    module = _load_module(module_name, spec)
  File "/home/pi/oprint/local/lib/python2.7/site-packages/octoprint/plugin/core.py", line 69, in _load_module
    return imp.load_module(name, f, filename, details)
  File "/home/pi/oprint/local/lib/python2.7/site-packages/octoprint_enclosure/__init__.py", line 24, in <module>
    from .getPiTemp import PiTemp
  File "/home/pi/oprint/local/lib/python2.7/site-packages/octoprint_enclosure/getPiTemp.py", line 1, in <module>
    from gpiozero import CPUTemperature
ImportError: No module named gpiozero

hmm, what would cause this? ```php 2021-04-25 19:39:58,088 - octoprint.plugin.core - ERROR - Error loading plugin enclosure Traceback (most recent call last): File "/home/pi/oprint/local/lib/python2.7/site-packages/octoprint/plugin/core.py", line 1264, in _import_plugin module = _load_module(module_name, spec) File "/home/pi/oprint/local/lib/python2.7/site-packages/octoprint/plugin/core.py", line 69, in _load_module return imp.load_module(name, f, filename, details) File "/home/pi/oprint/local/lib/python2.7/site-packages/octoprint_enclosure/__init__.py", line 24, in <module> from .getPiTemp import PiTemp File "/home/pi/oprint/local/lib/python2.7/site-packages/octoprint_enclosure/getPiTemp.py", line 1, in <module> from gpiozero import CPUTemperature ImportError: No module named gpiozero ```
sschueller commented 2021-04-25 21:11:03 +01:00 (Migrated from github.com)

You are probably missing gpiozero. See https://gpiozero.readthedocs.io/en/stable/installing.html

You are probably missing gpiozero. See https://gpiozero.readthedocs.io/en/stable/installing.html
tablatronix commented 2021-04-25 22:38:10 +01:00 (Migrated from github.com)

My problem was my octopi is old and my python is 2.7, and no gpiozero, gonna just update first

My problem was my octopi is old and my python is 2.7, and no gpiozero, gonna just update first
krudoy commented 2021-04-27 15:48:28 +01:00 (Migrated from github.com)

Can you please explain for idiots like me - how can I set up input to use CPU temp?

Can you please explain for idiots like me - how can I set up input to use CPU temp?
tablatronix commented 2021-04-27 21:56:46 +01:00 (Migrated from github.com)

Use the plugin install get more where you add a custom url and use this
https://github.com/sschueller/OctoPrint-Enclosure/archive/refs/heads/master.zip

Use the plugin install get more where you add a custom url and use this https://github.com/sschueller/OctoPrint-Enclosure/archive/refs/heads/master.zip
vitormhenrique commented 2021-10-13 18:39:51 +01:00 (Migrated from github.com)

@sschueller could you please fix the conflict on the PR?
I'm wanna get this in the master

@sschueller could you please fix the conflict on the PR? I'm wanna get this in the master
sschueller commented 2021-10-13 20:27:22 +01:00 (Migrated from github.com)

@sschueller could you please fix the conflict on the PR? I'm wanna get this in the master

Should be all set now. Thanks

> @sschueller could you please fix the conflict on the PR? I'm wanna get this in the master Should be all set now. Thanks
Sign in to join this conversation.
No Reviewers
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: Gandalf/OctoPrint-Enclosure#404