From d32e54fba3acd89c3aa9c274d6854a825a93af7f Mon Sep 17 00:00:00 2001 From: Roy Hooper Date: Fri, 16 Mar 2018 22:49:47 -0400 Subject: [PATCH] make instructions a little easier for those that are forgetful --- README.md | 7 ++++++- octoprint_enclosure/templates/enclosure_settings.jinja2 | 2 +- 2 files changed, 7 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index b06bb89..8eb51a6 100644 --- a/README.md +++ b/README.md @@ -66,6 +66,11 @@ Start by adding the following line to /boot/config.txt
dtoverlay=w1-gpio
+After rebooting, you can check if the OneWire device was found properly with +
dmesg | grep w1-gpip
+You should see something like +
[    3.030368] w1-gpio onewire@0: gpio pin 4, external pullup pin -1, parasitic power 0
+ You should be able to test your sensor by rebooting your system with sudo reboot. When the Pi is back up and you're logged in again, type the commands you see below into a terminal window. When you are in the 'devices' directory, the directory starting '28-' may have a different name, so cd to the name of whatever directory is there.
sudo modprobe w1-gpio
@@ -77,7 +82,7 @@ cat w1_slave
The response will either have YES or NO at the end of the first line. If it is yes, then the temperature will be at the end of the second line, in 1/000 degrees C. -Copy the serial number, you will need to configure the plugin +Copy the serial number, you will need to configure the plugin. Note that for the serial number includes the 28-, for example 28-0000069834ff. * For the SI7021, BME280 and TMP102 sensors diff --git a/octoprint_enclosure/templates/enclosure_settings.jinja2 b/octoprint_enclosure/templates/enclosure_settings.jinja2 index 1be738a..7b7fa4f 100644 --- a/octoprint_enclosure/templates/enclosure_settings.jinja2 +++ b/octoprint_enclosure/templates/enclosure_settings.jinja2 @@ -500,7 +500,7 @@
DS18B20 serial value, needs to be used to have support for multiple sensors, read documentation on github page - for more information + for more information. The serial is typically in the form of 28-0123456789ab.