Symfony3 handler for Proxy LCD
PHP
Switch branches/tags
Nothing to show
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Failed to load latest commit information.
DependencyInjection
Exception
Listener
Resources
Service
Tests/Service
KosciProxyLCDBundle.php
LICENSE
composer.json
readme.md

readme.md

#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}