Page 1 of 1

User Interface on Web-Server to control Led Matrix Panel

Posted: Wed Jan 14, 2015 8:46 am
by Martix95
Hello everybody,
I'm currently working on a school project with the Raspberry Pi, and since I'm a newbie I'm having some difficulties.
The project is essentially: a 32x32 RBG Led Matrix Panel connected via GPIO to the RasPi, and all of this is put in a square lamp (which obviously lets the led's light through).
I downloaded this library (https://github.com/hzeller/rpi-rgb-led-matrix) to control it and - after many difficulties - it works pretty well. I could also put new PPM images to scroll and the result is very good to see.

However, our task was creating a "potentially saleable object": writing every time the instructions on the terminal (sudo ./led-matrix -d -t...) isn't exactly user-friendly. So the idea - recommended by our professors - is setting a web-server with a graphical interface, which could show for instance a list of all the available images to display, so that it can be accessible by a mobile phone too. A further step should be allowing the user to directly upload his own images/text.
The main problem is that, as I wrote before, I'm a total noob: once I set the webserver (f.i. following this tutorial: http://www.wikihow.com/Make-a-Raspberry-Pi-Web-Server), how do I continue?
It shouldn't be so hard, because all I want is that, when I click on "show the xxx image", the matrix displays the text as if I wrote the command on the terminal... I looked for some web tutorials, but I didn't find anything that fits my necessities.

Thanks a lot if someone could help me!

PS: Sorry if I made any mistake... I'm writing from Italy :roll:

Re: User Interface on Web-Server to control Led Matrix Panel

Posted: Wed Jan 14, 2015 8:36 pm
by Laurens-wuyts
You can use CGI in python to control a script from a webpage.
http://www.tutorialspoint.com/python/py ... amming.htm
You can also use javascript in the html file to send to the script which image you would like to display.
On this site you can learn how to use HTML, PHP, Javascript, CSS, SQL and Jquerry.
- HTML > Webpage layout
- PHP > Program at the loading of the webpage.
- Javascript > Program while browsing on the page
- CSS > Style of the webpage
- SQL > Databases

If you have more questions please ask. ;)

Laurens

Re: User Interface on Web-Server to control Led Matrix Panel

Posted: Wed Jan 13, 2016 9:47 pm
by LanternCrone
Have you made any progress one this? I am looking to do something similar but I am unsure of where to start.