/smart-agriculture

Smart Agriculture for Cyber Physical Systems

Primary LanguagePython

smart-agriculture

Smart Agriculture Project for Cyber Physical Systems course.

Hardware Pre-requisites

Software Pre-Requisites

Setup Instructions

  1. Install Git Bash

  2. Once installed, search Git bash in Windows search and run the application git

  3. Clone the repository to get the project files into your local system by running the following command:

    >> git clone https://github.com/Dheeraj22/smart-agriculture.git

    git

  4. Navigate to the project directory by running the command:

    >> cd smart-agriculture

    git

  5. You are now ready to use the project

Making a change

  1. Before you start, always check if there was any recent update from your teamates by pulling the latest code:

    >> git pull

    git

    If there is any change, it will be pulled into your local system. If not, you should see the message "Already up to date" as shown above.

  2. You can add file/folders and absolutely any change you want to this repository. But to not thread or affect other's code, create a folder with your name in this directory. Then add corresponding files into that.

    • For example, create a directory named "John Doe".

      git

    • Now create your arduino sketch in Arduino IDE. Once tested, copy and paste it inside this folder.

      git

  3. Once all the code is tested and you are ready to push the changes for everyone to see, run the following commands:

    • Pull latest changes if any from teammates

      >> git pull

    • Run a status check to see what all files and folders you have added/modified:

      >> git status

      git

    • Add the new/modified files into staging area (use the dot at the end of the command to include all files/folders automatically):

      >> git add .

      git

    • Commit the changes by adding a message with what changes were done.

      >> git commit -m "Added sample code"

      git

    • Push the code to the public server for all your teammates to view and access.

      >> git push

      git

  4. Check online by refreshing the page to see if your project changes reflect.

    git