MeteoCam: Difference between revisions

m
 
(7 intermediate revisions by the same user not shown)
== Introduction ==
As a special feature CumulusUtils - from 5.6.0 - also supports a webcam in basic form (''CamType=Manual'') and the Ecowitt HP10 camera (''CamType=EcowittHP10'').</br>
 
A text overlay can be created showing the weather parameters Temperature, Humidity, Pressure, Rain, Wwind
 
The values for T, P, H, R, W are visible in textual overlay on the image. Config for alignment, left/right position, border position and colour in the parameter section ''[MeteoCam]''. In addition:
 
#A parameter ''WantToSeeLines'' in section ''MeteoCam'' can have the contents ''WTPHR'' for the obvious lines ''Wind, Temperature, Pressure, Humidity and Rain''. Any letter removed, removes that line from the overlay. So "W" only shows the wind, "WT" Wind and Temperature etc...
#When the timelapse is played, no overlay is shown.
 
=== Manual ===
 
=== Ecowitt HP10 ===
If the user specifies this type he only has to configure the file ''utils/meteocamrealtime.txt'' (generated by ''CUtils'') through ''Extra Webfiles'' in CMX. The module then displays the image from the camera and refreshes it at the frequency the user has configured in the camera. Timelapses are not supported because Ecowitt does not givegives aonly yesterdays URL through the software but generates the mpg4 on request in the app.
 
== Inifile parameters ==
TimelapseExtension=mp4 ; the extension used. Possible values: ''mp4'' (default), ''webm'' and ''ogg''
CamType ; either ''Manual'' (default) or ''EcowittHP10''
FontSize=24 ; Start over overlay parameters
FontWeight=bold
BottomOffset=150
BlockLeftOrRight=right
BorderOffset=50
TextAlign=left
TextColor=LightBlue
WantToSeeLines=WTPHR
 
 
The shown values for ''Dir'' and ''Name'' are the defaults.
Only ''CamType'' is used by both Types, the other parameters are only used by ''CamType'' ''Manual''.
 
== Inner Working ==
=== Manual ===
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.
 
=== Ecowitt HP10 ===
The file ''meteocamrealtime.txt'' is filled by CMX with the image URL as supplied by Ecowitt and transferred to the server and checked by CUtils. If the URL is different from the previous one the image is fetched and displayed. Note that the frequency by which the HP 10 fetches a new image is configured in the camera. CMX caches the URL and gives one up every 5 minutes even if you did configure the image renewal every fifteen minutes. This is a trade off because the frequency is not published.
 
== Limitation ==
=== Manual ===
The server has to not be actively blocking the javascript from viewing the directory. In other words, the server hasn't turned indexing off, and the directory doesn't have an index.html or equivalent to rewrite any attempt to index, and the server isn't doing some url-rewriting. In other words, this should work in any server environment that doesn't rewrite or block indexes.
 
=== Ecowitt HP10 ===
No limitations.
 
[[Category:CumulusUtils]]