Skip to content

Conversation

@MadalinaKhaji
Copy link
Contributor

No description provided.

.find({ type: "Report" })
.get("data");

let CO2_value = sensors.find({ name: "CO2" });
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

either you use const or change it to a small letter

panel.save(
{
data:
+Number(temp_data).toFixed(2) +
Copy link
Contributor

@mareklap mareklap Feb 12, 2020

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

In the end it will be converted to a string anyway since you're concatenating. You could maybe use ${...} (string interpolation).

<head>
<meta charset="utf-8">
<meta charset="utf-8" />
<title></title>
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Provide some title.

@@ -0,0 +1,176 @@
let Wappsto = require("wapp-api");
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

use const

@@ -0,0 +1,176 @@
let Wappsto = require("wapp-api");

let wappsto = new Wappsto();
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

use const


let wappsto = new Wappsto();

let wappstoConsole = require("wapp-api/console");
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

use const or require("wapp-api/console").start()

subscribe: true
}
)
.then(function(collection) {
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

You could rewrite to the following form:
.then(collection) => {
...
}


let device, sensors, led, data;

wappsto
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

you could try to use async/await

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants