Display texts on a 16x2 I2C LCD via Python using HTTP requests on a Node.js server.
On project's directory, run:
$ npm install
On project's directory, run:
$ npm start
It will be running at http://localhost:3000/
On the URL, write one or two texts as parameters with maximum of 16 characters each. They will be displayed as first and second lines on the LCD (respectively).
- http://localhost:3000/lcd/Text of 16 chars (note that this example has exactly 16 characters).
- http://localhost:3000/lcd/First line/Second line (note that each line has its maximum of 16 characters, making a total of 32 characters).
- This project uses Node.js' child_process to execute shell commands, so be sure to check that your user has the necessary permissions.