panoclock.swf
FPP hotspot plugin for displaying a running clock or stopwatch in your panorama. Just
supply your own clock face and hands images.
You can instantly change between showing local time or any another time zone.You can start and stop the stopwatch with ordinary FPP commands.
The following hotspot attributes are supported:
In plugin external xml file, the following tags and attributes are supported:
NOTES: If you want to design your own panoclock, this is how it works: The panoclock consists of up to five images, from top to bottom:
Examples:
The plugin can detect and adjust for daylight savings time (DST) when using local time. But as
the rules for using DST varies from country to country it would need a large lookup table for
other time zones. Therefore, if DST is in use locally, it will also be applied to all other time
zones.
When the plugin is used as a stopwatch, you can handle it by setting the command="..." attribute
in the hotspot. The following commands are supported:
Example plugin XML file:
| xmlFile | xmlFile="pclock21.xml" | plugin configuration file, default "panoclock.xml" |
| timezone | timezone="+2" | for changing displayed time zone dynamically |
| command | command="start" | for controlling plugin when used as a stopwatch |
In plugin external xml file, the following tags and attributes are supported:
| In <panoclock> tag: | ||
| delay | delay="500" | delay between clock updates, default=1000 |
| stopwatch | stopwatch="1" | when you want to use the plugin as a stopwatch |
| timezone | timezone="+2" | use only when you want the clock to show the |
| time in another time zone and not local time | ||
| In <clockface> tag: | ||
| url | url="img/clock20.png" | file containing the clock face image |
| center | center="232:163" | the coordinates of the clock face center point, |
| default is center of image | ||
| In <hourhand> tag: | ||
| url | url="img/hourhand20.png" | file containing the hour hand image |
| offset | offset="27.5" | the vertical distance between the centerpoint of |
| the image and the rotation point | ||
| center | center="283:396" | the coordinates of the hour hand rotation point |
| in clock face image, default is clockface center | ||
| In <minutehand> tag: | ||
| url | url="img/minhand20.png" | file containing the minute hand image |
| offset | offset="27.5" | the vertical distance between the centerpoint of |
| the image and the rotation point | ||
| center | center="283:396" | the coordinates of the minute hand rotation point |
| in clock face image, default is clockface center | ||
| In <secondhand> tag: | ||
| url | url="img/hourhand20.png" | file containing the second hand image |
| offset | offset="27.5" | the vertical distance between the centerpoint of |
| the image and the rotation point | ||
| center | center="283:396" | the coordinates of the second hand rotation point |
| in clock face image, default is clockface center | ||
| In <reflection> tag: | ||
| url | url="img/reflect20.png" | file containing the face reflection image |
| alpha | alpha="65" | the transparency of the reflection image |
NOTES: If you want to design your own panoclock, this is how it works: The panoclock consists of up to five images, from top to bottom:
face reflection (optional)
second hand (optional)
minute hand
hour hand
clock face
second hand (optional)
minute hand
hour hand
clock face
Example images (not shown in same scale):
The clock hand images must show the hand in a vertical position pointing at 12 o'clock, and
if you want to include a reflection image, it must have the same size as the clock face image to be
properly aligned.
You can also change the displayed time zone at any time by setting the hotspot timezone="..."
attribute. If you want the clock to display local time, you don't have to specify any time zone initially.
Examples:
| timezone="0" | London |
| timezone="+3" | Moscow |
| timezone="-5" | New York |
| timezone="+5:30" | New Delhi |
| timezone="-" | local time |
| start | (re)start clock |
| stop | stop the clock |
| reset | reset clock |
Example plugin XML file:
<?xml version = '1.0'?> <panoclock> <clockFace url="img/tableclock.png" center="232:163" /> <hourHand url="img/hourhand3.png" offset="21" /> <minuteHand url="img/minhand3.png" offset="31" /> <secondHand url="img/sechand3.png" offset="19" /> <reflection url="img/reflection3.png" alpha="0.95" /> </panoclock>
