Red Sea LED Aquarium Lights

If you know a little python you can try this script?
I suspect a special caracter in your password. If so I can try to correct.

import httpx
import json

uname="YOUR_USERNAME"
passwd="YOUR_PASSWORD"

header={
    "Authorization": "Basic Z0ZqSHRKcGE6Qzlmb2d3cmpEV09SVDJHWQ==",
    "Content-Type": "application/x-www-form-urlencoded"
}
payload="grant_type=password&username=" + uname + "&password=" + passwd

r= httpx.post("https://cloud.reef-beat.com/oauth/token",data=payload,headers=header,verify=False)
token=r.json()["access_token"]

#header={'X-Authentication':token}
header={"Authorization": "Bearer %s"%token}
print("token: %s"%token)



And after try that this one

import httpx
import json
from urllib.parse import quote_plus

uname="YOUR_USERNAME"
passwd=u"YOUR_PASSWORD"

header={
    "Authorization": "Basic Z0ZqSHRKcGE6Qzlmb2d3cmpEV09SVDJHWQ==",
    "Content-Type": "application/x-www-form-urlencoded"
}
payload="grant_type=password&username=" + uname + "&password=" + quote_plus(passwd.encode('UTF-8'))

r= httpx.post("https://cloud.reef-beat.com/oauth/token",data=payload,headers=header,verify=False)
token=r.json()["access_token"]

#header={'X-Authentication':token}
header={"Authorization": "Bearer %s"%token}
print("token: %s"%token)

I have put this into a simple html page since I have not a working python tester over here.

and console; Screenshot by Lightshot

Could it be a setting inside ReefBeat?

Sorry the image do not display.
I made the change for password encoding for next version which will probably be available next week.

The error, which is coming back in the html page is: “Error: Failed to fetch”, inside the console is says the same.

I tried to login into the ReefBeat app again to make sure the username (mailadres) and password are correct. So I have no idea why it is not working

Try to chane your password with only alphanumeric characters ( without any special characters ).