GithubHelp home page GithubHelp logo

13robin37 / qr-code-generator Goto Github PK

View Code? Open in Web Editor NEW

This project forked from deermaximum/qr-code-generator

0.0 0.0 0.0 245 KB

Custom Home Assistant integration to create a camera that displays a custom QR-Code

License: MIT License

Python 100.00%

qr-code-generator's Introduction

Home Assistant integration to create a QR-Code

GitHub Release hacs

This integration allows to create QR Codes with static or dynamic content.

Features

  • Static content
  • Dynamic content with the help of Templates
  • Custom QR-Code color
  • Custom QR-Code background color
  • Error correction adjustment

{% if not installed %}

Installation

The easiest way to install is through HACS. This integration is already included in the HACS default repositories.

  1. In Home Assistant, select HACS -> Integrations -> + Explore and Download Repositories. Search for QR-Code Generator in the list and add it.
  2. Restart Home Assistant
  3. Set up and configure the integration: Add Integration

Manual Installation

Copy the custom_components/qr_generator directory to your custom_components folder. Restart Home Assistant, and add the integration from the integrations page.

{% endif %}

Example configuration

For wifi access

Name: My wifi access
Content: WIFI:T:WPA2;S:MyNetworkName;P:ThisIsMyPassword;H:true;

For wifi access with template

Name: My wifi access
Content: WIFI:T:WPA2;S:MyNetworkName;P:{{states("input_text.wlan_password")}};H:true;

To update the QR code, simply change the value of input_text.wlan_password.

Details

Options

Options Description Default
Name (str) Name of the QR Code. -
Content (str) Content of the QR Code. Can be a template. -
Color (str) Color of the QR Code in hex. Supports transparency (#RRGGBBAA). #000
Background color (str) Color of the background in hex. Supports transparency (#RRGGBBAA). #FFF
Scale (int) Scale of the QR Code. 10
Border (int) Thickness of the QR Code border in "QR Code boxes". 2
Error correction (str) Strength of error correction. Possible values:
L - About 7% or less errors can be corrected.
M - About 15% or less errors can be corrected.
Q - About 25% or less errors can be corrected.
H - About 30% or less errors can be corrected.
H

ATTRIBUTES

Attribute Description
text (str) Rendered content of the QR Code.
color (str) Color of the QR Code in hex.
background_color (str) Color of the background in hex.
scale (int) Scale of the QR Code.
border (int) Thickness of the QR Code border in "QR Code boxes".
error_correction (str) Strength of error correction. Possible values:
L
M
Q
H

qr-code-generator's People

Contributors

deermaximum avatar dependabot[bot] avatar iainphay avatar tjorim avatar

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.