edgley wrote:I am making some progress; at least now XL doesnt crash!
I have followed rbziggy tips and now have the following line in my alarmclock.ini file:
- Code: Select all
Add Event
2005 Every-month Every-day|Every-Hour:01|webcam:refresh
I have then linked a button on the web cam skin to this event.
When I click on it, they dont update
Also, if I click again, i get another 2005 etc line added to alarm.ini
Edgely,
I think this may not be right on a several of points (but excuse me if I get it wrong, I'm still finding my way too.)
First, I think the 'Add Event' line is a spurious artifact of the bug/feature we were discussing above. I got this text added to the file when I clicked the RIGHT hand 'test' button. Because the variable text disappears, this test just seems to put in the next line up (that's my guess). Suggest you edit this out.
Second, if my reading is correct, just having the variable line in the .ini file means that xevent will check every cycle (i.e. every few seconds) and execute the command if the time condition is true. To this extent, I think you do not need to link to a refresh button. According to your variable string, your webcams will only be refreshed at 1 minute past each hour anyway.
Third, I think (er hope my interpretation is right - and I haven't fully checked this out) that linking such an xevent event to a button means that when you press the button that the variable string in the event is written to the .ini file and that xevent then picks it up and executes the embedded event at the specified time. This explains why you get additional lines added each time you press the button. This functionality thus allows the user to dynamically create events from the interface (using variables for the time I suppose!)
The consequence of this (again, if I'm right) is that if you want an instant update to your webcams from a button that you just use the base command event of 'webcam:refresh'. If you want an automatic refresh, you just need to specify in the .ini file the periodicity. At the moment you have it once an hour. I think there is also an 'Every-minute' command that you can use in place of '01'. This seems to be the smallest resolution the xevent handles as seconds are not part of the variable string.
Well, that's how I've interpreted it! Happy to be put right though!