Page 1 of 1

LevelName of Switch Selector retreive from API/JSON URL

Posted: Friday 03 December 2021 12:15
by cobalt78000
Hi,

I would like to create a script to retreive status using API/JSON URL of Switch Selector but when i read LevelName I have :
VG91dCBhcnLDqnTDqXxUw6lsw6l8VMOpbMOpIGV0IGFtcGxpfEFtcGxp
corresponding at Base64 :
Tout arrêté|Télé|Télé et ampli|Ampli
The real text is :
Tout arrêté|Télé|Télé et ampli|Ampli
Now if i use https://codebeautify.org/base64-encode to encode I have:
VG91dCBhcnLqdOl8VOls6XxU6WzpIGV0IGFtcGxpfEFtcGxp
This is not the same as the one in domoticz ...
VG91dCBhcnLqdOl8VOls6XxU6WzpIGV0IGFtcGxpfEFtcGxp
<>
VG91dCBhcnLDqnTDqXxUw6lsw6l8VMOpbMOpIGV0IGFtcGxpfEFtcGxp
Is the problem in the database or in the base64 script using by domoticz or simply my misunderstanding ?