Radek Matej
Forum Replies Created
-
Forum: Plugins
In reply to: [React Webcam] Camera created subfolders/Direct plugin to folder?mattnagy: In your case, if you have a single webcam and your images are just in a different folder, you can change the folder name in the code. Check
react-webcam.phpfile forWEBCAM_DIRconstant.Forum: Plugins
In reply to: [React Webcam] Camera created subfolders/Direct plugin to folder?Hi,
I have checked the code to identify how much effort it will take to implement it.
Unfortunately, there is no way doing it both easy and secure. Providing directory parameter to the shortcode would also mean allowing the AJAX call to access any directory in uploads folder. And this doesn’t sound very secure.
The only way to implement it is to configure directories in plugin administration UI and use some keys in the AJAX call. This is much more effort then I expected so I don’t plan to implement it currently.
Sorry for the bad news. You have still an option of using different webcam plugin or tweaking my plugin code.
Radek
Forum: Plugins
In reply to: [React Webcam] picture not refreshingPerfect. I’m glad that you have found the solution.
Forum: Plugins
In reply to: [React Webcam] picture not refreshingIf you mean this page, the image URL is still
http://edgarskitespot.co.za/wp/wp-content/uploads/webcam/webcam.jpg.Check the page source code.
Forum: Plugins
In reply to: [React Webcam] picture not refreshingHi Edgar,
It seems, that the webcam actually doesn’t upload timestamped images to the right folder. When I inspect the webcam image element on your site, it points to:
http://edgarskitespot.co.za/wp/wp-content/uploads/webcam/webcam.jpgBut the file should have the format yy-mm-dd-hh-mm-ss.ms.jpg as you mentioned. Please check the
uploads/webcamfolder again and make sure that images are uploaded there periodically and that they are timestamped. The plugin just uses AJAX to fetch and display the latest file. Which in your case is the webcam.jpg image.Forum: Reviews
In reply to: [React Webcam] Great!Thank you for your positive review. =)
Forum: Reviews
In reply to: [React Webcam] Works !Thank you for your review and comments.
Yes, the filename doesn’t matter, the plugin just displays the latest image in the directory. But the filename should be timestamped. Otherwise the image won’t update without page refresh as the browser will consider it unchaged.
Displaying a date and time is one of the features which can be implemented in the future. I have it implemented for one of my customers, but it’s not part of the plugin as it needs to be more generic for that.
If you have trouble with styling you have to change CSS of your theme. This plugin just provides just the image as
<img>tag wrapped in<div id="webcam">.Forum: Plugins
In reply to: [React Webcam] Clicking pic of logged in usersI’m sorry I have to let you down.
This is not an ideal use case for this plugin. This plugin serves only to display images from a single webcam for a purpose of weather and observation cameras.
Forum: Plugins
In reply to: [React Webcam] Updates only oncePlease check, if the filename of your image is changing every 60 seconds. The filename produced by your webcam has to be timestamped, so that the browser can recognize that the image has changed. Otherwise the browser assumes that the image is still the same and won’t replace it.