Skip to content
This repository has been archived by the owner on Jul 30, 2022. It is now read-only.

A virtual tuner application to bridge Locast to Plex Media Server's DVR.

License

Notifications You must be signed in to change notification settings

justingarfield/locast-plex-tuner

Repository files navigation

LocastPlexTuner

Overview

This is a full port of the https://github.com/tgorgdotcom/locast2plex Python library.

Under heavy development

This repository is currently a temporary name and the codeset is being heavily revised, refactored, and updated to clean-up anything that's out-dated at this point. Feel free to Clone / Fork, but just be aware that things are going to keep drastically changing until a few more bugs are ironed out.

Known Issues

  • av_interleaved_write_frame(): Broken pipe and Error writing trailer of pipe:1: Broken pipe errors on some streams
  • Sports currently get considered as Movies. May need to create a new Plex Agent to fix this.
  • No current way to view Tuner stats (which is tuned to what, how many bytes transferred, etc.)
  • Domain and DTOs still need more cleanup and refactoring
  • Unit Tests would be splendid

Why the port of Locast2Plex?

I was having issues with that solution working properly, and have no clue how to efficiently debug Python, so it was just faster to translate it into a language / framework I'm familiar with.

How do I use it?

Required Environment Variables

Variable Name Description
LOCAST_USERNAME your Locast username
LOCAST_PASSWORD your Locast password
FFMPEG_BINARY absolute path to a usable, local, copy of the ffmpeg binary

Optional Environment Variables

Variable Name Description Availability
LOCAST_ZIPCODE bypass the normal DMA lookup process, and instead use an explicit zipcode Working
LOCAST_LATITUDE bypass the normal DMA lookup process using an explicit latitude/longitude Working
LOCAST_LONGITUDE bypass the normal DMA lookup process using an explicit latitude/longitude Working
LOCAST_DMA bypass the normal DMA lookup process using an explicit DMA Working
KESTREL_LISTEN_ADDRESS use an explicit listener address when starting the WebApi under Kestrel Coming soon
KESTREL_LISTEN_PORT use an explicit listener port when starting the WebApi under Kestrel Coming soon
EPG_DAYS_TO_PULL How many days of listings to pull at once for the Electronic Program Guide Coming soon
DEFAULT_DATA_DIRECTORY override the directory used to store application data (%localappdata% by default) Coming soon

Terminology

  • DMA = Designated Market Area
  • EPG = Electronic Programming Guide

References

About

A virtual tuner application to bridge Locast to Plex Media Server's DVR.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published