i just discovered http://billw2.github.io/pikrellcam/pikrellcam.html
give it a try and let me know the result…
it’s the best tool in this area i tested so far…
-
Video detection...
pimatic rocks!
-
@Yves911 currently i’m develop pimatic plugin for ipcamera (http based)
You can check out my plugins here : https://www.npmjs.com/package/pimatic-ipcamera - still beta
i’ll upload release version today…next version should be have motion detection -
@funky81 Waiting for this…
That would be cool! -
Great, this is something that a lot of pimatic users are waiting for.
I am curious about the result…
For me the most important is to be able to display the video stream in pimatic (i think that all motion things can be delegated to another software).
I will give a try to your plugin and report feedback here (or maybe you prefer that i open issues on github?)pimatic rocks!
-
Ok at this stage i can’t make your plugin work (but maybe i am too impatient)
I get this message in pimatic logs10:01:10.312 [pimatic-mobile-frontend] Client error: Cannot find template with ID ipcamera-template
pimatic rocks!
-
@Yves911 said:
Ok at this stage i can’t make your plugin work (but maybe i am too impatient)
I get this message in pimatic logs10:01:10.312 [pimatic-mobile-frontend] Client error: Cannot find template with ID ipcamera-template
i’m still working for this…will upload it today to npm
anyway, which ip camera do you have?
Http based or RTSP based?
my solution still provide solution only for http based…still working on RTSP -
@funky81 I am using a raspicam connected to a raspberry pi 2.
software i am using at the moment is available here http://billw2.github.io/pikrellcam/pikrellcam.html
it’s very simple to install and give a livestream in more or less realtime with a decent image refresh (10img/s i would say)
it provides also recording in 1080p
… and don’t consume too much CPU.
the “stream” is available through http (an image refreshed every 1/10s) : http://192.168.1.11:6666/mjpeg_read.php?time=1437392505125
every time you will call http://192.168.1.11:6666/mjpeg_read.php? you will receive the last up to date image.If you are using a raspberry pi with it’s camera i encourage you to have a look, it’s much more easier and powerful than motion…
pimatic rocks!
-
Hi…
You can use my 0.0.7 version
Please check that one out… I’m still struggling about how to sent event from gui to server than update the image in gui. Knockout thing makes me feel stupidAnyway, I’m using kankun2 video stream which use Linux motion apps, and also my second ip camera using http mjpeg.
I think you using this plugins with raspi video.
-
Okay with 0.0.7 no image from my cam yet.
All pimatic tabs have been collapsed (merge) in 1 tab (instead of 4 in my setup).
I also have this error message17:41:05.449 [pimatic-mobile-frontend] Client error: Unable to process binding "template: function (){return { name:'devicepage-template',foreach:devicepages} }" 17:41:05.449 [pimatic-mobile-frontend]>Message: Unable to process binding "if: function (){return $root.enabledEditing() || $data.getUngroupedDevices().length > 0 }" 17:41:05.449 [pimatic-mobile-frontend]>Message: Unable to process binding "template: function (){return { name:$root.getItemTemplate,foreach:$data.getUngroupedDevices(),afterRender:$data.afterRenderDevice} }" 17:41:05.449 [pimatic-mobile-frontend]>Message: Cannot find template with ID ipcamera-template
My config is
{ "id": "testwebcam", "name": "testwebcam", "class": "IpCameraDevice", "cameraUrl": "http://192.168.1.11:6666/", "filename": "mjpeg_read.php?time=1437373392521", "refresh": 5000 },
Update: seems better after deleting the cache…
pimatic rocks!
-
@funky81 : okay after cleaning the browser cache it’s better (all my tabs are back to normal).
I can see that pimatic is trying to display an image (but it’s a broken link at the moment).
This broken link point to https://____.fr:8443/img/mjpeg_read.php?time=1437373392521 (https://_____.fr:8443 is my pimatic server Url)
should be http://192.168.1.11:6666/mjpeg_read.php?time=1437373392521pimatic rocks!
-
@Yves911 said:
cleaning the browser cache it’s better (all my tabs are back to normal).
I can see that pimatic is trying to display an image (but it’s a broken link at the moment).Your can use config like this
{
“id”: “testwebcam”,
“name”: “testwebcam”,
“class”: “IpCameraDevice”,
“cameraUrl”: “http://192.168.1.11:6666/mjpeg_read.php?time=1437373392521”,
“filename”: “camera1.png”,
“refresh”: 5000
},notes:
- id : should be your unique device id
- name : name of your device
- class : device class
- cameraUrl : url that direct to your http mjpeg server (should include all, include path to file)
- filename : location of local filename, will be represent inside of your img folder in pimatic-mobile-frontend/public/img
- refresh : time taken in seconds
please provide me your error logs after modify…
-
@funky81 thanks, so based on your recommendation my config is now :
{ "id": "testwebcam", "name": "testwebcam", "class": "IpCameraDevice", "cameraUrl": "http://192.168.1.11:6666/mjpeg_read.php?time=1437373392521", "filename": "camera1.jpg", "refresh": 5000 },
Image still not appear in the pimatic frontend, if i try to follow the link behind it point to : https://______.fr:8443/img/camera1.jpg which is correct to my opinion.
The directory node_modules/pimatic-mobile-frontend/public/img was missing : i created it manually
from that directory i manually retrieved the imagewget 'http://192.168.1.11:6666/mjpeg_read.php?time=1437373392521'
and then move the image to the correct name:
https://gyvesme.hd.free.fr:8443/img/camera1.jpg
Good news i can see the image in the pimatic mobile frontend.
So what is missing for me is the retrieval (by your plugin) of the image every 5s. (Could it be due to the URL link that contain ?).
No specific messages into the log.Thanks
pimatic rocks!
-
the reason why i dont create i think because your refresh time takes too long.
5000 seconds means it will update within 83 minutes from your pimatic startup.
try to lower it then delete img folder again.
see if that works or not -
Okay so i deleted img directory (pimatic was stopped), change configuration to a refresh rate of 30s instead of 5000s.
img directory is still not created automatically and if i create it manually it remains empty…Time for me to sleep, i will try again tomorrow
sweet night !pimatic rocks!
-
I’m sorry… I think there’s a bug related with path directory. Since I’m working with Windows, they behave different then in Linux.
I have upload version 0.0.9.Please try it again… Should be working well now. One more thing, I have disabled auto refresh from server side. To refresh the image, you have to press, refresh button now.
Thanks… And good night
-
Following is the screenshot for the plugins
-
@funky81 i tried today the version 0.1.1
- node_modules/pimatic-mobile-frontend/public/img : is still not created by the plugin on Linux machine
- link to the image is now https://________.fr:8443/img/camera1.jpg?ts=1437460887305 (where 1437460887305 change every time i press refresh)
- still no picture for me shown into the frame
Let me try to fix the path problem…
Update : i am not sure that my problem is related to the path:
getSnapshot: (@filename) -> @plugin.info "beginning of get snapshot " + @filename try camera = new MjpegCamera(url: @cameraUrl, timeout:10) @plugin.info "after beginning of get snapshot " + @filename catch xxx @plugin.info "error @snapshot " + @filename + ":" + xxx @plugin.info "before getScreenshot" console.log(camera) camera.getScreenshot((err,frame)=> try @plugin.info "enter get screenshot process for " + @filename #imgPath = "" #imgPath = path.dirname(fs.realpathSync(__filename+"/../pimatic-mobile-frontend/public/img/")) #fs.exists(imgPath,(exists)=> #if !exists #@plugin.info "Creating Image Path...only create one time" #fs.mkdir(imgPath) #return #) #@plugin.info "creating file "+ @filename #fs.writeFileSync(imgPath+@filename, frame) #return catch err @plugin.info "error grab frame @getsnapshot function " + err )
and i get in the log
10:04:05.874 [pimatic-ipcamera] beginning of get snapshot camera1.jpg 10:04:05.883 [pimatic-ipcamera] after beginning of get snapshot camera1.jpg 10:04:05.886 [pimatic-ipcamera] before getScreenshot { readable: true, writable: true, name: 'camera469', motion: false, url: 'http://192.168.1.11:6666/mjpeg_read.php?time=1437373392521', user: undefined, password: undefined, sendImmediately: true, timeout: 10, frame: null, _events: { data: [Function: ondata], end: [ [Function: onend], [Function: cleanup] ], close: [ [Function: onclose], [Function: cleanup] ],
So i have the impression that getScreenshot silently fail (i never get any : "enter get screenshot process for " + @filename OR "error grab frame @getsnapshot function " + err
pimatic rocks!
-
I’ve just upload to version 0.1.2.
Path bugs should be fixed now although I put little debug message in the plugin. Please try that one out. -
still not ok with version 0.1.2 no message "error grab frame @getsnapshot function " + err in log
i really have have the impression that getScreenshot silently fail (see my post above)pimatic rocks!
-
@funky81 Thanks for the help on the chat!
So after few additional testing i can confirm:
- that putting username and password into the URL of the cam is not possible/supported at this stage
- https with self signed certificate (only?) is also problematic
With a “clean” URL (ie http and without any credential) this plugin works like a charm
pimatic rocks!