GithubHelp home page GithubHelp logo

iobroker.adapter-studio's People

Contributors

jey-cee avatar

Stargazers

 avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar

Forkers

moe-1988

iobroker.adapter-studio's Issues

Error Message "uncaught exception: Unexpected token u in JSON" while creating new adapter

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

Think about to fix the issues found by adapter checker

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:

https://adapter-check.iobroker.in/?q=https://raw.githubusercontent.com/Jey-Cee/ioBroker.adapter-studio

I have also found warnings that may be fixed if possible.

  • [W113] Adapter should support compact mode
  • [W400] Cannot find "adapter-studio" in latest repository

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

Feature Request: Option to change background of code editor to white

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.

Please check ioBroker.adapter-studio with js-controller 2.0

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.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.