Giter VIP home page Giter VIP logo

bolicos / sensores-umidade Goto Github PK

View Code? Open in Web Editor NEW
1.0 1.0 0.0 4.76 MB

Numa estufa, existem plantas com sensores de umidade. Cada planta necessita que a umidade esteja em uma faixa ideal para poder se desenvolver: morangos: 60% a 80%, cactos: 20% a 50%, cogumelos: 80% a 90%, violetas: 40% a 80%, lavanda: 20% a 30%. A estufa precisa de um sistema que notifique quando uma planta estiver com umidade fora da faixa ideal

License: MIT License

Java 100.00%

sensores-umidade's Introduction

REST and MVC version of Spring Sensors of Humidaty Application (sensores-umidade extend ) Build Status

In a greenhouse, there are plants with humidity sensors. Each plant needs moisture to be in an ideal range to grow: strawberries: 60% to 80%, cacti: 20% to 50%, mushrooms: 80% to 90%, violets: 40% to 80%, lavender: 20% to 30%. The greenhouse needs a system that notifies when a plant has moisture outside the ideal range

Running sensores-umidade locally

	git clone https://github.com/bolicos/sensores-umidade.git
	cd sensores-umidade
	mvn spring-boot:run

You can then access sensores-umidade here: http://localhost:8080

Screenshot of the home page

greenhouse

In case you find a bug/suggested improvement for Sensores Umidade

Our issue tracker is available here: https://github.com/bolicos/sensores-umidade/issues

Email configuration

In its default configuration of Email.

spring.mail.host=smtp.gmail.com
spring.mail.port=587
[email protected]
spring.mail.password=*********
spring.mail.properties.mail.smtp.auth=true
spring.mail.properties.mail.smtp.starttls.enable=true
spring.mail.properties.mail.smtp.starttls.required=true
spring.mail.properties.mail.smtp.ssl.enable=false
spring.mail.test-connection=true

Working with Sensors in Eclipse/STS

prerequisites

The following items should be installed in your system:

Note: when m2e is available, there is an m2 icon in Help -> About dialog. If m2e is not there, just follow the install process here: http://eclipse.org/m2e/download/

Steps:

  1. In the command line
git clone https://github.com/bolicos/sensores-umidade.git
  1. Inside Eclipse
File -> Import -> Maven -> Existing Maven project

Contributing

The issue tracker is the preferred channel for bug reports, features requests and submitting pull requests.

sensores-umidade's People

Contributors

bolicos avatar rjungsevero avatar

Stargazers

Roman avatar

Watchers

James Cloos avatar

sensores-umidade's Issues

Refactor code

  • Delete Classes Entity (Strawberry,Cactus,etc)

  • Modify Class StrawberryRepository for PlantRepository

  • Changes Class PlantController

  • Change Class Plant

Create tests

  • Create test of class SensorService

  • Create test of class SensorsController

  • Create test of class EmailController

Refactor

  • PlantRestController

  • BaseEntity

Add new 2 table in DB

  • Table Type

  • Table Sensor

  • Add Relationship between Table of Type and Table of Sensor

Create verification and notification

  • Notification
  • Add new dependecy in pom.xml
  • Modify file application.properties (attributes of email)
  • Create class EmailRestController
  • Verification
  • Create class of Verification what from time to time verify the attribute humidity are ideal track

Modify infra project

  • List the basics components
  • Change files and folders
  • Add new packages in project

Change Layout

  • Modify code file templates/fragments/layout
  • Modify Views:
  1. welcome

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.