-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
updated reamed.md cleanup polling task adapted app.properties keys
- Loading branch information
SBAS
committed
Nov 6, 2024
1 parent
8dfc5fd
commit d0164f4
Showing
5 changed files
with
24 additions
and
12 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,10 +1,17 @@ | ||
# trafficlight | ||
This small app is used to pilot a traffic-light signal mounted on an Arduino board. | ||
|
||
It periodically polls a URL where an HTML page is refreshed according to integration test results. This web page provides simple text. (e.g. `Green:Off, Yellow:On, Red:On`). The status values can be On, Off, or Blinking. | ||
This application is designed to control a traffic light signal mounted on an Arduino board. | ||
|
||
This text is then parsed to create a new traffic-light model that will replace the current one. The different views reflect the model state. One of these views is responsible for sending a command to the Arduino board using serial port communication. GUI is a helper while developing to interact manually with the model and reflect its state. Most of the time, the app is running minimized in the tray icon. | ||
## Overview | ||
|
||
Then, the Arduino firmware will decode the command to turn on/off/blink the LEDs. This project is in direct relation with RedLight(https://github.com/ssenegas/RedLight) project. | ||
The application periodically sends a GET request to a specified URL that hosts an HTML page reflecting the results of integration tests. This page provides simple text status updates for the traffic lights, such as `Green:Off, Yellow:On, Red:On`, where each color's status can be `On`, `Off`, or `Blinking`. | ||
|
||
The response data is parsed into a `TrafficLight` object, which updates the application's model with the current status. This model is reflected across various views, with one view dedicated to sending commands to the Arduino board through serial communication. The GUI primarily serves as a development tool, allowing manual interaction with the model and displaying its state, though the app typically runs minimized in the system tray. | ||
|
||
The Arduino firmware interprets commands from the application to control the LEDs' states (on/off/blink). | ||
|
||
## Related Projects | ||
|
||
This project directly relates to [RedLight](https://github.com/ssenegas/RedLight), which contains additional code and resources necessary for full functionality. | ||
|
||
 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,2 +1,2 @@ | ||
info.swiss-as.com.light=http://localhost:8080/examples/light.txt | ||
4lc= | ||
info.url.light=https://info.swiss-as.com/light.txt | ||
4lc=sbas |