I have bought DS18B20 with RJ45 port on its end. It is dumb idea to connect it directly to the Ethernet port on the Pi? I did so, tried reading the temperature (http://www.reuk.co.uk/DS18B20-Temperature-Sensor-with-Raspberry-Pi.htm) but I cannot see the sensor in the w1/devices..
So do I need some 1-Wire interface with Ethernet port as a middleware? Or would it be better idea to cut of the RJ45 and connect the sensor wia GPIO?
Thanks If something is not clear I'll be happy to provide more info. I am kind of a beginer in this stuff.
EDIT: So I cut off the RJ45 and discovered that my sensor has 4 wires (http://rpishop.cz/862-thickbox_default/1wire-teplotni-senzor-ruzne-delky.jpg). So far I tried both data wires separately as in the above mentioned tutorial, but the sensor does not appear to be registered correctly:
ls -l /sys/bus/w1/devices/ total 0 lrwxrwxrwx 1 root root 0 Jun 5 20:35 00-400000000000 -> ../../../devices/w1_bus_master1/00-400000000000 lrwxrwxrwx 1 root root 0 Jun 5 20:35 00-800000000000 -> ../../../devices/w1_bus_master1/00-800000000000 lrwxrwxrwx 1 root root 0 Jun 5 20:33 w1_bus_master1 -> ../../../devices/w1_bus_master1
As a pull-up resistor I've used two 18K in parallel.