I am posting this here because it is an XML question, but it applies to my Ubuntu Linux Wallpaper. My wallpaper is an XML file that displays 8 wallpaper photos, slightly altered, to reflect the time of day. I got it off the internet and it was made years ago. It is great and it works, but it is out of sync.
The slideshow SHOULD start over again at midnight, making it's first change at 5am. The duration times of each transition from one photo to the next all add up to 24 hours. My problem is that it seems to be starting at around 5PM instead and I cannot figure out why. I have played around with the duration times, but nothing works. At the moment, I just have it changing every hours which is working, but I would love to simplify the file since half of it is nearly redundant.
Here is the original markup:
Code:
<background><starttime>
<year>2015</year>
<month>09</month>
<day>08</day>
<hour>0</hour>
<minute>0</minute>
<second>01</second>
</starttime>
<static>
<duration>18000.0</duration>
<file>/home/b/Pictures/Wallpapers/AllDayLong/08.jpg</file>
</static>
<!-- it is now 5h -->
<transition type="overlay">
<duration>7200.0</duration>
<from>/home/b/Pictures/Wallpapers/AllDayLong/08.jpg</from>
<to>/home/b/Pictures/Wallpapers/AllDayLong/01.jpg</to>
</transition>
<!-- it is now 7h -->
<transition type="overlay">
<duration>7200.0</duration>
<from>/home/b/Pictures/Wallpapers/AllDayLong/01.jpg</from>
<to>/home/b/Pictures/Wallpapers/AllDayLong/02.jpg</to>
</transition>
<!-- it is now 9h -->
<transition type="overlay">
<duration>7200.0</duration>
<from>/home/b/Pictures/Wallpapers/AllDayLong/02.jpg</from>
<to>/home/b/Pictures/Wallpapers/AllDayLong/03.jpg</to>
</transition>
<!-- it is now 11h -->
<transition type="overlay">
<duration>7200.0</duration>
<from>/home/b/Pictures/Wallpapers/AllDayLong/03.jpg</from>
<to>/home/b/Pictures/Wallpapers/AllDayLong/04.jpg</to>
</transition>
<!-- it is now 13h -->
<transition type="overlay">
<duration>7200.0</duration>
<from>/home/b/Pictures/Wallpapers/AllDayLong/04.jpg</from>
<to>/home/b/Pictures/Wallpapers/AllDayLong/05.jpg</to>
</transition>
<!-- it is now 15h -->
<transition type="overlay">
<duration>7200.0</duration>
<from>/home/b/Pictures/Wallpapers/AllDayLong/05.jpg</from>
<to>/home/b/Pictures/Wallpapers/AllDayLong/06.jpg</to>
</transition>
<!-- it is now 17h -->
<transition type="overlay">
<duration>7200.0</duration>
<from>/home/b/Pictures/Wallpapers/AllDayLong/06.jpg</from>
<to>/home/b/Pictures/Wallpapers/AllDayLong/07.jpg</to>
</transition>
<!-- it is now 19h -->
<transition type="overlay">
<duration>7200.0</duration>
<from>/home/b/Pictures/Wallpapers/AllDayLong/07.jpg</from>
<to>/home/b/Pictures/Wallpapers/AllDayLong/08.jpg</to>
</transition>
<!-- it is now 21h -->
<static>
<duration>10800.0</duration>
<file>/home/b/Pictures/Wallpapers/AllDayLong/08.jpg</file>
</static>
<!-- it is now 0h -->
</background>
<wallpaper deleted="false">
<name>AllDayLong</name>
<filename>/path/to/AllDayLong/AllDayLong.xml</filename>
<options>zoom</options>
</wallpaper>
I am knowledgeable in HTML, but have had no formal training in XML but grasp it fairly well. Not enough to figure out my problem, obviously.
Thanks in advance.