Skip to content

Simple Nodejs script to convert a html file to a fully Arduino compatible string

Notifications You must be signed in to change notification settings

davidhernandeze/arduino-html-compiler

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Arduino HTML compiler

Simple Nodejs script to convert a html file to a fully Arduino compatible string

About The Project

The main motivation for this project is to have a simple script that allows you to easily convert your html file into a fully compatible Arduino file.

Getting Started

You need to copy package.json, compiler.js and index.html somewhere in your project

Installation

  • Install dependecies
    npm install
  • Change the build script under package.json to match your desired output file

Usage

  • Edit the index.html file to fit your needs
  • Compile the file
    npm run build

It will generates an output file with the following content:

String app = "your_compiled_html";

Now your can import the created file

#include "output.h"
...
server.send(200, "text/html", app);

License

Distributed under the MIT License.

About

Simple Nodejs script to convert a html file to a fully Arduino compatible string

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published