Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add bonus script: kindle-display #1301

Merged
merged 4 commits into from
Jul 4, 2020

Conversation

dennisreimann
Copy link
Contributor

Added my Bitcoin Status Display. Let me know if this needs more documentation or integration.

Added my [Bitcoin Status Display](https://github.com/dennisreimann/kindle-display). Let me know if this needs more documentation or integration.
@Emzy
Copy link
Contributor

Emzy commented Jun 30, 2020

Tested ACK

But without a btcpayserver there is no price displayed.

It uses a Firefox to render out (via cron every 5 minutes) the png file for the Kindle. Seems a bit heavy for the task.
But works on my 2GB Ram Raspberry Pi.

@openoms
Copy link
Collaborator

openoms commented Jun 30, 2020

This is great, but setting up the Kindle is far from trivial (just taking a break from trying to make usbNetwork work ). Will make some notes if succeed at some point.

I'd like to suggest to put it in the SETTINGS menu with the other display related things.

Testing:

./XXsyncScripts.sh kindle-display dennisreimann
./config.scripts/bonus.kindle-display.sh on

@Emzy
Copy link
Contributor

Emzy commented Jun 30, 2020

This is great, but setting up the Kindle is far from trivial (just taking a break from trying to make usbNetwork work ). Will make some notes if succeed at some point.

Yes this was super hard, you need to find the right thing for the model and firmware version. It took me like 2 hours. Already forgot how I did it (was 4 weeks ago).

I'd like to suggest to put it in the SETTINGS menu with the other display related things, rather than listing in SERVICES with the 1 click installs.

+1

@openoms
Copy link
Collaborator

openoms commented Jun 30, 2020

Succes on Kindle 4 (v 4.1.4)
Rudimentary notes: https://gist.github.com/openoms/56979d0859d7063cb734bdacabf1068f

Files used:
image

@dennisreimann
Copy link
Contributor Author

@openoms Ok, thanks for your suggestions. As discussed I'll leave this out of the menus as it is hard to seet up and I don't explicitely want to advertise usage of this. The main purpose of adding it was that some people were asking for it and it will make their life easier :)

Also added your notes to the main README of my repo, others might find them helpful when setting up USB networking.

I consider this finished for now – it is also using a fixed version of the app instead of pulling the master branch on install.

@rootzoll rootzoll merged commit 9d40258 into raspiblitz:v1.6 Jul 4, 2020
rootzoll pushed a commit that referenced this pull request Jul 4, 2020
@openoms
Copy link
Collaborator

openoms commented Jul 5, 2020

After getting this work initially now I only have this image generated on my RPi:
image

Node version is: Node.js v12.16.3.

$ sudo systemctl status kindle-display.service 
● kindle-display.service - kindle-display
   Loaded: loaded (/etc/systemd/system/kindle-display.service; enabled; vendor preset: enabled)
   Active: active (running) since Sun 2020-07-05 08:36:16 BST; 3s ago
 Main PID: 15910 (npm)
    Tasks: 19 (limit: 4915)
   Memory: 19.7M
   CGroup: /system.slice/kindle-display.service
           ├─15910 npm
           ├─15925 sh -c node -r dotenv/config index.js
           └─15926 node -r dotenv/config index.js

Jul 05 08:36:16 raspberrypi systemd[1]: Started kindle-display.
Jul 05 08:36:17 raspberrypi npm[15910]: > kindle-display@0.2.0 start /home/kindledisplay/kindle-display/server
Jul 05 08:36:17 raspberrypi npm[15910]: > node -r dotenv/config index.js
Jul 05 08:36:18 raspberrypi npm[15910]: Running at http://localhost:3030

Tried reinstalling, restarting, but not sure what is wrong.

@dennisreimann dennisreimann deleted the kindle-display branch July 5, 2020 09:57
@dennisreimann
Copy link
Contributor Author

@openoms this looks like the initial data could not get generated. Not sure why this might have failed. I tried running off/on and for me it worked, but I'll submit a fix PR that ensures the file is there so that the server can start.

@dennisreimann
Copy link
Contributor Author

Addressed in #1316

@grnqrtr
Copy link
Contributor

grnqrtr commented Jul 9, 2020

Just thought I would comment that this is working well for me too. I had some trouble with the USBNetwork setup, even with @openoms extra instructions that you added. This is what I eventually found and was successful with (https://www.mobileread.com/forums/showthread.php?t=204942):


-     un-plug cable (if still plugged in)
-     toggle USBnetwork ON in launcher
-     plug the cable
-     kill any automation (or configure yours to do: )
-     sudo ip link set up dev usb0 (It may already be up)
-     sudo ip address add 192.168.15.201 peer 192.168.15.244 dev usb0
-     use the networking until your done (telnet 192.168.15.244)
-     un-plug cable
-     toggle USBnetwork OFF in launcher

dennisreimann added a commit to dennisreimann/kindle-display that referenced this pull request Jul 10, 2020
@dennisreimann
Copy link
Contributor Author

@grnqrtr Thanks, I've added it to the README.

Also a heads-up for everyone: With #1321 and the kindle-display v0.4.0 I've refined this a bit more, which allows to choose the exchange rates and require outside connections to be done via Tor. Thanks @openoms and @csperle for the contributions that lead to this! 🍰

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants