Plugin for 1-Wire temperature sensor

XMLWordPrintable

    • Type: New Feature
    • Resolution: Deferred
    • Priority: Minor
    • Component/s: Datum
    • None
    • Environment:

      SolarNodeOS Deb 11 on RPi4

      There may be a good reason to gather environmental temperature data from reliable USB thermistors to use in many applications. An existing open-source software digitemp exists in the main Debian repo and on github which may be useful in supporting different devices.

      #install from bullseye repo
      sudo apt install digitemp

      #query device on /dev/ttyUSB0
      solar@solarnode:~$ sudo digitemp_DS9097 -q -a -o "%F" -i -s/dev/ttyUSB0
      288A3C450600002E : DS18B20 Temperature Sensor
      ROM #0 : 288A3C450600002E

      #this works to write 2 temberature values to a file
      sudo digitemp_DS9097 -v -i -s /dev/ttyUSB0 -t 0 -n 2 -l /home/jwgorman/temperature5.txt

      #example of file output from command above
      Sep 26 15:31:45 Sensor 0 C: 19.62 F: 67.32
      Temp. LSB : 0x3A
      Temp. MSB : 0x01
      TH : 0x4B
      TL : 0x46
      Config Reg. : 0x7F
      CRC : 0x42
      Sep 26 15:31:46 Sensor 0 C: 19.62 F: 67.32
      Temp. LSB : 0x3A
      Temp. MSB : 0x01
      TH : 0x4B
      TL : 0x46
      Config Reg. : 0x7F
      CRC : 0x42

            Assignee:
            Matt Magoffin
            Reporter:
            John Gorman
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved: