samedi 1 avril 2017

Run JavaScript command on website

I have a home automation system which has a small Linux server and an app to control my lighting system. The problem is that this system is too limited for my use, so I wanted to create a desktop app (Java or C#) to send my own data to the server.

When I log into the webpage, I can just use FireFox' JavaScript console to send the commands. But my question is how I can log into a webpage and send JavaScript data to it programmatically.

I also tried sending the data through a WebSocket or TcpClient, but I have no idea how that works.




Aucun commentaire:

Enregistrer un commentaire