diff --git a/tvapp2/classes/Tuner.js b/tvapp2/classes/Tuner.js index 8388b621..944f50aa 100644 --- a/tvapp2/classes/Tuner.js +++ b/tvapp2/classes/Tuner.js @@ -52,6 +52,8 @@ class Tuner this.ModelNumber = `HDHR5-4US`; this.FirmwareName = `hdhomerun5_atsc`; this.FirmwareVersion = `0.9.15.00-RC04`; + this.SlotsConnected = 0; + this.SlotsMax = 10; this.DeviceId = deviceId || Storage.Get( 'deviceId' ); } @@ -193,7 +195,7 @@ class Tuner const deviceId = await tuner.GetDeviceId( ); */ - async GetDeviceId( ) + GetDeviceId( ) { Log.verbose( `func`, chalk.yellow( `[executed]` ), chalk.white( `📣` ), chalk.blueBright( `` ), chalk.gray( `${ Utils.getFuncName( ) }` ) ); diff --git a/tvapp2/index.js b/tvapp2/index.js index 311e340e..d28954e5 100755 --- a/tvapp2/index.js +++ b/tvapp2/index.js @@ -2488,7 +2488,11 @@ const serverHdHomeRun = http.createServer( ( req, resp ) => modelNumber: tunerInstance.ModelNumber, firmwareName: tunerInstance.FirmwareName, firmwareVersion: tunerInstance.FirmwareVersion, + slotsConnected: tunerInstance.SlotsConnected, + slotsMax: tunerInstance.SlotsMax, deviceId: tunerInstance.GetDeviceId( ), + hdhrIp: `${ envIpContainer }`, + hdhrPort: `${ envHdhrPort }`, healthTimer: envHealthTimer, appRelease: envAppRelease, @@ -2501,6 +2505,7 @@ const serverHdHomeRun = http.createServer( ( req, resp ) => appGitHashLong: envGitSHA1, appUptimeShort: timeAgo.format( Date.now() - Math.round( process.uptime() ) * 1000, 'twitter' ), appUptimeLong: timeAgo.format( Date.now() - process.uptime() * 1000, 'twitter' ), + appUptimeFull: timeAgo.format( Date.now() - process.uptime() * 1000 ), appStartup: Math.round( serverStartup ) / 1000, serverOs: serverOs }, ( err, data ) => diff --git a/tvapp2/www/hdhomerun.html b/tvapp2/www/hdhomerun.html index d9f6e15c..013fa825 100644 --- a/tvapp2/www/hdhomerun.html +++ b/tvapp2/www/hdhomerun.html @@ -101,28 +101,28 @@ TunerCount - 0 / 10 + <%= slotsConnected %> / <%= slotsMax %> Number of connection slots to view IPTV BaseURL - 0.0.0.0:6077 + <%= hdhrIp %>:<%= hdhrPort %> Base URL where HDHomeRun is hosted LineupURL - 0.0.0.0:6077/lineup.json + <%= hdhrIp %>:<%= hdhrPort %>/lineup.json URL to IPTV channel & guide lineups Uptime - 12 minutes, 23 seconds + <%= appUptimeFull %> Duration that tuner has been online