-
Notifications
You must be signed in to change notification settings - Fork 30
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
configuration issues: weather data and conditions; display flickering #4
Comments
|
Im having the same issue, here is my serial monitor:
|
I assume you are referring to item 3, above. Did you try the delay change from 1000 to 5000? Did that work? |
Tried that Yeh, much the same �fWrmat=D.M.Y |
If I make the api call in chrome from my laptop it returns valid json and the correct weather. It's like my node can't access the information - firewall issue? Im going to add a println to see if it's actually connected to the api |
you could replace |
added the if, its not connecting:
i also tried to connect the node to a mobile hotspot an the same thing happens so rules out firewall |
you could try 2 more things: also, try doing this right after the delay: |
getting something back in the serial now, although nothing on the board: Failed to open config file |
you don't see that on the board because this fails I don't know which of the 3 proposed changes you made to the code to understand what generated this behavior. |
|
I removed the while loop and that fixed the issue |
Imirel,
|
Confirmed if I removed the while loop, the temp/hum/pressure would display. However, the icon will not, presumably b/c the weather conditions and thus icons were not defined. |
Mirel, On the original issue #2 (display flicking), I can't identify any relevant console output. The console output is pretty much the weather data output every 5 min (copied below). One more thing I tried was to use a different board (still a NodeMCU) from a different vendor, which uses a different ESP8266 module (the previous one is, in fact, a chip-on-board). Unfortunately, the same flicking issue remains.
|
I'll need to find time to try different things as I cannot reproduce this on my 2 setups. |
I'll need to rewrite that condition as it seems your connection is very fast and it gets back the data and closes the connection in 1 sec or less. |
it doesn't know 'Haze' and there are many other conditions it doesn't know but this is good feedback. |
I've pushed a workaround for the weather retrieval issue when it is there but not processed due to connection close. |
Mirel, I think I have resolved the flicking issue. When I was first provisioning the WiFi, I encountered the issue reported in the discussion section of https://www.instructables.com/id/Morphing-Digital-Clock/. That is I wasn't able to see ESP8266 WiFi SSID b/c according to Hari: "interrupt routine that is updating the matrix is interfering with WiFi". As a result, I have to decrease the refresh rate of the display (from 0.002 to 0.025) per Hari's Experimental12E branch https://github.com/hwiguna/HariFun_166_Morphing_Clock/blob/Experimental12E/Latest/MorphingClock/MorphingClock.ino. After that, I left the setting unchanged at 0.025. I remembered that I did change back to 0.002 at one point but in the combination of changing other parameters I somehow still seen flicking. Until last night, I changed back to 0.002 (and presumably other parameters back), the flickering was gone. I went ahead and changed different ranges and found the range where it will work. My current setting is 0.0025 since that's the middle of working range to my board.
So, to summarize, I have to change refresh rate to 0.025 to set up WiFi configuration (my home network credential) but after that I have to change the refresh rate to 0.0025 to avoid display flickering. I also have an update on the weather condition / icon. Since there are a whole lot other conditions, that will be hard to match / create them all up. My suggestion is to use icon when available but when it's "unknown" ("0" condition in your code), I suggest to just print out the first few characters (space allowed). I was able to print out 4 characters (I may adjust in future). It's not as pretty as icons but it's not bad to not leave it blank/space. Please see the attachment of my photo. One thing I have to do is to convert all of the characters to upper-case or it won't display correctly. |
I like the idea of using the first 4 letters, thanks. I'll implement that as soon as I find some time - I only implemented the uppercase support for TinyFont; a faster solution is to adapt the font code to convert them to uppercase directly ;-)= it's great that you've resolved the flickering issue and thanks for sharing. |
I have built this display using the 12E Node MCU. I managed to work thru the getHour error after following the notes about the three files and ended up only using the two specified. Took quite a few tries and rebuilds. |
I'm sorry to hear you didn't find a way to fix the flickering. it is weird that it doesn't happen for the weather icon as the whole display should refresh while flickering. |
Yep, I am back to running Hari's code for just the clock. It's simple and no flickering. I tried several days of changing the setting 'wudave' suggested. However there are gaps in his documentation. Esp. the part about changing some paramaters "back". |
So you get no flickering when running Hari's code with just the morphing
clock?
I'm accessing the display every 150ms for icon animations so this might cause problems for you.
…On Fri, Nov 16, 2018 at 2:50 PM Racer1Tn ***@***.***> wrote:
Yep, I am back to running Hari's code for just the clock. It's simple and
no flickering. I tried several days of changing the setting 'wudave'
suggested. However there are gaps in his documentation. Esp. the part about
changing some paramaters "back".
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub
<#4 (comment)>,
or mute the thread
<https://github.com/notifications/unsubscribe-auth/ACmVhD1nY39VgIcbxhGU6yuFsKQ_JT3Xks5uvsK6gaJpZM4Vzh1H>
.
|
I have a same problem with severe flickering on esp8266. Tried different refresh rates but couldn't get rid of it so I had to go back to the original morphing code. Too bad, this project looked very nice. |
please comment line 988: draw_animations (i); also, comment out the last call to delay (0); in the loop function. this might have effect on interrupt handling which in turn might impact flickering. let me know if it changed anything. |
please comment line 988: draw_animations (i); also, comment out the last call to delay (0); in the loop function. this might have effect on interrupt handling which in turn might impact flickering. let me know if it changed anything. |
@lmirel Nope, doesn't help. Still flickering. |
During WiFi configuration, somehow the font size is incorrect. As you can see, the image below the last character “k” and “1” are wrapping over the next line on left. This in itself is not causing problem to set up.
The display is flicking severely. Please see a short video below.
I have played around the display_updater parameters a bit (from 10 to 280) but it wasn’t improving. I noticed that during “connecting” and “online”. The display was not flicking. Please advise anything else I should try.
--
console output:
..
timezone=-7
military=Y
metric=Y
date-format=M.D.Y
connecting to weather server.. connected.
*WM: freeing allocated params!
display color range [0 .. 65535]
day mode brightness
showing the weather
!no weather data available
showing the date
Got NTP time: 23:04:34 07/08/2018
night mode brightness
showing the weather
!no weather data available
showing the date
showing the weather
!no weather data available
connecting to weather server.. connected.
showing the weather
!no weather data available
..
The text was updated successfully, but these errors were encountered: