{"id":184,"date":"2020-07-25T19:33:15","date_gmt":"2020-07-25T17:33:15","guid":{"rendered":"https:\/\/jbsoft.nl\/site\/?p=184"},"modified":"2021-06-04T09:12:14","modified_gmt":"2021-06-04T07:12:14","slug":"docker-support-for-omnik-data-logger","status":"publish","type":"post","link":"https:\/\/jbsoft.nl\/site\/docker-support-for-omnik-data-logger\/","title":{"rendered":"Docker support for Omnik data logger"},"content":{"rendered":"\n<p>Omnik data logger now also can be installed  in docker container. This makes it easy to integrate in a docker based environment. This is an alternative to using AppDaemon with HACS.<\/p>\n\n\n\n<h4 class=\"wp-block-heading\">Install the docker image<\/h4>\n\n\n\n<p>Use the command&nbsp;<code>docker pull jbouwh\/omnikdatalogger<\/code>&nbsp;to pull the latest image.<\/p>\n\n\n\n<p>To build image your self from git:<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>git clone https:\/\/github.com\/jbouwh\/omnikdatalogger\ncd omnikdatalogger\/\ndocker build --tag jbouwh\/omnikdatalogger:latest .\n<\/code><\/pre>\n\n\n\n<h4 class=\"wp-block-heading\"><a href=\"https:\/\/github.com\/jbouwh\/omnikdatalogger\/wiki\/Install-using-docker#running-the-image\"><\/a>Running the docker image<\/h4>\n\n\n\n<p>In the folowing example assumed is that the config file outside the container is at\u00c2\u00a0<code>\/home\/pi\/.omnik\/config.yaml<\/code>\u00c2\u00a0(user pi). In the docker image the user is\u00c2\u00a0<code>omnik<\/code>\u00c2\u00a0and the default location for the configuration inside the container is at\u00c2\u00a0<code>\/config\/config.yaml<\/code><\/p>\n\n\n\n<p>The -p option is only needed when the <code>localproxy<\/code> client is used with the <code>tcp_proxy<\/code> plugin.<\/p>\n\n\n\n<p>Use <code>--device<\/code> option to give direct access to a DSMR compliant USB monitoring cable. Alternatively use ser2net.<\/p>\n\n\n\n<p>Run image in the background using the following command:<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>docker run -d -v \/home\/pi\/.omnik\/config.yaml:\/config\/config.yaml -p 10004:10004 --device \/dev\/ttyUSB0 --name omnikdatalogger jbouwh\/omnikdatalogger:latest<\/code><\/pre>\n","protected":false},"excerpt":{"rendered":"<p>Omnik data logger now also can be installed in docker container. This makes it easy to integrate in a docker based environment. This is an alternative to using AppDaemon with HACS. Install the docker image Use the command&nbsp;docker pull jbouwh\/omnikdatalogger&nbsp;to pull the latest image. To build image your self from git: Running the docker image &hellip; <a href=\"https:\/\/jbsoft.nl\/site\/docker-support-for-omnik-data-logger\/\" class=\"more-link\">Continue reading<span class=\"screen-reader-text\"> &#8220;Docker support for Omnik data logger&#8221;<\/span><\/a><\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[2,19,14],"tags":[],"class_list":["post-184","post","type-post","status-publish","format-standard","hentry","category-anouncements","category-docker","category-omnik-datalogger"],"_links":{"self":[{"href":"https:\/\/jbsoft.nl\/site\/wp-json\/wp\/v2\/posts\/184","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/jbsoft.nl\/site\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/jbsoft.nl\/site\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/jbsoft.nl\/site\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/jbsoft.nl\/site\/wp-json\/wp\/v2\/comments?post=184"}],"version-history":[{"count":4,"href":"https:\/\/jbsoft.nl\/site\/wp-json\/wp\/v2\/posts\/184\/revisions"}],"predecessor-version":[{"id":327,"href":"https:\/\/jbsoft.nl\/site\/wp-json\/wp\/v2\/posts\/184\/revisions\/327"}],"wp:attachment":[{"href":"https:\/\/jbsoft.nl\/site\/wp-json\/wp\/v2\/media?parent=184"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/jbsoft.nl\/site\/wp-json\/wp\/v2\/categories?post=184"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/jbsoft.nl\/site\/wp-json\/wp\/v2\/tags?post=184"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}