{"id":655,"date":"2015-12-07T12:53:05","date_gmt":"2015-12-07T10:53:05","guid":{"rendered":"http:\/\/www.rocworks.at\/wordpress\/?p=655"},"modified":"2016-04-01T07:41:50","modified_gmt":"2016-04-01T05:41:50","slug":"wincc-oa-with-influxdb-grafana-docker-image-on-a-mac","status":"publish","type":"post","link":"https:\/\/www.rocworks.at\/wordpress\/?p=655","title":{"rendered":"WinCC OA Docker Image with InfluxDB &#038; Grafana &#8230;on a Mac&#8230;"},"content":{"rendered":"<p>On a Mac install the Docker Toolbox.<\/p>\n<p>https:\/\/www.docker.com\/docker-toolbox<\/p>\n<p>And click on the &#8220;DOCKER CLI&#8221;<\/p>\n<p><a href=\"http:\/\/www.rocworks.at\/wordpress\/wp-content\/uploads\/2015\/12\/Screen-Shot-2015-12-07-at-11.37.49.png\"><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter size-medium wp-image-656\" src=\"http:\/\/www.rocworks.at\/wordpress\/wp-content\/uploads\/2015\/12\/Screen-Shot-2015-12-07-at-11.37.49-300x224.png\" alt=\"Screen Shot 2015-12-07 at 11.37.49\" width=\"300\" height=\"224\" srcset=\"https:\/\/www.rocworks.at\/wordpress\/wp-content\/uploads\/2015\/12\/Screen-Shot-2015-12-07-at-11.37.49-300x224.png 300w, https:\/\/www.rocworks.at\/wordpress\/wp-content\/uploads\/2015\/12\/Screen-Shot-2015-12-07-at-11.37.49.png 704w\" sizes=\"auto, (max-width: 300px) 100vw, 300px\" \/><\/a><\/p>\n<p>The type:\u00a0docker run -d -p 3000:3000 &#8211;name oa1 vogler\/winccoa:influxdb startup<\/p>\n<p>Afterwards you will see your new container and at the preview you can already see the Grafana dashboard, click on it and it will open in your browser.<\/p>\n<p><a href=\"http:\/\/www.rocworks.at\/wordpress\/wp-content\/uploads\/2015\/12\/Screen-Shot-2015-12-07-at-11.41.24.png\"><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter wp-image-657 size-full\" src=\"http:\/\/www.rocworks.at\/wordpress\/wp-content\/uploads\/2015\/12\/Screen-Shot-2015-12-07-at-11.41.24.png\" alt=\"Screen Shot 2015-12-07 at 11.41.24\" width=\"703\" height=\"523\" srcset=\"https:\/\/www.rocworks.at\/wordpress\/wp-content\/uploads\/2015\/12\/Screen-Shot-2015-12-07-at-11.41.24.png 703w, https:\/\/www.rocworks.at\/wordpress\/wp-content\/uploads\/2015\/12\/Screen-Shot-2015-12-07-at-11.41.24-300x223.png 300w\" sizes=\"auto, (max-width: 703px) 100vw, 703px\" \/><\/a><\/p>\n<p><a href=\"http:\/\/www.rocworks.at\/wordpress\/wp-content\/uploads\/2015\/12\/Screen-Shot-2015-12-07-at-16.31.58.png\"><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter wp-image-662 size-full\" src=\"http:\/\/www.rocworks.at\/wordpress\/wp-content\/uploads\/2015\/12\/Screen-Shot-2015-12-07-at-16.31.58.png\" alt=\"Screen Shot 2015-12-07 at 16.31.58\" width=\"741\" height=\"310\" srcset=\"https:\/\/www.rocworks.at\/wordpress\/wp-content\/uploads\/2015\/12\/Screen-Shot-2015-12-07-at-16.31.58.png 741w, https:\/\/www.rocworks.at\/wordpress\/wp-content\/uploads\/2015\/12\/Screen-Shot-2015-12-07-at-16.31.58-300x126.png 300w\" sizes=\"auto, (max-width: 741px) 100vw, 741px\" \/><\/a><\/p>\n<p>You have now a running WinCC OA system which is logging some datapoints to the InfluxDB. There is a simple simulation script running which will set random values to Drive1.*<\/p>\n<p>To open the GEDI you have to go to the DOCKER CLI again and type:<\/p>\n<p>bash-3.2$ docker exec -ti oa1 \/bin\/bash<\/p>\n<p>You now have a bash in the WinCC OA Container. Set the DISPLAY variable to your client (mac). You need a X-Windows-Server on your client (and allow clients to open windows with &#8220;xhost +&#8221;). At the Mac you may use xquartz: http:\/\/www.xquartz.org<\/p>\n<p>dba3d5e6193f:\/ # export DISPLAY=macbookpro:0<\/p>\n<p>dba3d5e6193f:\/ # gedi &amp;<\/p>\n<p><a href=\"http:\/\/www.rocworks.at\/wordpress\/wp-content\/uploads\/2015\/12\/Screen-Shot-2015-12-07-at-11.48.47.png\"><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter wp-image-658 size-full\" src=\"http:\/\/www.rocworks.at\/wordpress\/wp-content\/uploads\/2015\/12\/Screen-Shot-2015-12-07-at-11.48.47.png\" alt=\"Screen Shot 2015-12-07 at 11.48.47\" width=\"797\" height=\"774\" srcset=\"https:\/\/www.rocworks.at\/wordpress\/wp-content\/uploads\/2015\/12\/Screen-Shot-2015-12-07-at-11.48.47.png 797w, https:\/\/www.rocworks.at\/wordpress\/wp-content\/uploads\/2015\/12\/Screen-Shot-2015-12-07-at-11.48.47-300x291.png 300w\" sizes=\"auto, (max-width: 797px) 100vw, 797px\" \/><\/a>or type &#8220;console&#8221;, it will open the WinCC OA Console.<\/p>\n<p>The NoSQL Logger&#8217;s configuration file is: \/proj\/NoSQL\/config\/config.logger<\/p>\n<p>There you can set the query part of what you wanna log into the InfluxDB. You can specify the FROM clause of a WinCC OA query, also remote queries are possible (if you connect another OA system to this system (distributed system)).<\/p>\n<p>Then you have to restart the NoSQL Database Logger &#8211; it is the WCCOAjava program you see in the console. Right, it is implemented in Java with a native API to WinCC OA.<\/p>\n<p><a href=\"http:\/\/www.rocworks.at\/wordpress\/wp-content\/uploads\/2015\/12\/Screen-Shot-2015-12-07-at-11.51.44.png\"><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter wp-image-659 size-full\" src=\"http:\/\/www.rocworks.at\/wordpress\/wp-content\/uploads\/2015\/12\/Screen-Shot-2015-12-07-at-11.51.44.png\" alt=\"Screen Shot 2015-12-07 at 11.51.44\" width=\"633\" height=\"367\" srcset=\"https:\/\/www.rocworks.at\/wordpress\/wp-content\/uploads\/2015\/12\/Screen-Shot-2015-12-07-at-11.51.44.png 633w, https:\/\/www.rocworks.at\/wordpress\/wp-content\/uploads\/2015\/12\/Screen-Shot-2015-12-07-at-11.51.44-300x174.png 300w\" sizes=\"auto, (max-width: 633px) 100vw, 633px\" \/><\/a><\/p>\n<p>Grafana can be used to create dashboards in a fast and easy way&#8230;<\/p>\n<p><a href=\"http:\/\/www.rocworks.at\/wordpress\/wp-content\/uploads\/2015\/12\/Screen-Shot-2015-12-07-at-17.09.13.png\"><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter size-large wp-image-668\" src=\"http:\/\/www.rocworks.at\/wordpress\/wp-content\/uploads\/2015\/12\/Screen-Shot-2015-12-07-at-17.09.13-1024x581.png\" alt=\"Screen Shot 2015-12-07 at 17.09.13\" width=\"604\" height=\"343\" srcset=\"https:\/\/www.rocworks.at\/wordpress\/wp-content\/uploads\/2015\/12\/Screen-Shot-2015-12-07-at-17.09.13-1024x581.png 1024w, https:\/\/www.rocworks.at\/wordpress\/wp-content\/uploads\/2015\/12\/Screen-Shot-2015-12-07-at-17.09.13-300x170.png 300w, https:\/\/www.rocworks.at\/wordpress\/wp-content\/uploads\/2015\/12\/Screen-Shot-2015-12-07-at-17.09.13.png 1116w\" sizes=\"auto, (max-width: 604px) 100vw, 604px\" \/><\/a><\/p>\n","protected":false},"excerpt":{"rendered":"<p>On a Mac install the Docker Toolbox. https:\/\/www.docker.com\/docker-toolbox And click on the &#8220;DOCKER CLI&#8221; The type:\u00a0docker run -d -p 3000:3000 &#8211;name oa1 vogler\/winccoa:influxdb startup Afterwards you will see your new container and at the preview you can already see the Grafana dashboard, click on it and it will open in your browser. You have now &hellip; <a href=\"https:\/\/www.rocworks.at\/wordpress\/?p=655\" class=\"more-link\">Continue reading <span class=\"screen-reader-text\">WinCC OA Docker Image with InfluxDB &#038; Grafana &#8230;on a Mac&#8230;<\/span><\/a><\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[29,3],"tags":[],"class_list":["post-655","post","type-post","status-publish","format-standard","hentry","category-bigdatanosql","category-wincc-oa"],"_links":{"self":[{"href":"https:\/\/www.rocworks.at\/wordpress\/index.php?rest_route=\/wp\/v2\/posts\/655","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.rocworks.at\/wordpress\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.rocworks.at\/wordpress\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.rocworks.at\/wordpress\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.rocworks.at\/wordpress\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=655"}],"version-history":[{"count":8,"href":"https:\/\/www.rocworks.at\/wordpress\/index.php?rest_route=\/wp\/v2\/posts\/655\/revisions"}],"predecessor-version":[{"id":669,"href":"https:\/\/www.rocworks.at\/wordpress\/index.php?rest_route=\/wp\/v2\/posts\/655\/revisions\/669"}],"wp:attachment":[{"href":"https:\/\/www.rocworks.at\/wordpress\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=655"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.rocworks.at\/wordpress\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=655"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.rocworks.at\/wordpress\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=655"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}