Comments (7)
Hey @julianlam yes, thanks for the suggestion. I think eips
might already be doing something like this under the covers, but I'll look into this in more detail soon.
from kindle-dash.
@julianlam I've added a bit of docs + the code I use here.
from kindle-dash.
I briefly looked into this and indeed it seems that eips
is doing something like this already internally. Calling eips
twice with the same image results in only one screen update (the first call), even with the -f
(full screen update) flag.
Doing a conditional HTTP request might save a tiny bit of energy, as the Kindle doesn't have to download the data and write to disk if the image hasn't changed. Given that these dashboard images are pretty small (mine are about 40kb), I doubt it's worth it to pour much time into this.
I'll soon merge a small change though that will make it easier to process headers of HTTP responses. With that it should be possible to implement conditional GET requests in fetch_dashboard.sh
, so outside of the 'core' code. I'll add an example for this after I merge these changes.
from kindle-dash.
Thank you for looking into this. It's good to know eips
is smart enough to not do the full screen update if the image has not changed.
Unrelated, but I noticed eips
screws up if the image is not grayscale. At least, with my test 600x800px RGBA PNG image. I wonder if eips knows how to automatically convert to grayscale...
from kindle-dash.
Indeed this is something to add to the documentation (which is a bit lacking as you might've noticed 😅). You can use pngcrush -c0 image.png
(on the server) to convert the image to grayscale. It's also easy to with pngjs
if you produce the images with Node.js.
from kindle-dash.
Thanks for the tips, I was hoping I wouldn't have to use imagemagick 👍
Just wondering, what utility did you use to convert the dashbling dashboard to an image? I ended up with firefox --screenshot
since both CutyCapt and phantomjs came with a ton of dependencies (per apt, anyway)
from kindle-dash.
I'm using Puppeteer + headless Chrome. I'm not behind my computer right now, I'll post the code later (and include it in the docs).
from kindle-dash.
Related Issues (13)
- How to disable kindle-dash? HOT 3
- Print last updated time and battery percentage onto the dashboard locally HOT 2
- Image aspect ratio morphed/incorrect HOT 5
- Add support for non Kindle devices HOT 2
- Render to png HOT 3
- Move next_wakeup_secs to local HOT 2
- When kindle is in RTC sleep it cannot be charged HOT 5
- Question: Battery life? HOT 5
- Failed to download image HOT 26
- Changing low-battery.sh to turn off the kindle and then ensure dash.sh/start.sh runs on boot
- Cron format has an unusual number of columns HOT 5
- wait-for-wifi.sh not working reliably when called from dash.sh HOT 6
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from kindle-dash.