Git Product home page Git Product logo

qnaplcd-menu's Introduction

QnapLCD-Menu

A simplistic package and examples using the front panel display and buttons on QNAP NAS devices under other operating systems. Tested with TVS-671, but should work on other models that use the "A125" display with two buttons.

What's Included

In most cases you would setup preinit.py, lcd-menu.py, and shutdown.py to get a workable menu on the Qnap LCD.

  • preinit.py a short pre-initialization script to print a message on the LCD panel and terminate.

  • postinit.py a short post-initialization script to print a message on the LCD panel and terminate. Not used in most cases.

  • lcd-menu.py a Python script that will display a menu similar to the default QNAP menu, written for TrueNAS SCALE but may work with other TrueNAS and FreeNAS systems. This should take the place of the postinit.py script if you want the menu system active.

  • shutdown a short shutdown script to print a message on the LCD panel and terminate.

  • qnaplcd Python package (class) for using the front-panel (A125) display. Uses pyserial and threading to send button events to calling program.

Installation

To install, clone this repository onto your NAS somewhere that is accessible to the admin (root) user. It needs to be run as root to communicate with the display and the TrueNAS CLI.

To communicate with the display, pyserial is required. If you are able to install it with pip, that's wonderful, do that!

pip3 install pyserial

If you are not able to (TrueNAS SCALE), you can use the included setup.sh script to install it into the current directory. In the same directory as qnaplcd (e.g. the root of this project)

./setup.sh

Using

Add lcd-menu.py in TrueNAS SCALE under System Settings, Advanced, Init/Shutdown Scripts as a pre or post init script.

qnaplcd-menu's People

Contributors

stephenhouser 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.