l00ma / OctoPrint-roomTemp

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

Fix for more Devices #9

Open eddieosi opened 6 years ago

eddieosi commented 6 years ago
  1. added "BCM2835" hardware detection for Raspberry Pi Model A, B, B+
  2. modified folder search to get also the "DS18S20" device family
krjone01 commented 4 years ago

This seems like a really bad policy of checking to see if we are on a pi. Every time new PI hardware releases this is probably going to have to be updated. What harm is there if we are not running on a pi? There is a check to see if the device file is present (if os.path.isfile(device_file)). Why not just set the temp to something like "No Device" in that case.