I have a python-based web server running on my raspberry pi that web scrapes trade currency rates on Roblox. If you don't know what I just said, all you need to know is that I am gathering numbers that change on a certain webpage. I want to import this collected information into my Roblox game so I can graph it (I already have the grapher made).
Here is what I did to import it:
bux = game.HttpService:GetAsync("http://tcserver.raspctl.com:5000/AvailableRobux.txt")
bux = {bux}
tix = game.HttpService:GetAsync("http://tcserver.raspctl.com:5000/AvailableTickets.txt")
tix = {tix}
This gives me a 404 response. If I access the web server from my computer (On the same network), it also gives me a 404 response. I know I am port-forwarding correctly because the following line of lua DOES work.
print(game.HttpService:GetAsync("http://tcserver.raspctl.com:5000/AvailableRobux.txt"))
I need the robux and ticket rates to be stored in a table. Go to one of the URLs with the rate data and you will see that it is already formatted for a Rbx.Lua table, it just needs the curly braces. How can I turn my data into a table?