MeteoCam

From Cumulus Wiki
Jump to navigationJump to search

Introduction

As a special feature CumulusUtils - from 5.6.0 - also supports a webcam in basic form. The user can specify an image basename for the cam image (on the server where the Cutils site is located) which will be displayed in the ReportView and refreshed every refresh period (of the realtime data). It is the users responsibility to configure the cam and the tools to get the image on the server.

Also timelapse video's are supported. The user can select either the meteo cam image view or the timeelapse video view through radio buttons. The timelapse video can be selected through a drop down selector. It is the users responsibility to configure the timelapse videos and have them available on the server.

In future and on request some additional functionalities may/will be added like multiple cam selection, a live stream (if you have one) and timelapse video's (which you may create and upload).

Inifile parameters

 [MeteoCam]
 MeteoCamMenu=true                ; When false no MeteoCam menu item will be displayed, the MeteoCam is not available
 MeteoCamDir=.                    ; The actual directory where the meteocam files can be found. If empty the webroot is used
 MeteoCamName=meteocam.jpg        ; the name of meteocam image. Any image type which can be displayed in the browser will do. e.g. meteocam.jpg
 TimelapseExtension=mp4           ; the extension used. Possible values: mp4, webm and ogg

The shown values are the defaults.

Inner Working

Each realtime refresh time the meteocam image is reloaded. It is advised not to set a too high frequency. One second e.g. is too high. 30 seconds should be OK. The refresh is done while bypassing the cache so a reload always actually takes place physically.

For the timelapse videos, when starting up, all available videos with the configured extension are fetched and displayed in the drop down list. The user can select any and when activating the timelapse through the radio button that video starts playing immediately. The default HTML5 video viewer is used which means only mp4, webm and ogg are allowed.