Step 1: Install Raspbian on your RPi Step 2: Attach camera to RPi and enable camera support (http://www.raspberrypi.org/camera) Step 3: Update your RPi with the following commands: Step 4: For Jessie Lite run sudo apt-get install git Clone the code from github and enable and run the install script with the following commands: after all finished, there will be a new folder called html under /var/www. Login that and further advanced camera settings will be available too.

Continue reading

#!/usr/bin/python -- coding: utf-8 -- "”” Zabbix SMTP Alert script for gmail. "”” import sys import smtplib from email.MIMEText import MIMEText from email.Header import Header from email.Utils import formatdate Mail Account MAIL_ACCOUNT = ‘[email protected]’ MAIL_PASSWORD = ‘your mail password’ Sender Name SENDER_NAME = u’Zabbix Alert’ Mail Server SMTP_SERVER = ‘smtp.gmail.com’ SMTP_PORT = 587 TLS SMTP_TLS = True def send_mail(recipient, subject, body, encoding='utf-8’): session = None msg = MIMEText(body, ‘plain’, encoding) msg[‘Subject’] = Header(subject, encoding) msg[‘From’] = Header(SENDER_NAME, encoding) msg[‘To’] = recipient msg[‘Date’] = formatdate() try: session = smtplib.

Continue reading

wget https://github.com/imkebe/zabbix3-rpi/archive/master.zip unzip master.zip cd zabbix3-rpi-master sudo dpkg -i zabbix-server-mysql_3.0.*+jessie_armhf.deb sudo dpkg -i zabbix-frontend-php_3.0.*+jessie_all.deb sudo dpkg -i zabbix-agent_3.0.*+jessie_armhf.deb sudo service apache2 reload this will take long, just wait until all data injected. change zabbix server config to use db password: sudo vi /etc/zabbix/zabbix_server.conf, and modify¬†DBPassword=. change timezone for php: sudo vi /etc/apache2/conf-enabled/zabbix.conf php_value date.timezone America/Toronto create gettemp.sh to pull data from sensor #!/bin/bash Usage: gettemp.sh e.g. gettemp.sh 28-0215012018ff SENSOR=$1 SLAVE=”/sys/devices/w1_bus_master1/$SENSOR/w1_slave” OUTPUT=$(/bin/cat $SLAVE | /usr/bin/awk -F ’t=’ ‘{ printf $2 }') echo $OUTPUT

Continue reading

Author's picture

LuLU

Love coding and new technologies

Cloud Solution Consultant

Canada