Skip to content

ScarecrowStraw/iFaw-Project

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

18 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

iFaw-Project

Weather Station and Faw Counting

Table of Contents

  1. System Overview

  2. System Installation

    2.1. Hardware

    2.2. Software

    2.2.1. Node-RED

    2.2.2. MongoDB Client

    2.2.3. FawPredict

  3. Citation

  4. Acknowledgements

1. System Overview

Pending ...

2. System Installation

2.1. Hardware

  • ESP32
  • GY1145
  • Weather Station (DF Robot)
  • Faw Counter (custom design)

Install:

  1. Install ESP32 Add-on in Arduino IDE.
  1. Add SoftwareSerial Lib:
  • In the menu bar, select Sketchs > Include Library > Add .Zip Library...
  • Select espsoftwareserial-main.zip in Libs folder.
  1. Add GY1145 Libs:
  • In the menu bar, select Tools > Manage Libraries…
  • Search "Adafruit SI1145" and install.
  1. Wifi Lib:
  • The PubSubClient library provides a client for doing simple publish/subscribe messaging with a server that supports MQTT (basically allows your ESP32 to talk with Node-RED).
    Click here to dowload Libs
    You should have a .zip folder in your Downloads folder Unzip the .zip folder and you should get pubsubclient-master folder.
    Rename your folder from pubsubclient-master to pubsubclient.
  • In the menu bar, select Sketchs > Include Library > Add .Zip Library...
  • Select pubsubclient.zip.

Hardware Settings:

ESP32 Weather GY1145 Counter
5V 5V x 5V
3.3V x x Vin
GND GND GND GND
TX2 RX x x
RX2 TX x x
SCL x SCL x
SDA x SDA x
GPIO33 x x OUT

Upload code for ESP32: weatherv6

2.2. Software

2.2.1. Node-RED

  1. Install Node-RED: Click here
  2. Import flows.json to Node-RED
  3. Open terminal: Run command: node-red and open link local server.

2.2.2. MongoDB Client

  1. cd Software/MongoDBClient
  2. pip install -r requirements.txt

2.2.3. FawPredict

Setup

  1. Clone repo
  2. cd Software/FAWpredict
  3. pip install -r requirements.txt
  4. Copy .env.example into .env and fill in the API key

How to run

Open the terminal and type

python FAWPredict.py --mode [SELECT_MODE] --location [SELECT_LOCATION] --date [SELECT_DATE] --age [SELECT_AGE]
  • [SELECT_MODE]: regression mode or lookup mode
  • [SELECT_LOCATION]: location to analyze (for example: Hanoi)
  • [SELECT_DATE]: format: yyyy-mm-dd (Example: 2022-04-01)
  • [SELECT_AGE]: a number from 0-8 represent for development stages of worm
0: egg
1: first instar
2: second instar
3: third instar
4: fourth instar
5: fifth instar
6: sixth instar
7: larval stage
8: adult stage

3.Citation

4.Acknowledgements

About

Weather Station and Worm Counting

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages