Compare commits

...

3 Commits

Author SHA1 Message Date
Ariana Giroux 8760b83b50 Added a simple project description to Readme.md 2022-08-05 14:52:11 -06:00
Ariana Giroux 018b624f19 Added basic Readme.md 2022-08-05 14:38:25 -06:00
Ariana Giroux 1f4043ba06 Added MIT license doc 2022-08-05 13:46:11 -06:00
2 changed files with 59 additions and 0 deletions

9
LICENSE Normal file
View File

@ -0,0 +1,9 @@
Copyright 2022, Ariana Giroux
Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:
The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
End license text.

50
Readme.md Normal file
View File

@ -0,0 +1,50 @@
# DockOfOurOwn
## Project Description
This project is a simple attempt at extending the functionality of [the Owncast project](https://owncast.online/) to improve the streamer quality of life. While [the Owncast project](https://owncast.online/) provides a fully functionally chat monitoring and moderating widget that can be used as a dock in streaming platforms like OBS ([found here](https://owncast.online/docs/embed/#embedding-standalone-chat)), there is (as of [Owncast v0.0.12](https://github.com/owncast/owncast/releases/tag/v0.0.12)) no embeddable method of obtaining the viewer count, stream title, etc.
This repository provides a bare bones embeddable widget that can be used as a Dock that provides important details like viewer count and what the current stream tags are, and enables the streamer to update important stream details without needing a browser open.
This project should not be considered production ready.
## Installation
First, clone the repository:
git clone https://gitdab.com/arianagiroux/DockOfOurOwn.git && cd DockOfOurOwn
Create a python virtual environment, and use pip to install the project dependencies:
python -m venv venv && source venv/bin/activate && pip install -r requirements.txt
You will need to create a file at `resources/data.json` with the following structure:
{
"stream_url":"https://your.url.here",
"user_name":"admin",
"stream_key":"your_stream_key_here"
}
Please note, the credentials use for the app are due to change to a utilization of your server's API access token functionality.
## Using the plugin
First, source the virtual environment:
source venv/bin/activate
Next, run the flask app:
flask run
This will start a web server which can be accessed, by default, at http://127.0.0.1:5000/. This webapp is what you should point an OBS custom browser dock too. Note, check the [flask documentation](https://flask.palletsprojects.com/en/2.2.x/cli/#setting-command-options) for more on how to set specific ports for the webapp.
Next, using OBS, select Docks from the top bar, and find the Custom Browser Docks option. In the subsequent dialog, point a line item at the aforementioned address and port combination (http://127.0.0.1:5000/). This should embed the webapp within OBS.
## Final Considerations
Please note that as of 08-05-2022, this project is a simple proof of concept and has limited functionality. It should provide just enough to provide the base functionality that a streamer dock requires - displaying the current viewers and stream details, and enabling the streamer to update the stream title and tags from the streaming platform (i.e, OBS).
This project is still a pretty rough product, as these docs likely illustrate. Unfortunately, I have little time to dedicate to development time so I welcome any contributions, updates, forks, etc. This was simply a means to an end for me.