Your new topic does not fit any of the above??? Check first. Then post here. Thanks.

Moderator: igrr

User avatar
By rajdarge
#32539
bbx10node wrote:http://x10linux.blogspot.com/2015/09/di ... using.html


I just modified your code and took out any reference to the LCD that you have and the libraries etc. (spi, gfx, pcd8544) as I do not have one of those devices. I was using just the serial port for debugging.
I also took out all display.xxx calls.
The code compiles and connects, but then the WatchDogTimer gets tripped and the chip resets.
I am using a Generic ESP-12-E and not the huzzah module.
this is an example of the output:
Code: Select all..
WiFi connected
IP address:
192.168.1.2
Connecting to api.wunderground.com
GET /api/**********/conditions/q/Australia/Sydney.json HTTP/1.1
User-Agent: ESP8266/0.1
Accept: */*
Host: api.wunderground.com
Connection: close

HTTP/1.1 200 OK

Server: Apache/2.2.15 (CentOS)

Access-Control-Allow-Origin: *

Access-Control-Allow-Credentials: true

X-CreationTime: 0.049

Last-Modified: Thu, 29 Oct 2015 12:05:40 GMT

Content-Type: application/json; charset=UTF-8

Expires: Thu, 29 Oct 2015 12:05:41 GMT

Cache-Control: max-age=0, no-cache

Pragma: no-cache

Date: Thu, 29 Oct 2015 12:05:41 GMT

Content-Length: 2585

Connection: close

Set-Cookie: DT=1446120340:24508:365-v1; path=/; expires=Fri, 01-Jan-2020 00:00:00 GMT; domain=.wunderground.com



bytesIn 2585
respLen 2586

Exception (29):
epc1=0x40206970 epc2=0x00000000 epc3=0x00000000 excvaddr=0x00000000 depc=0x00000000

ctx: sys
sp: 3ffea9e0 end: 3fffffb0 offset: 01a0

User avatar
By bbx10node
#32549 Make sure respBuf is global (declared outside any function) and StaticJsonBuffer<3*1024> jsonBuffer is local (declared inside a function). That is all I can remember about using the ArduinoJson library. Stripping out the LCD display code should work as long as other changes are not made.
User avatar
By bbx10node
#32559 I posted on github the esp-pcd-weather demo program with all the LCD code stripped out. The weather data is sent out the serial console. Works fine on my system.

https://gist.github.com/bbx10/149bba466b1e2cd887bf

Code: Select allbytesIn 2663
respLen 2664
70.6 F, 21.4 C, 45% RH
Clear
1010
Thu, 29 Oct 2015 08:26:30 -0700
PDT
America/Los_Angeles
-0700
User avatar
By rajdarge
#32767 Unfortunately it always sets off the watchdog timer for me with Arduino.cc version 1.6.5.
I updated and downdated my esp8266 (via boards manager) install and updated and downdated (via library manager) the arduJson library (5.04 is my current version) and it was the same. Your code really only uses those libraries :( . It might be that I am using a esp-12e but I doubt it.
Currently I am saving data to thing speak
https://thingspeak.com/apps/matlab_visualizations/31295
You can see how cold my beer is at the moment :) (I tell a lie as I don't drink).

Apparently thingspeak can also send data back across an API, and 2 of the fields are : TZ and offset. So if I could just access that things would start looking rosy again.