{ I hope I can post templates here ;-) }
Posted by: pierrot | on August 21, 2015
New “Script-Only”-template uploaded to the wiki:
containing:
– Agenda-load & Agenda-binders : get your Agenda appointments from a $variable.
– OWM-load & OWM-binder : get Open-Weather data from a $variable.
– Gnews-load & Gnews-binder : get Google-news from a $vvariable. (picture and url-linking from script)
– Quick-Theme : ‘full’-version.
– Loader-script : Somewhat tricky way to load multiple scripts at desktop-load-event. (when stable, I will create library).
– RunOffUI – run your function(s) on one seperate thread.
and ofcourse:
– APIcomm : for text communication from the internet
– IMGcomm : for setting an internet image as your item-background. (this does not use CustomView, because now it will servive a restart and persurve your data-limit).
and more…. please code-review and test-drive.
EDIT: Install with Replace seems to work better than Merge. Do not forget to back-up!
]]>Posted in | 27 Comments »
Tags: Jappie Toutenhoofd
< ![CDATA[
I cannot import templates in the current beta. Can anybody confirm this?
]]>
< ![CDATA[
just tested downloaded template and it works for me on b6
]]>
< ![CDATA[
OK, can anybody on 5.1 confirm this? I already reinstalled lightning, still happens.
]]>
< ![CDATA[
Andoid v5.1.1 myself. Hope I did not create an unshareble template.
]]>
< ![CDATA[
I tried it on my nexus 7 that is still running a custom ROM 4.4.4 and all works pretty good (except some script error at first load).
I not tried on my Oneplus with 5.1.1 ’cause I’m currently running my own template xD but I guess that it will works the same…
]]>
< ![CDATA[
as stated on the wiki: first load does throw some errors. just click OK.
]]>
< ![CDATA[
Hmm… It doesn’t work for me. I’ve sent the bug report to pierre, but as he is away ATM I guess I can’t test 4 you.
]]>
< ![CDATA[
pitty, some are based on yours 🙁
]]>
< ![CDATA[
How to import the downloaded zip in lightning? Any special actions needed?
I get an error toast messagr (latest LL release) when trying to import the template. Import fails completely.
]]>
< ![CDATA[
Jappie Toutenhoofd didn’t tried yout template but have a question : How does the 2 app for extra LL permissions works ?
]]>
< ![CDATA[
just install them. they give extra permissions to LL.
]]>
< ![CDATA[
Sounds cool, I will test it later, right now I am testing my new Oneplus 2. I saw that the tasker app colors are not good. Some things are very hard to read. At least now i have some power to do some heavier stuff.
]]>
< ![CDATA[
I can’t install the zip file also. I am on 5.1.1.
LL crashes.
]]>
< ![CDATA[
I tried it on my Oneplus One with Exodus ROM 5.1.1 and LL crashes also to me…
But I think that is a problem of all 5.1 devices ’cause it is happened also to my template when beta testers were trying to install it.
]]>
< ![CDATA[
I was able to load it by overwriting instead of merging.
First tip:
var key=”owm_forcast_”+i+”_”;
editor.setString(key+”icon”, s);
editor.setString(key+”temp”, T);
editor.setString(key+”main”, M);
This replaces all these if blocks at the end of owm-binders.
Edit: And the same can be done for the agenda bindings.
Edit2: I think you can use it for all the binders.
]]>
< ![CDATA[
2. This should be faster than you current implementation:
function delayedLoad(scrpt) {
var exist = LL.getScriptByName(scrpt);
if (exist === null) {
alert(scrpt + ” script does not exist.”);
return;
}
eval(“function run(){\n”+exist.getText()+”\n}”);
run();
}
(stolen from TrianguloYs FastRunTool)
]]>
< ![CDATA[
Jappie Toutenhoofd I know thay will give more permission to LL I just wanted to know how.. Does thay act like a plugin? Can I have the source code of the apps ?
]]>
< ![CDATA[
Benoît de Chezelles these apps are made by Pierre Hébert
]]>
< ![CDATA[
Lukas Morawietz
loader:
did try eval, but somehow some did not play nice.
binders:
I must have been I’ll, while writing that code 😉
thanks for looking at it.
]]>
< ![CDATA[
Install with Replace seems to work better than Merge. Do not forget to back-up!
]]>
< ![CDATA[
Jappie Toutenhoofd strange question, but I can’t figure out how to change Hoofddorp name on the 2 text fields. I know they are a variable extracted somewhere in the script or so. I can’t figure out where. I changed the village name in script so the correct data temperature is collected. Where to change the text fields?
]]>
< ![CDATA[
Evelien Wijbenga hhhm, did change logic last minute.
in “owm-load”:
– delete the “//” in the line UNDER ‘reset current tag to select new ‘
– restart launcher
– wait litle
– put the “//’ back.
]]>
< ![CDATA[
same kind of logic to select new agenda’s in agenda-load.
]]>
< ![CDATA[
Thanks worked Jappie Toutenhoofd
]]>
< ![CDATA[
ping @ Pierre Hébert – Welcome back
Install with “Replace” seems to work with my template made in v12.6b5
But with “Merge” most (all?) people could not install.
]]>
< ![CDATA[
Thanks for pinging, I will have a look at this
]]>
< ![CDATA[
– backup your current template.
– find where it got saved. (hint: sdcard/LightningLaucher)
– put MY template in the same directory.
– restore my template in LL. (it should show up).
As noted on the wiki: it shows some errors on startup.
]]>