Archive for the ‘Raspberry Pi’ Category

Raspberry Pi – how to set up SSH two-factor authentication

Donnerstag, Dezember 3rd, 2020

OpenStack – installation on a Raspberry Pi cluster with four nodes

Donnerstag, Dezember 3rd, 2020

Node-RED – web data scraping

Mittwoch, Dezember 2nd, 2020

Raspberry Pi 4 – case fan clips inside the lid of our official case

Mittwoch, Dezember 2nd, 2020

Node-RED – HTTP API’s

Mittwoch, Dezember 2nd, 2020

Node-RED – the ’node-red-contrib-pcap‘ adds support for capture and decoding network packets using libpcap

Dienstag, Dezember 1st, 2020

DietPi – Node-RED Server Installation

Montag, November 30th, 2020

Pi-hole 5.2 – veröffentlicht

Sonntag, November 29th, 2020

Node-RED – ’node-red-contrib-calc‘ to perform basic mathematical calculations e.g. Logarithm (log10)

Sonntag, November 29th, 2020

Raspberry Pi – creating a machine learning IoT App with Node-RED and TensorFlow.js

Samstag, November 28th, 2020

In most cases enabling your IoT device with AI capabilities involves sending the data from the device to a cloud server but here this machine learning calculations would happen on your Node-RED Server and then the results sent back to the device for appropriate action

TensorFlow.js – is an open source JavaScript library to build, train, and run machine learning models in JavaScript environments such as the browser and Node.js

VMware vSphere ESXi 7.0 Hypervisor(s) – how to run Raspberry Pi OS as a VM on a Raspberry Pi

Samstag, November 28th, 2020

Home Assistant 0.118.4 – turning your Raspberry Pi into the ultimate home automation hub

Freitag, November 27th, 2020

Raspberry Pi – Live Stream to YouTube with ‚FFmpeg‘

Freitag, November 27th, 2020

raspberrypi_logo.jpg    By adding a camera module to your Raspberry Pi you essentially get a portable, lightweight and easy-to-hold-or-mount internet-connected camera

You’ll need the Server URL and the Stream Name/Key fields from the YouTube Live Dashboard

# apt-get update
# apt-get  dist-upgrade
cd /usr/src
# git clone git://git.videolan.org/x264
# cd x264
# ./configure –host=arm-unknown-linux-gnueabi –enable-static –disable-opencl
# make -j2
# make install
# cd /usr/src
# git clone git://source.ffmpeg.org/ffmpeg.git
# cd ffmpeg
# ./configure –arch=armel –target-os=linux –enable-gpl –enable-libx264 –enable-nonfree
# make -j2
# make install
ffmpeg -thread_queue_size 512 -f v4l2 -i /dev/video0 -ar 44100 -ac 2 -acodec pcm_s16le -f s16le -ac 2 -i /dev/zero -acodec aac -ab 128k -strict experimental -aspect 16:9 -s 640×360 -vcodec h264 -preset veryfast -crf 25 -pix_fmt yuv420p -g 60 -vb 820k -maxrate 820k -bufsize 820k -profile:v baseline -r 30 -f flv rtmp://a.rtmp.youtube.com/live2/[your-secret-key-here]
# vi /usr/src/ffmpeg/ffmpeg.sh
#!/bin/bash
while true; do
/usr/src/ffmpeg/ffmpeg -thread_queue_size 512 -f v4l2 -i /dev/video0 -ar 44100 -ac 2 -acodec pcm_s16le -f s16le -ac 2 -i /dev/zero -acodec aac -ab 128k -strict experimental -aspect 16:9 -s 640×360 -vcodec h264 -preset veryfast -crf 25 -pix_fmt yuv420p -g 60 -vb 820k -maxrate 820k -bufsize 820k -profile:v baseline -r 30 -f flv rtmp://a.rtmp.youtube.com/live2/[your-secret-key-here]
sleep 5

done
# crontab -e
@reboot /usr/bin/screen -dmS ffmpeg /usr/src/ffmpeg/ffmpeg.sh

You can find your [your-channel-id] at https://www.youtube.com/account_advanced

The Live Stream permanent URL format is

https://www.youtube.com/channel/[your-channel-id]/live

and you have to use the following URL format for the embed code

https://www.youtube.com/embed/live_stream?channel=[your-channel-id]

Node-RED – ’node-red-contrib-fritz‘ provides easy access to your AVM FRITZ!Box

Donnerstag, November 26th, 2020

Get full access to all functions of your AVM FRITZ!Box including Callmonitor, Presence Detection and much more

Zabbix – einen Linux ‚zabbix-agent‘ installieren und einrichten

Donnerstag, November 26th, 2020

Zabbix Client Installation

# apt-get install zabbix-agent

Server=IP of Zabbix Server
ServerActive=IP of Zabbix Server
Hostname=use the FQDN of the node where the agent runs

# vi /etc/zabbix/zabbix_agentd.conf
# Server=[zabbix server ip]
# ServerActive=[zabbix server ip]
# Hostname=[ Hostname of client system ]
Server=192.168.1.157
ServerActive=192.168.1.157
Hostname=rpi-iot-jsho-zabbix-client-01
# service zabbix-agent restart