Search found 5 matches

by alexsus
20 Oct 2016, 09:42
Forum: ESP Easy: General Discussion
Topic: Separate the interface and code
Replies: 2
Views: 2428

Re: Separate the interface and code

What is good and how to fight it?

- double quotes not necessary
- any text data

Code: Select all

<script type='text/espeasy'>
1,2,3,4,5,6,7
hi, all
<script>

As varian sepate rules may be:

lines split by \n
values split by \t

If you want I can write JS data parse functions.
by alexsus
20 Oct 2016, 09:24
Forum: ESP Easy: General Discussion
Topic: Separate the interface and code
Replies: 2
Views: 2428

Re: Separate the interface and code

If we estimate the resources Esp8266 - thin server Browser - thick client Therefore it is necessary to transfer processing to the client. For this - create a page on computer and put it in a flash - on request send page from flash and add useful data from code <script type='text/espeasy'> ... <scrip...
by alexsus
20 Oct 2016, 07:12
Forum: ESP Easy: General Discussion
Topic: Separate the interface and code
Replies: 2
Views: 2428

Separate the interface and code

It is necessary to separate the interface (html, css, js) and the code. A simple way to do ".h" file is xxd It's my 2h.sh #!/bin/bash xxd -i $1 |\ sed "s/unsigned/const/"|\ sed "s/\[\] \=/[] PROGMEM =/" Use: 2h.sh dist/minipage.html const char dist_minipage_html[] PROGM...
by alexsus
24 Feb 2016, 10:56
Forum: ESP Easy: Software
Topic: Revolutionary new UI for ESPEasy
Replies: 24
Views: 24839

Re: Revolutionary new UI for ESPEasy

We hope to solve some problems: 1. Memory Savings steps in this direction I have described 2. Easy of development    Divide the UI and code for simplicity. Using the latest good solutions from web development world to automate the develop process. 3. Automatic test & build & deploy. The comp...
by alexsus
24 Feb 2016, 09:01
Forum: ESP Easy: Software
Topic: Revolutionary new UI for ESPEasy
Replies: 24
Views: 24839

Re: Revolutionary new UI for ESPEasy

I develop a of JS part alternative Web UI. Stable Web UI generate String that are sent to the client. This results to memory usage peaks in a time of report generation. If the String will be more than free memory, ESP crash. In case Rest api , the most strings are send directly from PROGMEM . This g...