0

I've been following this simple tutorial to get a temperature reading from a raspberrypi, http://blog.vokiel.com/raspberry-pi-odczyt-temperatury-przez-nodejs/?lang=en

Under w1/devices, what I'm calling the address is the file where the value of the 1-wire bus is stored.

For example, the tutorial says

/sys/bus/w1/devices/28-00000249bf39 $ cat w1_slave 
c3 01 4b 46 7f ff 0d 10 2f : crc=2f YES
c3 01 4b 46 7f ff 0d 10 2f t=28187

Where the address is 28-00000249bf39. On my device, the address is 28-000004acb882. How are these addresses set? Is it possible to define your own?

pedalpete
  • 21,076
  • 45
  • 128
  • 239

2 Answers2

3

As the docs says:

Each Device has a Unique 64-Bit Serial Code Stored in an On-Board ROM

So you can't set your own.

Vokiel
  • 130
  • 2
  • 9
-2

To read the temperature from youre devide just type

cat 28.00000249bf39/temperature
Ahmed Ashour
  • 5,179
  • 10
  • 35
  • 56
Eriel72
  • 1
  • 3