new project needs help

Post your Gambas programming questions here.
Post Reply
sadams54
Posts: 83
Joined: Monday 09th July 2018 3:43am

new project needs help

Post by sadams54 » Monday 23rd August 2021 6:58pm

I have become completely fed up with zoneminder. The program if you are familiar is great but lately the problems with it make it unusable and the developers love blaming anybody but themselves for bugs. As a response I am going to create a replacement to it. What I need is a few people that can help in writing it.

1.. a web developer that can create the web interface to the program being written. It needs to be in a language that runs on Apache.
2.. some guidance in connecting to IP cameras on a network in gambas
3.. some further guidance in being able to detect motion on the above mentioned cameras. Done in program not by camera setting.
4.. Any interested party that is willing to work collaboratively to make something that is as good as zoneminder in theory and superior in implementation. People that care about their work.

Yes I plan to use gambas as the base of the system. The program will have a nice GUI but I also need a 2nd GUI that works in a browser with all the program abilities, but works interactively with the gambas application which will be the work horse.

User avatar
stevedee
Posts: 456
Joined: Monday 20th March 2017 6:06pm

Re: new project needs help

Post by stevedee » Monday 23rd August 2021 7:55pm

sadams54 wrote:
Monday 23rd August 2021 6:58pm
...3.. some further guidance in being able to detect motion on the above mentioned cameras. Done in program not by camera setting...
Take a look at "motion" (formerly Kenneth Lavrsens motion: http://www.lavrsen.dk/foswiki/bin/view/Motion/WebHome) which is now under new management: https://motion-project.github.io/

I've been using motion with Gambas since 2014 on the RaspberryPi (bird box monitor) and its been very reliable; http://captainbodgit.blogspot.com/2021/ ... wrens.html

Good luck with your project.

PS you may only need some simple client-side HTML to display multiple video streams...it really depends what you want to do. JavaScript gives you more flexibility, and PHP is not too difficult if you need to write some simple server-side code.

sadams54
Posts: 83
Joined: Monday 09th July 2018 3:43am

Re: new project needs help

Post by sadams54 » Monday 23rd August 2021 9:03pm

stevedee wrote:
Monday 23rd August 2021 7:55pm
sadams54 wrote:
Monday 23rd August 2021 6:58pm
...3.. some further guidance in being able to detect motion on the above mentioned cameras. Done in program not by camera setting...
Take a look at "motion" (formerly Kenneth Lavrsens motion: http://www.lavrsen.dk/foswiki/bin/view/Motion/WebHome) which is now under new management: https://motion-project.github.io/

I've been using motion with Gambas since 2014 on the RaspberryPi (bird box monitor) and its been very reliable; http://captainbodgit.blogspot.com/2021/ ... wrens.html

Good luck with your project.

PS you may only need some simple client-side HTML to display multiple video streams...it really depends what you want to do. JavaScript gives you more flexibility, and PHP is not too difficult if you need to write some simple server-side code.
Thank you for this information. I will attempt to contact the developers of motion to see if it will work for our purposes. If it does I will use it since I prefer to not have to reinvent the wheel. Bottom line is I need to replace zoneminder due to issues with developers that refuse to take responsibility for bugs and prefer to be paid to fix their own mistakes. If Motion works they can get our business.

User avatar
stevedee
Posts: 456
Joined: Monday 20th March 2017 6:06pm

Re: new project needs help

Post by stevedee » Tuesday 24th August 2021 7:37am

sadams54 wrote:
Monday 23rd August 2021 9:03pm
...Thank you for this information. I will attempt to contact the developers of motion to see if it will work for our purposes...
In case I've confused you, "motion" is open source, so you just download it and use it in your project.

I haven't used the latest version but (assuming it hasn't changed that much) it connects to one or more video streams (or in your case IP cameras) and is configured via a config file. It doesn't have its own user interface, but instead it creates a number of interfaces via web pages. In my case (which will not be the same as yours) it runs on a RaspberryPi, and I can access the video output on a web browser remotely via an address something like: 192.168.0.10:9000
I can also access config settings via web browser, e.g. 192.168.0.10:9001 ...although I mostly write config values to the config file from Gambas. There is also the option for steering the camera if it is motorised!
Any video that contains movement/motion is saved in short video clips.

Another system you should take a look at is MotionEye: https://github.com/ccrisan/motioneye/ (my notes here: http://captainbodgit.blogspot.com/2017/ ... ameye.html)

This was created by Calin Crisan and he has used "motion" at the heart of his system.

Note sure that the MediaView (as mentioned in your other thread) is going to be very useful.

I can display 2 live video streams on a remote laptop with simple html like this:-

Code: Select all

<html><head><meta content="text/html; charset=ISO-8859-1" http-equiv="content-type">
<title>Motion Video</title>
<meta http-equiv=refresh content=60>
</head>
<body>
<table style="text-align: left; width: 100%;" border="1" cellpadding="2" cellspacing="2">
<tr><td style="width: 50%;"><a href="file:///home/steve/HTML/BB_stream1.html">BirdBox 2014</a></td>
<td style="width: 50%;"><a href="file:///home/steve/HTML/BB_stream2.html">BirdBox 2015</td>
</tr></table>
</body>
<img src="http://192.168.0.4:8081?refresh=0.0" width="640" height="480">
<img src="http://192.168.0.5:8081?refresh=0.0" width="640" height="480">
</html>

sadams54
Posts: 83
Joined: Monday 09th July 2018 3:43am

Re: new project needs help

Post by sadams54 » Tuesday 24th August 2021 8:15pm

stevedee wrote:
Tuesday 24th August 2021 7:37am
sadams54 wrote:
Monday 23rd August 2021 9:03pm
...Thank you for this information. I will attempt to contact the developers of motion to see if it will work for our purposes...
In case I've confused you, "motion" is open source, so you just download it and use it in your project.

I haven't used the latest version but (assuming it hasn't changed that much) it connects to one or more video streams (or in your case IP cameras) and is configured via a config file. It doesn't have its own user interface, but instead it creates a number of interfaces via web pages. In my case (which will not be the same as yours) it runs on a RaspberryPi, and I can access the video output on a web browser remotely via an address something like: 192.168.0.10:9000
I can also access config settings via web browser, e.g. 192.168.0.10:9001 ...although I mostly write config values to the config file from Gambas. There is also the option for steering the camera if it is motorised!
Any video that contains movement/motion is saved in short video clips.

Another system you should take a look at is MotionEye: https://github.com/ccrisan/motioneye/ (my notes here: http://captainbodgit.blogspot.com/2017/ ... ameye.html)

This was created by Calin Crisan and he has used "motion" at the heart of his system.

Note sure that the MediaView (as mentioned in your other thread) is going to be very useful.

I can display 2 live video streams on a remote laptop with simple html like this:-

Code: Select all

<html><head><meta content="text/html; charset=ISO-8859-1" http-equiv="content-type">
<title>Motion Video</title>
<meta http-equiv=refresh content=60>
</head>
<body>
<table style="text-align: left; width: 100%;" border="1" cellpadding="2" cellspacing="2">
<tr><td style="width: 50%;"><a href="file:///home/steve/HTML/BB_stream1.html">BirdBox 2014</a></td>
<td style="width: 50%;"><a href="file:///home/steve/HTML/BB_stream2.html">BirdBox 2015</td>
</tr></table>
</body>
<img src="http://192.168.0.4:8081?refresh=0.0" width="640" height="480">
<img src="http://192.168.0.5:8081?refresh=0.0" width="640" height="480">
</html>
you've been a great help so that I do not reinvent the wheel. I like motion and learned it in about 2 hours with the videos. Not as easy as zoneminder but far better in reliability. I will do some programming in gambas to create that which is lacking and create a web interface for the basics. much work to do but I think this is a great springboard. thank you so much.

Post Reply