grubernaut / camera-widget Goto Github PK
View Code? Open in Web Editor NEWLicense: Apache License 2.0
License: Apache License 2.0
I have an IP camera and was trying to interface it with the dashing dashboard. I have its IP address, connection username and password, but not sure what to give for the camera1URL in the cameras.erb file under the jobs folder. The example shows @camera1URL = "/mobile/channel01.jpg". How do we know this path ? Appreciate your help.
Hello, I installed correctly, the images are not displayed.
If I can see the image in another window, the scripts look the picture in the folder / assets and not in the / assets / images /
The camera settings are good, I do not understand.
I would like to use a zoneminder url to get the camera stream instead of connecting directly to my cameras. I attempted:
@camera1Host = "192.168.10.21" ## CHANGE
@camera1Port = "80" ## CHANGE
@camera1Username = 'None' ## CHANGE
@camera1Password = '' ## CHANGE
@camera1URL = "/cgi-bin/nph-zms?mode=single&monitor=3"
@newfile1 = "assets/images/cameras/snapshot1_new.jpeg"
@oldFile1 = "assets/images/cameras/snapshot1_old.jpeg"
but it didn't work
the following command works just fine
wget "http://192.168.10.21/cgi-bin/zms?mode=single&monitor=3" -O foo.jpg
so I'm not sure why the cameras widget will not display...
Please note that I noticed an issue with the code currently posted:
the calls to fetch_image are missing some parameters:
the lines
new_file1 = fetch_image(@camera1Host,@oldFile1,@newfile1)
...
...
need to be replaced by the following lines:
new_file1 = fetch_image(@camera1Host,@oldFile1,@newfile1,@camera1Port,@camera1Username,@camera1Password,@camera1URL)
... (same as above for new_file2 with associated params)
... (same as above for new_file3 with associated params)
After doing this change, and changing the hoist IP address, url,... I was able to set up the view to my camera
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.