2
0
mirror of https://github.com/fhem/fhem-mirror.git synced 2025-02-25 16:05:19 +00:00

50_Signalbot: QR API change

git-svn-id: https://svn.fhem.de/fhem/trunk@28936 2b470e98-0d58-463d-a4d8-8e2adae1ed80
This commit is contained in:
Adimarantis 2024-06-02 18:17:50 +00:00
parent b8603da95f
commit 2ab6ad5029

View File

@ -1,6 +1,6 @@
############################################## ##############################################
#$Id$ #$Id$
my $Signalbot_VERSION="3.19"; my $Signalbot_VERSION="3.20";
# Simple Interface to Signal CLI running as Dbus service # Simple Interface to Signal CLI running as Dbus service
# Author: Adimarantis # Author: Adimarantis
# License: GPL # License: GPL
@ -267,7 +267,7 @@ sub Signalbot_Set($@) { #
$acname="FHEM" if (!defined $acname); $acname="FHEM" if (!defined $acname);
my $qrcode=Signalbot_CallS($hash,"link",$acname); my $qrcode=Signalbot_CallS($hash,"link",$acname);
if (defined $qrcode) { if (defined $qrcode) {
my $qr_url = "https://chart.googleapis.com/chart?cht=qr&chs=200x200"."&chl="; my $qr_url = "https://api.qrserver.com/v1/create-qr-code/?size=200x200"."&data=";
$qr_url .= uri_escape($qrcode); $qr_url .= uri_escape($qrcode);
$hash->{helper}{qr}=$qr_url; $hash->{helper}{qr}=$qr_url;
$hash->{helper}{uri}=$qrcode; $hash->{helper}{uri}=$qrcode;