switchdoclabs / ourweatherweatherplus Goto Github PK
View Code? Open in Web Editor NEWOurWeather Software for WeatherPlus Board - creates (or you rename) a directory called "SDL_ESP8266_WeatherPlus"
Home Page: http://www.switchdoc.com
OurWeather Software for WeatherPlus Board - creates (or you rename) a directory called "SDL_ESP8266_WeatherPlus"
Home Page: http://www.switchdoc.com
8 minutes after booting and connecting to Wifi the software stalls. Actually it gets stuck in the main loop. I use Arduino 1.8.1 and installed v023.
WiFiClient client = server.available();
if (client) {
while (!client.available()) { // potential infinite loop
delay(1);
}
if (client.available()) {
rest.handle(client);
}
}
By adding a counter and a break point at the while (!client.available()) loop it runs like a charm.
while (!client.available()) {
Serial.print(".");
delay(1);
timeout++;
if(timeout>1000) {Serial.print("INFINITE LOOP BREAK!"); break;}
}
Why the json output is not including all sensor values?
Why the filenames of the includes are not case senitive? Every time I update the repo I need to rename the files like written into the ino otherwise it will not compile on linux systems.
I know that issue #9 asks for this, but it was closed, I'm guessing due to know description.
I host my own local MQTT server and would like to be able to send my weather information to it. This would allow me to easily get my weather station info into both WeeWX for historical gathering as well as Home Assistant to help with my sprinkler automation.
There's three different vulnerabilities/attacks for which Espressif has released patches for, these should be updated for the Ourweather platform.
See https://hackaday.com/2019/09/05/esp8266-and-esp32-wifi-hacked/
Links to Espressif patches are in the links above.
Which you sell here: http://store.switchdoc.com/i2c-lightning-detector-grove-connectors-mod-1016g/
When i try to Upload (v036) files to WeatherPlus - All in One Weather Station Controller (v2) the arduino ide cancel because of missing BlynkSimpleEsp8266.h
After insert the file from https://github.com/blynkkk/blynk-library/blob/master/src/BlynkSimpleEsp8266.h the upload works like a charm...
Hi,
I'm trying to update the OurWeatherWeatherPlus version on my OurWeather. I'm using Arduino IDE (1.8.5) using "Adafruit HUZZAH ESP8266" as board but I continue to get these errors (I tried with different OS and also with different version of Arduino IDE and also of code, but nothing changes)
In file included from /home/lucadelu/github/MWS/OurWeatherDev/SDL_ESP8266_WeatherPlus/SDL_ESP8266_WeatherPlus.ino:76:0:
/home/lucadelu/.arduino15/packages/esp8266/hardware/esp8266/2.4.0/libraries/Wire/Wire.h: In function 'bool readWXLink()':
/home/lucadelu/.arduino15/packages/esp8266/hardware/esp8266/2.4.0/libraries/Wire/Wire.h:70:13: note: candidate 1: uint8_t TwoWire::requestFrom(int, int, int)
uint8_t requestFrom(int, int, int);
^
/home/lucadelu/.arduino15/packages/esp8266/hardware/esp8266/2.4.0/libraries/Wire/Wire.h:64:12: note: candidate 2: size_t TwoWire::requestFrom(uint8_t, size_t, bool)
size_t requestFrom(uint8_t address, size_t size, bool sendStop);
^
/home/lucadelu/.arduino15/packages/esp8266/hardware/esp8266/2.4.0/libraries/Wire/Wire.h:70:13: note: candidate 1: uint8_t TwoWire::requestFrom(int, int, int)
uint8_t requestFrom(int, int, int);
^
/home/lucadelu/.arduino15/packages/esp8266/hardware/esp8266/2.4.0/libraries/Wire/Wire.h:64:12: note: candidate 2: size_t TwoWire::requestFrom(uint8_t, size_t, bool)
size_t requestFrom(uint8_t address, size_t size, bool sendStop);
^
/home/lucadelu/.arduino15/packages/esp8266/hardware/esp8266/2.4.0/libraries/Wire/Wire.h:70:13: note: candidate 1: uint8_t TwoWire::requestFrom(int, int, int)
uint8_t requestFrom(int, int, int);
^
/home/lucadelu/.arduino15/packages/esp8266/hardware/esp8266/2.4.0/libraries/Wire/Wire.h:64:12: note: candidate 2: size_t TwoWire::requestFrom(uint8_t, size_t, bool)
size_t requestFrom(uint8_t address, size_t size, bool sendStop);
^
/home/lucadelu/.arduino15/packages/esp8266/hardware/esp8266/2.4.0/libraries/Wire/Wire.h:70:13: note: candidate 1: uint8_t TwoWire::requestFrom(int, int, int)
uint8_t requestFrom(int, int, int);
^
/home/lucadelu/.arduino15/packages/esp8266/hardware/esp8266/2.4.0/libraries/Wire/Wire.h:64:12: note: candidate 2: size_t TwoWire::requestFrom(uint8_t, size_t, bool)
size_t requestFrom(uint8_t address, size_t size, bool sendStop);
^
Archiving built core (caching) in: /tmp/arduino_cache_67619/core/core_esp8266_esp8266_huzzah_CpuFrequency_80,FlashSize_4M1M,LwIPVariant_v2mss536,Debug_Disabled,DebugLevel_None____,UploadSpeed_115200_c11f787689a11fb3cc84caa40fd0a557.a
Sketch uses 392864 bytes (37%) of program storage space. Maximum is 1044464 bytes.
Global variables use 47532 bytes (58%) of dynamic memory, leaving 34388 bytes for local variables. Maximum is 81920 bytes.
warning: espcomm_sync failed
error: espcomm_open failed
error: espcomm_upload_mem failed
error: espcomm_upload_mem failed
do you have any help for me?
AM2315 Dewpoint display block is missing from DISPLAY_WEATHER_LARGE in OLEDdisplay.h file.
This block existed in build 021 but is not present in the 023 build I just downloaded.
Was this by design?
Adding this block in, throws the rest of the numbering in that section off, and so that will need to be corrected.
Also, why was the variable name "dewpoint" used when it is AM2315_Temperature and AM2315_Humidity?
I'm going to be submitting a few more suggestions like these for your consideration soon.
The print antenna is really poor in signal level, an external antenna you can Connect to an ESP-07s will boost the signal with additional 12db!
Hello, I am a PhD candidate at the University of Toronto. I bought a WeatherPlus station as a tinker project. Our plan is to run the station alongside our "professional grade" weather station (See: weather.utsc.utoronto.ca).
Unfortunately, our campus WiFi is very restricted, and requires authentication either by private certificate, or by a authentication with a username and password (in the connection settings, not a captive portal). I have glanced through the WiFiManager source, and it seems to only support simple SSID and password combinations.
I am opening this issue to track the possibility of more advanced WiFi configuration. In the meantime, I will also contact our networking folks to see if we can find a solution on our side.
Which you also sell here: http://store.switchdoc.com/grove-sunlight-ir-uv-i2c-sensor/
SDL_ESP8266_WeatherPlus.ino:35:28: fatal error: user_interface.h: No such file or directory
#include "user_interface.h"
When the AM2315 returns bad values, these are currently set to NAN
. The JSON returned from the REST API contains these values as nan
, which is invalid because strings must be enclosed in quotes. Reading the JSON in R or Home Assistant fails with errors.
On my local compile, I've opted to replace the NANs with -999 and the JSON is parsed coreectly.
Another option would be to return null
in place of the nan
as null
is valid JSON. I'm not sure whether this change should happen when the values are read or when the values are inserted into the JSON return.
Hi,
I am using Arduino IDE, and it bugs on String.h,
I have checked that Arduino.h is found in the same .ino file (few lines above).
Using Arduino 1.8.2 with the genericESP8266 board and the default compiler (AVRISP mkII).
Thanks for any suggestions,
Yann
There are a number of includes that fail to resolve when building on linux.
I have installed ESP8266 boards from http://arduino.esp8266.com/stable/package_esp8266com_index.json but could only find "Adafruit Feather HUZZAH ESP8266" and not "Adafruit HUZZAH ESP8266" as stated in BUILD.MD. Is this the correct board?
Directions from Adafruit say to use this board: https://learn.adafruit.com/adafruit-huzzah-esp8266-breakout/using-arduino-ide
'#include "Wire.h"' used in multiple libraries point to local file that does not exist. Is this supposed to be '#include <Wire.h>' which would use the file from the ESP8266 library?
'#include "Crc16.h"' in SDL_ESP8266_WeatherPlus.ino. Local file is lowercase 'crc16.h' and therefore fails to include on Case Sensitive Linux OS. Renaming file solves the problem. Same goes for '#include "elapsedMillis.h"' in same INO file.
Conversely there is '#include <String.h>' which should be lowercase '#include <string.h>'
Then it gets a bit more complex. There is '#include <Time.h>' in SDL_Weather_80422.cpp. Is this supposed to use the local file 'TimeLib.h' or '#include <time.h>' or 'Time' library by Michael Margolis?
Finally there is '#include "user_interface.h"' in local WifiManager.h. "user_interface.h" is not in your repo.
I see that others have brought up similar issues but they were not fixed in repo:
#2
#4
#14
Thanks for any info you provide. Should be receiving my kit in 2 days and would like to get the code compiling before then.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.