Hi!
Wondering if you’ve abandoned development on this plugin or not.
It’s honestly the only plugin that does exactly what I need, but I’m not comfortable with it being 4 years out of date.
So, yeah. Plugin dead? ??
]]>I recently installed ReactCam, uploaded my first webcam image 20200823.jpg into ../uploads/webcam/ and inserted the shortcode as described into a post.
But it only shows a broken image. In the dev console I have found a typeError:
Uncaught TypeError: React.createClass is not a function
I have seen that you didn’t tested it against 5.5 but could you please tell me if it is compatible?
Thx for your answer!
]]>Hello,
the plugin works and the pictures of my webcam are copied by FTP to the directory
wp-content/uploads/webcam/.
The filenames are looking like this:
Condor_D58364829_20200524231009833_TIMING.jpg
Condor_D58364829_20200524231109035_TIMING.jpg
and so on.
When I load the page again manually, the new picture will be shown but not automatically.
The shortcode is [reactwebcam refreshinterval=30].
Thanks a lot an best regards
Andre
Does the plugin support mobile cams?
Thanks!
]]>Hi Radek,
thanks for this great plugin!
My webcam wants a prefix before the timestamp. I tried it with a 0, with an underscore, but the script does not use the file and shows it on the page.
Is it possible to remove for example the underscore? the filename now looks like this
_20190703_223516_0795.jpg
]]>hello, as the title suggests, I would like to refresh at an interval of one second with the possibility of preloading the last images “es last 3 minutes”. this because with short intervals I happened to see images still interrupted in writing on ftp.
thank you for your assistance and for your work
I am testing the plugin and i have wp version 5.0.3 and i just installed this plugin fresh. It works on initial page load, but after that it does not auto refresh. I was reading other topics on here, and is this plugin still broken due to old react versions? Or has someone gotten it fixed? Thanks
]]>Hello love the plugin, been using it for a couple of years for a tourism webcam.
Recently had to change to a newer webcam and the new camera uploads to a folder with sub folders and creates a new date folder everyday.
So the problem is I can’t tell React a specific folder location.
Is there a way for react to search all folders in my ftp location for newest image? My date stamp is correct I just can’t get webcam to send image to room directory. I can tell react a specific folder which works but then the next day the webcam creates a new folder with date and sub folder.
Thank you for any advice!
]]>Hi there,
The new, upcoming “Gutenberg ” includes a more recent files of the React js files.
This will break wp-content/plugins/react-webcam/js/ActualImage.js – the
var ActualImage = React.createClass({
line
Result : an initial image is shown – https://www.brit-hotel-fumel.fr/contact/#piscine but the refreshing stops working.
Detected this using WP 4.9.8
Deactiving Gutenberg and the plugin refreshes again.
]]>Hi,
I have a question with respect to the refresh interval and the time stamped image. Do they have to be in sync?
For example, what happens if I upload a time stamped image every 20 seconds, and the refresh is every 30? Or vice-versa, so refresh is 20 seconds, but a new picture every 30 seconds?
Does the plugin look at the next image or the most recent image?
Thanks
Nick
Hi,
thank you for this very nice and easy-to-use plugin!
Please, is there a way to use the shortcode / display the image in a widget area?
Cheers! Alex
]]>Hey Radek,
I am struggeling with the following problem: The plugin uses the directory https://www.myurl.com/wp-content/uploads/webcam to get the picture. My webcam stores the pictures in https://www.myurl.com/webcam. How can I tell the plugin to grab the picture from that specific url?
What I’ve done so far: I modified the file react-webcam.php like this:
function init($atts) {
$atts = shortcode_atts(array(
REFRESHINT_ATTNAME => REFRESHINT_DEFAULT,
SUBDIR_ATTNAME => NULL
), $atts);
wp_register_script('react', plugins_url('js/vendor/react.min.js', __FILE__));
wp_enqueue_script('ReactWebcam_ActualImage', plugins_url('js/ActualImage.js', __FILE__), array('react'));
$upload_dir = site_url();
$ajax_url = admin_url('admin-ajax.php');
$images_root_url = $upload_dir . '/' . WEBCAM_DIR . '/';
if ($atts[SUBDIR_ATTNAME]) {
$images_root_url .= $atts[SUBDIR_ATTNAME] . '/';
}
$initial_image_filename = get_last_filename($atts[SUBDIR_ATTNAME]);
return '
<div class="react-webcam"
data-ajax-url="' . $ajax_url . '"
data-images-root-url="' . $images_root_url . '"
data-subdir="' . $atts[SUBDIR_ATTNAME] . '"
data-initial-image-filename="' . $initial_image_filename . '"
data-refresh-interval="' . $atts[REFRESHINT_ATTNAME] . '">
<img src="' . $images_root_url . $initial_image_filename . '" />
</div>';
};
and
// Returns filename of the last webcam image.
function get_last_filename($subdir) {
$upload_dir = site_url();
$webcam_dir = $upload_dir . '/' . WEBCAM_DIR . '/';
if ($subdir && preg_match('/[a-z0-9]/i', $subdir)) {
$webcam_dir .= $subdir . '/';
}
foreach (array_filter(glob($webcam_dir . '*'), 'is_file') as $path) {
$last_filename = basename($path);
}
return $last_filename;
};
But somehow this does not work. I always get a broken image link on the webcam page, where I inserted the shortcode. Any hint on what is wrong here?
Thanks and cheers,
Thom
Hi,
first of all thanks a lot for the great plugin :
Unfortunately, the code [reactwebcam] shows the image on my homepage totally distorted? How can I change the size or the proportion of the image?
Thank you for your help?
Chanta
]]>Hi,
I use the reactwebcam plugin in a page of my website that uses the advanced layout editor of enfold template. The image is shown and updated regularly but is aligned on the left of the page. Is there a way to center the image?
Regards
Hello,
Is it possible to overwrite the same timestamped image in the wp-content/uploads/webcam folder? So the image name, which is in this format: yy-mm-dd.jpg, stays the same but the image itself is different.
Because otherwise, that folder will fill up with hundreds of images very quickly.
Thank you!
S
Hi,
I’m wondering if its possible to change the folder where the plugin looks for images to another server via ftp or other way?
]]>Can this shortcode be used multiple times on 1 page??
I have 5 webcams and I want to display all of them on 1 page.
Thank you!
]]>Great Plugin!
Thanks so much. Works perfect.
Just wondering if there is a reasonably simple way to resize the image or make it clickable to show the webcam feed full size (its HD).
Thanks again!
Sasha
]]>I am running 4.5.2 php, and when I went to install Reactwebcam today, it downloaded, and installed but wouldn’t activate, I kept getting this error:
Parse error: syntax error, unexpected T_STRING in /home/content/a/k/f/akfishguy/html/wp-content/plugins/react-webcam/react-webcam.php on line 9
I opened up react-webcam.php and on line 9 it says namespace reactwebcam;
can you tell me how to correct this error… version 4.5.3 is available but will have to move my whole web site on godaddy from one server to another to do that upgrade…
Thank you
]]>Hi,
Just like the subject says, my camera creates two subfolders under the “webcam” folder. Unfortunately, there doesn’t seem to be a way for me to change that. Can your plugin be pointed to this folder in some way?
Hi, I am trying to use the plugin on my website at https://www.edgarskitespot.co.za. I cannot get the picture to refresh at all. My webcam is uploading new picture every 15 seconds with the following name format: yy-mm-dd-hh-mm-ss.ms.jpg. I tried shortcode with and without refreshinterval option. You can see the image displayed by your plugin at the bottom of the Spot Location page. Any ideas why it would not refresh? I had a similar problem getting the image on my home page to refresh, when a user refreshed the page, which I solved by using an iframe plugin.
Thank you
Edgar Loxton
Reply to this thread if you feel the need for React Webcam Version 2. You can see it in action on windsurf.cz.
If you just want the source so that you can build on it, check out the trunk from plugin’s SVN.
]]>Hi,
I have a use case. Suppose, we are running a online test with 50 persons for 30mins, where we want to scan the users every 1min till test ends and see if he/she is same person and also if he/she is cheating.
can we get this done using React Webcam?
After loading the page the picture is only once updated one minute after first loading (on default settings).
]]>