=================
This adapter is a fibaro for the creation of an ioBroker adapter. You do not need it at least that you plan developing your own adapter.
It includes both code running within iobroker and as vis widget. If you only plan to create a vis widget then you should use the iobroker.vis-fibaro instead.
-
download and unpack this packet from github
https://github.com/ioBroker/ioBroker.fibaro/archive/master.zip
or clone git repositorygit clone --depth=1 https://github.com/ioBroker/ioBroker.fibaro.git
-
download required npm packets. Write in ioBroker.fibaro directory:
npm install
- set name of this fibaro. Call
gulp rename --name mynewname --email email@mail.com --author "Author Name"
mynewname must be lower case and with no spaces.
If gulp is not available, install gulp globally:
npm install -g gulp-cli
-
rename directory from ioBroker.fibaro (can be ioBroker.fibaro-master) to iobroker.mynewname
-
to use this fibaro you should copy it into .../iobroker/node_modules directory and then create an instance for it with iobroker.admin
-
create your adapter:
-
you might want to start with main.js (code running within iobroker) and admin/index.html (the adapter settings page).
-
Installation, setup and first steps with an ioBroker Development Environment
-
files under the www folders are made available under http://<iobrokerIP>:8082/<adapter-name>/
- for this to work the iobroker.vis adapter has to be installed
- delete this folder if you do not plan to export any files this way
- call
iobroker upload <adapter-name>
after you change files in the www folder to get the new files uploaded to vis
-
the widget folder contains an example of a vis widget
- you might want to start with widget/.html and widget/js/.js
- call
iobroker visdebug <adapter-name>
to enable debugging and upload widget to "vis". (This works only from V0.7.15 of js-controller) - If you do not plan to export any widget then delete the whole widget folder and remove the
"restartAdapters": ["vis"]
statement from io-package.json - After admin/index.html is changed you must execute
iobroker upload mynewname
to see changes in admin console. The same is valid for any files in admin and www directory
-
change version: edit package.json and then call
grunt p
in your adapter directory. -
share it with the community
- your github repository must have name "ioBroker.". B is capital in "ioBroker", but in the package.json the name must be low case, because npm does not allow upper case letters.
- title in io-package.json (common) is simple short name of adapter in english. titleLang is object that consist short names in many languages. Lang ist not german Länge, but english LANGuages.
- Do not use in the title the words "ioBroker" or "Adapter". It is clear anyway, that it is adapter for ioBroker.
- (bluefox) Support of admin3
- (vegetto) include vis widget
- (bluefox) fix errors with grunt
- (bluefox) initial release
The MIT License (MIT)
Copyright (c) 2018 Nico Bode n.node@intelligentes-haus.de
Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:
The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.