jey-cee / iobroker.adapter-studio Goto Github PK
View Code? Open in Web Editor NEWLicense: Other
License: Other
The upcoming version 2.0.0 of js-controller will support a new mode for low memory devices. For this, a few minor adjustments to the adapter must be made. Please follow these instructions: https://forum.iobroker.net/viewtopic.php?f=24&t=20387#p213466
While my first test for a new adapter was successful, I received the following errors in the log when creating a new adapter. In the adapter settings, tab "New", I have completed all the fields and then hit "Create". Then the "Wait" popup appears and the I get the following in the log. I have repeated it, and it happened again.
My ioBroker system for development: Win 10 Pro
Node.js: v10.15.0
NPM: 6.4.1
2019-01-05 01:03:45.901 - �[32minfo�[39m: adapter-studio.0 {"command":"send","message":{"command":"createAdapter","name":"ATest1","author":"Mic-M","email":"[email protected]","keywords":"test,script","license":"MIT","type":"general","mode":"daemon","cron":"","logLevel":"info","dependencies":"","enabled":false,"widgets":false,"webpage":false,"tab":false,"adminv2":false,"messagebox":false,"depAdapters":""},"from":"system.adapter.admin.0","callback":{"message":{"command":"createAdapter","name":"ATest1","author":"Mic-M","email":"[email protected]","keywords":"test,script","license":"MIT","type":"general","mode":"daemon","cron":"","logLevel":"info","dependencies":"","enabled":false,"widgets":false,"webpage":false,"tab":false,"adminv2":false,"messagebox":false,"depAdapters":""},"id":187,"ack":false,"time":1546646625900},"_id":37799789}
2019-01-05 01:03:45.939 - �[31merror�[39m: adapter-studio.0 uncaught exception: Unexpected token u in JSON at position 0
2019-01-05 01:03:45.939 - �[31merror�[39m: adapter-studio.0 SyntaxError: Unexpected token u in JSON at position 0
at JSON.parse (<anonymous>)
at ReadFileContext.fs.readFile [as callback] (C:\iobroker\node_modules\iobroker.adapter-studio\main.js:263:29)
at FSReqWrap.readFileAfterOpen [as oncomplete] (fs.js:238:13)
2019-01-05 01:03:45.939 - �[32minfo�[39m: adapter-studio.0 cleaned everything up...
2019-01-05 01:03:45.941 - �[31merror�[39m: adapter-studio.0 uncaught exception: Unexpected token u in JSON at position 0
2019-01-05 01:03:45.941 - �[31merror�[39m: adapter-studio.0 SyntaxError: Unexpected token u in JSON at position 0
at JSON.parse (<anonymous>)
at ReadFileContext.fs.readFile [as callback] (C:\iobroker\node_modules\iobroker.adapter-studio\main.js:318:29)
at FSReqWrap.readFileAfterOpen [as oncomplete] (fs.js:238:13)
2019-01-05 01:03:45.941 - �[32minfo�[39m: adapter-studio.0 cleaned everything up...
2019-01-05 01:03:45.951 - �[31merror�[39m: Caught by controller[0]: SyntaxError: Unexpected token u in JSON at position 0
2019-01-05 01:03:45.951 - �[31merror�[39m: Caught by controller[0]: at JSON.parse (<anonymous>)
2019-01-05 01:03:45.951 - �[31merror�[39m: Caught by controller[0]: at ReadFileContext.fs.readFile [as callback] (C:\iobroker\node_modules\iobroker.adapter-studio\main.js:263:29)
2019-01-05 01:03:45.951 - �[31merror�[39m: Caught by controller[0]: at FSReqWrap.readFileAfterOpen [as oncomplete] (fs.js:238:13)
2019-01-05 01:03:45.951 - �[31merror�[39m: Caught by controller[1]: SyntaxError: Unexpected token u in JSON at position 0
2019-01-05 01:03:45.951 - �[31merror�[39m: Caught by controller[1]: at JSON.parse (<anonymous>)
2019-01-05 01:03:45.951 - �[31merror�[39m: Caught by controller[1]: at ReadFileContext.fs.readFile [as callback] (C:\iobroker\node_modules\iobroker.adapter-studio\main.js:318:29)
2019-01-05 01:03:45.951 - �[31merror�[39m: Caught by controller[1]: at FSReqWrap.readFileAfterOpen [as oncomplete] (fs.js:238:13)
2019-01-05 01:03:45.951 - �[31merror�[39m: host.WINZ3 instance system.adapter.adapter-studio.0 terminated with code 0 (OK)
2019-01-05 01:03:45.951 - �[32minfo�[39m: host.WINZ3 Restart adapter system.adapter.adapter-studio.0 because enabled
2019-01-05 01:04:15.966 - �[32minfo�[39m: host.WINZ3 instance system.adapter.adapter-studio.0 started with pid 4060
2019-01-05 01:04:17.773 - �[32minfo�[39m: adapter-studio.0 starting. Version 0.7.0 in C:/iobroker/node_modules/iobroker.adapter-studio, node: v10.15.0
2019-01-05 01:04:17.775 - �[32minfo�[39m: adapter-studio.0 win32
2019-01-05 01:04:17.775 - �[32minfo�[39m: adapter-studio.0 C:\iobroker\node_modules\iobroker.adapter-studio
I am an automatic service that looks for possible errors in ioBroker and creates an issue for it. The link below leads directly to the test:
I have also found warnings that may be fixed if possible.
Thanks,
your automatic adapter checker.
P.S.: There is a community in Github, which supports the maintenance and further development of adapters. There you will find many experienced developers who are always ready to assist anyone. New developers are always welcome there. For more informations visit: https://github.com/iobroker-community-adapters/info
Many thanks for this adapter, it is really helpful!
I would like to suggest the following:
Adding an option to change the theme of the code editor to a light theme, so that it is possible to change it from the dark style to a white background, like in the JS adapter.
Thanks.
Hi,
the new js-controller 2.0 will come into latest repository in the next days and we want to make sure that all adapters are working well. We already did a 2 weeks Beta test and so some adapter were aleady checked and some needed slight adjustments.
You can find more information in ioBroker/ioBroker.js-controller#482 and in the ioBroker Forum. If you have more technical questions please write in the referenced issue or in the Developer thread please. General questions are best in the genral thread.
Please update your systems to js-controller 2.0 and check your adapter.
Please close this issue once you have checked your adapter or received successfull reports from users.
Thank you very much for your support. Please contact us in the other Threads or Forum on any question.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.