Chat freely about anything...

User avatar
By shayelk
#52196 Hi all!
I bought a new ESP8266 in order to start working on some home automation projects, and I learned how to make the module run a local server, and how to use ngrok on my PC to access the server from outside my home network.
What I'd like to do now is use a free online server which I can access using both the ESP8266 and a web browser, so that I don't have to leave my PC on running njgrok, and I can log into the server even if the ESP8266 is offline.
I was thinking of creating a simple HTML page which can manipulate an XML file and have the ESP8266 read that file and write to it. the problem is that I don't have any idea how to do any of that :D
Does anybody know a tutorial that can show me where to start?

Thanks a lot!
User avatar
By Thomas S.
#52391 Let me try to get that straight.
- You want to run a web server at some hoster
- the web server shall be requestable by any browser to get a html page with some variable content
- the web server shall also be requestable by your ESP in order to change this variable content

So you need either a http file upload possibility or a server side program (some CGI or so, probably written in php) to receive the data (maybe via http get) and save it to your data file (maybe an xml file, whatever).

Is this what you want to do?
User avatar
By rudy
#52431 I think one of the first things to do is to find your free server that will allow you to do what you want. There is no point in developing a solution that nobody will host. (for free)