How to implement Fritzbox Aktoren Script in Wemos

Hi,
I found this Script which can be installed on a Raspberry (with Habridge) to switch AVM Aktor-Status Dect 200. In connection with Alexa I could easy activate or stop such AVM Actor. So far so good and thx to Ralf making this skript.
Now I like to implement this code to Wemos D1. When I start Wemos it should connect to my wlan and run this script. Wlan code is no problem, but I have no idea how to translate this sh skript to sketch.
In easy words when I push the button (attached to Wemos) the Actor should go on for example.
Any idea ?
B-oris

schalter.txt (1.27 KB)

When I start Wemos it should connect to my wlan and run this script.

This script expects parameters, where should the Wemos get them from?

In easy words when I push the button (attached to Wemos) the Actor should go on for example.

Post a wiring diagram of that setup.

Wlan code is no problem, but I have no idea how to translate this sh skript to sketch.

So post that code. And you need to find Wemos code that can calculate an md5 hash. Depending on your password you have to find code that converts ISO-8859-15 into UTF-16.

If you have a Raspi in you network anyway, why don't you call a service on the Raspi and that makes the rather complicated login on the Fritzbox for the Wemos?

[quote
If you have a Raspi in you network anyway, why don't you call a service on the Raspi and that makes the rather complicated login on the Fritzbox for the Wemos?
[/quote]

Yes this could be an option too. In Habridge the call is "./schalter.sh 12345678 1" how can I do this call in Wemos ? Sorry I'm really beginner with such kind of adressing.
Could it be like this : HTTP://raspiIP/Home/pi/schalter.sh 12345678 1 ?

THX

Could it be like this : HTTP://raspiIP/Home/pi/schalter.sh 12345678 1 ?

Not really, but it could be something like

http:///homeautomation/switch/12345678/1

That depends mainly on the programming you do on the Raspberry Pi. But there you have all the stuff mentioned above installed by default, so the programming is much easier.