updated ingress

development
Thiemann96 5 years ago
parent 8c4211d46f
commit e93cde8675

@ -46,6 +46,10 @@
<ion-label>Humidity</ion-label> <ion-label>Humidity</ion-label>
<ion-input [(ngModel)]="humi" placeholder="5c4f75e83580950019240779"></ion-input> <ion-input [(ngModel)]="humi" placeholder="5c4f75e83580950019240779"></ion-input>
</ion-item> </ion-item>
<ion-item>
<ion-label>Pressure</ion-label>
<ion-input [(ngModel)]="pressure" placeholder="5c4f75e83580950019240779"></ion-input>
</ion-item>
<ion-item> <ion-item>
<ion-label>Lux</ion-label> <ion-label>Lux</ion-label>
<ion-input [(ngModel)]="lux" placeholder="5c4f75e83580950019240779"></ion-input> <ion-input [(ngModel)]="lux" placeholder="5c4f75e83580950019240779"></ion-input>

@ -54,7 +54,7 @@ export class ConfigurationPage {
var values = { var values = {
SSID: this.ssid, SSID: this.ssid,
PASSWORD:this.pw, PASSWORD:this.pw,
INGRESS_DOMAIN:"opensensemap.org", INGRESS_DOMAIN:"ingress.opensensemap.org",
SENSEBOX_ID:this.senseboxid, SENSEBOX_ID:this.senseboxid,
NUM_SENSORS:6, NUM_SENSORS:6,
TEMPERSENSOR_ID:this.temp, TEMPERSENSOR_ID:this.temp,
@ -67,13 +67,13 @@ export class ConfigurationPage {
PM25SENSOR_ID:this.pm25 PM25SENSOR_ID:this.pm25
}; };
sketchy = this.applyTemplate(sketchy,values); sketchy = this.applyTemplate(sketchy,values);
console.log(sketchy);
}) })
/** /**
* Start OTA Wizard here but with the pre defined sketch here and not with the blockly sketch * Start OTA Wizard here but with the pre defined sketch here and not with the blockly sketch
* *
* */ **
*/
const sketch = 'void setup(){Serial.begin(9600);} void loop(){Serial.println("Working");}' const sketch = 'void setup(){Serial.begin(9600);} void loop(){Serial.println("Working");}'
this.navCtrl.push(OtaWizardPage, { sketchy }) this.navCtrl.push(OtaWizardPage, { sketchy })
} }

Loading…
Cancel
Save