Build your own shelter display using some Arduino boards & 3D printing parts
Find the id related to the mission, in the file located under json/bus_missions.json
Mission object looks like:
{
"id":"100100020",
"name":"Gare de Lyon / Gare Saint-Lazare",
"shortName":"B20",
"image":"b20.gif"
}
Change the sMissionId value in arduino/arduino.ino with the id of your mission.
Example: 100100099 in my case
Open the following URL with your own mission ID: http://restratpws.azurewebsites.net/api/stations/<YOUR_MISSION_ID> and get the id of your station.
Station object looks like:
{
"id":"PC3_1039_1091",
"name":"Camille Flammarion"
}
Change the sStationId value in arduino/arduino.ino with the id of your station.
Example: PC3_1047_1074 in my case
The last value is the way of the bus ("a" or "r").
To know the way, open the following URL with your own http://restratpws.azurewebsites.net/api/directions/<YOUR_MISSION_ID>.
Direction object looks like:
[
{
"way":"A",
"name":"Porte Maillot"
},
{
"way":"R",
"name":"Skanderbeg"
}
]
Change the sWay value in arduino/arduino.ino with the way you want to display.
Example: "a" in my case
Wemos PIN | OLED PIN |
---|---|
5V | VDD |
GND | GND |
D5 | SCK |
D1 | DC |
D3 | RES |
D7 | SDA |
D8 | CS |
✅ Total: 4,26€