Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Pretty, scalable WWW-Interface #3

Open
Schm1tz1 opened this issue Feb 22, 2017 · 3 comments
Open

Pretty, scalable WWW-Interface #3

Schm1tz1 opened this issue Feb 22, 2017 · 3 comments

Comments

@Schm1tz1
Copy link
Owner

Do a more pretty, scalable WWW-Interface which looks fine on Phones as well as on a bigger screen

@Schm1tz1 Schm1tz1 added this to the Web-Interface milestone Feb 22, 2017
@zcmack
Copy link

zcmack commented Dec 23, 2019

Once I get this up and running on my Silvia, I can take a look at this. Anything in particular inspiration in mind or just something responsive?

@Schm1tz1
Copy link
Owner Author

Hi - very nice, thanks and merry Xmas! No, nothing too special. I just did it in very simple HTML to have it running without additional stuff on the ESP8266 and without additional internet connection. Something responsive and optically nice that looks good on most devices would be perfect. If you have any problems setting up this stuff, please let me know. I also started porting the project to PlatformIO, but due to the busy weeks before Xmas I didn't find any quiet evening to finish the project.

@zcmack
Copy link

zcmack commented Dec 27, 2019

spent some time looking into this and should be no problem to get up and running. i originally looked at react or preact (to save space) but seems like it'd be quite a bit of trouble getting it up and running without changing the web server used. for instance this project aWOT seems like it would fit the bill, but requires using a different web server to handle serving an application css/js/html bundle, so the ability to remotely upload firmware would be lost or require some other significant changes to get working again. I'm not too familiar with platform IO -- would this add remote deployment capabilities in some way? not a huge deal, but the react/preact experience is definitely top tier and very widely compatible.

that being said -- i started adding style and responsiveness with this library - materialize which can be downloaded from a CDN on load. i'm taking the approach of "one big html file" with javascript at the top where i'm handling events on the UI and using the fetch API to prevent page reloading on data update and settings changes. this assumes all users are using a fetch compatible browser, but i'm feeling pretty safe making that assumption. i'm refactoring much of web.ino to behave more like a REST API (changing settings on the backend and replying via JSON) which should be a whole lot less string concatenation to deal with.

finally -- i have to ask if you had this working as it stands on master. i couldn't get the arduino IDE or VS code w/ arduino extension to build the codebase without adding header files. it was not too much of a problem but just something i thought i'd mention. i'm building for a NodeMCU 1.0 ESP-12E.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants