Moin,
da ich schon immer ne Wettervorhersage im Skin haben wollte, und da ich auch mal das Skindesigner Plugin Interface mit einem echten Plugin ausprobieren wollte, habe ich mal ein kleines Wetter Plugin zusammengeklöppelt
Hier das Readme:
Code
Description:
------------
WeatherForecast provides a weather forecast (who'd have thought? ;) ) based on
forecast.io data.
Requirements:
-------------
- VDR 1.7.x
- libcurl
- jansson
Installation, configuration:
----------------------------
To download the plugin from the GIT repository, do a
git clone git://projects.vdr-developer.org/vdr-plugin-weatherforecast.git
Install the plugin depending on your used distribution.
The plugin has no startup parameters. During first startup of the plugin
(and everytime the VDR setup parameter "weatherforecast.city" is empty)
automatically an online lookup is done to detect your location (city, longitude,
latitude) by your used public ip. The latitude and longitude results are used
by the plugin to fetch appropriate data from forecast.io. The city is just
used for displaying purposes.
Since weatherforecast.io allows only 1000 API calls per day for free, the results
from forecast.io are cached up to 20h in
<PLUGINCACHEDIR>/weatherforecast/weather.json
If this file does not exist on Plugin startup, a new online lookup is done anyway.
city, longitude and latitude are stored and can be adapted manually in the plugin
setup menu. f you change latitude or longitude, just delete the cached
weather.json file and restart VDR to achieve new data for the newly configured
location.
Usage:
------
The plugin provides three different menus: "current weather", "next 48 hours"
and "next 7 days". Additionally the plugin provides a service interface so that
skins and other plugins are able to achieve weather data from the plugin.
Even if the plugin runs with every skin, best results can be reached by using a
skindesigner skin which implements the weather plugin templates.
Alles anzeigen
Ich denke das sollte selbsterklärend sein.
WICHTIG: Unbedingt Skindesigner auch auf die aktuelle Version 0.1.3 upgraden!
Hier noch ein paar Screenshots mit dem Blackhole Skin:
WeatherForecast Main Menu
Next 7 Days
Next 7 Days Detail
Have fun...ciao Louis