<?xml version="1.0" encoding="utf-8"?><feed xmlns="http://www.w3.org/2005/Atom" xml:lang="ko# the language of your site, default as "en""><generator uri="https://jekyllrb.com/" version="3.8.7">Jekyll</generator><link href="https://dataignitelab.github.io//feed.xml" rel="self" type="application/atom+xml" /><link href="https://dataignitelab.github.io//" rel="alternate" type="text/html" hreflang="ko# the language of your site, default as "en"" /><updated>2020-07-10T15:58:36+09:00</updated><id>https://dataignitelab.github.io//feed.xml</id><title type="html">Whaleshark Project</title><subtitle>whaleshark IIoT AI, Bigdata, IIoT Project powered by add4sys</subtitle><author><name>prismdata</name></author><entry><title type="html">IIoT를 위한 데이터 수집 시스템</title><link href="https://dataignitelab.github.io//2020/06/01/hardware-flow.html" rel="alternate" type="text/html" title="IIoT를 위한 데이터 수집 시스템" /><published>2020-06-01T00:00:00+09:00</published><updated>2020-06-01T00:00:00+09:00</updated><id>https://dataignitelab.github.io//2020/06/01/hardware-flow</id><content type="html" xml:base="https://dataignitelab.github.io//2020/06/01/hardware-flow.html">&lt;h4 id=&quot;산업용-데이터-수집-시스템&quot;&gt;산업용 데이터 수집 시스템&lt;/h4&gt;
&lt;h6 id=&quot;whaleshark-iiot-프로젝트에서-산업-설비를-위한-하드웨적-프로토콜은-rs485를-사용한다고-가정하고-소프트웨어-프로토콜은-modbus-rtu를-사용합니다&quot;&gt;WhaleShark IIoT 프로젝트에서 산업 설비를 위한 하드웨적 프로토콜은 RS485를 사용한다고 가정하고, 소프트웨어 프로토콜은 Modbus RTU를 사용합니다.&lt;/h6&gt;
&lt;h6 id=&quot;rs485통신을-위해서는-유선-방식과-무선-방식으로-나눌-수-있고-대규모-설비의-시계열-데이터를-안정적으로-수집-저장하기-위해-mqtt와-시계열-데이터-베이스tsdb를-사용합니다&quot;&gt;RS485통신을 위해서는 유선 방식과 무선 방식으로 나눌 수 있고 대규모 설비의 시계열 데이터를 안정적으로 수집 저장하기 위해 MQTT와 시계열 데이터 베이스(TSDB)를 사용합니다.&lt;/h6&gt;
&lt;h6 id=&quot;설비에서-송신할-데이터가-많거나-무선-망을-거치기-이전에-전처리가-필요한-경우-에지-장비를-설비-근처에-세팅합니다&quot;&gt;설비에서 송신할 데이터가 많거나 무선 망을 거치기 이전에 전처리가 필요한 경우 에지 장비를 설비 근처에 세팅합니다.&lt;/h6&gt;
&lt;p&gt;&lt;img src=&quot;/assets/20200601_image/hardware_flow1.png&quot; alt=&quot;hf1&quot; /&gt;&lt;/p&gt;
&lt;h6 id=&quot;데이터의-송신만-사용할-경우-rs485를-통한-데이터를-무선-라우터를-거쳐-mqtt와-시계열-데이터-베이스tsdb를-이용하여-데이터를-저장합니다&quot;&gt;데이터의 송신만 사용할 경우 RS485를 통한 데이터를 무선 라우터를 거쳐 MQTT와 시계열 데이터 베이스(TSDB)를 이용하여 데이터를 저장합니다.&lt;/h6&gt;
&lt;p&gt;&lt;img src=&quot;/assets/20200601_image/hardware_flow2.png&quot; alt=&quot;hf2&quot; /&gt;&lt;/p&gt;</content><author><name>prismdata</name></author><summary type="html">산업용 데이터 수집 시스템 WhaleShark IIoT 프로젝트에서 산업 설비를 위한 하드웨적 프로토콜은 RS485를 사용한다고 가정하고, 소프트웨어 프로토콜은 Modbus RTU를 사용합니다. RS485통신을 위해서는 유선 방식과 무선 방식으로 나눌 수 있고 대규모 설비의 시계열 데이터를 안정적으로 수집 저장하기 위해 MQTT와 시계열 데이터 베이스(TSDB)를 사용합니다. 설비에서 송신할 데이터가 많거나 무선 망을 거치기 이전에 전처리가 필요한 경우 에지 장비를 설비 근처에 세팅합니다. 데이터의 송신만 사용할 경우 RS485를 통한 데이터를 무선 라우터를 거쳐 MQTT와 시계열 데이터 베이스(TSDB)를 이용하여 데이터를 저장합니다.</summary></entry><entry><title type="html">influxdb 설치 방법</title><link href="https://dataignitelab.github.io//2020/06/01/influxdb%EC%84%A4%EC%B9%98.html" rel="alternate" type="text/html" title="influxdb 설치 방법" /><published>2020-06-01T00:00:00+09:00</published><updated>2020-06-01T00:00:00+09:00</updated><id>https://dataignitelab.github.io//2020/06/01/influxdb%EC%84%A4%EC%B9%98</id><content type="html" xml:base="https://dataignitelab.github.io//2020/06/01/influxdb%EC%84%A4%EC%B9%98.html">&lt;h5 id=&quot;ubuntu-1804-환경에서-influxdb-설치-방법&quot;&gt;ubuntu 18.04 환경에서 influxdb 설치 방법!!&lt;/h5&gt;
&lt;h6 id=&quot;influxdata-저장소를--etcaptsourceslistdinfluxdblist-에-등록합니다&quot;&gt;InfluxData 저장소를  /etc/apt/sources.list.d/influxdb.list 에 등록합니다.&lt;/h6&gt;
&lt;h6 id=&quot;echo-deb-httpsreposinfluxdatacomubuntu-bionic-stable--sudo-tee-etcaptsourceslistdinfluxdb&quot;&gt;echo “deb https://repos.influxdata.com/ubuntu bionic stable” | sudo tee /etc/apt/sources.list.d/influxdb.&lt;/h6&gt;
&lt;h6 id=&quot;gpg-key-등록&quot;&gt;GPG key 등록&lt;/h6&gt;
&lt;h6 id=&quot;sudo-curl--sl-httpsreposinfluxdatacominfluxdbkey--sudo-apt-key-add--&quot;&gt;sudo curl -sL https://repos.influxdata.com/influxdb.key | sudo apt-key add -&lt;/h6&gt;

&lt;h5 id=&quot;apt-index-업데이트-influxdb-설치&quot;&gt;apt index 업데이트, influxdb 설치&lt;/h5&gt;
&lt;h6 id=&quot;sudo-apt-get-update&quot;&gt;sudo apt-get update&lt;/h6&gt;
&lt;h6 id=&quot;sudo-apt-get-install-influxdb&quot;&gt;sudo apt-get install influxdb&lt;/h6&gt;
&lt;h6 id=&quot;sudo-systemctl-enable-now-influxdb&quot;&gt;sudo systemctl enable –now influxdb&lt;/h6&gt;
&lt;h5 id=&quot;방화벽-허용&quot;&gt;방화벽 허용&lt;/h5&gt;
&lt;h6 id=&quot;sudo-ufw-allow-8086tcp&quot;&gt;sudo ufw allow 8086/tcp&lt;/h6&gt;

&lt;h5 id=&quot;사용자-생성&quot;&gt;사용자 생성&lt;/h5&gt;
&lt;h6 id=&quot;curl-http1921680xxx8086query-data-urlencode-qcreate-user-username-with-password-passwd-with-all-privileges&quot;&gt;curl “http://192.168.0.xxx:8086/query” –data-urlencode “q=CREATE USER username WITH PASSWORD ‘passwd’ WITH ALL PRIVILEGES”&lt;/h6&gt;

&lt;h5 id=&quot;데이터베이스-생성&quot;&gt;데이터베이스 생성&lt;/h5&gt;
&lt;h6 id=&quot;create-database-데이터베이스-이름&quot;&gt;create database “데이터베이스 이름”&lt;/h6&gt;
&lt;h6 id=&quot;excreate-database-whaleshark&quot;&gt;ex)create database whaleshark&lt;/h6&gt;

&lt;h5 id=&quot;데이터베이스-전환&quot;&gt;데이터베이스 전환&lt;/h5&gt;
&lt;h6 id=&quot;use-데이터베이스-이름&quot;&gt;use “데이터베이스 이름”&lt;/h6&gt;
&lt;h6 id=&quot;ex-use-whaleshark&quot;&gt;ex) use whaleshark&lt;/h6&gt;

&lt;h5 id=&quot;테이블-생성&quot;&gt;테이블 생성&lt;/h5&gt;
&lt;h6 id=&quot;mysql등의-rdbms에서는-테이블을-별도로-만들지만-influxdb에서는-테이블이라는-용어-대신-measurements라는-개념을-사용합니다&quot;&gt;MySQL등의 RDBMS에서는 테이블을 별도로 만들지만, InfluxDB에서는 테이블이라는 용어 대신 ‘measurements’라는 개념을 사용합니다.&lt;/h6&gt;
&lt;h6 id=&quot;measurement는-별도로-생성할-필요는-없기-때문에-곧바로-데이터를-insert-하면-measurement를-사용할-수-있다&quot;&gt;measurement는 별도로 생성할 필요는 없기 때문에 곧바로 데이터를 insert 하면 measurement를 사용할 수 있다.&lt;/h6&gt;
&lt;h6 id=&quot;ex-insert-equip_statussensortemp-value22&quot;&gt;ex) insert equip_status,sensor=temp value=2.2&lt;/h6&gt;</content><author><name>prismdata</name></author><summary type="html">ubuntu 18.04 환경에서 influxdb 설치 방법!! InfluxData 저장소를 /etc/apt/sources.list.d/influxdb.list 에 등록합니다. echo “deb https://repos.influxdata.com/ubuntu bionic stable” | sudo tee /etc/apt/sources.list.d/influxdb. GPG key 등록 sudo curl -sL https://repos.influxdata.com/influxdb.key | sudo apt-key add - apt index 업데이트, influxdb 설치 sudo apt-get update sudo apt-get install influxdb sudo systemctl enable –now influxdb 방화벽 허용 sudo ufw allow 8086/tcp 사용자 생성 curl “http://192.168.0.xxx:8086/query” –data-urlencode “q=CREATE USER username WITH PASSWORD ‘passwd’ WITH ALL PRIVILEGES” 데이터베이스 생성 create database “데이터베이스 이름” ex)create database whaleshark 데이터베이스 전환 use “데이터베이스 이름” ex) use whaleshark 테이블 생성 MySQL등의 RDBMS에서는 테이블을 별도로 만들지만, InfluxDB에서는 테이블이라는 용어 대신 ‘measurements’라는 개념을 사용합니다. measurement는 별도로 생성할 필요는 없기 때문에 곧바로 데이터를 insert 하면 measurement를 사용할 수 있다. ex) insert equip_status,sensor=temp value=2.2</summary></entry><entry><title type="html">WhaleShark IIoT 오픈소스 프로젝트를 시작합니다.^^</title><link href="https://dataignitelab.github.io//2020/05/31/project-start.html" rel="alternate" type="text/html" title="WhaleShark IIoT 오픈소스 프로젝트를 시작합니다.^^" /><published>2020-05-31T00:00:00+09:00</published><updated>2020-05-31T00:00:00+09:00</updated><id>https://dataignitelab.github.io//2020/05/31/project-start</id><content type="html" xml:base="https://dataignitelab.github.io//2020/05/31/project-start.html">&lt;center&gt;&lt;img src=&quot;/whaleshark-whale-shark.png&quot; width=&quot;100%&quot; height=&quot;100%&quot; /&gt;&lt;/center&gt;</content><author><name>prismdata</name></author><summary type="html"></summary></entry></feed>