-
Notifications
You must be signed in to change notification settings - Fork 5
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
base: master
Are you sure you want to change the base?
Added background functionality #3
Conversation
.find({ type: "Report" }) | ||
.get("data"); | ||
|
||
let CO2_value = sensors.find({ name: "CO2" }); |
There was a problem hiding this comment.
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) + |
There was a problem hiding this comment.
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> |
There was a problem hiding this comment.
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"); |
There was a problem hiding this comment.
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(); |
There was a problem hiding this comment.
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"); |
There was a problem hiding this comment.
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) { |
There was a problem hiding this comment.
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 |
There was a problem hiding this comment.
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
No description provided.