Skip to content

Commit

Permalink
ml model added to sep folder
Browse files Browse the repository at this point in the history
  • Loading branch information
amri-tah committed Jun 9, 2024
1 parent 69c36be commit 1961a47
Show file tree
Hide file tree
Showing 7 changed files with 1,042 additions and 21 deletions.
Binary file removed CropRecommendation.zip
Binary file not shown.
1,007 changes: 1,007 additions & 0 deletions croprec model/CropRecommendation.ipynb

Large diffs are not rendered by default.

Binary file added croprec model/linear.h5
Binary file not shown.
Binary file added croprec model/linearRegrssionModel.tflite
Binary file not shown.
6 changes: 3 additions & 3 deletions plantapp/lib/pages/micro/NodeDetails.dart
Original file line number Diff line number Diff line change
Expand Up @@ -17,10 +17,10 @@ class NodeDetails extends StatefulWidget {
class _NodeDetailsState extends State<NodeDetails> {
final Future<FirebaseApp> _fApp = Firebase.initializeApp();
List result = [];
String sensedtemp = "35";
String sensedhumidity = "60";
String sensedtemp = "0";
String sensedhumidity = "0";
double sensedrainfall = 20;
String soilmoisture = "25";
String soilmoisture = "0";
bool motor = false;
final DatabaseReference _motorRef = FirebaseDatabase.instance.ref().child('Motor');

Expand Down
38 changes: 23 additions & 15 deletions plantapp/lib/pages/user/profile.dart
Original file line number Diff line number Diff line change
Expand Up @@ -105,21 +105,29 @@ class ProfilePage extends StatelessWidget {
),
),
),
ListTile(
leading: Icon(Icons.person),
title: Text("Name"),
subtitle: Text(username ?? ""), // Display name from UserInfo
),
ListTile(
leading: Icon(Icons.location_on),
title: Text("Location"),
subtitle: Text(location ?? ""), // Display location from UserInfo
),
ListTile(
leading: Icon(Icons.agriculture),
title: Text("Crop"),
subtitle: Text(crop ?? ""), // Display crop from UserInfo
),
Padding(
padding: const EdgeInsets.symmetric(horizontal: 20),
child: Wrap(
children: [
ListTile(
leading: Icon(Icons.person),
title: Text("Name"),
subtitle: Text(username ?? ""), // Display name from UserInfo
),
ListTile(
leading: Icon(Icons.location_on),
title: Text("Location"),
subtitle: Text(location ?? ""), // Display location from UserInfo
),
ListTile(
leading: Icon(Icons.agriculture),
title: Text("Crop"),
subtitle: Text(crop ?? ""), // Display crop from UserInfo
),
],
),
)

],
),
);
Expand Down
12 changes: 9 additions & 3 deletions plantapp/lib/pages/user/userlogin.dart
Original file line number Diff line number Diff line change
Expand Up @@ -34,15 +34,21 @@ class UserLogin extends StatelessWidget {
children: [
TextField(
controller: nameController,
decoration: InputDecoration(labelText: 'Name'),
decoration: InputDecoration(labelText: 'Name', labelStyle: TextStyle(color: Colors.black), focusedBorder: UnderlineInputBorder(
borderSide: BorderSide(color: Colors.green, width: 2.0), // Set the underline color to green
),),
),
TextField(
controller: locationController,
decoration: InputDecoration(labelText: 'Location'),
decoration: InputDecoration(labelText: 'Location', labelStyle: TextStyle(color: Colors.black), focusedBorder: UnderlineInputBorder(
borderSide: BorderSide(color: Colors.green, width: 2.0), // Set the underline color to green
),),
),
TextField(
controller: cropController,
decoration: InputDecoration(labelText: 'Crop'),
decoration: InputDecoration(labelText: 'Crop',labelStyle: TextStyle(color: Colors.black), focusedBorder: UnderlineInputBorder(
borderSide: BorderSide(color: Colors.green, width: 2.0), // Set the underline color to green
),),
),
SizedBox(height: 20),
GestureDetector(
Expand Down

0 comments on commit 1961a47

Please sign in to comment.