<?xml version="1.0" encoding="UTF-8"?>
<!-- generator="FeedCreator 1.8" -->
<?xml-stylesheet href="http://wiki.itbs.selfhost.co/lib/exe/css.php?s=feed" type="text/css"?>
<rdf:RDF
    xmlns="http://purl.org/rss/1.0/"
    xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#"
    xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
    xmlns:dc="http://purl.org/dc/elements/1.1/">
    <channel rdf:about="http://wiki.itbs.selfhost.co/feed.php">
        <title>öffentliche Büro Dateien &lt;br&gt;IT-Beratung &amp; Service S.G. - offen:playground:picam</title>
        <description></description>
        <link>http://wiki.itbs.selfhost.co/</link>
        <image rdf:resource="http://wiki.itbs.selfhost.co/lib/exe/fetch.php?media=logo.png" />
       <dc:date>2026-08-27T03:06:59+00:00</dc:date>
        <items>
            <rdf:Seq>
                <rdf:li rdf:resource="http://wiki.itbs.selfhost.co/doku.php?id=offen:playground:picam:crontabjob&amp;rev=1656543600&amp;do=diff"/>
                <rdf:li rdf:resource="http://wiki.itbs.selfhost.co/doku.php?id=offen:playground:picam:internetverbindungpruefen&amp;rev=1655506800&amp;do=diff"/>
                <rdf:li rdf:resource="http://wiki.itbs.selfhost.co/doku.php?id=offen:playground:picam:picam.php&amp;rev=1656111600&amp;do=diff"/>
                <rdf:li rdf:resource="http://wiki.itbs.selfhost.co/doku.php?id=offen:playground:picam:schaltesendefoto&amp;rev=1656111600&amp;do=diff"/>
                <rdf:li rdf:resource="http://wiki.itbs.selfhost.co/doku.php?id=offen:playground:picam:start&amp;rev=1656543600&amp;do=diff"/>
                <rdf:li rdf:resource="http://wiki.itbs.selfhost.co/doku.php?id=offen:playground:picam:websetuppython&amp;rev=1718052233&amp;do=diff"/>
            </rdf:Seq>
        </items>
    </channel>
    <image rdf:about="http://wiki.itbs.selfhost.co/lib/exe/fetch.php?media=logo.png">
        <title>öffentliche Büro Dateien <br>IT-Beratung & Service S.G.</title>
        <link>http://wiki.itbs.selfhost.co/</link>
        <url>http://wiki.itbs.selfhost.co/lib/exe/fetch.php?media=logo.png</url>
    </image>
    <item rdf:about="http://wiki.itbs.selfhost.co/doku.php?id=offen:playground:picam:crontabjob&amp;rev=1656543600&amp;do=diff">
        <dc:format>text/html</dc:format>
        <dc:date>2022-06-29T23:00:00+00:00</dc:date>
        <dc:creator>Anonymous (anonymous@undisclosed.example.com)</dc:creator>
        <title>crontabjob</title>
        <link>http://wiki.itbs.selfhost.co/doku.php?id=offen:playground:picam:crontabjob&amp;rev=1656543600&amp;do=diff</link>
        <description>Edit this file to introduce tasks to be run by cron.
# 
# Each task to run has to be defined through a single line
# indicating with different fields when the task will be run
# and what command to run for the task
# 
# To define the time you can provide concrete values for
# minute (m), hour (h), day of month (dom), month (mon),
# and day of week (dow) or use &#039;*&#039; in these fields (for &#039;any&#039;).
# 
# Notice that tasks will be started based on the cron&#039;s system
# daemon&#039;s notion of time and timezone…</description>
    </item>
    <item rdf:about="http://wiki.itbs.selfhost.co/doku.php?id=offen:playground:picam:internetverbindungpruefen&amp;rev=1655506800&amp;do=diff">
        <dc:format>text/html</dc:format>
        <dc:date>2022-06-17T23:00:00+00:00</dc:date>
        <dc:creator>Anonymous (anonymous@undisclosed.example.com)</dc:creator>
        <title>internetverbindungpruefen</title>
        <link>http://wiki.itbs.selfhost.co/doku.php?id=offen:playground:picam:internetverbindungpruefen&amp;rev=1655506800&amp;do=diff</link>
        <description>Internetverbindung prüfen

Um zu sehen ob es beim ausführen des Skriptes eine Fehlermeldung gab muss es manuell ausgeführt werden.

Dazu den Skriptname im LXTerminal (im Menü unter Zubehör) mit Punkt und Pfadtrenner vorranstellen oder python3

./alpha_schalte_sendeFoto.py</description>
    </item>
    <item rdf:about="http://wiki.itbs.selfhost.co/doku.php?id=offen:playground:picam:picam.php&amp;rev=1656111600&amp;do=diff">
        <dc:format>text/html</dc:format>
        <dc:date>2022-06-24T23:00:00+00:00</dc:date>
        <dc:creator>Anonymous (anonymous@undisclosed.example.com)</dc:creator>
        <title>picam.php</title>
        <link>http://wiki.itbs.selfhost.co/doku.php?id=offen:playground:picam:picam.php&amp;rev=1656111600&amp;do=diff</link>
        <description>#!/usr/bin/python
# -*- coding: utf-8 -*-
# sendet ein Bild an den Server per URL http://blmgeotest.synology.me/uploads/picam.php&#039;
# erstellt am 08.04.2022 geändert 25.06.2022
# von Stefan +4915170379199
import sys
from PIL import Image
import picamera
from time import sleep
import requests
# Voreinstellungen Bildgroesse:
WIDTH=320
HEIGHT=240
# Kamera initialisieren:
camera = picamera.PiCamera()
camera.resolution = (WIDTH,HEIGHT)
# Dateiname fuer Bild:
localpicname = &#039;BildPiCam.jpg&#039;
# 2 Sek. Pau…</description>
    </item>
    <item rdf:about="http://wiki.itbs.selfhost.co/doku.php?id=offen:playground:picam:schaltesendefoto&amp;rev=1656111600&amp;do=diff">
        <dc:format>text/html</dc:format>
        <dc:date>2022-06-24T23:00:00+00:00</dc:date>
        <dc:creator>Anonymous (anonymous@undisclosed.example.com)</dc:creator>
        <title>schaltesendefoto</title>
        <link>http://wiki.itbs.selfhost.co/doku.php?id=offen:playground:picam:schaltesendefoto&amp;rev=1656111600&amp;do=diff</link>
        <description>#!/usr/bin/python3
# -*- coding: utf-8 -*-
# sendet ein Bild an den Server per URL http://blmgeotest.synology.me/uploads/picam.php&#039;
# erstellt am 08.04.2022 geändert 25.06.2022
# von Stefan +4915170379199
# sudo crontab -e # in console Zeiten der Ausführung festlegen
# 0,5,10,15,20,25,30,35,40,45,50,55 * * * * python /home/pi/schalte_sendeFoto.py
import socket
host_name =&quot;noName&quot;
host_ip   =&quot;noIP&quot;
try:
    host_name=socket.gethostname()
    host_ip  =socket.gethostbyname(host_name)
    print(&quot;Ra…</description>
    </item>
    <item rdf:about="http://wiki.itbs.selfhost.co/doku.php?id=offen:playground:picam:start&amp;rev=1656543600&amp;do=diff">
        <dc:format>text/html</dc:format>
        <dc:date>2022-06-29T23:00:00+00:00</dc:date>
        <dc:creator>Anonymous (anonymous@undisclosed.example.com)</dc:creator>
        <title>start</title>
        <link>http://wiki.itbs.selfhost.co/doku.php?id=offen:playground:picam:start&amp;rev=1656543600&amp;do=diff</link>
        <description>picam

&lt;https://blmgeotest.synology.me/uploads/picam.html&gt; [picamBild]

Raspberry Pi betreiben

internetverbindungpruefen

Es kann per Script auf dem RaspberryPi mit der 

URL &lt;http://blmgeotest.synology.me/uploads/picam.php&gt; 

ein Bild auf die Synology (/web/uploads/picam.jpg) geladen werden.

Das Skript hier als Text im Wiki: schalte_sendeFoto.py

Das automatische aufnehmen ist als crontabjob Konfiguriert sudo crontab -e

Das Empfängerscript auf der Synology heißt</description>
    </item>
    <item rdf:about="http://wiki.itbs.selfhost.co/doku.php?id=offen:playground:picam:websetuppython&amp;rev=1718052233&amp;do=diff">
        <dc:format>text/html</dc:format>
        <dc:date>2024-06-10T20:43:53+00:00</dc:date>
        <dc:creator>Anonymous (anonymous@undisclosed.example.com)</dc:creator>
        <title>websetuppython</title>
        <link>http://wiki.itbs.selfhost.co/doku.php?id=offen:playground:picam:websetuppython&amp;rev=1718052233&amp;do=diff</link>
        <description>&lt;https://medium.com/@rizqinur2010/deploying-python-flask-in-synology-dsm-7-without-docker-d99f1603bc87&gt;</description>
    </item>
</rdf:RDF>
