ThingPulse / esp8266-weather-station

ESP8266 Weather Station library supporting OpenWeatherMap, Aeris and other sources
MIT License
1.06k stars 362 forks source link

Hello i‘m trying to change the time between changing frames, but I could not find code where to change. May someone could help ? Thank in advance , greetings Tomster #191

Closed Tomster99 closed 3 years ago

Tomster99 commented 3 years ago

Use one of the two templates below and delete the rest.

8<------------------------ BUG REPORT -----------------------------------------

Expected behavior

Actual behavior

Add serial console output here

Test code

Provide a Minimal, Complete, and Verifiable example which will reproduce the problem.

// add code here

Weather Station version

Which branch are you on? If you know the Git revision then add it here as well.

Hardware

Describe whether you run the code on the ThingPulse Weather Station Color kit or on some custom hardware.

8<------------------------ END BUG REPORT -------------------------------------

8<------------------------ FEATURE REQUEST ------------------------------------

Missing feature

Justification

Tell us why you would like to see this feature added.

Workarounds

Are there any workarounds you currently have in place because the feature is missing?

8<------------------------ END FEATURE REQUEST --------------------------------

IldeNet commented 3 years ago

+1 I would like to keep the time frame longer, but I can't find the variable.

renatobo commented 3 years ago

Have you tried using

   void setTimePerFrame(uint16_t time);

from the OledDisplayUI library on the ui variable?

IldeNet commented 3 years ago

Have you tried using

   void setTimePerFrame(uint16_t time);

from the OledDisplayUI library on the ui variable?

Thank you very much for the help, adding in line 166 "ui.setTimePerFrame (6000);" I was able to double the time per frame. Thanks for your time

marcelstoer commented 3 years ago

@renatobo thanks for the answer, I didn't initially understand what this was all about but you were spot-on.

line 166 "ui.setTimePerFrame (6000);"

Ok, I get it. This obviously refers to one of the sample sketches (WeatherStation, WorldClock, or PlaneSpotter).