-
Couldn't load subscription status.
- Fork 3
Tutorials
Matej Sychra edited this page Mar 22, 2018
·
11 revisions
Seeking contributors here.
- Update package repositories:
cd / && apt-get update
- Install dependencies (you may keep your nodejs of use any tutorial regarding nodejs installation):
apt-get -y install unzip nodejs npm git
- Download sources:
git clone https://github.com/suculent/thinx-firmware-js.git
- Enter directory:
cd /thinx-firmware-js/
- Install dependencies:
npm install .
- Run THiNX Client:
node index.js
- Add following lines to
/etc/rc.localto start THiNX client on boot (adjust path to fit yours):
cd /root/thinx-firmware-js && node index.js > /var/log/thinx.log &
- USB Swap recommended.
-
Connect to your Onion Omega 2+ using Terminal (the web console is missing Paste function).
-
Enable LEDE repositories for OPKG by uncommenting
reboot_packagesin/etc/opkg/distfeeds.conf:
sudo nano /etc/opkg/distfeeds.conf
- Update OPKG repositories:
opkg update
- Install dependencies:
opkg install unzip nodejs npm git git-http ca-bundle
- Download sources:
git clone https://github.com/suculent/thinx-firmware-js.git
- Enter directory:
cd thinx-firmware-js/
- Disable MQTT's readable stream as it is not supported on this HW:
export READABLE_STREAM="disable"
- Install dependencies:
npm install .
If it fails due to memory reasons, just try again...
- Run THiNX Client:
node index.js
- Add following lines to
/etc/rc.localto start THiNX client on boot:
export READABLE_STREAM="disable"
cd /root/thinx-firmware-js && node index.js > /var/log/thinx.log &