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

plugin uses pre 2023 api ( original : invalid username-password ) #2

Closed
Rostie83 opened this issue Jan 29, 2024 · 8 comments
Closed

Comments

@Rostie83
Copy link

After installing Jack's internet radio it doesn't show on the dashboard.
the logfile sais invalid username/password.
unable to create room

As of 2023 Username and password are default on Domoticz. so i tried that, no luck.
created a new user (type user) tried those credentials, no luck.
Which username and password are needed for Internet Radio to create the room?

Domoticz 2024.1

@JackV2020
Copy link
Owner

Whoopsie,
this is a nice one and I promise to look into this but let me explain the cause of the issue.
As you can see it has been some time since I worked on this plugin and to be honest I am not using it anymore.
In 2023 the application programming interface of Domoticz changed and I updated the plugins which I was using at that moment and since I was not using this anymore I just forgot about it......
Love to do this but it will not be finished this week.
I need to get myself a bluetooth speaker which I also can connect with a cable to my Pi for testing.
So I do not know if you are in the mood of giving it a try yourself or wait for me to do it.
If you want to give it a try yourself you may want to check the documentation on https://www.domoticz.com/wiki/Domoticz_API/JSON_URL%27s
As they say..... to be continued.....
( I am using Domoticz 2024.1 on a Raspberry Pi 4 with bullseye )

@JackV2020
Copy link
Owner

Guess what ? I have this big box in which I keep old cables with strange connectors like scart scsi and whatever and in this box I found this old rechargeable Bluetooth speaker which also has an audio JACK connector speaker and also an audio cable to connect it to my Pi. I tested it with the command 'speaker-test -c1 -twav -l5' and it still works. The -c1 is for 1 speaker. When you have 2 speakers you can use -c2. The -twav is to let a fake voice say what is tested. When yu use -tsine you heer a beep and have to press ctrl-c to stop it. You can also use -tpink to hear some pink noise. The -l5 is to repeat the test 5 times. I also updated the plugin and that works too. Many stations in the selectors do not work anymore. This is because 'they' changed the internet locations as you find them in internetradio.conf are not valid anymore. I will work out some new lists and after that update this repository.

@Rostie83
Copy link
Author

Rostie83 commented Jan 30, 2024

Hi Jack,

Great that you found a working bt speaker and are willing to look into this issue.

My JSON is A bit rusty so I'm not much further.
The error in the log for internet radio are:
ERROR I can not access the image library. Please modify the hardware setup to have the right username and password.
ERROR could not create selectorswitch "favorieten"
ERROR could not create selectorswitch "non-stop"
ERROR could not create selectorswitch "Nederland"
ERROR I can not access the image library. Please modify the hardware setup to have the right username and password.
ERROR I can not access the image library. Please modify the hardware setup to have the right username and password.
ERROR staring up

Im trying to get internetradio working as my FM reception is playing up very often. As I don't want to ruin my domoticz setup by flashing to Volumio and don't want to use another raspberry I though why not search for something with domoticz. That's what got me here.

For stream links:
https://www.webradiostreams.nl/
https://streamurl.link/

These seem up to date.

Hopefully you can fix this login issue.

@JackV2020
Copy link
Owner

JackV2020 commented Jan 30, 2024 via email

@Rostie83
Copy link
Author

Rostie83 commented Feb 2, 2024 via email

@JackV2020
Copy link
Owner

Hi Rostie83
on jan 31st I sent the update to github.
Did you download that and does it work for you ?

Kind regards,
Jack

@JackV2020 JackV2020 changed the title invalid username-password plugin uses pre 2023 api ( original : invalid username-password ) Feb 6, 2024
@Rostie83
Copy link
Author

Rostie83 commented Feb 6, 2024 via email

@JackV2020
Copy link
Owner

JackV2020 commented Feb 6, 2024 via email

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