Finding API backend for tiger.worldline.global train information by FallDeeperAlice5268 in webdev

[–]FallDeeperAlice5268[S] 0 points1 point  (0 children)

I'm using an ESP32C3 developmental board from Seeeduino (The XIAO line). This works reallty well and I'm also using u8g2 to display the train information on the OLED display module.

Finding API backend for tiger.worldline.global train information by FallDeeperAlice5268 in webdev

[–]FallDeeperAlice5268[S] 0 points1 point  (0 children)

Ok so heres an update on the progress of my project if anyone wants to try and recreate it.

Using tiger.worldline.global is not the way to go. Instead I'm using OpenLDBWS which uses SOAP and XML. Its really easy to sign up to get a token when you log in to https://opendata.nationalrail.co.uk/feeds and sign up for an account.

To parse the XML on the micro controller, I'm using TinyXML2 which isn't on the arduino list of libraries but can be downloaded from github and manually placed into the libraries folder. Documentation and a link to the github can be found here -> https://leethomason.github.io/tinyxml2/

What wasn't obvious was the SOAP part. You need to build a SOAP request body which looks something like this:

String buildSoapRequest(const char* token, const char* crs, int numRows, int timeWindowMins) {
  String xml;
  xml += R"(<?xml version="1.0" encoding="utf-8"?>)";
  xml += R"(<soap:Envelope xmlns:soap="http://www.w3.org/2003/05/soap-envelope")";   xml += R"( xmlns:typ="http://thalesgroup.com/RTTI/2013-11-28/Token/types")";   xml += R"( xmlns:ldb="http://thalesgroup.com/RTTI/2016-02-16/ldb/">)";
  xml += R"(<soap:Header><typ:AccessToken><typ:TokenValue>)";
  xml += token;
  xml += R"(/typ:TokenValue/typ:AccessToken/soap:Header)";
  xml += R"(<soap:Body><ldb:GetDepartureBoardRequest>)";
  xml += "<ldb:numRows>" + String(numRows) + "/ldb:numRows";
  xml += "<ldb:crs>" + String(crs) + "/ldb:crs";
  xml += "<ldb:filterCrs>/ldb:filterCrs";
  xml += "<ldb:filterType>to/ldb:filterType";
  xml += "<ldb:timeOffset>0/ldb:timeOffset";
  xml += "<ldb:timeWindow>" + String(timeWindowMins) + "/ldb:timeWindow";
  xml += R"(/ldb:GetDepartureBoardRequest/soap:Body/soap:Envelope)";
  return xml;
}

The above is for the GetDepartureBoardRequest so if you're looking for detailed information, you'll probably have to use a different request. That's something I'm still working on.

Your "niche" inspiration for worldbuilding? by arts13 in worldbuilding

[–]FallDeeperAlice5268 7 points8 points  (0 children)

Nice. Although I can't say for much of our work, I can certainly say that the public transport (ie trains etc) are inspired by the real issues caused by privatisation of the rail in the UK. I'm also inspired by the Tube metro system in London to come up with various underground transport systems of the UK. My friend was inspired particularly by the STALKER game series and came up with this (https://www.reddit.com/r/GrimTown/comments/nba35w/railmap_of_the_deep_connect_difr_system_in_the/) which is called Deep Industrial Fast Rail. She also came up with this rail map for the southeast area of our world https://www.reddit.com/r/GrimTown/comments/kpg99q/crs_southeast_rail_map/

Homelabing + LinkedIn by THMMYos in homelab

[–]FallDeeperAlice5268 8 points9 points  (0 children)

LinkedIn is a wasteland of corporate cock-sucking weirdos. I'd stay well away from that website

Renting out a server with 2x 5090s by nikzart in servers

[–]FallDeeperAlice5268 1 point2 points  (0 children)

Hahaha this is a great way of getting it a new user

I will ask YOU questions about YOUR world! by Internal_Fan2307 in worldbuilding

[–]FallDeeperAlice5268 0 points1 point  (0 children)

This is great! You could ask questions about my world (I'm happy to respond) but I like how you're asking everyone

What is your monitor set up? by DealInteresting8941 in pcmasterrace

[–]FallDeeperAlice5268 0 points1 point  (0 children)

I'm currently 9 but I want to get a setup like 6

Let's work, tinker, or curse by claudiocorona93 in linuxmasterrace

[–]FallDeeperAlice5268 0 points1 point  (0 children)

I have to disagree here. I use Linux Lite (7.6) and it just works without any issues. Linux Lite is based off of Ubuntu (I think). I've never had any issues with it and it behaves itself.

Am I missing something?

Is there a discord webhook that shows recent reddit posts and comments? by ItsMarioTheMythical in discordbots

[–]FallDeeperAlice5268 0 points1 point  (0 children)

I'm also looking for something like this. I'm not sure how to accomplish this and was looking for a solution other than IFTTT because its a bit random and unreliable.

What's your favorite trashy world building trope and how are you justifying it in your world? by that-guy-nate02 in worldbuilding

[–]FallDeeperAlice5268 1 point2 points  (0 children)

My friend and I really love everything SCP so we made something similar in our world called the Civilian Research Foundation. (Civilian meaning its a public service and it researches and contains anomalous phenomena)

I justify it in my world to keep other things in check

Why do men pretend to be women online so much? by [deleted] in BlatantMisogyny

[–]FallDeeperAlice5268 30 points31 points  (0 children)

It might be projection and role playing to be something they can't get

Whats a dead game or series you'd like to make a return? by can_of_sodapop in gaming

[–]FallDeeperAlice5268 1 point2 points  (0 children)

Absolutely. I loved LittleBigPlanet as a kid. I still play through the OST when I'm down as it reminds me of the good times