l00ma / OctoPrint-roomTemp

Octopi : Displays room temperature in navbar
GNU Affero General Public License v3.0
10 stars 15 forks source link

Temperature not showing on RPi 3 #7

Open Benoit54 opened 7 years ago

Benoit54 commented 7 years ago

I just installed the plugin and no temperature is shown on the navbar.

My config :

I don't know why, but a cat /proc/cpuinfo return "Hardware : BCM2835" and not "BCM2709".

So I modified the line 35 in "init.py" :

Before : if match.group(1) == 'BCM2708' or match.group(1) == 'BCM2709':

After : if match.group(1) == 'BCM2708' or match.group(1) == 'BCM2709' or match.group(1) == 'BCM2835':

It's now working flawlessly on my Pi.

Maybe others have the same issue ?

Last but not least : thanks for your work !

Edit : I just see, after adding this issue, that someone else did the same thing in issue #6 https://github.com/l00ma/OctoPrint-roomTemp/issues/6

maserowik commented 7 years ago

I added the BCM2835 to the init.py but i still can not get the room temp to show up.

I been seeing a few issues with the BCM2835 PI3 lately i had the same problem with a different plug in. thanks Mike

n3qik commented 6 years ago

Where is the "init.py" file??

philinbris commented 6 years ago

I did exactly what Benoit54 did by adding the BCM2835 , removed the old room temp plugin, loaded the new one from local directory (must be a zipped up file of the directory cloned from here), restarted Octopi and room temp is now displayed. If its not working for you you must have a dead or incorrectly wired DS18B20 sensor. Here is version of the plugin which should be the same as the OP's OctoPrint-roomTemp-master.zip Phil

jaycollett commented 6 years ago

Thanks, ran into the same issue as OP, says I'm not running on a Raspberry PI 3, but I am. Loading the modified zip worked. This is fixed in the outstanding pull request #9. If the author would merge that change, the plug-in would work with the raspberry pi 3 without anybody modifying anything. I decided to fork this project and fix the hardware detection and add F/C option under settings. You can upload/install from the plugin manager by grabbing the zip from here: https://github.com/jaycollett/OctoPrint-roomTemp/

l00ma commented 6 years ago

Dear all, my apologies to be very very late with this answer. I'm not using Octopi since a while.