Code Monkey home page Code Monkey logo

Comments (6)

MartinLindenau avatar MartinLindenau commented on June 23, 2024 2

With 1.0.5 the same problem.

from hass-lovelace-kindle-screensaver.

blockarchitech avatar blockarchitech commented on June 23, 2024 2

I totally forgot I had this open! Thanks again, @sibbl !

from hass-lovelace-kindle-screensaver.

cannondale0815 avatar cannondale0815 commented on June 23, 2024 1

@sibbl Hi Sebastian, seems like an older issue -- just wanted to call attention to it as it seems to be buried all the way at the bottom. Thanks mate!

from hass-lovelace-kindle-screensaver.

sibbl avatar sibbl commented on June 23, 2024 1

Hi @cannondale0815 the error from version 1.0.7 was kind of related to this one, but I'd like to keep this one open.

In addition, I'd like to quote my findings from the other bug report:

The cause of this might be that our Dockerfile uses imagemagick instead of graphicsmagick. While the used npm module gm says to be compatible with both, it doesn't seem to support the differences in the dither parameter. While +dither works for both, the -dither parameter requires the name of the dither algorithm to use in imagemagick, while graphicsmagick only uses it as a toggle.

Maybe it's worth to give Graphicsmagick another try in the Dockerfile but I'm not sure what other incompatibilities will occur. An alternative would be to open an issue in the gm npm package repository. Finally, we could also just use the "custom arguments" feature of the gm npm package to support -dither ALGORITHM and ยด+dither` by our own. That's probably what I'd prefer.

#112 (comment)

So probably the last option might also finally solve this issue here.

from hass-lovelace-kindle-screensaver.

cannondale0815 avatar cannondale0815 commented on June 23, 2024

Confirming the same in add-on 1.0.7 still. Running Home Assistant OS on raspberry-pi 4.

`Starting browser...
Visiting 'http://192.168.1.10:8123' to login...
Adding authentication entry to browser's local storage...
Starting first render...
Rendering http://192.168.1.10:8123/dashboard-kindle/0 to image...
Converting rendered screenshot of http://192.168.1.10:8123/dashboard-kindle/0 to grayscale png...
/app/node_modules/gm/lib/command.js:301
err = new Error('Command failed: ' + stderr);
^

Error: Command failed: convert: unrecognized dither method `-background' @ error/convert.c/ConvertImageCommand/1422.

at ChildProcess.onExit (/app/node_modules/gm/lib/command.js:301:17)
at ChildProcess.emit (node:events:517:28)
at maybeClose (node:internal/child_process:1098:16)
at Socket.<anonymous> (node:internal/child_process:450:11)
at Socket.emit (node:events:517:28)
at Pipe.<anonymous> (node:net:350:12) {

code: 1,
signal: null
}
`

from hass-lovelace-kindle-screensaver.

cannondale0815 avatar cannondale0815 commented on June 23, 2024

Wow, it looks like @sibbl just released 1.0.8 and it fixes this error! Thank you!!

from hass-lovelace-kindle-screensaver.

Related Issues (20)

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.