Node Wrapper around rusty-things
npm install rusty-thingsMagicMirror module to access your todo-entries from Things and display them in MM.
It was a learning project for me where I learnt about how to interact between Rust and Node.
The module looks like this:
!Example of MMM-rusty-things publishing todos
```
git clone https://github.com/piceaTech/MMM-rusty-things.git
cd MMM-rusty-things.git
npm install
mv example.env .env.env
Edit the and insert your hist_id.
After that either compile the native module locally on the pi or cross-compile from your desktop.
In the folder rust-things execute:
`neon build --release`
(This runs for approximately 30 minutes.)
1. cd rust-on-raspberry-docker
1. git checkout neon
1. If you need another node version than the current LTS-Version: Edit the Dockerfile and switch to correct BaseImage.
1. docker build --tag "neon-pi-cross:latest" .
1. Copy the following dependencies as .debs into native/pi_deps
1. ssl: http://ftp.debian.org/debian/pool/main/o/openssl1.0/libssl1.0-dev_1.0.2r-1~deb9u1_armhf.deb
1. sqlite: http://ftp.debian.org/debian/pool/main/s/sqlite3/libsqlite3-dev_3.16.2-5+deb9u1_armhf.deb
1. Inside your neon-folder run native/build.sh. This should create a native/index.node which should be compatible with arm.
- Currently there is an error in neon-serde which requires that the following patch be applied manually inside https://github.com/GabrielCastro/neon-serde/pull/29 inside your ~/.cargo/registry
- Currently neon does not support cross-compilation. it requires you add the following patch in the node_modules folder youreself: https://github.com/neon-bindings/neon/pull/411`