Friday, June 14, 2019

gpio Raspberry

gpio read 23

php script test.php (www-data zu gruppe gpio hinzufügen )

<html>
<head>
<meta name="viewport" content="width=device-width" />
<title>Schalter</title>
</head>
GPIO 23 schalten:
<form method="get" action="pool.php">
<input type="submit" value="Licht ein" name="Lichtein">
<input type="submit" value="Licht aus" name="Lichtaus">
</form>
<?php
$modeon18 = exec("gpio mode 23 out");
if(isset($_GET["Lichtein"])){
$val = exec("gpio write 23 1");
echo "Licht an";
}
else if(isset($_GET["Lichtaus"])){
$val = exec("gpio write 23 0");
echo "Licht aus";
}
echo "<hr/>";
$val = exec("gpio read 23");
echo " gpio23 = $val ";
echo " <hr />"
?>
</body>
</html>

Friday, June 07, 2019

ownlcloud auf raspberry

Vorbedingungen

apt install -y apache2 mariadb-server libapache2-mod-php7.0 \
    php7.0-gd php7.0-json php7.0-mysql php7.0-curl \
    php7.0-intl php7.0-mcrypt php-imagick \
    php7.0-zip php7.0-xml php7.0-mbstring php-intl

anschließend rebooten

download und entpacken owncloud 

neueste version auf download page)
wget https://download.owncloud.org/community/owncloud-10.2.0.zip

das zip file dann nach /var/www/html verschieben und entpacken:
unzip -q owncloud-10.2.0.zip

owncloud data verzeichnis vorbereiten:
mkdir /var/www/html/owncloud/data
chown www-data:www-data /var/www/html/owncloud/data
chmod 750 /var/www/html/owncloud/data




hat nicht ganz funktioniert:

wget -nv https://download.owncloud.org/download/repositories/production/Debian_9.0/Release.key -O Release.key
apt-key add - < Release.key

echo 'deb http://download.owncloud.org/download/repositories/production/Debian_9.0/ /' > /etc/apt/sources.list.d/owncloud.list
apt-get update
apt-get install owncloud-files

ssms sql server management studio pfad

"C:\Program Files (x86)\Microsoft SQL Server\130\Tools\Binn\ManagementStudio\Ssms.exe"