Skip to content

smallint/vdr-webfrontend

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

VDR webfrontend

Another webfrontend for The Video Disk Recorder. This time a single page java script application. This has been done out of personal needs and as usual: just for fun.

Javascript libraries

Dependencies

Configuration

The configuration is done with file conf.json found in the root directory of the application. The only thing that is required is to point it to the REST webservice. An example as follows:

{
        "API": "http://localhost:8002/",
        "timer": {
                "margin": {
                        "before": 5,
                        "after": 5
                }
        }
}

The examples above required to open the port 8002 as well for the clients to access the REST service.

Another option is to configure the web service as proxy. As an example a lighttpd configuration is shown for reference.

server.modules   += ( "mod_proxy", "mod_rewrite" )

$HTTP["url"] =~ "^/vdr/restfulapi/" {
  proxy.server = ( "" =>
                   ( "vdr-restfulapi:80" =>
                     (
                       "host" => "127.0.0.1",
                       "port" => 82
                     )
                   )
                 )
}

# URL Rewriting
$SERVER["socket"] == ":82" {
  url.rewrite-once = ( "^/vdr/restfulapi/(.*)$" => "/$1" )
  proxy.server  = ( "" => (
    "vdr-restfulapi:82" => # name
      ( "host" => "127.0.0.1", # Set the IP address of servername
        "port" => 8002
      )
    )
  )
}

This assumes that lighttpd hosts the webpage at http://[host]/vdr. The REST interface is then available under http://[host]/vdr/restfulapi. The configuration should reflect this with:

{
        "API": "restfulapi/",
        "timer": {
                "margin": {
                        "before": 5,
                        "after": 5
                }
        }
}

About

Javascript web frontend for VDR with its restfulapi plugin

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published