Avatar for Will

Will

Member since Mar 2016 • Last active Apr 2018
  • 6 conversations
  • 37 comments

Most recent activity

  • in Projects
    Avatar for Will

    Oh, I am using the webIDE (love it), I didn't realize it would do that for me. Very cool.

  • in Projects
    Avatar for Will

    @Wilberforce good tip on the line between text. That code has room for improvement in that I might like to use regex to split the text in a more natural place.

    I do load the module dynamically, because I thought I had to. Perhaps you're suggesting I only need to do that prior to the save?

  • in Projects
    Avatar for Will

    Kind of a "quick" project to get comfortable with the ESP32.

    It connects to the wunderground API, and pulls the latest forecast string, and displays across SSD1306 (I also wrote a version with the HD44780 I2C).

    See the code here:
    https://github.com/wga22/esp8266/blob/ma­ster/espurino/ESP32_drawforecast.js

    Interesting part of the code is the parsing of the JSON from wunderground. Not my best code, just slopping something together to see how it works. Love the ESP32, has right level of performance for doing real level of work. Hoping ESPRUINO team continues to get it love! A special thanks to the brilliance of the "loadModule" versatility!

    function drawForecast()
    {
        //getting weather now, so allow another process to get weather
        setTime.val = "";
        var ZIP= '22182';
        HTTP.get((SURLAPI + ZIP + ".json"), function(res) 
        {
            res.on('data', function(wunderString) {   drawForecast.val += wunderString;   });
            res.on('close', function(fLoaded) 
            {
                console.log("Connection to wunder closed");
                drawForecast.obj = JSON.parse( drawForecast.val );
                drawForecast.val = "";
                writeStringToLCD(drawForecast.obj.foreca­st.txt_forecast.forecastday[0].fcttext);­
            });
            res.on('error', function(e){console.log("error getting wunderground details");});   //TODO: test, and handle by saving values?
        });
    }
    drawForecast.val = "";
    drawForecast.obj = null;
    
  • in Projects
    Avatar for Will

    Hi - could you also post a picture of it?

  • in ESP32
    Avatar for Will

    I am having same problem with the save(). I have my own onInit() called in the save.

  • in Projects
    Avatar for Will

    I've been happily building these, but running on Sonoff now. I really like the convenience of having some house lights that follow the sunset. Probably over-engineered, but that is where the fun comes in!

    Let me know if you'd like to buy one, $10 plus shipping.

  • in ESP8266
    Avatar for Will

    I found the "-fm dout" to be a critical setting to get it to stick.

  • in ESP8266
    Avatar for Will

    Thank you @MaBe

    This worked for me (leaving off the flash size, and using bin locations for larger chip:

    python "MYPATH\esptool.py" --port COM4 --baud 115200 write_flash --flash_freq 40m --flash_mode qio 0x0000 "boot_v1.6.bin" 0x1000 espruino_esp8266_user1.bin 0xFC000 esp_init_data_default.bin 0xFE000 blank.bin
    
Actions