Log changed
This commit is contained in:
parent
203d770e98
commit
b6ac276024
@ -63,8 +63,8 @@ function connect(item) {
|
|||||||
t.on(Tinkerforge.BrickletTemperature.CALLBACK_TEMPERATURE,
|
t.on(Tinkerforge.BrickletTemperature.CALLBACK_TEMPERATURE,
|
||||||
// Callback function for temperature callback (parameter has unit °C/100)
|
// Callback function for temperature callback (parameter has unit °C/100)
|
||||||
function (temperature) {
|
function (temperature) {
|
||||||
saveValue(temperature/100.0, item);
|
saveValue((temperature/100.0), item);
|
||||||
Log.log('Temperature: ' + temperature/100.0 + ' °C');
|
//Log.log('Temperature: ' + temperature/100.0 + ' °C');
|
||||||
}
|
}
|
||||||
);
|
);
|
||||||
|
|
||||||
@ -86,6 +86,8 @@ function saveValue(value, item) {
|
|||||||
path: '/persist/value/of/'+category+'/with/'+value+'/in/'+room+'/'
|
path: '/persist/value/of/'+category+'/with/'+value+'/in/'+room+'/'
|
||||||
};
|
};
|
||||||
|
|
||||||
|
Log.log(options.host + ':' + options.port + options.path);
|
||||||
|
|
||||||
callback = function(response) {
|
callback = function(response) {
|
||||||
var str = '';
|
var str = '';
|
||||||
|
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user