GithubHelp home page GithubHelp logo

iobroker.jsonconfig-demo's Introduction

Logo

ioBroker.jsonconfig-demo

NPM version Downloads Number of Installations Current version in stable repository

NPM

Tests: Test and Release

jsonconfig-demo adapter for ioBroker

This adapter is a demo for json based config only.

This is no real adapter. The sole purpose of this repository is to illustrate and test the various functionality of jsonConfig elements to adapter developers.

Development is still IN PROGRESS

Changelog

0.0.5 (2023-12-09)

  • (mcm1957) Adapter has been moved to mcm4iob organisation
  • (mcm1957) Dependencies have been updated

0.0.4 (2023-09-11)

  • (mcm1957) initial release

License

MIT License

Copyright (c) 2023 mcm1957 [email protected]

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.

iobroker.jsonconfig-demo's People

Contributors

dependabot[bot] avatar foxriver76 avatar germanbluefox avatar mcm1957 avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar

iobroker.jsonconfig-demo's Issues

example for returning more than 1 value for native

can you please add an example for returning more than one value via native?

I have 4 values in the config page to be set by returning them from a function in sendTo.

in jsonUIconfig I have:

		"mqttUserId": {
			"type": "text",
			"label": "mqtt userId",
			"newLine": false
		},
		"mqttUserName": {
			"type": "text",
			"label": "mqtt user name",
			"newLine": false
		},
		"mqttPwd": {
			"type": "text",
			"label": "mqtt pwd",
			"newLine": true
		},
		"mqttClientId": {
			"type": "text",
			"label": "mqttClientId",
			"newLine": false
		},
		"_create": {
			"type": "sendTo",
			"label": "Create Login Data",
			"command": "create",
			"variant": "outlined",
			"useNative": true,
			"jsonData": "{\"user\": \"${data.mqttUserName}\", \"pass\": \"${data.mqttPwd}\"}}"
		}

and in the message portion I have

	const resultFromFunction = {
		native: {
			mqttUserId: '1232445564356',
			mqttUserName: 'login.User',
			mqttPwd: 'login.Password',
			mqttClientId: 'login.clientID'
		}
	};
	this.sendTo(obj.from, obj.command, resultFromFunction, obj.callback);

after returning the message only the last value is modified in the config page of the adapter.
If I reduce it to one value, it is running OK.

width nit working correctly in tables

looks like width isn't really working in tables. Same in my adapter. I tried "50%"; "50% "; 300; "300px"; "300px " .... everything not changing anything

BTW: Great idea to have this type of demo adapter!!

Error in GUI! (..../#tab-instances/config/system.adapter.jsonconfig-demo.0)

occurred at opening of tab_3

instrument.ts:124 TypeError: G is not a function
at KeyboardDateInput.js:32:10
at Fi (react-dom.production.min.js:167:137)
at Ps (react-dom.production.min.js:193:57)
at oa (react-dom.production.min.js:294:275)
at ra (react-dom.production.min.js:280:389)
at Jc (react-dom.production.min.js:280:320)
at ml (react-dom.production.min.js:280:180)
at iu (react-dom.production.min.js:271:88)
at bs (react-dom.production.min.js:268:429)
at Ln (scheduler.production.min.js:13:203)
at MessagePort.Gn (scheduler.production.min.js:14:128)

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.