Windows Live Viewer..27-11-05 Now Complete Frontend for ZM!!

If you've made a patch to quick fix a bug or to add a new feature not yet in the main tree then post it here so others can try it out.
Post Reply
jameswilson
Posts: 5111
Joined: Wed Jun 08, 2005 8:07 pm
Location: Midlands UK

Post by jameswilson »

give me 5
James Wilson

Disclaimer: The above is pure theory and may work on a good day with the wind behind it. etc etc.
http://www.securitywarehouse.co.uk
jameswilson
Posts: 5111
Joined: Wed Jun 08, 2005 8:07 pm
Location: Midlands UK

Post by jameswilson »

ok then new beat available
This is definetly beta new mods untested
BTW there some things in there im currently working on as part of playback and will not work
Plus i havnt tested it to see if it even installs

I have added 4 check boxes to setting called Async Mode

Try your problematic cams in here with normal refresh rates etc and turn these check boxes on

This may have knock on effects else where but should nail the image update problem (that makes in a roundabout way the updates work in the same way as v 1 viewer)

Good luck!! You might need it
James Wilson

Disclaimer: The above is pure theory and may work on a good day with the wind behind it. etc etc.
http://www.securitywarehouse.co.uk
wa4bro
Posts: 65
Joined: Mon Sep 12, 2005 12:39 am
Location: Roswell, GA. U.S.A.

Post by wa4bro »

I will give it a shot..... James
Gotta head to dinner but will let you know..

Dan
jameswilson
Posts: 5111
Joined: Wed Jun 08, 2005 8:07 pm
Location: Midlands UK

Post by jameswilson »

ok mate cheers!
James Wilson

Disclaimer: The above is pure theory and may work on a good day with the wind behind it. etc etc.
http://www.securitywarehouse.co.uk
jameswilson
Posts: 5111
Joined: Wed Jun 08, 2005 8:07 pm
Location: Midlands UK

Post by jameswilson »

Phil, sorry to hassle you
I am STILL on this playback thing
query database ok
get monitor number ok
get event number ok
get max frames ok
make string for jpeg retrieval
http://<ip>/zm/events/<monitor no>/<event_id>/
above is good
then i dim a variable say imageno
add
http://<ip>/zm/events/<monitor no>/<event_id>/<imageno>-capture.jpg
and i end up with
<imageno> = 1
as images are stored as 001, 002 etc it fails to get them unles i force a 00 then a 0 into the url.
DO you
A, know a way round this
B, know a different way to request images
C as its 2:30 am and i wanted to get this sort of working before going to bed have access to large supplies of pro plus and red bull???

Cheers James
James Wilson

Disclaimer: The above is pure theory and may work on a good day with the wind behind it. etc etc.
http://www.securitywarehouse.co.uk
jameswilson
Posts: 5111
Joined: Wed Jun 08, 2005 8:07 pm
Location: Midlands UK

Post by jameswilson »

scratch that had a ciggy and my mind came back to me sorted now.
Should have a beta version of this for the weekend now,

Corey at the moment i am querying only the events table
Could you raise a how to on how to let my app get to the db on the zm
I have added a default username and pass of viewer and viewer (editable in settings)
It takes the ip from the monitor setup
So basically what i think people will need to know is how to let zm4ms get readonly access to the events table for a particular username and pass.

Sorry its beyond me at the mo my zm box is accepting anything from anybody

Cheers
James Wilson

Disclaimer: The above is pure theory and may work on a good day with the wind behind it. etc etc.
http://www.securitywarehouse.co.uk
wa4bro
Posts: 65
Joined: Mon Sep 12, 2005 12:39 am
Location: Roswell, GA. U.S.A.

Async Option

Post by wa4bro »

Sorry to say James, Almost could tell no difference on or off. Actually on maximized seemed to work better, but minimized was the same, typically locked up not long after start. The a lengthy period of being frozen then a flash restart on the image again.

Maximized ran twice as long before locking, then the same eventual complete blink and restart started running until it stopped again.

I know, not the news you wanted to hear and I hoped to see <G>

Hope you are sleeping well at the moment <G>

Dan
jameswilson
Posts: 5111
Joined: Wed Jun 08, 2005 8:07 pm
Location: Midlands UK

Post by jameswilson »

thats wierd
Unless i mssed up somewhere thats the same code copied out of the old viewer so if it worked there dunno why it wont now.

Can you let me know
A, url you using
b, which of the four asynced cams did you try
c whats your current refresh rates

Cheers I will look when i get home tonight
I will get to the bottom of this, it would be easier if i could replicate it my end.
Im assuming beause im remote the extra delays is hiding the problem, I think its worth gtting this sorted as i have ideas for the live view, that i want to change. I think it needs jpeg2000 support and mpeg4 support, i know jpeg2000 is useless at the mo but it will be in zm at some point (Phils a genius) and mpeg4 cos its needed for low bandwith links or lots of cams. Now if we dont fix this it may rear its head again in a later version of zm so i want to nail it.

Depending on what you say from my questions will decide what i change next (unless i missed something), failing that i will make a small app just to view one monitor (your weather thing) from 1 window and see if that works. The only reason i am currently confused is because it used to work in version 1. Anyway speak to ya laters

James
James Wilson

Disclaimer: The above is pure theory and may work on a good day with the wind behind it. etc etc.
http://www.securitywarehouse.co.uk
jameswilson
Posts: 5111
Joined: Wed Jun 08, 2005 8:07 pm
Location: Midlands UK

Post by jameswilson »

Phil i need you again lol
After i sort the playabck module, im either gonna start the alarms or ptz support. Is there a generic way (ie i dont want to send specific commands for different telemetry as zm can work out what command to send to what camera. Is there a command/s that i can tell monitor 2 to move left, goto preset etc

Cheers

James
James Wilson

Disclaimer: The above is pure theory and may work on a good day with the wind behind it. etc etc.
http://www.securitywarehouse.co.uk
jameswilson
Posts: 5111
Joined: Wed Jun 08, 2005 8:07 pm
Location: Midlands UK

Post by jameswilson »

Another update but this is only available in the beta version
At last Playback without a web interface.
Native playabck in windows


Image

Needs read access to the events db of MySQL
Is read only but i dont know enough on how to configure MySQL to allow
the req access

What i have worked out
You need to create a user, host and permissions
You also need to enable ip access to MySQL
If anyone can raise a how to on the above i would much appriciate it
On mine i just opened it up completely, works great but i wouldnt put that machine on the internet.

Be warned this version (beta) has no error checking it assumes the db is there and working if its not my app will Bomb (I will get round to it)
I have released this as i finished it as it is about 5 mins ago and i need feedback
Mainly on the look and feel, it needs to look better but presentation has never been my thing.
It will playback from multiple servers (based on your ip and mon settings) so if your using 5 servers with this app and can view them, you will also be able to playback now too.

Default load on playback select
No camera selected press a camera number on the leefdt hand side, db will be quiried for all events for that monitor and they will show up in the table on the left hand side
App will automatically play the oldest event, when you reach the end of that event it will play the next etc etc.
You can jump around event just by clicking on them in the table.
Pressing 2 will load cam2 15 camera 15 etc

Enjoy and let me know

James
James Wilson

Disclaimer: The above is pure theory and may work on a good day with the wind behind it. etc etc.
http://www.securitywarehouse.co.uk
jameswilson
Posts: 5111
Joined: Wed Jun 08, 2005 8:07 pm
Location: Midlands UK

Post by jameswilson »

Oh and i forgot someone asked me today to have a look at making it link to homeseer, Havnt got one not overly sure what it does but it does look cool. So i have added this
Image

Not sure what to do with it though as yet. Basically at the mo its a mini web browser that is contained within ZM4MS and is saved and recalled as part of your custom view. Thats it for now until i get some pointers on what is actually required.


James

Oh this is in the Beta version only
James Wilson

Disclaimer: The above is pure theory and may work on a good day with the wind behind it. etc etc.
http://www.securitywarehouse.co.uk
pcalleros
Posts: 56
Joined: Sun Oct 02, 2005 4:53 pm

Homeseer and Zoneminder

Post by pcalleros »

James,

Excellent application!

I have kind of integrated ZM with HS by utilizing various X-10 triggers with cameras. Works great. Still learning.

Posted some info relating to ZM on Homeseer site at:

http://forums.homeseer.com/showthread.p ... post679615

Homeseer is

"HomeSeer is a PC-based software program that allows home owners to control hundreds of home automation devices from dozens of different manufacturers using multiple technologies. Think of it as ‘control central’ for your home. With HomeSeer, you control lighting, security, HVAC and home theatre, all with different technologies, all from one common interface!

And, because HomeSeer includes a built-in web-server and voice recognition technology, you’ll be able to monitor and control your home from the internet, your home network, your PDA, telephone or voice!"

With your client application/HS/ZM takes HA to another level.
User avatar
zoneminder
Site Admin
Posts: 5215
Joined: Wed Jul 09, 2003 2:07 pm
Location: Bristol, UK
Contact:

Post by zoneminder »

jameswilson wrote:Phil i need you again lol
After i sort the playabck module, im either gonna start the alarms or ptz support. Is there a generic way (ie i dont want to send specific commands for different telemetry as zm can work out what command to send to what camera. Is there a command/s that i can tell monitor 2 to move left, goto
Hi James,

You have been busy!!

There is a reasonably generic way to control pTZ cameras. It's just an url of the form http://<hostname>/index.php?mid=X&action=control&control=<command>&<extra_parms>

however the actual commands to use are derived from the control capabilities table as some cameras move to an absolute position, others relative, others continuously until stopped and others to a specific point on the screen. So the command might be move_con_upleft to move continuously up and left. However you might also need additional options to set the relative pan and tilt speeds etc. You are also then of course in the realm of needing to ensure that the user has appropriate control permissions.

We should be able to sort something out either way.

Phil
jameswilson
Posts: 5111
Joined: Wed Jun 08, 2005 8:07 pm
Location: Midlands UK

Post by jameswilson »

What i was wondering (at least to start with) is, if i could send a command ie http://ip/<monitor>/move left slightly etc etc
I wasnt thinking of viriable speed commands at the moment but maybe we could have a value sa 1 to 10 for the speed and i could have a slider for speed setting or something, that way i could pass zm a move left 3 command and it could query its databses etc as to how actually to do it. Otherwise my app would need to know about every camera too and would make setup and using complicated and duplicated.
You have been busy!!
Bloody hell i have, I have learnt so much in last few weeks and im pleased with progress on this. It still needs a lot of work (more in some areas) but zm is such a brilliant bit of kit, i wanted something that made it look glossy too, as your a bit limited with what you can do in web interface. What i like about my app is i can make it do absolutly anything, whatever is useful and people want (the limiting factor is me and wether i can learn how to do it fast enough).

Once i get the core bits complete Jpeg streaming/playback, archive etc etc i will start the more complex bits like mpeg playback and other stuff. I could do with feature ideas and layout critisisms though as i want it to look really polished (i dont at the moment).

I will also have to move to .net 2 at some point to stop the annoying beta install problem.

I have a site id like to put my app on for testing, it currently has a digi sprite on it but im gonna bolt a zm server on it too, and the killer app here would be mapview with alarms.

I might need a bit of help applying the patch you made for alarms to give me something to work with, so i can write the alarm module before i fit the machine.

Cheers

James
James Wilson

Disclaimer: The above is pure theory and may work on a good day with the wind behind it. etc etc.
http://www.securitywarehouse.co.uk
jameswilson
Posts: 5111
Joined: Wed Jun 08, 2005 8:07 pm
Location: Midlands UK

Post by jameswilson »

i think im close to release of this beta version
Fixed the error problem if new sql server exists
Added Variable speed forward and revers playback to playback screen
added option to close streaming windows when playback started (option)
added pause view open/save print dialog to playback window

Added port number to settings to allow multiple zm servers per ip address and to resolve an issue with port numbers and mysql access
addedd progress bar to show current image transfer rate in playback view
this is unlikly to effect lan users

added 2 new views to main window 2 and 3
all views are now turn on and offable in options
addedd playback enabled per camera in playback settings to prevent users playback images they not permitted to

added pause current playback to playback module
added pause still forward and backwards to playback
added show events tickbox to remove the event window and make the playback image as large as possible
altered the mysql query for speed and to remove useless info

As i have had no feedback i assume this is all perfect and noone has any problems with this app (i think im dreaming here)

James

PS download in the usual place most recent version is zm4msbeta.zip

If i dont hear of any probs i will replace the main download with this version
James Wilson

Disclaimer: The above is pure theory and may work on a good day with the wind behind it. etc etc.
http://www.securitywarehouse.co.uk
Post Reply