Hi there.
To avoid unwanted surprices I just turned off “Auto Update” on all my plugins. I’ve decided I want to determine by my self if and when I want to update. If I want to update I will do it manually from now on and I will be very sure to make a new backup first in case things are not working as expected after updating plugins.
Now I would like to make a LUUP script for updating all my plugins (When I desire to do so). Or is there a better way?
I was thinking something like:
[code]
– Plugin: 3086 Title: Program Logic Core
– Plugin: 3066 Title: Program Logic Event Generator
– Plugin: 5836 Title: MultiSwitch
– Plugin: 1458 Title: Variable Container
– Plugin: 3166 Title: Day or Night
– Plugin: 3008 Title: VeraAlerts
– Plugin: 45 Title: Wunderground Weather Plugin
– Plugin: 6036 Title: Simple Alarm Plugin
– Plugin: 2678 Title: Battery Monitor
– Plugin: 6496 Title: Google Calendar II
local VeraHostname = “vera3.XXXXX.local”
t = {3086,3066,5836,1458,3166,3008,45,6036,2678,6496}
for i, v in ipairs(t) do
os.execute(“wget http://”…VeraHostname…“:3480/data_request?id=update_plugin&Plugin=”…v)
end[/code]
I’m not sure it will work letting Vera call URLs pointing to itself though, I haven’t tried yet. Maybe there is a luup function that can do the same thing? Also, I would like to create the t-table dynamically if it’s possible…
Any ideas for a better implementation? Thanks ![]()