Coder Social home page Coder Social logo

k-donn / plasma-ion-wundergroundpws Goto Github PK

View Code? Open in Web Editor NEW
0.0 2.0 0.0 43 KB

A KDE Plasma 5 Data Engine for the Wunderground PWS Network

License: GNU General Public License v2.0

CMake 9.64% Shell 0.37% C++ 90.00%
kde-plasma-5 kde-desktop kde-plasma-ion wunderground-pws

plasma-ion-wundergroundpws's Introduction

Plasma Weather Ion Dataengine


Note

Remember that this dataengine relies on a semi-public API, as exposed by the "plasma/weather/ion.h" header. While this API has been the same for some time, there is no guarantee that it will be stable for all future versions of the weather dataengine as part of Plasma Workspace.

The main purpose of having this interface semi-public is to allow everyone to easily develop adapters to more weather data providers, without needing to work directly in the module plasma-workspace.

Once your ion dataengine is nicely working, please consider to merge it into the KDE module plasma-workspace with the existing ion dataengines. Looking forward to cover another weather data providers with your help :)

Build instructions

cd /where/your/ion/is/generated
mkdir build
cd build
cmake .. -DCMAKE_INSTALL_PREFIX=MYPREFIX -DCMAKE_BUILD_TYPE=Debug -DBUILD_TESTING=OFF -DKDE_INSTALL_USE_QT_SYS_PATHS=ON
make
make install

(MYPREFIX is where you install your Plasma setup, replace it accordingly)

Test instructions

Test your ion dataengine with plasmaengineexplorer --engine weather where you should see your ion listed in the default data "ions". You then can test the ion itself by entering into the field for "Source name" e.g. wundergroundpws|weather|foo or wundergroundpws|validate|foo with "foo" being the beginning of the name of a personal station. (ie. KGADACUL1)

Or try to use it from the Plasma Addons Weather widget. Start the widget in a test window with plasmawindowed org.kde.plasma.weather and then see to use your ion dataengine by configuring the widget to use a weatherstation provided via your ion dataengine

TODO

  • Use i18?
  • Add error handling in case station is down
  • Refactor the key property map

plasma-ion-wundergroundpws's People

Contributors

k-donn avatar

Watchers

 avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.