-->
Page 1 of 1

Esp8266 webpage

PostPosted: Thu Oct 12, 2017 10:46 am
by kondorcl
Please can help me. I need to send delay value from the webpage to esp8266-201. Attached files.
Image

Re: Esp8266 webpage

PostPosted: Thu Oct 12, 2017 10:02 pm
by Fred
kondorcl wrote:Please can help me. I need to send delay value from the webpage to esp8266-201. Attached files.
Image



hi I am trying to do the same thing (almost) so while i cant directly answer your problem I wonder if we can maby help each other by working thru this

I have looked at your sketch and while it is not identical to mine it looks like it is built from the same reference design.

a few questions
1 is your esp connecting to your access point ?
2 can you load the esp page in your browser ?

Re: Esp8266 webpage

PostPosted: Fri Oct 13, 2017 3:45 am
by jankop
Where are <form> ... </ form> tags in the website.h file?

GUI.jpg


Code: Select all<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html><head><meta content="text/html; charset=utf-8"><meta http-equiv="refresh" content="10">
<title>KEVA</title></head><body style="font-family:Arial,sans-serif">
<form action="/" method="post">
<table border="1" cellpadding="5" cellspacing="1" style="text-align:right;Font-weight:bold;font-size:x-large;background-color:#ffe4c4">
<tr><td colspan="4" align="center">Keva Solar factory</td></tr >
<tr><td><IMG SRC="http://www.xxxxxx.xx/pic/ba.svg" WIDTH="32" HEIGHT="32" alt="1"></td><td>49.10V</td><td style="background-color: #ffc0cb">18A</td><td style="background-color: #ffc0cb">883W</td></tr>
<tr><td><IMG SRC="http://www.xxxxxx.xx/pic/pv.svg" WIDTH="32" HEIGHT="32" alt="2"></td><td>90.8V</td><td style="background-color: #98fb98">8A</td><td style="background-color: #98fb98">392W</td></tr>
<tr><td><IMG SRC="http://www.xxxxxx.xx/pic/po.svg" WIDTH="32" HEIGHT="32" alt="3"></td><td>0.0V</td><td>----</td><td>----</tr>
<tr><td><IMG SRC="http://www.xxxxxx.xx/pic/is.svg" WIDTH="32" HEIGHT="32" alt="4"></td><td>230.1V</td><td style="background-color: #ffc0cb">26A</td><td style="background-color: #ffc0cb">1271W</td></tr>
<tr align="center"><td><IMG SRC="http://www.xxxxxx.xx/pic/bo.svg" WIDTH="32" HEIGHT="32" alt="5"></td><td><input type="submit" name="R1ON" value="ON"></td><td><input type="submit" name="R1OFF" value="OFF"></td><td><span style="color: red;">ON</span></td></tr>
<tr align="center"><td><IMG SRC="http://www.xxxxxx.xx/pic/pl.svg" WIDTH="32" HEIGHT="32" alt="6"></td><td><input type="submit" name="R2ON" value="ON"></td><td><input type="submit" name="R2OFF" value="OFF"></td><td><span style="color: blue;">OFF</span></td></tr>
<tr align="center"><td><IMG SRC="http://www.xxxxxx.xx/pic/on.svg" WIDTH="32" HEIGHT="32" alt="7"></td><td colspan="2">00:00:23:30</td><td>MAN</td></tr>
<tr><td><IMG SRC="http://www.xxxxxx.xx/pic/wi.svg" WIDTH="32" HEIGHT="32" alt="8"></td><td colspan="2">-74 dBm</td><td>52 %</td></tr>
<tr><td><IMG SRC="http://www.xxxxxx.xx/pic/me.svg" WIDTH="32" HEIGHT="32" alt="9"></td><td colspan="2">16400 KB</td><td align="center"><input type="submit" name="REFRESH" value="REF"></td></tr>
</table></form></body></html>

Re: Esp8266 webpage SOLVED

PostPosted: Fri Oct 13, 2017 2:06 pm
by kondorcl
Reading tutorial an examples of ajax my problem was solved in this way (attached files).
Add EEPROM save delay value, some background color and static ip.
I am use esp8266 IDE arduino to program and connected to my wifi modem router and Firefox browser. You can edit website.h in Dreamweaver or another program, replace webSite += " and \r\n"; with none.

Image