kosci/proxy-lcd-bundle

A Symfony3 handler for Proxy LCD project

dev-master / 1.1.0.x-dev 2017-06-17 18:01 UTC

This package is not auto-updated.

Last update: 2025-07-06 03:45:54 UTC


README

#Proxy LCD Bundle

Symfony3 handler for Proxy LCD project. Hooks to dump() and send content to Proxy LCD. Works nicely in docker.

Displays only strings so arrays(one- or multi-dimensional) are transformed to string, object are transformed to id and name.

Read more @ https://koscis.wordpress.com/tag/proxy-lcd/

screen

Parts of this project:

NodeHD44780 - remote lcd

display

Proxy LCD desktop app

main window

##Installation

"require-dev": {
    "kosci/proxy-lcd-bundle": "dev-master"
}

AppKernel:

new Kosci\Bundle\ProxyLCDBundle\KosciProxyLCDBundle(),

##Default configuration

kosci_proxy_lcd:
  proxy_ip: localhost
  proxy_port: 5054
  clear_on_request: true
  request_length: 10
  dump:
    enabled: false
    mode: stream

Without setting an IP bundle is disabled. Only mode stream available for now. For docker env set host IP.

The clear_on_request sets if LCD is cleared on request. To prevent clearing on multiple short requests we can set request_length. This sets a delay (in seconds) between request before it is considered a new request.

Minimal configuration:

kosci_proxy_lcd:
  proxy_ip: 192.168.1.102
  dump:
    enabled: true

##Sample output

['one', 'two', 'eleven'] => [one,two,eleven]
   
[
   'one' => 'zombie',
   'two' => 'zombies',
   'eleven' => 'abnominations'
] => [one:zombie,two:zombies,eleven:abnominations]

[
    'one' => [
        'one', 'two'
    ],
    'two' => [
        'zombies' => 'no',
        'humans' => 'yes',
    ],
    'eleven' => 'abnominations'
] => [one:[one,two],two:[zombies:no,humans:yes],eleven:abnominations]

$input = new ItemWithName(12) => {ItemWithName:12:name}