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