Quantcast
Channel: Raspberry Pi Forums
Viewing all articles
Browse latest Browse all 8609

Python • Re: Python / Flask server not displaying embedded text data on served out HTML file

$
0
0
Thanks for your input here. I think I get what you are saying in that that the python script for host "127.0.0.2" only has a route for index2 for but not for the pin.py file that is embedded. I am also new to Flask...and new to all of it really. I replicated what you did but as you mentioned, it is unclear how I could get my pin.py file to show. I will try again tomorrow.

This was all meant to be workaround because I could not find an answer to what I originally wanted: a way to simply display the text data from pin.py (these are PIN numbers) directly in index1 at certain positions on the page.

I could not understand how to make HTML (in index1) take this text from the pin.py file, display it and refresh the data in real time without having to refresh the entire page. I guessed it was a monstruous thing to attempt so the above was the next best thing and setting an auto refresh on the embedded index2 (with the PIN numbers embedded).

Statistics: Posted by Furutsu — Wed Nov 26, 2025 12:25 am



Viewing all articles
Browse latest Browse all 8609

Trending Articles