TOLDOTECHNIK / buildroot-webkit

Buildroot WebKit fullscreen browser for Raspberry Pi. Suitable for HTML 5 user interfaces or digital signage / kiosk installations. It also can be used as a fullscreen video loop player. Ready to use RPi Zero/W and RPi 3 B SD card images are available.
244 stars 53 forks source link

missing python #9

Closed gaby64 closed 5 years ago

gaby64 commented 5 years ago

I would need python to install onoff node module to control gpio

there seems to be no way to install or build from source anything from within the pre-built images.

TOLDOTECHNIK commented 5 years ago

That's correct. The slimmed down distribution is not meant to compile anything on it. But there's a way to implement the onoff Node.js module.

If you want to build the image on your own, you have to do the following:

If you're lazy ;-), you can download a precompiled RPi 3 image here: https://dev.toldotechnik.li/download/sdcardRPi3-Python-onoff.img.zip

Be sure to export NODE_PATH=/usr/lib/node_modules before testing your Node.js application in the terminal.

gaby64 commented 5 years ago

thanks, im definitely taking the lazy route, I dont have a linux machine

TOLDOTECHNIK commented 5 years ago

Did you have success with the new build? So we can close the issue.

gaby64 commented 5 years ago

yes, altho 1080p playback is choppy and playing such video file from the microsd card leads to complete system unresponsiveness.

Raspberry Pi 3 B+

I decided to just run it as a server and display the webpage on a laptop

the intent is to show a quarry blast and activate a relay to shake the platform on which people stand.