Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Added background functionality #3

Open
wants to merge 6 commits into
base: master
Choose a base branch
from

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).

@@ -1,46 +1,67 @@
<!DOCTYPE html>
<html>
<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