D24772: Immediate refresh weather data on startup
Wolfgang Reissenberger
noreply at phabricator.kde.org
Sat Oct 19 09:27:43 BST 2019
wreissenberger created this revision.
Herald added a project: KDE Edu.
Herald added a subscriber: kde-edu.
wreissenberger requested review of this revision.
REVISION SUMMARY
Depending on the refresh period of an INDI weather driver it could take a while until the first data point is received. Until this happens, the list of sensors remains empty.
To avoid this, an immediate refresh is called when the display is initialized.
Additionally, some UI optimizations have been added:
- Splitter between dome and weather display added
- When only one data point is available in the history, a dot is displayed
TEST PLAN
Use the openweathermap INDI driver and observe, that with this fix the sensor data is immediately present
REPOSITORY
R321 KStars
BRANCH
observatory_sensor_refresh
REVISION DETAIL
https://phabricator.kde.org/D24772
AFFECTED FILES
kstars/ekos/auxiliary/weather.cpp
kstars/ekos/auxiliary/weather.h
kstars/ekos/observatory/observatory.cpp
kstars/ekos/observatory/observatory.ui
kstars/ekos/observatory/observatoryweathermodel.cpp
kstars/ekos/observatory/observatoryweathermodel.h
kstars/indi/indiweather.cpp
kstars/indi/indiweather.h
To: wreissenberger
Cc: kde-edu, narvaez, apol
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.kde.org/pipermail/kde-edu/attachments/20191019/78f9c0ee/attachment.html>
More information about the kde-edu
mailing list