kosci/ proxy-lcd-bundle
Proxy LCD项目的Symfony3处理器
dev-master / 1.1.0.x-dev
2017-06-17 18:01 UTC
Requires
- symfony/framework-bundle: ~2.7|~3.0
This package is not auto-updated.
Last update: 2024-09-29 00:22:26 UTC
README
#Proxy LCD Bundle
Symfony3处理器,用于Proxy LCD项目。与dump()挂钩并将内容发送到Proxy LCD。在docker中运行良好。
仅显示字符串,因此数组(一维或多维)被转换为字符串,对象被转换为id和name。
更多阅读 @ https://koscis.wordpress.com/tag/proxy-lcd/
本项目的部分
NodeHD44780 - 远程LCD
Proxy LCD 桌面应用程序
##安装
"require-dev": {
"kosci/proxy-lcd-bundle": "dev-master"
}
AppKernel
new Kosci\Bundle\ProxyLCDBundle\KosciProxyLCDBundle(),
##默认配置
kosci_proxy_lcd:
proxy_ip: localhost
proxy_port: 5054
clear_on_request: true
request_length: 10
dump:
enabled: false
mode: stream
如果没有设置IP,则捆绑包被禁用。目前仅支持stream模式。对于docker环境,设置主机IP。
clear_on_request设置是否在请求时清除LCD。为了防止在多个短暂的请求上清除,我们可以设置request_length。这设置了一个在请求被认为是新请求之前的延迟(以秒为单位)。
最小配置
kosci_proxy_lcd:
proxy_ip: 192.168.1.102
dump:
enabled: true
##示例输出
['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}
