Vermes
Advanced Member level 4
The assumption was to display the number of people online on a web page.
On a www server, a web page should be created, that shows only the number of people who currently are on the page (NOTE! The number is also displayed in the page title).
The page that shows the number of people online looks like that: http://www.mini-gry.net/counter/index2.php.
When we already have the number of people in the title, it has to be moved to the uC, which in turn sends it to 7-segment display.
Originally, after starting PHP server locally on the computer, it connected with the page via Curle and got the number of people, then sent the number through RS232. It was added in the schedule of tasks to every 1 minute run the php file from the hard disk (which reads from the page the number of people online and sends data by RSA).
But a better solution is possible.
An application in Delphi was written. First thing to do is find the library that sends data through RS232. WebBrowser_V11 was used to get data from the Internet. CoolTrayIcon minimizes the application to Tray.
The program in Delphi always sends 2 bits (fist the number of tens, then the number of unities).
The application is run when the system is started and immediately minimizes to Tray.
The application on the PC looks like that:
Link to original thread (useful attachment) – Wyświetlacz ilości osób online na AVR