Lights, Doc, Db

- Now lights works with DialogFlow
- Database automatically update data from user's fitbit
- Doc is written well (well.. it is ok)
- Added logging here and there
- Removed unused code
- Improved code reading and code quality
This commit is contained in:
2018-09-02 00:04:29 +02:00
parent d891e53c8e
commit f7942abae2
13 changed files with 395 additions and 328 deletions

View File

@@ -11,10 +11,6 @@ import support.ZWaySimpleCallback;
*/
public class Sensor {
/* todo ma serve il LOGGER?
private Logger logger = LoggerFactory.getLogger(Sensor.class);
*/
/**
* IP del sensore a cui ci si vuole agganciare
*/
@@ -100,7 +96,8 @@ public class Sensor {
device.update();
wait(timeout);
}
/*public boolean IsLowLuminescence(int Luminescence) {
/*
public boolean IsLowLuminescence(int Luminescence) {
if (dev.getProbeType().equalsIgnoreCase("Luminescence"))
if (Integer.parseInt(dev.getMetrics().getLevel()) < Luminescence)
return true;