This commit is contained in:
2018-09-16 09:04:26 +08:00
parent f85cec8fd1
commit 29cce35d30
34 changed files with 88 additions and 88 deletions
+4 -4
View File
@@ -1,6 +1,6 @@
/**
*
* iobroker vis Adapter
* yunkong2 vis Adapter
*
* (c) 2014-2017 bluefox, hobbyquaker
*
@@ -105,7 +105,7 @@ function writeFile(fileName, callback) {
function upload(callback) {
adapter.log.info('Upload ' + adapter.name + ' anew, while changes detected...');
var file = utils.controllerDir + '/iobroker.js';
var file = utils.controllerDir + '/yunkong2.js';
var child = require('child_process').spawn('node', [file, 'upload', adapter.name, 'widgets']);
var count = 0;
child.stdout.on('data', function (data) {
@@ -299,14 +299,14 @@ function main() {
// first of all check license
if (!adapter.config.license || typeof adapter.config.license !== 'string') {
indicateError(function () {
adapter.log.error('No license found for vis. Please get one on https://iobroker.net !');
adapter.log.error('No license found for vis. Please get one on https://yunkong2.net !');
//adapter.stop();
generatePages(true);
});
} else {
// An object of options to indicate where to post to
var postOptions = {
host: 'iobroker.net',
host: 'yunkong2.net',
path: '/cert/',
method: 'POST',
headers: {