Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

NOALBS not reading STATS | Keeps switching to OFFLINE scene and doesn's show !BITRATE in chat #178

Open
tillsmc opened this issue Oct 23, 2024 · 3 comments

Comments

@tillsmc
Copy link

tillsmc commented Oct 23, 2024

Cheers!

I'm currently trying to set up an IRL Stream and configured my OBS 30.2.3 with NGINX 1.17.10, RTMP Module 1.2.1 and NOALBS 2.11.2.

Everything seems to be working, except the Auto Switcher and "!bitrate" command in twitch chat. Even though the RTMP stream is up and running, NOALBS always changes the scene to the offline scene and when I type "!bitrate" or "!b" in chat, it responds with "No connection :(".

So it seems like NoAlbs cannot read the stats on http://localhost/stat eventhough I can access it via Browser. I tried to exchange "localhost" with my IP, but that didn't help either.

I found some "closed issues" on this github with similar problems, but those solutions didn't help. For example, it also doesnt work, when i actually go Live with OBS.

I've searched for hours by now, and I wasn't able to find any solutions on the web. So, Thank you in advance for your help!

Attached you'll find my config.json (with sensitive information replaced with "XXXX":

  "user": {
    "id": null,
    "name": "715209",
    "passwordHash": null
  },
  "switcher": {
    "bitrateSwitcherEnabled": true,
    "onlySwitchWhenStreaming": false,
    "instantlySwitchOnRecover": true,
    "autoSwitchNotification": true,
    "retryAttempts": 5,
    "triggers": {
      "low": 450,
      "rtt": 1500,
      "offline": 400
    },
    "switchingScenes": {
      "normal": "IRL LIVE STREAM RTMP",
      "low": "BLACK",
      "offline": "IRL BE RIGHT BACK"
    },
    "streamServers": [
	{
        "streamServer": {
          "type": "Nginx",
          "statsUrl": "http://localhost/stat",
          "application": "publish",
          "key": "live"
        },
        "name": "nginx",
        "priority": 1,
        "overrideScenes": {
          "normal": "normal",
          "low": "low",
          "offline": "offline"
        },
        "dependsOn": null,
        "enabled": true
      }
    ]
  },
  "software": {
    "type": "Obs",
    "host": "localhost",
    "password": "XXXX",
    "port": 4455,
    "collections": {
      "twitch": {
        "profile": "Till",
        "collection": "TILL IRL"
      }
    }
  },
  "chat": {
    "platform": "Twitch",
    "username": "XXXX",
    "admins": ["XXXX"],
    "language": "EN",
    "prefix": "!",
    "enablePublicCommands": true,
    "enableModCommands": true,
    "enableAutoStopStreamOnHostOrRaid": true,
    "announceRaidOnAutoStop": true,
    "commands": {
      "Fix": {
        "permission": "Mod",
        "userPermissions": ["715209"],
        "alias": ["f"]
      },
      "Switch": {
        "permission": "Mod",
        "userPermissions": null,
        "alias": ["ss"]
      },
      "Bitrate": {
        "permission": null,
        "userPermissions": null,
        "alias": ["b"]
      }
    }
  },
  "optionalScenes": {
    "starting": "IRL STREAM STARTING",
    "ending": "IRL STREAM ENDING",
    "privacy": "PRIVACY",
    "refresh": "REFRESH"
  },
  "optionalOptions": {
    "twitchTranscodingCheck": false,
    "twitchTranscodingRetries": 5,
    "twitchTranscodingDelaySeconds": 15,
    "offlineTimeout": null,
    "recordWhileStreaming": false,
    "switchToStartingSceneOnStreamStart": false,
    "switchFromStartingSceneToLiveScene": false
  }
}
@kMuklis
Copy link

kMuklis commented Oct 28, 2024

Just found out recently
for read localhost/stat ( if using windows )

Go to conf folder, edit nginx.conf
edit the command root "../stat.xsl"; to root "html/stat.xsl"
image

image

if still error load the stat page, maybe check the error_logs files in folder logs

@tillsmc
Copy link
Author

tillsmc commented Oct 28, 2024

Thank you for the Tip.. Unfortunately my nginx.conf looks a little different.. What version are you running? I might consider changing to that version and try..

Here is what my "location /stat" section in the nginx.conf looks like:

		rtmp_stat all;
		rtmp_stat_stylesheet stat.xsl;
		# auth_basic "Restricted Content";
		# auth_basic_user_file .htpasswd;
		}

        location /stat.xsl {
		root site;
		}

@kMuklis
Copy link

kMuklis commented Oct 29, 2024

for the version, iam using the 1.7.11.3, its from release page for noalbs v2.11.2
but iam downloaded the source code(zip) instead, so i get the nginx there

maybe try to edit the root site; into where your stat.xsl is located

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants