Skip to main content

Manager for simple character LCDs

Project description

A simple manager for two-line LCD displays.

Specifically, this was created for the Adafruit USB + Serial Backpack Kit with 16x2 RGB backlight negative LCD - RGB on Black, but this should be easily adaptable to many other character LCD displays.

URLS

/: Index

URL Index

  • GET: Display all endpoints and acceptable methods.

/message/: Messages

List or create a message to add to the message rotation.

  • GET: Get a list of all current messages.

  • POST: Add a new message to the list of messages to cycle through.

/message/<message_id>/: Message Details

Create, delete, or alter an existing message.

  • GET: Get an existing message object for a given ID.

  • PUT: Replace an existing message object for a given ID.

  • PATCH: Update an existing message object for a given ID.

  • DELETE: Delete an existing message object for a given ID.

/flash/: Flash Messages

Short-duration single-time announcements.

  • GET: Get the current flash message (if one exists).

  • PUT: Set the flash message to a given message object.

  • DELETE: Delete the current flash message (if one exists).

/brightness/: Brightness

Screen brightness.

  • PUT: Set brightness.

/contrast/: Contrast

Screen contrast.

  • PUT: Set contrast.

Message Object

{
    'message': 'Until this message disappears, Adam is not yet 30',
    'color': [255, 255, 255], # Optional; set the color
    'blink': [
        [255, 0, 0],
        [0, 0, 0]
    ], # Optional; cycle through these colors
    'expires': '2014-03-02 00:00', # Optional;  The parser -- dateutil --
                                   # is very liberal, but your mileage may
                                   # vary.  If no timezone is specified
                                   # defaults to the local system timezone.
                                   # Can also be an integer number of
                                   # seconds from the current time.
    'interval': 5, # Optional; Only for regular messages;
                   # Number of seconds to display this message before
                   # switching to the next
    'timeout': 300,  # Optional; Only for flash messages;
                     # Number of seconds until message disappears
    'backlight': True,  # Optional; Backlight on or off
}
Bitdeli badge

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

twoline-0.7.9.tar.gz (8.3 kB view details)

Uploaded Source

File details

Details for the file twoline-0.7.9.tar.gz.

File metadata

  • Download URL: twoline-0.7.9.tar.gz
  • Upload date:
  • Size: 8.3 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No

File hashes

Hashes for twoline-0.7.9.tar.gz
Algorithm Hash digest
SHA256 791988d04678278319c3a37f94d8ea9156cac0f492dee33bc31025d2360c4958
MD5 76514b05869f2417f1c018f2235c849a
BLAKE2b-256 14193e1ce653cf7d842f2ba97c57c701a02766c499381f54903425c4f8f35d8c

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page