Skip to content
This repository has been archived by the owner on Nov 23, 2023. It is now read-only.

3.4. example for ioBroker

roobbb edited this page Oct 8, 2021 · 3 revisions

example when ioBroker runs in a container with a user-defined-network

  • add a new user-defined-network

    docker network create testnet
    
  • edit owfs.example and change server ip-address from 127.0.0.1 to the name of the docker container which we want to start (owserver) or its network-alias (myowserver), even the server's port should be the same as what we want to map

  • start owserver-container with new network and alias and map ports as required

    docker run -d \
       --rm \
       --name=owserver \
       --net=testnet \
       --network-alias myowserver \
       -p 2121:2121 \
       -v /etc/localtime:/etc/localtime:ro \
       -v ~/docker/owserver:/root/.local/share \
       -e CUSTOM_CONFIG_ENABLED=1 \
       -e CUSTOM_CONFIG_FILE=/root/.local/share/owfs.example \
    roobbb/owserver:latest
    
  • only port 2121 will be exposed here, just for easy testing if it is reachable

  • check if the web-interface is reachable via http://yourHostIP:2121/ or via http://localhost:2121/

  • the other ports like 4303 for data connection will be available inside the user-defined-network (testnet) only


  • create a local folder on your host for easier testing and accessing files in any location you want and point to actual path inside the docker call

  • the following docker call is just for demonstrating, please take a look into the official docs found here https://github.com/buanet/ioBroker.docker

    docker run -d \
        --rm \
       --name=iobroker \
       --net=testnet \
       --network-alias myoib \
        -p 8081:8081 \
        -v yourlocalpath:/opt/iobroker \
        -v /etc/localtime:/etc/localtime:ro \
        -v /etc/timezone:/etc/timezone:ro \
       buanet/iobroker:latest
    
  • ioBroker should now be reachable via http://yourHostIP:8081

  • after finishing the initial setup go to "Adapters" and start filtering with "1wi.."

  • click the button with 3 points within "1Wire OWFS" tile

  • hit the + sign for "Add instance" and close the installation popup box after it's finished the setup

  • in the following screen enter owserver alias as defined above (e.g. myowserver) and change port if neccessary

  • click save+close

  • under Instances appears a new entry with "owfs.0" or something similar, start that instance by clicking the red play button and it should turn all green

  • click the tool symbol for settings what open the already known settings page and click "WIRES ADDRESSES" there

  • in that screen click the reload/ refresh sign and all bus attached sensors should appear (or even the faked sensors for testing), there my be two sensors sensor1/2 which seems to come from ioBroker itself - ignore/ delete them

  • click save + close and go to Objects and open the new owfs-tree; your 1-wire devices should show their values after a short moment

  • start your further setups