the primary reason I chose to use this distribution of openwrt is for the node.js scripting, which will allow me to provide an html server and be able to run shell scripts.
Here is what the web page looks like so far.
This is my first journey into java script, and here is what I have so far;
- When a client accesses the web page, and makes a POST request, the server sends the client the web page shown above.
- Then a couple of shell scripts are executed.
- The first script runs some i2c commands to get the latest data from the environmental sensors and calculates the speed of light.
- The second script communicates with the HP5508A over the GPIB adapter.
- The third script knits together a new HTML file to send to the client the next time it makes a POST request.
There are a bunch of problems with this approach, but it at least has given me a first step toward accomplishing something.
Discussions
Become a Hackaday.io Member
Create an account to leave a comment. Already have an account? Log In.