Taragorm / ioBroker.vistaragorm

MIT License
2 stars 0 forks source link

ioBroker.vistaragorm

NPM version Downloads Dependency Status Known Vulnerabilities

NPM

Tests: Linux/Mac: Travis-CI Windows: AppVeyor

vistaragorm adapter for ioBroker

Some simple Visualisations.

These are controls whose background colour changes to represent one or more of the values. While intended for temperatures, they could be used for other purposes.

nbox

mvsp

Colour Generation - colours and interpolate

Colours are generated from a list of switch points and colour codes, e.g.

    $indoor: [
        { t:15, b: 0x1E90FF, f:0x0000 },
        { t:18, b: 0x0bb000, f:0x0000 },
        { t:21, b: 0xdddd00, f:0x0000 },
        { t:24, b: 0xff0000, f:0x0000 }
    ],    

    $outdoor: [
        { t:8,  b: 0x1E90FF, f:0x0000 },
        { t:12, b: 0x00bb00, f:0x0000 },
        { t:18, b: 0xdddd00, f:0x0000 },
        { t:22, b: 0xff0000, f:0x0000 }
    ],    

Where t = temperature, b = background colour and f = foreground colour. The colours MUST be numeric codes. (You can't use colour names like "green" for instance.)

Custom Colour Vector

10 blue
15 green
30 red white

If the colours attribute does not start with $, then it is assumed to be a list of switchpoints and associated colour(s), one per line, with each line having the format:

<SwitchValue> <Background> [<Foreground>]

Changelog

0.0.1-2

License

MIT License

Copyright (c) 2019 Taragorm

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.