I need help on a small project I'm working on at the moment. In our house the shadings are controlled via a homepage of a local network which goes on my nerve because I always have to switch between WiFi's on my phone. So I thought I could learn my NodeMCU (Arduino IDE) to controll the shadings.
So far I can access the network and also connect to the homepage but I'm stuck at virtually pressing the buttons (which are actually images as far as I know).
I accessed the source code of the hompage. I think what I would need to do is to execute the highlighted "set_request" command:
Does anybody know an easy solution for my problem?
Thank you so much and kind regards,
Alex
P.S.: The code I use to access the homepage.
#include <WiFiClient.h>
#include <ESP8266WiFi.h>
const char *ssid = "exampleNetwork"; // replace with your wifi ssid and wpa2 key
const char *pass = "PASSWORD";
IPAddress server(192,168,82,10);
WiFiClient client;
void setup()
{
Serial.begin(9600);
delay(10);
Serial.println("Connecting to ");
Serial.println(ssid);
WiFi.begin(ssid, pass);
while (WiFi.status() != WL_CONNECTED)
{
delay(500);
Serial.print(".");
}
Serial.println("");
Serial.println("WiFi connected");
Serial.println('\n');
Serial.println("Connection established!");
Serial.print("IP address:\t");
Serial.println(WiFi.localIP()); // Send
while(!client.connect(server, 80)){
delay(500);
Serial.print(".");
}
Serial.println();
Serial.println("Connected");
}
void loop()
{
}