alinke / pixel Goto Github PK
View Code? Open in Web Editor NEWThis project forked from onebeartoe/pixel
A repository for the open source Pixelcade LED and LCD marquee for arcade machines
Home Page: http://pixelcade.org
This project forked from onebeartoe/pixel
A repository for the open source Pixelcade LED and LCD marquee for arcade machines
Home Page: http://pixelcade.org
The automatic line breaking doesn't make very good use of the space it has available to it, often leaving lines with lots of empty space.
I would suggest letting us use a line break character (ie %13) that disables the automatic line breaking
As well as letting us set the font size to 0, and having it automatically select the biggest font size that will fit all text on screen
For when line breaks are used, it'd have to calculate that font size for each line, then pick the smallest one of them
Would it be possible to add support for this device to the web app?
I'd like to make GIFs that hold on the last frame (by setting it's time to a large number) rather than have to make multiple copies of the last frame, since at current you only honor the frame time of the second frame
When the user uploads, they should be taken back to the same tab they started from after the upload has finished.
Currently when the hardware is disconnected, you echo that error over and over until it's reconnected. But this causes a problem where the queue of error messages can go on for so long that it bogs down the window and I've had to close it and reopen it to get a response again
Instead, I suggest only echoing once on disconnection, then again when it reconnects.
The console logs that the system is looking for console\system.png or .gif but the code requires it to be consoles/default-system.(png|gif)
Looking for: /userdata/system/pixelcade/console\lightgun.png or .gif
Additionally, you should be using the os-specific filesystem separator and not hardcoded strings which are not correct on linux
I'd like to know how long it'll take for the text to scroll all the way off screen, so I know how long to wait for the next command so it doesn't interrupt the scrolling
Looks like a copy/paste issue ("p" instead of "w".) The fix is in line 73 of
PIXEL/pixel-web-enabled/src/main/java/org/onebeartoe/web/enabled/pixel/CliPixel.java
Incorrect:
WebPortOption = Integer.parseInt(cmd.getOptionValue("p"));
Fix:
WebPortOption = Integer.parseInt(cmd.getOptionValue("w"));
Am testing on the Raspberry Pi. The newly updated GIF does show up correctly in the animations pane but when clicking it, this error message occurs:
INFO: animation handler is writing animations/5CnSka7.gif
Checking PIXEL activity in Pixel.
Pixel is stopping PIXEL activity in Pixel..
Decoding 5CnSka7.gif
ERROR Could not find animations/gifsource/5CnSka7.gif in the JAR file
PIXEL LED panel resolution is: 32
Selected LED panel is different than the encoded GIF, need to re-encode...
ERROR Could not find animations/gifsource/5CnSka7.gif in the JAR file
java.io.FileNotFoundException: /home/pi/pixel/animations/decoded/5CnSka7.txt (No such file or directory)
at java.io.FileInputStream.open(Native Method)
at java.io.FileInputStream.(FileInputStream.java:138)
at java.io.FileInputStream.(FileInputStream.java:93)
at org.onebeartoe.pixel.hardware.Pixel.getDecodedfps(Pixel.java:460)
at org.onebeartoe.pixel.hardware.Pixel.writeAnimation(Pixel.java:1369)
at org.onebeartoe.web.enabled.pixel.controllers.AnimationsHttpHandler.writeImageResource(AnimationsHttpHandler.java:42)
at org.onebeartoe.web.enabled.pixel.controllers.ImageResourceHttpHandler.getHttpText(ImageResourceHttpHandler.java:77)
at org.onebeartoe.network.TextHttpHandler.handle(TextHttpHandler.java:19)
at com.sun.net.httpserver.Filter$Chain.doFilter(Filter.java:79)
at sun.net.httpserver.AuthFilter.doFilter(AuthFilter.java:83)
at com.sun.net.httpserver.Filter$Chain.doFilter(Filter.java:82)
at sun.net.httpserver.ServerImpl$Exchange$LinkHandler.handle(ServerImpl.java:675)
at com.sun.net.httpserver.Filter$Chain.doFilter(Filter.java:79)
at sun.net.httpserver.ServerImpl$Exchange.run(ServerImpl.java:647)
at sun.net.httpserver.ServerImpl$DefaultExecutor.execute(ServerImpl.java:158)
at sun.net.httpserver.ServerImpl$Dispatcher.handle(ServerImpl.java:431)
at sun.net.httpserver.ServerImpl$Dispatcher.run(ServerImpl.java:396)
at java.lang.Thread.run(Thread.java:745)
I've been unplugging my unit when I shut down my PC for the night.
I'd rather send a command similar to the blank-screen command, that stays until it gets the next command.
In some situations, I send text commands every second and that flash is very distracting.
It's not present during GIF animations, so I suspect it can be removed
Minor issue, work around is just use the Chrome browser and don't use Safari for web enabled PIXEL
The webserver makes buttons with ONCLICK="functionname('filename')", but when filename contains apostrophes or double quotes, it breaks the javascript. These need to be escaped, or replaced in the same way you replace spaces with %20
I have been using it for real time applications, specifically a clock, and showing text messages
text messages are set to show in 4 lines
the clock in 2
I sent the text message to the display, and before it was finished scrolling, the clock event fired, and now it's stuck in 4 line mine even though the clock event is sending 2 lines
arcade handler received: /arcade/stream/user/clock?l=0
STREAM MODE
Console Before Mapping: user
Console Mapped: user
Game Name Only: clock
Looking for PNG: C:\BitPixel\Pixelcade\user\clock.png
Looking for GIF: C:\BitPixel\Pixelcade\user\clock.gif
Found GIF: C:\BitPixel\Pixelcade\user\clock.gif
This GIF was already decoded
This image is generated every minute, and I've deleted it just to be safe. Closed/restarted pixelweb. Same result
I would suggest when ?l=0 is specified, it uploads it anyway
Work around is to stop and re-start the .jar on the Pi. Maybe check that after writing (saving), we are still putting pixel back into interactive mode and not stuck on local playback
The original file size of the PNG on my Mac was 166 bytes and the file size on the Pi was 167 bytes. This file does display fine in the still images pane. When uploading the file, the browser shows this message but it does not go away
PIXEL/Pi-Image/artwork/index.html
Line 157 in 9815af7
I believe this to be a typo? should be pixelcade.org
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.