Weather and NetSpeed Plugins for DDE Dock
Tofloor
poster avatar
v14dober
deepin
2019-05-10 01:50
Author
Edited by v14dober at 2019-5-13 21:53

New versions of plugins for the Deepin Dock.
Install plugins: ./install.sh
Uninstall: ./uninstall.sh
Both plugins are installed immediately. To display the weather description in your language, select your language in the weather settings and reload the panel: killall dde-dock



Plugins is my fork to
https://github.com/CareF/deepin-dock-plugin-neoweather and https://github.com/sonichy/CMDU_DDE_DOCK
My sources: dde-dock-weather.zip, dde-dock-netspeed.zip

Reply Favorite View the author
All Replies
dbarronoss
deepin
2019-05-11 10:41
#1
Both linked against a library not found on my system:
/libnetspeed.so: /lib/x86_64-linux-gnu/libQt5Core.so.5: version `Qt_5.10' not found (required by ./libnetspeed.so)
Reply View the author
Comments
v14dober
2019-05-11 13:17
Maybe your system has old QT packages. Upgrade your system
marl
deepin
2019-05-11 11:45
#2
Edited by marl at 2019-5-11 04:02

Excellent work! I love it!!!It could have a moon at night instead of a sun?
Reply View the author
Comments
v14dober
2019-05-11 13:28
I'm glad you liked it! Night icons are provided, but they are displayed for all 6 days and this is not correct
dbarronoss
deepin
2019-05-11 13:36
#3
Edited by dbarronoss at 2019-5-11 05:37
https://bbs.deepin.org/post/177849
Both linked against a library not found on my system:
/libnetspeed.so: /lib/x86_64-linux-gnu/libQt5C ...

Well, as best I can tell, I'm fully up to date.  Both via the GUI and apt-get update/upgrade.
If I'm not, then there is some issue with upgrading on my system.
Have you by chance switched your debian to test or unstable? vs stable ?

Reply View the author
Comments
v14dober
2019-05-11 13:52
Also check the installed libqt5core5a package
v14dober
2019-05-11 13:45
I have unstable (panda) deepin. But you can easily build plugins from the sources I posted.
dbarronoss
deepin
2019-05-12 01:49
#4
https://bbs.deepin.org/post/177849
Well, as best I can tell, I'm fully up to date.  Both via the GUI and apt-get update/upgrade.
If I' ...

That would be it....stable has libqtcore4.
Reply View the author
Comments
v14dober
2019-05-12 03:24
Deepin DE uses QT5 not QT4. And QT5 is stable.
dbarronoss
deepin
2019-05-12 06:56
#5
Edited by dbarronoss at 2019-5-11 23:03

Very weird then, since I only recently installed from the most recent ISO.  Hmm, maybe i just don't have that library installed (at current levels), that would make possible sense.  I'll try to manually install it when I reboot later.  Thanks, I look forward to trying your apps.
Hmmm.....

libqt5core5a/lion,now 5.7.1+dfsg-9deepin amd64 [installed]
  Qt 5 core module


Reply View the author
Comments
v14dober
2019-05-12 08:32
Follow the links under the pictures there everything is explained
v14dober
2019-05-12 08:30
Probably in the stable (Lion) Deepin libraries are used with a smaller version of QT, but as I said earlier, you can build the plugins yourself from my sources. Follow the links under the pictures the
koorosh
deepin
2019-05-16 03:16
#6
i don't know why NetSpeed is Stuck on 0 KB/s
Reply View the author
m***[email protected]
deepin
2019-05-16 06:05
#7
Edited by aiamuzz at 2019-5-15 22:07

https://bbs.deepin.org/user/161086 ... seems you have only added a new icon set for the weather plugin ...

if you have created the icons yourself and hold the rights to all those images(we do not allow / accept stock images from the internet) you might as well add your icon set to the project ... https://github.com/CareF/deepin-dock-plugin-neoweather ... we would welcome your contribution ... with due credit for your contribution.
Reply View the author
Comments
v14dober
2019-05-16 09:48
I am not a developer and not registered on github, but you can use my icons as you wish
dbarronoss
deepin
2019-05-16 06:57
#8
Ok, I got around to taking time to setup a compile environment for Deepin.  Would you be so kind to advise what I may have not installed to have gotten the below error:
  1. g++ -c -m64 -pipe -O2 -std=gnu++11 -Wall -W -D_REENTRANT -fPIC -DQT_NO_DEBUG -DQT_PLUGIN -DQT_SVG_LIB -DQT_WIDGETS_LIB -DQT_GUI_LIB -DQT_NETWORK_LIB -DQT_CORE_LIB -I../source -I. -isystem /usr/include/libdtk-2.0.12/DWidget -isystem /usr/include/libdtk-2.0.12/DCore -isystem /usr/include/x86_64-linux-gnu/qt5 -isystem /usr/include/x86_64-linux-gnu/qt5/QtSvg -isystem /usr/include/x86_64-linux-gnu/qt5/QtWidgets -isystem /usr/include/x86_64-linux-gnu/qt5/QtGui -isystem /usr/include/x86_64-linux-gnu/qt5/QtNetwork -isystem /usr/include/x86_64-linux-gnu/qt5/QtCore -I. -I/usr/lib/x86_64-linux-gnu/qt5/mkspecs/linux-g++-64 -o weatherclient.o ../source/weatherclient.cpp
  2. ../source/weatherclient.cpp: In constructor ‘WeatherClient::WeatherClient(QNetworkAccessManager&, QTextStream&, int, const QString&, const QString&, bool, QObject*)’:
  3. ../source/weatherclient.cpp:94:10: error: ‘fromSecsSinceEpoch’ is not a member of ‘QDateTime’
  4.      last(QDateTime::fromSecsSinceEpoch(0, QTimeZone::utc())),
  5.           ^~~~~~~~~
  6. ../source/weatherclient.cpp: In function ‘OpenWeatherClient::Weather jWeatherParser(const QJsonObject&)’:
  7. ../source/weatherclient.cpp:168:6: error: ‘fromSecsSinceEpoch’ is not a member of ‘QDateTime’
Copy the Code

Thanks
Reply View the author
Comments
v14dober
2019-05-16 10:11
If there is an error, try     last(QDateTime::fromTime_t(0, QTimeZone::utc())),
v14dober
2019-05-16 09:43
Try replacing line 94 in weatherclient.cpp with     last(QDateTime::fromMSecsSinceEpoch(0, QTimeZone::utc())),