@mamamiracolie/temperature-visualizer

0.5.1 • Public • Published

Home Automation

A library for visualizing temperature in a LCD form in the terminal.

npm badge

A package that receives a temperature and couple of settings for border and size.
And prints the temperature in the terminal with given settings.

Installation

npm install @mamamiracolie/temperature-visualizer

Usage example

Use convertToBinary() to setup the output of the temperature:

import Settings from '@mamamiracolie/temperature-visualizer/src/settings'

const settings = new Settings()

let number = -98.45;
let border = false;
let doubleSize = false;
settings.convertToBinary(number + " °C", border, doubleSize)
Supported characters:
0 1 2 3 4 5 6 7 8 9 - . ° C and space

Development setup

npm install

Documentation

Documentation

Meta

Username: mamamiracolie
Email: benjamin.dhondt@student.vives.be
School: VIVES Brugge
License: MIT

Readme

Keywords

none

Package Sidebar

Install

npm i @mamamiracolie/temperature-visualizer

Weekly Downloads

0

Version

0.5.1

License

MIT

Unpacked Size

310 kB

Total Files

32

Last publish

Collaborators

  • mamamiracolie