Comments (5)
The problem appears to be that the home page does a 302 which causes Chrome on Mac to keep requesting over and over. I think that is what is making it crash. If I instead access this URL:
I get a JSON response without issue:
{"temperature":69.0125,"setTemp":0,"power":0,"running":false,"upTime":0,"errors":[]}
This is just powering on, connecting to Sous Vide
AP and then attempting to access it. Should the wifi part be prompting me for joining to the AP? I wonder if the sketch is starting up too soon. The part I'm missing is what is actually serving at the root URL. I guess that goes right off to SPIFFS and maybe there is an index.html or something there? I'll go look.
from wifi-sous-vide.
So I see the files -- it's almost like anything that comes from SPIFFS causes a 302. The directly handled URLs work. So I'm not sure what is broken and/or what to try next. I did try downgrading the SPIFFSReadServer to 0.0.3 from 0.0.4 but that didn't help.
from wifi-sous-vide.
I had a chance to look at this again and I realized SPIFFS didn't work how I thought it did -- I didn't realize I needed a separate tool to upload data to SPIFFS. With that, it works!
If anyone else ends up here, what you want to do is go install this and run it after flashing the ESP8266 (or any time you change something in data directory):
https://github.com/esp8266/arduino-esp8266fs-plugin
I did realize though there is a bug in SPIFFSReadServer
. I'll do a PR to fix that later today.
from wifi-sous-vide.
@cymen Can you tell me what the error you found was in SPIFFSReadServer? I can't seem to get the front page to handle requests correctly, I'm wondering if that's part of the issue?
from wifi-sous-vide.
@RainmanJS So I got it working but I still couldn't set the temp or anything via the page -- the only thing that worked was clicking on a recipe. So I updated the recipes.htm file in data subdirectory for my cook and used that. The error is in how 404s are handled but you shouldn't hit that as long as you have the data directory flashed to SPIFFS.
from wifi-sous-vide.
Related Issues (13)
- Question about the possibility to use a sonoff instead of a relais HOT 1
- Google Chrome update
- Chrome, EDGE problem HOT 2
- Compile error Arduinojson
- How to build and run webserver HOT 2
- Version for 1024k flash HOT 1
- Settings not taking affect from home screen HOT 2
- Requires a complete erase of ESP8266 flash memory before fully boots... HOT 1
- Some enhancements
- Power Off Button seems to be undefined.
- It is not working
- Tuning the PID settings
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from wifi-sous-vide.