Welcome, Guest
Please Login or Register.    Lost Password?

Addons for Shadow4 skin
(1 viewing) (1) Guest
Go to bottomPage: 12345678...26
TOPIC: Addons for Shadow4 skin
***
#6164
Addons for Shadow4 skin 6 Years, 7 Months ago  
I created couple of examples for the Shadow4 skin. These don't exactly have anything to do with calendars so they won't be a part of the main installation but I'll release them here as an addon to show what kind of things you can do with the Rainlendar skins and lua scripts. Feel free to use the scripts in your own skins.

Note that you need Rainlendar 2.10 or newer to run these.

Here's the package: www.rainlendar.net/download/Shadow4-Widgets.r2skin-addon

To install just drop the file over the calendar window and if all goes well it should integrate itself to the default Shadow4 skin. After that you can go to the advanced skin options and choose these new windows:

RSS will show the rss feed from a given url. By default it shows the latest posts to this forum but you can define the location in the skin's settings.

Photos shows interesting images from Flickr. You can define how often the image is reloaded and if it's done randomly or not in the skin's settings. Note that this works quite poorly with copy transparency enabled.

Weather displays current conditions and the forecast for the given location.

Countdown calculates downwards to a specific date. You can set the target day and the title from the skin's settings.

TV shows current Finnish tv programs. This probably isn't very useful if don't live in Finland but I released it anyway as an example of a somewhat more complex script.

Moonphase shows the current phase of the moon.

File displays contents of a text file. The widget is automatically updated when the file changes.

Translate allows you to use Google's translate service from a desktop widget. Supports multiple languages simultaneously.

World Time displays the current time in four different places in the world. Note that you might have to adjust for the daylight saving time manually.

Search opens your favorite web search page on your browser.

Localization:
If you want to help with the localization here is the psd template for the background texts: www.rainlendar.net/download/Language%20Template.psd

The font that is used in the texts is called Fusi which you probably can find from the internet quite easily. You can send the translated images to me (rainy@iki.fi) in png format so I can add them to the addon. Or you can just tell what the translations are and I'll create the images.


Updates:
28.12.2012 - Changed the weather widget to use Yahoo weather.
2.7.2012 - Replaced the weather provider and added the search widget.
12.10.2010 - Added world time widget.
12.7.2010 - Updated for 2.7 release. Added translate widget.
22.8.2009 - Updated for 2.6 release.
13.9.2008 - The Photos window can now show images from local folders too (b65 or newer required).
7.12.2008 - Added Moonphase and File widgets (b68 or newer required).
22.12.2008 - Improved RSS feed support.

Here's a screenshot of some of the addon windows:
Rainy
Moderator
Posts: 6000
graph
User Online Now Click here to see the profile of this user
Last Edit: 2012/12/28 06:44 By Rainy.
The administrator has disabled public write access.
 
#6173
Re:Addons for Shadow4 skin 6 Years, 7 Months ago  
Excellent work ! (again !)

Would it be possible to integrate the new features into the "Language Pack for Shadow4" and make it avilable here ?

No need to translate all new features, the only thing i'm missing at the moment is the translated "main calendar" skin.

BTW: The preview button when posting seems to be broken
Bandit
Junior Boarder
Posts: 24
graphgraph
User Offline Click here to see the profile of this user
Location: Germany
The administrator has disabled public write access.
 
#6175
Re:Addons for Shadow4 skin 6 Years, 7 Months ago  
That's great, especially the weather script.
I tried to edit the script weather.lua for other langauge feeds from weather.msn.com but failed miserably for the tooltip
Could you help me what I'm doing wrong?
Steps I did:
Feed: wetter.msn.com/RSS.aspx?wealocations=wc:AUXX0025&weadegreetype=C&culture=de-DE
the last part &culture=de-DE makes it a German feed and then the tooltip part of the script fails and only shows "Wien".
I tried to edit the lua script and did the following in it:

Code:

-- Create a tooltip for the weather icon
_, _, conditions = item:find("Aktuelle Wetterlage: (.*) in"«»)
_, _, date = item:find("am (.*)."«»)
_, _, degrees = item:find("/>.-%p (.-)%p Luftfeuchtigkeit"«»)
_, _, humidity = item:find("Luftfeuchtigkeit: (%d*%%)"«»)
-- _, _, winds = item:find("Windstrke: (.-)."«»)

text = ""
if (conditions) then
text = text .. "Aktuelle Wetterlage: " .. conditions .. "\n"
end
if (degrees) then
degrees = degrees:gsub("", ""«»)
text = text .. "Temperatur: " .. degrees .. "\n"
end
if (humidity) then
text = text .. "Luftfeuchtigkeit: " .. humidity .. "\n"
end
-- if (winds) then
-- text = text .. "Windstrke: " .. winds .. "\n"
-- end
if (date) then
text = text .. "am " .. date .. "\n"
end


With this I still can't get it to correctly draw the tooltip. It still only shows me "Wien" (the title).
To be sure I just compared it again and this is the only difference to the original script.

On second view it seems that this part of the script is not actually used in Rainlendar but taken from a hardcoded part? Or something else I'm doing wrong because with the changed script from above I get the correct english tooltext when I delete the "&culture=de-DE" from the link.

Edit: another instance I fail is when I try to make the forecast temperatures show by editing Lo: Hi: to Niedrig: Hchst:
Code:

-- Get the high and low temp
_, _, lo, hi = forecast:find("Niedrig: (-*%d+).-Hchst: (-*%d+)"«»)

Gideon007
Expert Boarder
Posts: 86
graphgraph
User Offline Click here to see the profile of this user
Last Edit: 2008/03/27 19:07 By Gideon007.
The administrator has disabled public write access.
 
#6182
Re:Addons for Shadow4 skin 6 Years, 7 Months ago  
It should be possible to install also the language addon together with this. I can change modify at least the window headers images so that they could be also translated by the language pack.

Gideon007, Try the attached version of the script. I at least got it to work with the German weather feed.

File Attachment:
File Name: weather.lua
File Size: 4625
Rainy
Moderator
Posts: 6000
graph
User Online Now Click here to see the profile of this user
Last Edit: 2008/03/28 04:26 By Rainy.Reason: Added the attachment
The administrator has disabled public write access.
 
#6183
Re:Addons for Shadow4 skin 6 Years, 7 Months ago  
Hi,

It should be possible to install also the language addon together with this


If you mean installing both Shadow4.r2skin-addon files, this does not work. It says something like "Can not merge this two versions"
Bandit
Junior Boarder
Posts: 24
graphgraph
User Offline Click here to see the profile of this user
Location: Germany
The administrator has disabled public write access.
 
#6184
Re:Addons for Shadow4 skin 6 Years, 7 Months ago  
The addons do not change the same files so it should be possible (I just tried it and did not get any errors). You need to make sure that you don't apply the same addon twice to the skin because it can corrupt it. If you cannot get it to work could you check from the Rainlendar's debug log what is the exact error it gives?
Rainy
Moderator
Posts: 6000
graph
User Online Now Click here to see the profile of this user
The administrator has disabled public write access.
 
Go to topPage: 12345678...26
get the latest posts directly to your desktop