denpamusic / lua-lcdproc Goto Github PK
View Code? Open in Web Editor NEWLCDproc client for Lua
Home Page: https://lua-lcdproc.denpa.pro/
License: MIT License
LCDproc client for Lua
Home Page: https://lua-lcdproc.denpa.pro/
License: MIT License
hello,my english is poor!
Using your sample and readme code now, I find the following problems
1:README.md
"local lcd = LCDproc("localhost", 13666)" Need to be changed to "local lcd = LCDproc.new("localhost", 13666) "
2:README.md
if i use debug “local lcd = LCDproc.new("localhost", 13666, { timeout = 3, debug = true })”
There will be problems
err log:
hello
<<< connect LCDproc 0.5.9 protocol 0.3 lcd wid 21 hgt 8 cellwid 6 cellhgt 8
screen_add my_screen
<<< success
widget_add my_screen one title
<<< success
widget_set my_screen one {Title Text}
<<< success
widget_add my_screen two string
<<< listen my_screen
widget_add my_screen three string
<<< success
widget_set my_screen three 1 3 {Second Line Text}
<<< success
widget_add my_screen four string
<<< success
widget_set my_screen four 1 4 {Third Line Text}
<<< success
<<< [poll] success
<<< [poll] ignore my_screen
<<< [poll] listen my_screen
lua: r.lua:17: attempt to index field 'two' (a nil value)
stack traceback:
r.lua:17: in function 'fn'
/usr/lib/lua/lcdproc.lua:27: in function 'do_events'
/usr/lib/lua/lcdproc.lua:250: in function 'poll'
r.lua:26: in main chunk
[C]: ?
3: I try to use "Menu:add_action (id, text, result, hidden, prev)",but something's wrong
err log:
menu_add_item "" checkbox_id checkbox -value on -allow_gray true -text {checkbox_txt}
<<< success
Item:init-hello
menu_add_item "" menu_leave_id menu -text {menu_leave_txt}
<<< success
table: 0x4ffc20 table: 0x5038e0 leave_y yes false nil
Item:init-hello
lua: /usr/lib/lua/lcdproc/menu.lua:66: attempt to call method 'create' (a nil value)
stack traceback:
/usr/lib/lua/lcdproc/menu.lua:66: in function </usr/lib/lua/lcdproc/menu.lua:63>
(tail call): ?
/usr/lib/lua/lcdproc/menu.lua:724: in function 'add_action'
demo2.lua:24: in main chunk
[C]: ?
We look forward to your reply!QAQ
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.