Skip to content

Commit

Permalink
first version
Browse files Browse the repository at this point in the history
  • Loading branch information
VarunSendilraj committed Oct 25, 2020
0 parents commit 8ce4192
Show file tree
Hide file tree
Showing 128 changed files with 26,473 additions and 0 deletions.
6 changes: 6 additions & 0 deletions .buckconfig
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@

[android]
target = Google Inc.:Google APIs:23

[maven_repositories]
central = https://repo1.maven.org/maven2
4 changes: 4 additions & 0 deletions .eslintrc.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
module.exports = {
root: true,
extends: '@react-native-community',
};
73 changes: 73 additions & 0 deletions .flowconfig
Original file line number Diff line number Diff line change
@@ -0,0 +1,73 @@
[ignore]
; We fork some components by platform
.*/*[.]android.js

; Ignore "BUCK" generated dirs
<PROJECT_ROOT>/\.buckd/

; Ignore polyfills
node_modules/react-native/Libraries/polyfills/.*

; These should not be required directly
; require from fbjs/lib instead: require('fbjs/lib/warning')
node_modules/warning/.*

; Flow doesn't support platforms
.*/Libraries/Utilities/LoadingView.js

[untyped]
.*/node_modules/@react-native-community/cli/.*/.*

[include]

[libs]
node_modules/react-native/interface.js
node_modules/react-native/flow/

[options]
emoji=true

esproposal.optional_chaining=enable
esproposal.nullish_coalescing=enable

module.file_ext=.js
module.file_ext=.json
module.file_ext=.ios.js

munge_underscores=true

module.name_mapper='^react-native/\(.*\)$' -> '<PROJECT_ROOT>/node_modules/react-native/\1'
module.name_mapper='^@?[./a-zA-Z0-9$_-]+\.\(bmp\|gif\|jpg\|jpeg\|png\|psd\|svg\|webp\|m4v\|mov\|mp4\|mpeg\|mpg\|webm\|aac\|aiff\|caf\|m4a\|mp3\|wav\|html\|pdf\)$' -> '<PROJECT_ROOT>/node_modules/react-native/Libraries/Image/RelativeImageStub'

suppress_type=$FlowIssue
suppress_type=$FlowFixMe
suppress_type=$FlowFixMeProps
suppress_type=$FlowFixMeState

suppress_comment=\\(.\\|\n\\)*\\$FlowFixMe\\($\\|[^(]\\|(\\(<VERSION>\\)? *\\(site=[a-z,_]*react_native\\(_ios\\)?_\\(oss\\|fb\\)[a-z,_]*\\)?)\\)
suppress_comment=\\(.\\|\n\\)*\\$FlowIssue\\((\\(<VERSION>\\)? *\\(site=[a-z,_]*react_native\\(_ios\\)?_\\(oss\\|fb\\)[a-z,_]*\\)?)\\)?:? #[0-9]+
suppress_comment=\\(.\\|\n\\)*\\$FlowExpectedError

[lints]
sketchy-null-number=warn
sketchy-null-mixed=warn
sketchy-number=warn
untyped-type-import=warn
nonstrict-import=warn
deprecated-type=warn
unsafe-getters-setters=warn
unnecessary-invariant=warn
signature-verification-failure=warn
deprecated-utility=error

[strict]
deprecated-type
nonstrict-import
sketchy-null
unclear-type
unsafe-getters-setters
untyped-import
untyped-type-import

[version]
^0.122.0
1 change: 1 addition & 0 deletions .gitattributes
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
*.pbxproj -text
64 changes: 64 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,64 @@
# OSX
#
.DS_Store

# Xcode
#
build/
*.pbxuser
!default.pbxuser
*.mode1v3
!default.mode1v3
*.mode2v3
!default.mode2v3
*.perspectivev3
!default.perspectivev3
xcuserdata
*.xccheckout
*.moved-aside
DerivedData
*.hmap
*.ipa
*.xcuserstate

# Android/IntelliJ
#
build/
.idea
.gradle
local.properties
*.iml

# node.js
#
node_modules/
npm-debug.log
yarn-error.log

# BUCK
buck-out/
\.buckd/
*.keystore
!debug.keystore

# fastlane
#
# It is recommended to not store the screenshots in the git repo. Instead, use fastlane to re-generate the
# screenshots whenever they are needed.
# For more information about the recommended setup visit:
# https://docs.fastlane.tools/best-practices/source-control/

*/fastlane/report.xml
*/fastlane/Preview.html
*/fastlane/screenshots

# Bundle artifact
*.jsbundle

# CocoaPods
/ios/Pods/

#amplify
build/
dist/
node_modules/
18 changes: 18 additions & 0 deletions .graphqlconfig.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
projects:
hydrosystem:
schemaPath: amplify/backend/api/hydrosystem/build/schema.graphql
includes:
- src/graphql/**/*.js
excludes:
- ./amplify/**
extensions:
amplify:
codeGenTarget: flow
generatedFileName: src/API.js
docsFilePath: /graphql
region: us-east-2
apiId: null
maxDepth: 2
extensions:
amplify:
version: 3
6 changes: 6 additions & 0 deletions .prettierrc.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
module.exports = {
bracketSpacing: false,
jsxBracketSameLine: true,
singleQuote: true,
trailingComma: 'all',
};
3 changes: 3 additions & 0 deletions .vscode/settings.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
{
"python.pythonPath": "C:\\Users\\varun\\AppData\\Local\\python2\\python.exe"
}
1 change: 1 addition & 0 deletions .watchmanconfig
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
{}
1 change: 1 addition & 0 deletions Agro-Q
Submodule Agro-Q added at 38dc39
61 changes: 61 additions & 0 deletions App.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,61 @@
/**
* Sample React Native App
* https://github.com/facebook/react-native
*
* @format
* @flow strict-local
*/

import React, { useState, useEffect } from 'react';
import { NavigationContainer, DarkTheme} from '@react-navigation/native';
//import { createStackNavigator } from '@react-navigation/stack';
import { createDrawerNavigator } from '@react-navigation/drawer';
import MainTabScreen from './screens/MainTabScreen';
import { DrawerContent } from './screens/DrawerContent';
import ProfileScreen from './screens/profile';
import onboarding from './screens/onboarding';
import login from './screens/loginScreen';
import LoginScreen from './screens/loginScreen';
import AsyncStorage from '@react-native-async-storage/async-storage';
import HomeScreen from './screens/HomeScreen';
import Onboarding from 'react-native-onboarding-swiper';




//<script src="http://localhost:8097"></script>



//import ThemeManager, { useTheme } from './themes'
//import { Switch } from 'react-native'
//Amplify.Logger.LOG_LEVEL = 'DEBUG'

const Drawer = createDrawerNavigator()



const App = () => {



return(
<NavigationContainer >
<Drawer.Navigator drawerContent={props => <DrawerContent {...props} />}>
<Drawer.Screen name="Home" component={MainTabScreen} />
<Drawer.Screen name="ProfileScreen" component={onboarding} />
<Drawer.Screen name="Login" component={login} />
</Drawer.Navigator>


</NavigationContainer>


);




}

export default (App);
111 changes: 111 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,111 @@


[![Firebase][Firebase]][firebase-url]



<!-- PROJECT LOGO -->
<br />
<p align="center">
<a href="#">
<img src="https://cdn.discordapp.com/attachments/769754881414004741/769755050637262848/agroLogo.png" alt="Logo" width="100" height="100">
</a>

<h3 align="center">Agro-Q</h3>

<p align="center">
Revolutionizing the Future of Hydroponics
<br />

</p>
</p>





<!-- TABLE OF CONTENTS -->
## Table of Contents

* [Background](#Backround)
* [Overview](#Overview)
* [Screens](#Screens)
* [DataFlow](#DataFLow)
* [Hardware](#Hardware)
* [Contanct](#Contact)





<!-- ABOUT THE PROJECT -->
## Backround


<a href="#">
<img src="https://cdn.discordapp.com/attachments/769754881414004741/769755050637262848/agroLogo.png" alt="Logo" width="80" height="80">
</a>

Why this app was made

Goals of app:
* Goals of the app

* 2nd goal of the app

* 3rd goal of the app


<!-- GETTING STARTED -->
## Overview

The Agro-Q mobile app has a wide variety of features that allow users to maintain their hydroponics system. Users can view the sensor data, such as pH, water temperature, CO2, atmospheric temperature, and light intensity, via the app, and create models for predicting plant growth. The app periodically takes a picture of the plants in the system to monitor plant health by using an algorithm that corresponds plant color to certain levels of growth. The Agro-Q app allows collaboration among the user by sharing their specific hydroponics setups.



### Screens


#screenshots


Screens Descriptions:
* Here is the description of the first screen
* Here is the description of the first screen
* Here is the description of the first screen
* Here is the description of the first screen
* Here is the description of the first screen




<!-- USAGE EXAMPLES -->
### DataFlow

Once the data is collected from the sensors, the data is sent to the Raspberry Pi using a serial connection. Using the Raspberry Pi’s internet connection, the data is then sent to the Firebase Cloud Server to be stored in a non-sql database. The data is then read from the database and displayed in the Agro-Q app for users to monitor their hydroponics system.

#diagram of Dataflow

#code for rasberi pi webserver




<!-- CONTACT -->
## Hardware Setup
The Sensor System contains seven sensors that work in conjunction to help monitor plant health and system’s conditions. The first Sensor is the DHT11 Temperature and Humidity sensor, which will be placed outside the system to maximize plant growth using automated responses. The second Sensor will be the CO2 Sensor. This sensor will track the amount of CO2 in the atmosphere in 5-10 min intervals as CO2 vital for plant photosynthesis . The 3rd sensor group, Photoresistors, will determine the amount of light the plants will be exposed to then preventing the growth of algae. The water temperature probe is used to measure the water temperature within the system for optimal plant growth. If the pH levels are outside of the optimum range, the plants will lose the ability to absorb essential elements required for steady growth, so pH is also measured using the pH sensor to determine if the pH of the water is outside of the bounds of what the plant can handle. Dissolved oxygen sensors will be used to measure the nutrient solutions content since O2 levels can influence the bacteria’s ability to regulate nutrient uptake and fight pathogens. Finally, the atmospheric o2 Sensor will be vital in making sure that the plants are getting the necessary amount of oxygen to stay healthy.





<!-- ACKNOWLEDGEMENTS -->
## Contact
Lambert Highschool -(https://twitter.com/your_username)


<!-- MARKDOWN LINKS & IMAGES -->
<!-- https://www.markdownguide.org/basic-syntax/#reference-style-links -->

[firebase]: https://camo.githubusercontent.com/2d891f78cbe8e96dbff64e86fa29ab801c2ebe90/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f436c6f75642d46697265626173652d6635626132333f6c6f676f3d4669726562617365
[firebase-url]:https://rnfirebase.io/
14 changes: 14 additions & 0 deletions __tests__/App-test.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
/**
* @format
*/

import 'react-native';
import React from 'react';
import App from '../App';

// Note: test renderer must be required after react-native.
import renderer from 'react-test-renderer';

it('renders correctly', () => {
renderer.create(<App />);
});
Loading

0 comments on commit 8ce4192

Please sign in to comment.