public class SobrietyController implements Initializable {
//@FXML
//private ImageView imgDistance;
//@FXML
//private ImageView imgAlcohol;
@FXML
private LineChart distanceChart;
@FXML
private Label alcoholLabel;
@FXML
private Label distanceLabel;
@Override
public void initialize(URL url, ResourceBundle rb) {
ThingsClientREST thingsClient11 = new ThingsClientREST("192.168.1.11");
ThingsClientREST thingsClient12 = new ThingsClientREST("192.168.1.12");
// Alcohol Monitor
AlcoholMonitor alcoholMonitor = new AlcoholMonitor(thingsClient12.createTarget());
alcoholLabel.textProperty().bind(alcoholMonitor.alcoholProperty());
alcoholMonitor.start();
// Distance Monitor
DistanceMonitor distanceMonitor = new DistanceMonitor(thingsClient11.createTarget(), distanceChart);
distanceLabel.textProperty().bind(distanceMonitor.distanceProperty());
distanceMonitor.start();
}