1
General Discussion / New JavaScript Bindings for Test
« on: February 18, 2014, 16:50:18 »
Hei Tinkerers,
We have finished working on the new Javascript bindings which will support both browser and Node.JS. Currently for testing only the Node.JS version is available.
The bindings are already in NPM registry.
First of all, you need to have a working Node.JS installation and NPM installed on your system (better if they are updated to the latest version).
Then you can install the bindings using the following command,
You must make sure that the environment variable `NODE_PATH` is in your env list. This is usually pointing to `/usr/local/lib/node_modules/`.
After that you should be able to try out all the examples found in the attached archive with the following command,
Don't forget to change the UID and network parameters depending on the setup you are testing on.
Have fun trying out the new bindings and it would be very much appreciated if you post your findings and feedback on this post.
Cheers,
Ishraq
We have finished working on the new Javascript bindings which will support both browser and Node.JS. Currently for testing only the Node.JS version is available.
The bindings are already in NPM registry.
First of all, you need to have a working Node.JS installation and NPM installed on your system (better if they are updated to the latest version).
Then you can install the bindings using the following command,
Code: [Select]
sudo npm -g install tinkerforge
You must make sure that the environment variable `NODE_PATH` is in your env list. This is usually pointing to `/usr/local/lib/node_modules/`.
After that you should be able to try out all the examples found in the attached archive with the following command,
Code: [Select]
node <exmaple_to_execute.js>
Don't forget to change the UID and network parameters depending on the setup you are testing on.
Have fun trying out the new bindings and it would be very much appreciated if you post your findings and feedback on this post.
Cheers,
Ishraq