diff --git a/src/assets/i18n/en.json b/src/assets/i18n/en.json
index 8e64bc8..b0b7363 100644
--- a/src/assets/i18n/en.json
+++ b/src/assets/i18n/en.json
@@ -100,6 +100,6 @@
},
"CONFIG":{
"TITLE":"Initial configuration",
- "BUTTON":"Upload standard senseBox Sketch!"
+ "BUTTON":"Upload!"
}
}
diff --git a/src/pages/configuration/configuration.html b/src/pages/configuration/configuration.html
index 498f823..8643788 100644
--- a/src/pages/configuration/configuration.html
+++ b/src/pages/configuration/configuration.html
@@ -41,14 +41,14 @@
-
+
-
+
{{sensor.title}} {{sensor.id}}
-
@@ -60,7 +60,7 @@
-
+
CONFIG.BUTTON
diff --git a/src/pages/configuration/configuration.ts b/src/pages/configuration/configuration.ts
index 482bed5..05f44d9 100644
--- a/src/pages/configuration/configuration.ts
+++ b/src/pages/configuration/configuration.ts
@@ -52,7 +52,7 @@ export class ConfigurationPage {
PASSWORD:this.pw,
INGRESS_DOMAIN:"ingress.opensensemap.org",
SENSEBOX_ID:this.senseboxid,
- NUM_SENSORS:6,
+ NUM_SENSORS:this.sensors.length,
TEMPERSENSOR_ID:this.temp,
RELLUFSENSOR_ID:this.humi,
BELEUCSENSOR_ID:this.lux,
@@ -69,8 +69,6 @@ export class ConfigurationPage {
}
addSensor(){
- console.log("adding sensor");
-
let addModal = this.modalCtrl.create(AddItemPage);
addModal.onDidDismiss((sensor)=>{
@@ -85,6 +83,7 @@ export class ConfigurationPage {
saveSensor(sensor){
this.sensors.push(sensor);
+ // add define statements
}
viewSensor(sensor){
@@ -93,6 +92,12 @@ export class ConfigurationPage {
})
}
+ removeSensor(sensor){
+ this.sensors = this.sensors.filter((sensorF)=>{
+ return sensor!=sensorF
+ })
+ }
+
ionViewDidLoad() {
this.sensors =[
{title:"Temperatur",type:"temp",id:"09327523"},