User Tools

Site Tools


how_to_setup_one_wire_projects_on_raspberry_pi

Setup One Wire projects on Rasperry Pi

These are some notes on how to setup various of my developments regarding OWFS on a Raspberry Pi.

Install required packages.

apt-get install fcgiwrap
apt-get install ferm lzma nullmailer vim unattended-upgrades #for convenience

OWST

  • Download phpliteadmin from https://code.google.com/p/phpliteadmin/
    • In phplieadmin's configuration file set $directory = '/var/lib/owst/'
  • Create sqlite3 database as well as log and lock file and set permissions
  • Insert into the databases' table switch the One-Write Switch you want to control
    • ow_type e.g. DS2413
    • ow_address e.g. 3A.B36249000000
    • ow_pio e.g. PIO.B

1w Monitoring

  • test with 1wgetValues.pl
  • run 1wSensorMon.pl, you get an error that the rrd-file cannot be opened, but that's OK, check /srv/1wMonitoring/sensors.txt
  • execute libexec/gen_rrd_create.pl - run the output as a command
  • execute 1wSensorMon.pl - no error this time
  • activate cron job
    */5 * * * *     root    1wSensorMon.pl    2> /dev/null
how_to_setup_one_wire_projects_on_raspberry_pi.txt · Last modified: 2020/04/08 08:35 by admin