Skip to content

Instantly share code, notes, and snippets.

View kriedel's full-sized avatar

Kai Riedel kriedel

  • MICAS AG
  • Oelsnitz
  • 22:11 (UTC +02:00)
View GitHub Profile
@kriedel
kriedel / gist:5780367
Created June 14, 2013 08:30
Befehle zum Raspberry (Kamera)
Linux - Raspberry
• Allgemeine Befehle:
USB-Geräte auflisten: lsusb
Kernel-Message buffer: dmesg
Aktuelle Prozesse: top
Freien Arbeitsspeicher anzeigen: free -h
Speicherbelegung Filesystem: df -h
root anmelden: sudo -i, abmelden: exit
@kriedel
kriedel / timelapseinit.sh
Created June 14, 2013 08:28
Script für timelapse Dienst
#!/bin/sh
# /etc/init.d/timelapseinit.sh
# v0.1 phillips321.co.uk
### BEGIN INIT INFO
# Provides: timelapseinit.sh
# Required-Start:
# Required-Stop:
# Default-Start: 2 3 4 5
# Default-Stop: 0 1 6
# Short-Description: raspistill from raspicam to /home/pi/imagen.jpg
@kriedel
kriedel / commands_dpf
Last active December 18, 2015 12:09
Hacking of digital picture frame (DPF)
Installation lcd4linux mit DPF-Patch (DPF - Digital Picture Frame):
Einige Befehle müssen als sudo ausführt werden!
apt-get install libtool automake1.10 autoconf zlib1g-dev libssl-dev python-dev libc6 libusb-dev libibus-1.0-dev subversion libgd2-noxpm-dev libgd2-noxpm --fix-missing
apt-get install sdcc-libraries
apt-get install cc1111
wget http://tech.section5.ch/files/dpfhack-0.1alpha.tgz
tar -xvzf dpfhack-0.1alpha.tgz
cd dpf/src
make
@kriedel
kriedel / sysinfo.php
Created June 14, 2013 08:21
Raspberry system information in webbrowser
<?php
header("Cache-Control: no-cache, must-revalidate");
header("Expires: Sat, 26 Jul 1997 05:00:00 GMT");
header("Pragma: no-cache");
function NumberWithCommas($in)
{
return number_format($in);
}
function WriteToStdOut($text)
@kriedel
kriedel / index.htm
Created June 13, 2013 12:04
display video in webbrowser, use of jwplayer
<html>
<head>
<script type="text/javascript" src="jwplayer/jwplayer.js"></script>
</head>
<body>
<div id="myElement">Loading the player...</div>
<script type="text/javascript">
jwplayer("myElement").setup({
file: "media/outfile.flv",
@kriedel
kriedel / gist:5773152
Created June 13, 2013 12:02
display image in webbrowser
<?php
//get last timelapse picture
header('Content-Type: image/jpeg');
readfile("/home/pi/image.jpg");
?>
@kriedel
kriedel / camera.php
Last active December 18, 2015 11:08
Raspberry Pi display information (time, date, local weather data) on an picture taken from camera module, use of a digital picture frame (DPF), get weather data from a RSS weather feed, timelapse every 200 pictures
#!/usr/bin/php
<?php
//initialize variables
$filename = "/home/pi/test.jpg";
$FontBold = "/home/pi/FreeMonoBold.ttf";
$Font = "/home/pi/verdana.ttf";
$counter=1;
$countervideo=1;