9292 dutch public transport monitor

I made a simple library that fetches information about the Dutch public transport. This project shows how you can use the library
I wanted to be able to show public transport information on my microcontroller of choice. The code I wrote is written for the ESP32 but also works on the ESP8266. It simply makes an HTTP-request at the 9292 API. The server then returns a JSON string with the information you requested. Then this information can be parsed so that you are left with the information you want, for instance the departure time of a specific train, or the destination of a bus of choice.
The information then can be displayed on a display of your choice.
The information then can be displayed on a display of your choice.
Updates from the author
0xC45 5 years ago
After testing my circuit on a breadboard, I wanted to have everything in a little enclosure, and I wanted it to work on a 5 Volt source so that I could easily power it using USB. I chose for an ESP-01 module as that module is really small. I used a 5V-3.3V module based on the AMS1117 voltage regulator to make 3.3V for the ESP and the display, and soldered everything together using enamelled copper wire. The 5V is fed into the box via a screw terminal.
The ESP sends it's data to a 0.96 Inch OLED display module over I2C. You can use whatever display you wan't though. I have also written an example that writes the data to a 2004 LCD display module, for instance.
You can find the arduino-library on GitHub as well: https://github.com/H3ndrik-Jan/arduino-9292-library
As I mentioned before, I wrote and tested the code on an ESP32 first. On the ESP32, you can also plan a journey and get the departure time for that journey. This is handy for when you wan't to see in one eye-blink if there are some delays somewhere in your journey.
But on the ESP32, this should work stable as well!
Note that I am just a first year electrical engineering student, so any advise, for example on how to arrange a code library in a good fashion, is very welcomed! :-)
eduino.io #oetelx 5 years ago
My question is about the use of the API, it looks like you need to enter into a contract with 9292 | REISinformatiegroep BV before you can use it.
How does that work and what does it cost? What did you do?
These people are trying to make a living from providing this information so I can not imagine that this information / API will be free for a very long time.
What is your view on this?
Best regards,
Edwin
0xC45 5 years ago
My code is only written using the references people earlier (over 7 years ago) reverse engineered from the 9292 mobile app, and published on github (https://github.com/aitorvs/9292-api-spec).
I have never had any contact with 9292, so I don't know anything about, official references prices, use policies etc.
I found an request form for the api here though: (https://9292.nl/zakelijk/9292-reisadvies-api). I have thought about writing an email to the email-address also listed on the page, but ended up not bothering doing so as I reconed my use of the API would be insignificant anyways, as I am just a hobbiest making a couple requests, without any financial intents.
But I think you should not make use of the library when you are using it on a big scale with financial intents.
I have no clue about how long the API will be available/ 'free' (in the means that no authentication is required to access the API) either; the only thing I know is that it works for 7 years already.
Kind regards,
0xC45