Closed gaby64 closed 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:
rm board/toldotechnik_rpi/rootfs-overlay/usr/bin/node
), so the buildroot make process will compile the onoff
module against the correct Node.js versionpython
(make menuconfig
-> Target packages -> Interpreter languages and scripting -> python)onoff
module (Target packages -> Interpreter languages and scripting -> nodejs -> Additional modules -> add onoff
)make clean && make
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.
thanks, im definitely taking the lazy route, I dont have a linux machine
Did you have success with the new build? So we can close the issue.
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.
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.