Doc: I have some experience programming Arduino UNO's with the IDE. Been able to download software from GitHub and load the SDL_ESP8266_WeatherPlus. ino. Some questions:
Is there an overview tutorial on modifying and uploading the code for the ESP8266? What board do I select for the ESP8266 in the Arduino IDE? Can I purchase from you or elsewhere a bare ESP8266 as a test bed to run code modifications on? With my last project I played with an Arduino simulator to test code modifications. Would that work in this case (as opposed to buying a test bed board)?
My reason for this and for buying your kit is to be able to add non-standard sensors, such as a CO2 sensor, a sky infrared pyrometer sensor, maybe a snowfall sensor, etc. Thanks, Berne
1. Setup the Arduino IDE and download the OurWeather/WeatherPlus software: git clone github.com/switchdoclabs/OurWeatherWeatherPlus 2. copy all files into sketchbook SDL_ESP8266_WeatherPlus open IDE and attempt to compile, Verify 3a. line 158: #include <String.h>: No such file or directory. a forum post suggest to change to <string.h> so I do and try to compile again 3b. line 237 #include "elapsedMillis.h" : No such file . file name is elapsedmillis.h so I change M to m and try again 3c. line 629 change Crc16.h to crc16.h 3d. line 13 in SDL_Weather_80422.cpp is #include <Time.h> and error is again no such file. There is a file TimeLib.h so I change to that 3e. same line so I change from <TimeLib.h> to "TimeLib.h" 4. compile finishes with out fatal error 5. disconnect power from weather board 6. connect laptop using USB to FTDI which powers up weather board 7. do upload procedure, GPIO0 and RESET 8a. looks like all uploaded ok, status at bottom of IDE says Done uploading. But the info lines are: 8b. Leaving… 8c. Hard resetting via RTS pin… 9. I disconnect FTDI and reattach power 10. Boots ok and runs two or three minutes, then fails, hangs up. 11. data on Blynk has outside temp frozen, outside humidity nan%, dewpoint nanF, inside temp -227.7F 12. If I then do an over-the-air update from the OurWeather Admin page all is normal again.
Berne, happy to try and help but something I am doing is wrong. When I upload (per the OurWeather Advance programming manual) and the steps I outline above something fails and I do not know what. So I am looking for help too.
Post by gb0101010101 on Jun 10, 2019 13:03:37 GMT -8
berne , You want board: AdaFruit Feather HUZZAH ESP8266 To see this board you will have to add board sources: File -> Preferences -> Additional Board Manager URLs. Add , http://arduino.esp8266.com/stable/package_esp8266com_index.json
to existing text. Note the comma at the beginning. Click 'OK'
It will download the board code.
Go to Tools -> Board and select the board.
Connect the board using the FTDI adapter to USB on computer. Wait a few seconds.
Go to Tools-> Port and select the USB port. (probably only one listed)
Once you have fixed all the code issues mentioned by david
Hold the power button on the OurWeather board, then press the reset button, then let go of power button to put it into programming mode.
Then quickly click on the second Icon from left which is the right arrow in a circle to upload.
gb0101010101, thanks for reading my post above, but can you help me. Something in the process is causing my board to fail. It works great with install of version 35 from the OurWeather Admn page but when I upload it causes humidity to go to NAN and inside temp -227 and dewpoint NAN. The only changes I made to the code is outlined above. I am just piggybacking on the questions berne posted, but can start a new thread if that is the best.
david, thanks again. Very helpful. I had to do an extra step, under tools, boards had to go to boards manager where the ESP8266 boards were listed at the bottom, that is where the download occured. Now I see a slew of ESP8266 boards. Do I select the generic or one of the others? Good luck with your programming issue, I will be watching that thread, too. - berne
Okay I think I found the answer to my question in the advanced user manual. It says select the Adafruit Huzzah board. I only see the "Adafruit Feather HUZZAH ESP8266" as the closest in the new boards in the board manager, so will assume that's the one.
Edit: Now I feel foolish, because you already mentioned that board upthread. thanks again.
David & Doc: Just a note, I had to make more changes to the code than the ones you noted. For instance the code incorrectly puts some includes in < > when there is no cpp. For h only they should be in " ". Also The Blynk code in the source I downloaded is stored in BlynkRoutines.h The is incorrectly named in the main code include. I am still getting a compile error "Blynk not declared in this scope". Pretty clear that the code that was downloaded is NOT the production version.
It is pretty clear that there is some kind of a library installation issue. We have moved this from machine to machine with out problem. It is either a user installation error or an error in the instructions. Sounds like we need to do an instruction audit.