Why doesn't the local file work with a Browser Source

CuriousDude

New Member
Hello,

I have been using a browser source by pasting the source into the URL field in the browser properties. I would like to use a local file for the URL, which is very long, the URL comes from a OBS weather overlay. So I assumed that I could just create a text file, paste the link into the file, and select the "local file". For reasons I do not yet understand why the local file option does not work.
What are the requirements/restrictions for the local file?
 
If you create a regular text file with just a URL/website address and open it in OBS or any browser, then it should just display the text because it's a regular text file. If you wanted a link to click on, you would need to create an HTML file with the bare minimum of:
<a href=https://obsproject.com/>link text</a>

That would create this: link text

You need to save the text file as .htm or .html and then open it as the local file, interact with it and click on the link.
 
If you create a regular text file with just a URL/website address and open it in OBS or any browser, then it should just display the text because it's a regular text file. If you wanted a link to click on, you would need to create an HTML file with the bare minimum of:
<a href=https://obsproject.com/>link text</a>

That would create this: link text

You need to save the text file as .htm or .html and then open it as the local file, interact with it and click on the link.
Thanks I will change the extension of the "local file" to ".htm" and/or ".html". The intent of using a local file is to make it easier to update the weather data.
 
Thanks I will change the extension of the "local file" to ".htm" and/or ".html". The intent of using a local file is to make it easier to update the weather data.
ok, I changed the extension of the text file to ".html" and ".htm". Neither one of these changes of the file extension made a difference, the weather information did not appear. I am not trying to get a clickable link of the file. I just want to have the weather data appear in OBS by simply pasting the long URL link into the file that is specified in the properties of the Browser source.
Is there a length/size restriction on the local file?
 
Why don't you just paste the long URL into the URL box in the Browser source properties?
The file size limit on a text file is probably somewhere between 2 GB and 16 Billion GB. It's not a file size issue.
 
Create a .htm file and just replace the URL on line 5 with your long URL. You may need to remove and re-add the Browser source or just do it before you open OBS.

Code:
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta http-equiv="refresh" content="0; url=
https://obsproject.com/
" />
</head>
</html>
 
Back
Top