A remote timer, equipped with a scheduling Web interface, controls a "DigitalOut".
Dependencies: Timezone NTPClient
WebTimer
The WebTimer is an Mbed device enabling to remotely control a DigitalOut. It has a "calendar-like" user interface to edit the schedule - a table you can click on (or tap on a touch-screen device).
The program was ported to Mbed from the Tuxgraphics site. Thank you Guido for sharing!
- When starting, it will print it's IP address over the USB serial link to the terminal screen. However, you can set a different static IP address if you modify the code in the
main.cpp
. - To connect to the WebTimer, type the IP address into the web browser edit box and hit
ENTER
. - When a cell is green then the timer keeps it's output
ON
during that period of time. If a cell is not green it means the output isOFF
.
- To select or deselect multiple cells you can click (keep down the button) and move the mouse over more cells.
- The smallest time interval on this 24h timer is 15minutes.
- To save the changes type in the password and hit
ENTER
or click on theSave
button. - The default password is "secret". But you can change it by editing the source code in
main.cpp
.
Diff: main.cpp
- Revision:
- 1:2d2517f82319
- Parent:
- 0:f78e57015038
- Child:
- 2:6d02d3d314a2
diff -r f78e57015038 -r 2d2517f82319 main.cpp --- a/main.cpp Wed Nov 11 16:56:02 2020 +0000 +++ b/main.cpp Wed Nov 11 17:09:39 2020 +0000 @@ -109,7 +109,7 @@ ui = ui / 10; } - strcat(httpBuf, strBuf); + strcat(httpBuf, &strBuf[i]); } /* check the tablebitmap and return: