I am quite puzzled with the web interface/coding used in Tomato.
I have an Arduino with temperature and humidity sensors that I would like to display on the header of the page layout.
I turned on SSH and ran these commands:
After that, I connected it, and ensured I was running the sketch with serial on the Arduino. It took me a bit to figure out why dmesg wasn't seeing a new device. I looked around online, and found nothing. Then I went to the USB page, and enabled OHCI, rebooted, and it was able to detect it after I inserted the two kernel objects.
It took me a few minutes to display the serial data, but I googled around and found a website (won't let me post link) which one user showed a simple shell script. I looked at it and ran the commands without the script, being
stty -F /dev/ttyUSB0 57600
which gave no output, so I assumed it worked. Then I ran this command:
which seems to open a serial terminal, feeding the serial data as expected.
I now want to take this data, and have it displayed on the header of the web interface. I'm sure it can't be much harder, but I am confused as to where even start digging around in the www folder. I've looked at the openlinksys.css style sheet, the status-overview.asp file, and the tomato.js file.
I'm sure I could be easily overlooking this, but I'll try and Google some more.