sibbl / hass-lovelace-kindle-4 Goto Github PK
View Code? Open in Web Editor NEWHow to build your own Kindle 4 photo frame displaying your Home Assistant Lovelace panel
License: MIT License
How to build your own Kindle 4 photo frame displaying your Home Assistant Lovelace panel
License: MIT License
It would be useful to report back the battery status and charging status to the docker service. Then the service could update a Home Assistant sensor through MQTT or something like that.
Doing that it's possible to have the battery level on the Lovelace dashboard.
I can help with that if I can find some free time to do it.
I believe in the readme when you say ....
- Set the variables at the top of this repository's extensions/homeassistant/script.sh
You actually mean
- Set the variables at the top of this repository's extensions/homeassistant/config.sh
first of all - great work!
I've just jailbreaked an old K4NT, and starting your screensaver + hass-lovelace combo was a piece of cake :)
after few moments I thought I'll change some settings and then I realised, I can't ssh to my kindle ;)
earlier, I had ssh via wifi enabled via KUAL menu [USBnetworking is installed] but to be honest - didn't used that. tried now - without any luck
when I connect my kindle to PC it is found as USB Serial Device COM8, but can't be seen anywhere in network-related settings, does it mean I won't be able to ssh it via usb connection?
also - I tried to reboot the device by long-pressing the power button, but it seems like it just turns off, and when turned on it quickly starts to display my home-assistant dashboard.
shoud I be worried and I need to unbrick it/root again, or there's some solution I can use? [everything - I mean HASS screensaver - work fine, I just can't get into the device ;)]
excuse me if those are uber-n00b questions, as I am indeed a noob in the world of Kindle rooting ;)
I set up a Kindle 4 following the Wiki, and to start with the Dashboard displayed as expected, updating every minute.
However, since then it repeatedly either disconnects showing the no WiFi screen, or doesn't update the page at all, almost like it's crashed.
I may have misconfigured something, but what can I check/change to make it more stable?
Hi Sibbl,
Thanks again for the work.
I am eperiencing something I don't understand despite trying several things: My K4S is always plugged... but after about 24 hours running, it starts showing the "Low battery" image, and then it "dies" after some time.
I thought I damaged the battery connector, but it doesn't seem to be the case: It seems that while always plugged, the battery charges and after being charged, the kindle will somewhat stop using the power from the adapter and start using the battery. The charging led still displays "green" even though the battery depletes until it is completely depleted.
If I unplug the outlet from my wall electricity outlet for about 10 seconds, the led turns off and then if I reconnect it, the led goes back to orange again, then it will charge until green... and then we go all over again.
Is this something you are experiencing? Did I misunderstand some of of the parameters in the shell that I should adapt (maybe the BATTERYSLEEP? I don't really understand what this parameter is for
BATTERYALERT=15 # if the battery level is equal to or below this threshold, a info will be displayed
BATTERYLOW=5 # if the battery level is equal to or below this threshold, the "please charge" image will be shown and the device will sleep for a long time until it checks again (or boots up and starts the script again)
BATTERYSLEEP=3600 # 1 day sleep time when Battery Level is equal or below the "BATTERYLOW" threshold, see above.
Thanks!
Hey,
I just wondered if it would be possible to ad a button or menu entry in KUAL instead of the autostart. It may be more convenient for some people.
What do you think about that?
Hi there,
so i´ve set up everything. But where do i set up the IP of the kindle? How does the Dockerimage know, where to put the dashboard?
Hey there,
I really enjoy your work! I set everything up and almost running. I have 2 problems. I really like your design of the Lovelace Dashboard, how did you manage it to be in a single column mode? I always have to columns...
The second problem is, the kindle is updating the image and the log looks fine, but the image is not displayed. I just get a blank screen. The URL is available in my network. Here is a part of the log:
Tue Jan 5 18:32:23 UTC 2021: Set CPU scaling governer to powersave
Tue Jan 5 18:32:23 UTC 2021: Set prevent screen saver to true
Tue Jan 5 18:32:23 UTC 2021: Remaining battery 98
Tue Jan 5 18:32:23 UTC 2021: Enabling and checking wifi
Tue Jan 5 18:32:24 UTC 2021: Connected to wifi
Tue Jan 5 18:32:24 UTC 2021: Found default gateway 192.168.178.1
Tue Jan 5 18:32:29 UTC 2021: Screen saver image file updated
Tue Jan 5 18:32:29 UTC 2021: Removed temporary files
Tue Jan 5 18:34:29 UTC 2021: SUCCESS, will update again on 1609871609
Edit: I could solve the second problem by reducing the greyscale from 16 to 8 although the kindle should be able to display this kind of image.
Firstly, thanks for the project. When (if) I get this up and running it will make my HA experience wonderful. I can do all sorts of practical things like make sure the usual doors and windows are closed before leaving, and ensure my grocery list is on the wall next to my partners' "analogue" grocery list.
Can I ask where is the best place to seek help with the install process - Here? Mobileread.com? the HA forums?
I bought a cheap K4 locally on seeing this project, but without realising the complexity of the various kindle-specific setup processes.
I got to installing KUAL, but now get the "Test Kindle Installation Result" notice (and "device not authorised" KUAL error).
Reinstalling MKK does make that go way, but only if I never connect to the wifi (which is obviously not ideal for use with your screensaver container).
It's not clear from the instructions whether I should have registered my device with Amazon (I haven't logged in) or not etc. I also can't find a post mentioning an addon which blocks contacting the mothership.
edit the KUAL addon BBB seemed to be an important part of the install process. However, it's not making any difference - I keep getting the authorisation revoked when I connect to wifi
further edit if I run the kindle in airplane mode, and reinstall MKK, I can at least ssh in over USB - the connection is patchy though
Hi, loving the project so far!
I've completed the steps but when I restart the kindle nothing happens. I can see the software within KUAL, but when I click to launch it my kindle freezes for a few seconds then returns to the library screen.
I have logs enabled in the config.sh file, but no log is generated.
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.