Linux

Zoneminder: modulo di controllo per Bosesh SD13W

Modulo Perl per controllare la Bosesh SD13W con Zoneminder. SD13W.pm: # ========================================================================== # # ZoneMinder Bosesh SD13W IP Control Protocol Module, $Date: 2017-05-30 01:18:22 +0100 (Wed, 04 Nov 2009) $, $Revision: 1 $ # Copyright (C) 2017 Mentor (http://www.internauta37.altervista.org) # # This program is free software; you can redistribute it and/or # modify it under the terms of the GNU General Public License # as published by the Free Software Foundation; either version 2 # of the License, or (at your option) any later version. # # This program is distributed in the hope that it will be useful, # but WITHOUT ANY WARRANTY; without even the implied warranty of # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the # GNU...

Zoneminder: modulo di controllo per Vstarcam C7816WIP

Modulo Perl per controllare la Vstarcam C7816WIP con Zoneminder. C7816WIP.pm: # ========================================================================== # # ZoneMinder Vstarcam C7816WIP IP Control Protocol Module, $Date: 2017-01-15 01:18:10 +0100 (Wed, 04 Nov 2009) $, $Revision: 1 $ # Copyright (C) 2017 Mentor (http://www.internauta37.altervista.org) # # This program is free software; you can redistribute it and/or # modify it under the terms of the GNU General Public License # as published by the Free Software Foundation; either version 2 # of the License, or (at your option) any later version. # # This program is distributed in the hope that it will be useful, # but WITHOUT ANY WARRANTY; without even the implied warranty of # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See...

Zoneminder: modulo di controllo per Vstarcam C7824WIP

Modulo Perl per controllare la Vstarcam C7824WIP con Zoneminder. C7824WIP.pm: # ========================================================================== # # ZoneMinder Vstarcam C7824WIP IP Control Protocol Module, $Date: 2017-01-15 01:17:54 +0100 (Wed, 04 Nov 2009) $, $Revision: 1 $ # Copyright (C) 2017 Mentor (http://www.internauta37.altervista.org) # # This program is free software; you can redistribute it and/or # modify it under the terms of the GNU General Public License # as published by the Free Software Foundation; either version 2 # of the License, or (at your option) any later version. # # This program is distributed in the hope that it will be useful, # but WITHOUT ANY WARRANTY; without even the implied warranty of # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See...

Script bash per cambiare lo stato di Zoneminder

Script per cambiare lo stato di Zoneminder con il crontab e per verificare ad ogni avvio che sia impostato lo stato corretto. zoneminder_state.sh: #!/bin/bash zmdbuser=`cat /etc/zm/zm.conf | grep ZM_DB_USER | awk -F= '{print $2}' | tr -d ' '` zmdbpass=`cat /etc/zm/zm.conf | grep ZM_DB_PASS | awk -F= '{print $2}' | tr -d ' '` runstate=`mysql -N -B -u$zmdbuser -p$zmdbpass zm -e "select Name from States where isActive=1 LIMIT 1;"` alarmedstate='Armed' #echo $runstate # for debug only function state { if [ "$runstate" != "$alarmedstate" ]; then /usr/bin/zmpkg.pl ${1} else exit fi } function boot { hour=$(date +%H) daystate='Day' nightstate='Night' hour_day_start='8' hour_day_end='24' if [ "$runstate" == "$alarmedstate" ]; then exit elif (( $hour_day_start <= 10#$hour && 10#$hour...

Script bash per fare il backup di un sito Drupal con database SQLite

Script per effettuare il backup tramite ftp di un sito Drupal che usa un database SQLite e per poi archiviarlo. backup_site.sh: #!/bin/bash # HOST='ftp.site.com' USER='username' PASSWORD='password' BACKUPDIR=$HOME'/backup/site' WORKINGDIR='/tmp' DBPATH='sites/default/files' DBNAME='.ht.sqlite' cd $WORKINGDIR wget -m --preserve-permissions --user=$USER --password=$PASSWORD ftp://$HOST sqlite3 $HOST/$DBPATH/$DBNAME "VACUUM;" while [ $? -ne 0 ]; do wget -m --preserve-permissions --user=$USER --password=$PASSWORD ftp://$HOST/$DBPATH/$DBNAME sqlite3 $HOST/$DBPATH/$DBNAME "VACUUM;" done mkdir -p "$BACKUPDIR" 7z a -mhe -p$PASSWORD "$BACKUPDIR/$HOST-`date +%Y%m%dT%H%M`.7z" "$HOST" rm -r $HOST Lo script può essere eseguito via cron in questo modo: 0 20 1 * * bin/backup_site.sh >> bin/cron...

Mentor's Conky: conky lua per cpu con 8 cores

Questa è una mod di Conky Seamod per supportare processori con 8 cores come quelli della famiglia AMD Bulldozer. Conky SeaMod on kde-look.org Conky SeaMod on deviantart.com
Abbonamento a RSS - Linux