Coder Social home page Coder Social logo

alinke / pixel Goto Github PK

View Code? Open in Web Editor NEW

This project forked from onebeartoe/pixel

28.0 28.0 15.0 282.64 MB

A repository for the open source Pixelcade LED and LCD marquee for arcade machines

Home Page: http://pixelcade.org

Java 63.11% HTML 0.88% CSS 0.12% JavaScript 0.62% Shell 4.16% Python 0.43% C++ 29.44% CMake 1.21% C 0.02%

pixel's People

Contributors

alinke avatar crobinsofit avatar curtis-bull avatar kaicherry avatar onebeartoe avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar

pixel's Issues

[Suggestion] Give us control over line breaking

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

[Suggestion] Honor the individual GIF frame times

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

Return tab after uploading

When the user uploads, they should be taken back to the same tab they started from after the upload has finished.

Console images are hardcoded to default-*

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)

consoleFilePathPNG = this.application.getPixel().getPixelHome() + "console/default-" + consoleNameMapped + ".png";

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

pixelweb.jar does not properly support --webport or -w

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"));

User uploads not working for web enabled pixel

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)

[Bug] Getting "This GIF was already decoded" even after deleting the image

arcade handler received: /arcade/stream/user/clock?l=0
STREAM MODE
Console Before Mapping: user
Console Mapped: user
Game Name Only: clock

of Times to Loop: null

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

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.