This post is translated from the French
If you are freevo machine in room and zoneminder server under the cellar :
The ZM server config is :
Code: Select all
(in the server machine (where ZM is hosted))
/usr/local/etc/zm.conf
#[...]
#ZM_DB_HOST=localhost
ZM_DB_HOST=192.168.X.X # (your server machine)
(ATTENTION your users and password)
#[...]
You must configure your MySQL server system in MySQL User Permissions with 2 users with the same user_name on 2 different IP machines!
easy with webmin
Code: Select all
(If zmadmin is your login admin.)
Username = zmadmin
Hosts = (your IP Server)
AND
Username = zmadmin
Hosts = (your IP Client)
with same parameter!
After
/etc/init.d/mysql restart (example debian)
Your freevo system must see the zm.conf config from the ZM server!
You must mounting the directories on the freevo system from the ZM server.
For my example I I use this param with fuse on my /etc/fstab freevo machine:
Code: Select all
sshfs#my_user@ip_address_server:/usr/local/etc/ /mnt/my_directory fuse user,noauto,noatime 0 0
I let you make a script to auto mount the remote directory (in Franch)
http://nicotux.wordpress.com/category/debian/
Now the Christophe N. zoneMinder freevo plugin
pushd /usr/lib/python2.5/site-packages/freevo/plugins/
nano zoneminder.py
Code: Select all
#[...]
if not config.ZONEMINDER_CONFIG:
### filename = '/etc/zm.conf' #(you must # this line and put the next example)
filename = '/mnt/dns/usr/local/etc/zm.conf'
#[...]
class ZoneMinderMainMenu(Item):
def __init__(self, parent, Zm):
Item.__init__(self, parent)
### self.name = _('CCTV') # (this for french talking : )
self.name = _('Video-surveillance')
self.menus = [
ZoneMinderLiveStreamMenu(parent, Zm),
ZoneMinderEventsMenu(parent, Zm)
]
#[...]
popd
Now in your local_conf.py freevo machine:
Code: Select all
### === Begin ZM
plugin.activate('zoneminder', level=70)
ZONEMINDER_CONFIG = '/mnt/dns/usr/local/etc/zm.conf' #(the fstab directory)
ZONEMINDER_EVENTS_DIR = '/mnt/dns/var/www/zm/events/' #(the fstab directory)
ZONEMINDER_CLIENT_IPV4_ADDRESS = '192.168.X.X' #(IP freevo machine (optional))
ZONEMINDER_SERVER_AUTH_TYPE = 'hashed'
ZONEMINDER_SERVER_USERNAME = 'your_user'
ZONEMINDER_SERVER_PASSWORD = 'your_password'
ZONEMINDER_SERVER_AUTH_RELAY = 'hashed'
ZONEMINDER_SERVER_AUTH_HASH_SECRET = ''
ZONEMINDER_SERVER_HOST = '192.168.X.X' #(IP server machine)
ZONEMINDER_SERVER_PORT = '80'
ZONEMINDER_SERVER_DB_NAME = 'zm'
ZONEMINDER_SERVER_USE_SSL = False
ZONEMINDER_SERVER_SSL_KEY = None
ZONEMINDER_SERVER_SSL_CERT = None
### === End ZM
After, run freevo and enjoy
I tried to be easy
ZoneMinder on freevo lounge is vaiment well!
Suzz