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

[Bug] Audio provider not working #169

Closed
Ajay-056 opened this issue Nov 30, 2024 · 2 comments
Closed

[Bug] Audio provider not working #169

Ajay-056 opened this issue Nov 30, 2024 · 2 comments
Labels
type: bug Something isn't working

Comments

@Ajay-056
Copy link

Ajay-056 commented Nov 30, 2024

Describe the bug

Im using Windows and trying to add the audio volume in the zebar, As a first step have added the provider in createProviderGroup.

  const providers = zebar.createProviderGroup({
    network: { type: 'network', refreshInterval: '2000'},
    glazewm: { type: 'glazewm' },
    cpu: { type: 'cpu', refreshInterval: '2000' },
    date: { type: 'date', formatting: 'EEE	dd MMM hh:mm:ss a' },
    battery: { type: 'battery', refreshInterval: '2000'},
    memory: { type: 'memory', refreshInterval: '2000'},
    weather: { type: 'weather' },
    host: { type: 'host', refreshInterval: '5000'},
    ip: { type: 'ip' },
    disk: { type: 'disk', refreshInterval: '15000' },
    audio: { type: 'audio' },
  });

Usage:
{output.audio && ( <div className="audio"> {output.audio.playbackDevice.name} </div> )}

Outcome: (Zebar was blank)
image

Reproduction

Add the audio provider in createProviderGroup and refresh zebar.

  const providers = zebar.createProviderGroup({
    network: { type: 'network', refreshInterval: '2000'},
    glazewm: { type: 'glazewm' },
    cpu: { type: 'cpu', refreshInterval: '2000' },
    date: { type: 'date', formatting: 'EEE	dd MMM hh:mm:ss a' },
    battery: { type: 'battery', refreshInterval: '2000'},
    memory: { type: 'memory', refreshInterval: '2000'},
    weather: { type: 'weather' },
    host: { type: 'host', refreshInterval: '5000'},
    ip: { type: 'ip' },
    disk: { type: 'disk', refreshInterval: '15000' },
    audio: { type: 'audio' },
  });

Stack trace or error logs (if applicable)

No response

Version number

2.5.1

@Ajay-056 Ajay-056 added the type: bug Something isn't working label Nov 30, 2024
@github-project-automation github-project-automation bot moved this to 📬 Needs triage in zebar Nov 30, 2024
@Ajay-056 Ajay-056 changed the title Audio provider not working [Bug] Audio provider not working Nov 30, 2024
@lars-berger
Copy link
Member

Audio provider is in main but hasn't been put out in a new release just yet.

Just merged in another feature for the audio provider so the volume can be changed now 👌 #170. A new release with the new stuff will be out in the next few days.

@github-project-automation github-project-automation bot moved this from 📬 Needs triage to ✅ Done in zebar Nov 30, 2024
@Ajay-056
Copy link
Author

the provider documentation was present in the readme, hence gave it a try, my bad 🙂 excited to use it in a few days 🎉

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
type: bug Something isn't working
Projects
Archived in project
Development

No branches or pull requests

2 participants