Git Product home page Git Product logo

fishfarm's People

Contributors

blackhat97 avatar yongjin-cho avatar

Stargazers

 avatar

Watchers

 avatar  avatar

fishfarm's Issues

realtime.php에서 loop-end

for($i=0; $i<count($result)/2-1; $i++)
<-- 여기에서 loop-end를 count($result)/2-1로 했는데, 이런 접근은 좋지 않다.
<-- 값을 맞추는 것보다는 의미를 맞추는 coding을 해야 한다. 유지보수성을 높이기 위해.

$number_of_sensor = 10
$number_of_data = $number_of_sensor * 3 // each sensor has 3 data(PH, DO, TEMP)
for($i=0; $i<$number_of_data; $i++)

이렇게 하면, 나중에 sensor의 수가 늘어나도, sensor마다 계측되는 정보가 늘어나도 수정하기 쉽다.

mysql id/pwd 숨기기

현재는 mysql id/pwd가 그대로 코드에 보이는데, git에 올려지지 않는 파일에 저장해서 외부에는 보이지 않도록 해주라

웹에 PH정보 안보이는 문제

/dev/ttyUSB2에서 읽으면 PH 정보가 제대로 나온다.
그런데, 웹(sogari.co.kr)에서는 3번에 PH가 나오지 않는다.

확인해 주라.

crontab update

/home/bosornd/work/fishfarm/rs485.py에 계측기로부터 획득한 정보를 db에 저장하는 코드를 만들었다.
crontab에 이를 연결해 주라.

양어장 DB 관리

양어장에 관한 DB를 만들어서,
양어장 설치 환경이 바뀌면 DB만 바꾸면 되도록 하는 것이 필요하다.

[양어장 정보]

  • 이름: 옥화양어장
  • 주소: 충청북도 청주시 상당구 미원면 옥화길 36
  • 관리자: 이옥우, 정명종, 조용진, 박준우
  • URL:
  • 수조 개수: 14
  • 계측기 개수: 10

[관리자 정보]

  • 이름[key]
  • 구분
  • 전화번호
  • 전자우편

[수조 정보]

  • 수조 ID[key]
  • 이름: <-- 수조 별명
  • 설명: <-- 수조의 용도에 대한 설명

[계측기 정보]

  • 계측기 ID[key]
  • 수조 ID
  • 연결방식: SERIAL or ZIGBEE
  • 연결 ID: COM1 ... 연결에 필요한 정보
  • 획득 가능한 정보
    산소, 온도, PH, ...

[계측 LOG]

  • 계측기 ID
  • 시간
  • 계측 정보(산소, 온도, PH, ...)
    <-- 관리 편의를 위하여 산소_(계측기 ID), 온도_(계측기 ID) 등으로 TABLE을 만들 수 있다.
    시간 | 산소_1 | 온도_1 | PH_1 | 산소_2 | 온도_2 | PH_2 | ...

[수조 LOG] <-- 사료 공급 시간 등의 수조 상태가 변경되는 LOG를 저장할 DB

  • 수조 ID
  • 시간
  • 수조 상태 정보

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.