multimedia.image
Displays an image witch is been reloaded after a given time
Parameters
{{ multimedia.image(id, src, mode, refresh, default_img) }}
id
unique id for this widget
src
the path/url or item to the image. For squeezebox create an item with the following value: 'http://IP:PORT/music/current/cover.jpg?player=MACADDRESS'
mode
the mode: 'none', 'corner', 'corner-bottom', 'fill' (optional, default 'none') (optional)
refresh
the reload-time in duration-format or defined as an item that retriggers a refresh (optional, default '10i')
default_img
the path/url to a default image that is shown on error and startup
Examples
Use this switch to refresh the image based on an item:
Use the browser console to see result - the number after the image name changes.
{{ multimedia.image('', 'webcam_item', 'corner', 'refresh_item') }}
{{ multimedia.image('', 'http://www.wuerzburg.de/downloads/webcam/cam1.jpg', 'corner', '15s') }}
The image is being reloaded every 15 seconds so it is always actual.