Giter VIP home page Giter VIP logo

Comments (5)

cymen avatar cymen commented on July 16, 2024

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:

http://192.168.1.1/io

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.

cymen avatar cymen commented on July 16, 2024

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.

cymen avatar cymen commented on July 16, 2024

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.

RainmanJS avatar RainmanJS commented on July 16, 2024

@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.

cymen avatar cymen commented on July 16, 2024

@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)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.