yawp javascript for panels on kde4


here shouold be the code to configure yawp but… it DOESN’T WORK :S i have tried but no
it doesn’t do the job

this code works only if you have compiled the latest version of yawp (jan 2012 it’s 0.4.3)

var yawp = panel.addWidget("yaWP");

yawp.writeConfig("animation.daysnames","8");
yawp.writeConfig("animation.details","1");
yawp.writeConfig("animation.duration","500");
yawp.writeConfig("animation.icon","3");
yawp.writeConfig("animation.page","8");
yawp.writeConfig("custom.fontcolor.lowtemp","30,28,27");
yawp.writeConfig("custom.fontcolor.normal","20,19,18");
yawp.writeConfig("custom.fontcolor.shadows","255,255,255,100");
yawp.writeConfig("custom.fontcolor.usage","false");
yawp.writeConfig("custom.theme.background.enabled","false");
yawp.writeConfig("custom.theme.enabled","false");
yawp.writeConfig("custom.theme.file","");
yawp.writeConfig("panel.forecast.days","5");
yawp.writeConfig("panel.forecast.format","3");
yawp.writeConfig("panel.layout.compact","false");
yawp.writeConfig("panel.today.format","3");
yawp.writeConfig("panel.tooltip.extended.enabled","true");
yawp.writeConfig("panel.tooltip.extended.format","5");
yawp.writeConfig("start delay","0");
yawp.writeConfig("system.distance","2007");
yawp.writeConfig("system.pressure","5007");
yawp.writeConfig("system.speed","9001");
yawp.writeConfig("system.temperature","6001");
yawp.writeConfig("text.shadows","false");
yawp.writeConfig("theme","default");
yawp.writeConfig("traverse locations","false");
yawp.writeConfig("traverse locations timeout","30");
yawp.writeConfig("update interval","45")

yawp.currentConfigGroup = new Array('locations')

yawp.writeConfig("city01",'accuweather,Verona\\, Italy(Veneto),Italy,it,EUR.IT.IT020.VERONA,Europe/Rome');
yawp.writeConfig("selected","0");

yawp.currentConfigGroup = new Array('ExtenderItems')

yawp.writeConfig(" extenderItemPosition","0");

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s

%d bloggers like this: