added Latex
This commit is contained in:
parent
5b1ec2e012
commit
8b0beb5686
43
arbeit/.gitignore
vendored
Normal file
43
arbeit/.gitignore
vendored
Normal file
|
@ -0,0 +1,43 @@
|
||||||
|
*-blx.bib
|
||||||
|
*.acn
|
||||||
|
*.acr
|
||||||
|
*.alg
|
||||||
|
*.aux
|
||||||
|
*.bbl
|
||||||
|
*.bcf
|
||||||
|
*.bfc
|
||||||
|
*.blg
|
||||||
|
*.dvi
|
||||||
|
*.fdb_latexmk
|
||||||
|
*.fk
|
||||||
|
*.fls
|
||||||
|
*.glg
|
||||||
|
*.glo
|
||||||
|
*.gls
|
||||||
|
*.idx
|
||||||
|
*.ilg
|
||||||
|
*.ind
|
||||||
|
*.ist
|
||||||
|
*.lem
|
||||||
|
*.lof
|
||||||
|
*.log
|
||||||
|
*.lol
|
||||||
|
*.lop
|
||||||
|
*.lot
|
||||||
|
*.maf
|
||||||
|
*.mtc
|
||||||
|
*.mtc0
|
||||||
|
*.mtc1
|
||||||
|
*.out
|
||||||
|
*.ptc
|
||||||
|
*.qtf
|
||||||
|
*.run.xml
|
||||||
|
*.synctex.gz
|
||||||
|
*.toc
|
||||||
|
*.toc1
|
||||||
|
|
||||||
|
# Intelij Config
|
||||||
|
|
||||||
|
.idea/
|
||||||
|
*.iml
|
||||||
|
out/
|
46
arbeit/.vscode/settings.json
vendored
Normal file
46
arbeit/.vscode/settings.json
vendored
Normal file
|
@ -0,0 +1,46 @@
|
||||||
|
{
|
||||||
|
"latex-workshop.latex.recipe.default": "first",
|
||||||
|
"latex-workshop.latex.recipes": [
|
||||||
|
{
|
||||||
|
"name": "pdflatex ➞ biber ➞ makeindex ➞makeglosseries ➞ pdflatex × 2",
|
||||||
|
"tools": [
|
||||||
|
"pdflatex",
|
||||||
|
"biber",
|
||||||
|
"makeglossaries",
|
||||||
|
"pdflatex",
|
||||||
|
"pdflatex"
|
||||||
|
]
|
||||||
|
}
|
||||||
|
],
|
||||||
|
"latex-workshop.latex.tools": [
|
||||||
|
{
|
||||||
|
"name": "biber",
|
||||||
|
"command": "biber",
|
||||||
|
"args": [
|
||||||
|
"%DOC%"
|
||||||
|
],
|
||||||
|
"env": {}
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"name": "makeglossaries",
|
||||||
|
"command": "makeglossaries",
|
||||||
|
"args": [
|
||||||
|
"Thesis"
|
||||||
|
],
|
||||||
|
"env": {}
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"name": "pdflatex",
|
||||||
|
"command": "pdflatex",
|
||||||
|
"args": [
|
||||||
|
"-synctex=1",
|
||||||
|
"-interaction=nonstopmode",
|
||||||
|
"-file-line-error",
|
||||||
|
"%DOC%"
|
||||||
|
],
|
||||||
|
"env": {}
|
||||||
|
},
|
||||||
|
],
|
||||||
|
"terminal.integrated.shell.linux": null,
|
||||||
|
"latex-workshop.view.pdf.viewer": "tab"
|
||||||
|
}
|
3
arbeit/README.md
Normal file
3
arbeit/README.md
Normal file
|
@ -0,0 +1,3 @@
|
||||||
|
# FHDW Paderborn Thesis LaTeX Template
|
||||||
|
|
||||||
|
The official LaTeX template for seminar papers, Bachelor and Master theses at FHDW Padeborn.
|
BIN
arbeit/Thesis.pdf
Normal file
BIN
arbeit/Thesis.pdf
Normal file
Binary file not shown.
104
arbeit/Thesis.tex
Normal file
104
arbeit/Thesis.tex
Normal file
|
@ -0,0 +1,104 @@
|
||||||
|
\input{config/Config}
|
||||||
|
|
||||||
|
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
|
||||||
|
%% Parameter - Hier auf die eigene Arbeit anpassen
|
||||||
|
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
|
||||||
|
|
||||||
|
\newcommand{\dokumententyp}{Studienarbeit - Entwurf}
|
||||||
|
\newcommand{\abgabedatum}{\today}
|
||||||
|
\newcommand{\ort}{Paderborn}
|
||||||
|
\newcommand{\koorperationsunternehmen}{FHDW}
|
||||||
|
\newcommand{\dokumententitel}{Ausarbeitung InfluxDB und Wetterdaten}
|
||||||
|
\newcommand{\dokumentenautor}{Henrik Mertens}
|
||||||
|
\newcommand{\dokumentenautoradress}{Hatzfelder Str 25\\33104 Paderborn}
|
||||||
|
\newcommand{\dokumentenpruefer}{Prof. Dr. Ulrich. Reus}
|
||||||
|
|
||||||
|
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
|
||||||
|
|
||||||
|
\hypersetup{
|
||||||
|
colorlinks=false,
|
||||||
|
pdfborder={0 0 0},
|
||||||
|
pdftitle=\dokumententitel,
|
||||||
|
pdfauthor=\dokumentenautor
|
||||||
|
}
|
||||||
|
|
||||||
|
\begin{document}
|
||||||
|
|
||||||
|
% Römische Seitennummerierung
|
||||||
|
\pagenumbering{Roman}
|
||||||
|
|
||||||
|
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
|
||||||
|
%% Titelseite
|
||||||
|
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
|
||||||
|
|
||||||
|
\input{chapter/Titelseite}
|
||||||
|
|
||||||
|
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
|
||||||
|
%% Draft-Einstellungen
|
||||||
|
%%
|
||||||
|
%% Für die finale Version auskommentieren!
|
||||||
|
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
|
||||||
|
\fancyhead[L]{\color{red} Stand: \today~-~\currenttime}
|
||||||
|
|
||||||
|
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
|
||||||
|
%% Verzeichnisse
|
||||||
|
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
|
||||||
|
|
||||||
|
|
||||||
|
% Sperrvermerk
|
||||||
|
%\include{chapter/Sperrvermerk}
|
||||||
|
|
||||||
|
% Inhaltsverzeichnis
|
||||||
|
\tableofcontents\newpage
|
||||||
|
|
||||||
|
% Abkürzungsverzeichnis
|
||||||
|
\printglossary[type=\acronymtype, style=mylist, title=Abkürzungsverzeichnis, toctitle=Abkürzungsverzeichnis]\newpage
|
||||||
|
\setcounter{table}{0} % printglossary erzeugt eine Tabelle, die die Nummerierung der "echten" Tabellen durcheinander bringt.
|
||||||
|
|
||||||
|
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
|
||||||
|
% Verzeichnisse
|
||||||
|
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
|
||||||
|
|
||||||
|
% Abbildungsverzeichnis
|
||||||
|
\fancyhead[R]{\listfigurename}
|
||||||
|
\listoffigures\newpage
|
||||||
|
|
||||||
|
% Tabellenverzeichnis
|
||||||
|
\fancyhead[R]{\listtablename}
|
||||||
|
\listoftables\newpage
|
||||||
|
|
||||||
|
% Quelltextverzeichnis
|
||||||
|
\fancyhead[R]{\lstlistlistingname}
|
||||||
|
\lstlistoflistings\newpage
|
||||||
|
|
||||||
|
% Kapitelüberschriften für den Arbeitstext
|
||||||
|
\fancyhead[R]{\leftmark}
|
||||||
|
|
||||||
|
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
|
||||||
|
%% Inhalt
|
||||||
|
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
|
||||||
|
|
||||||
|
% Arabische Seitennummerierung
|
||||||
|
\pagenumbering{arabic}
|
||||||
|
|
||||||
|
\include{chapter/Einleitung}
|
||||||
|
|
||||||
|
\include{chapter/Grundlagen}
|
||||||
|
|
||||||
|
\include{chapter/Installation}
|
||||||
|
|
||||||
|
\include{chapter/Zusammenfassung}
|
||||||
|
|
||||||
|
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
|
||||||
|
|
||||||
|
\include{chapter/Anhang}
|
||||||
|
|
||||||
|
\include{chapter/Quellenverzeichnis}
|
||||||
|
|
||||||
|
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
|
||||||
|
|
||||||
|
\include{chapter/Ehrenwoertliche_Erklaerung}
|
||||||
|
|
||||||
|
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
|
||||||
|
|
||||||
|
\end{document}
|
187
arbeit/authoryear-fhdw.cbx
Normal file
187
arbeit/authoryear-fhdw.cbx
Normal file
|
@ -0,0 +1,187 @@
|
||||||
|
\ProvidesFile{authoryear-fhdw.cbx}
|
||||||
|
[\abx@cbxid]
|
||||||
|
|
||||||
|
% Change labeldate to labeldateparts in order to be able to compile against the latest TeXLive versions
|
||||||
|
% See https://tex.stackexchange.com/a/330515 for details
|
||||||
|
\ExecuteBibliographyOptions{labeldateparts,uniquename,uniquelist,autocite=inline}
|
||||||
|
|
||||||
|
\renewcommand*{\iffinalcitedelim}{\iflastcitekey}
|
||||||
|
|
||||||
|
\newbool{cbx:parens}
|
||||||
|
|
||||||
|
\newbibmacro*{cite}{%
|
||||||
|
\iffieldundef{shorthand}
|
||||||
|
{\ifthenelse{\ifnameundef{labelname}\OR\iffieldundef{labelyear}}
|
||||||
|
{\usebibmacro{cite:label}%
|
||||||
|
\setunit{\addspace}}
|
||||||
|
{\printnames{labelname}%
|
||||||
|
\setunit{\nameyeardelim}}%
|
||||||
|
\usebibmacro{cite:labelyear+extrayear}}
|
||||||
|
{\usebibmacro{cite:shorthand}}}
|
||||||
|
|
||||||
|
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
|
||||||
|
|
||||||
|
\DeclareNameAlias{author}{sortname}
|
||||||
|
|
||||||
|
\renewbibmacro*{author}{%
|
||||||
|
\ifboolexpr{
|
||||||
|
test \ifuseauthor
|
||||||
|
and
|
||||||
|
not test {\ifnameundef{author}}
|
||||||
|
}
|
||||||
|
{\usebibmacro{bbx:dashcheck}
|
||||||
|
{\bibnamedash}
|
||||||
|
{\usebibmacro{bbx:savehash}%
|
||||||
|
\printnames{author}%
|
||||||
|
\iffieldundef{authortype}
|
||||||
|
{\setunit{\addspace}}
|
||||||
|
{\setunit{\addcomma\space}}}%
|
||||||
|
\iffieldundef{authortype}
|
||||||
|
{}
|
||||||
|
{\usebibmacro{authorstrg}%
|
||||||
|
\setunit{\addspace}}}%
|
||||||
|
{\global\undef\bbx@lasthash
|
||||||
|
\usebibmacro{labeltitle}%
|
||||||
|
\setunit*{\addspace}}%
|
||||||
|
\usebibmacro{date+extrayear}}
|
||||||
|
|
||||||
|
\newbibmacro*{cite2}{%
|
||||||
|
\iffieldundef{shorthand}
|
||||||
|
{\ifthenelse{\ifnameundef{labelname}\OR\iffieldundef{labelyear}}
|
||||||
|
{\usebibmacro{cite:label}%
|
||||||
|
\setunit{\addspace}}
|
||||||
|
{\printnames{author}%
|
||||||
|
\setunit{\addspace}}%
|
||||||
|
\usebibmacro{cite:labelyear+extrayear2}}
|
||||||
|
{\usebibmacro{cite:shorthand}}}
|
||||||
|
|
||||||
|
|
||||||
|
\newbibmacro*{cite:labelyear+extrayear2}{%
|
||||||
|
\iffieldundef{labelyear}
|
||||||
|
{}
|
||||||
|
{\printtext[bibhyperref]{%
|
||||||
|
(\printfield{labelyear}%
|
||||||
|
\printfield{extrayear})}}}
|
||||||
|
|
||||||
|
|
||||||
|
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
|
||||||
|
|
||||||
|
\newbibmacro*{citeyear}{%
|
||||||
|
\iffieldundef{shorthand}
|
||||||
|
{\iffieldundef{labelyear}
|
||||||
|
{\usebibmacro{cite:label}}
|
||||||
|
{\usebibmacro{cite:labelyear+extrayear}}}
|
||||||
|
{\usebibmacro{cite:shorthand}}}
|
||||||
|
|
||||||
|
\newbibmacro*{textcite}{%
|
||||||
|
\ifnameundef{labelname}
|
||||||
|
{\iffieldundef{shorthand}
|
||||||
|
{\usebibmacro{cite:label}%
|
||||||
|
\setunit{%
|
||||||
|
\global\booltrue{cbx:parens}%
|
||||||
|
\addspace\bibopenparen}%
|
||||||
|
\ifnumequal{\value{citecount}}{1}
|
||||||
|
{\usebibmacro{prenote}}
|
||||||
|
{}%
|
||||||
|
\usebibmacro{cite:labelyear+extrayear}}
|
||||||
|
{\usebibmacro{cite:shorthand}}}
|
||||||
|
{\printnames{labelname}%
|
||||||
|
\setunit{%
|
||||||
|
\global\booltrue{cbx:parens}%
|
||||||
|
\addspace\bibopenparen}%
|
||||||
|
\ifnumequal{\value{citecount}}{1}
|
||||||
|
{\usebibmacro{prenote}}
|
||||||
|
{}%
|
||||||
|
\usebibmacro{citeyear}}}
|
||||||
|
|
||||||
|
\newbibmacro*{cite:shorthand}{%
|
||||||
|
\printtext[bibhyperref]{\printfield{shorthand}}}
|
||||||
|
|
||||||
|
\newbibmacro*{cite:label}{%
|
||||||
|
\iffieldundef{label}
|
||||||
|
{\printtext[bibhyperref]{\printfield[citetitle]{labeltitle}}}
|
||||||
|
{\printtext[bibhyperref]{\printfield{label}}}}
|
||||||
|
|
||||||
|
\newbibmacro*{cite:labelyear+extrayear}{%
|
||||||
|
\iffieldundef{labelyear}
|
||||||
|
{}
|
||||||
|
{\printtext[bibhyperref]{%
|
||||||
|
\printfield{labelyear}%
|
||||||
|
\printfield{extrayear}}}}
|
||||||
|
|
||||||
|
\newbibmacro*{textcite:postnote}{%
|
||||||
|
\iffieldundef{postnote}
|
||||||
|
{\ifbool{cbx:parens}
|
||||||
|
{\bibcloseparen}
|
||||||
|
{}}
|
||||||
|
{\ifbool{cbx:parens}
|
||||||
|
{\setunit{\postnotedelim}}
|
||||||
|
{\setunit{\addspace\bibopenparen}}%
|
||||||
|
\printfield{postnote}\bibcloseparen}}
|
||||||
|
|
||||||
|
\DeclareCiteCommand{\cite}
|
||||||
|
{\usebibmacro{prenote}}
|
||||||
|
{\usebibmacro{citeindex}%
|
||||||
|
\usebibmacro{cite2}
|
||||||
|
}
|
||||||
|
{\multicitedelim}
|
||||||
|
{\usebibmacro{postnote}}
|
||||||
|
|
||||||
|
\DeclareCiteCommand*{\cite}
|
||||||
|
{\usebibmacro{prenote}}
|
||||||
|
{\usebibmacro{citeindex}%
|
||||||
|
\usebibmacro{citeyear}}
|
||||||
|
{\multicitedelim}
|
||||||
|
{\usebibmacro{postnote}}
|
||||||
|
|
||||||
|
\DeclareCiteCommand{\parencite}[\mkbibparens]
|
||||||
|
{\usebibmacro{prenote}}
|
||||||
|
{\usebibmacro{citeindex}%
|
||||||
|
\usebibmacro{cite}}
|
||||||
|
{\multicitedelim}
|
||||||
|
{\usebibmacro{postnote}}
|
||||||
|
|
||||||
|
\DeclareCiteCommand*{\parencite}[\mkbibparens]
|
||||||
|
{\usebibmacro{prenote}}
|
||||||
|
{\usebibmacro{citeindex}%
|
||||||
|
\usebibmacro{citeyear}}
|
||||||
|
{\multicitedelim}
|
||||||
|
{\usebibmacro{postnote}}
|
||||||
|
|
||||||
|
\DeclareCiteCommand{\footcite}[\mkbibfootnote]
|
||||||
|
{\usebibmacro{prenote}}
|
||||||
|
{\usebibmacro{citeindex}%
|
||||||
|
\usebibmacro{cite}}
|
||||||
|
{\multicitedelim}
|
||||||
|
{\usebibmacro{postnote}}
|
||||||
|
|
||||||
|
\DeclareCiteCommand{\footcitetext}[\mkbibfootnotetext]
|
||||||
|
{\usebibmacro{prenote}}
|
||||||
|
{\usebibmacro{citeindex}%
|
||||||
|
\usebibmacro{cite}}
|
||||||
|
{\multicitedelim}
|
||||||
|
{\usebibmacro{postnote}}
|
||||||
|
|
||||||
|
\DeclareCiteCommand{\smartcite}[\iffootnote\mkbibparens\mkbibfootnote]
|
||||||
|
{\usebibmacro{prenote}}
|
||||||
|
{\usebibmacro{citeindex}%
|
||||||
|
\usebibmacro{cite}}
|
||||||
|
{\multicitedelim}
|
||||||
|
{\usebibmacro{postnote}}
|
||||||
|
|
||||||
|
\DeclareCiteCommand{\textcite}
|
||||||
|
{\boolfalse{cbx:parens}}
|
||||||
|
{\usebibmacro{citeindex}%
|
||||||
|
\iffirstcitekey
|
||||||
|
{\setcounter{textcitetotal}{1}}
|
||||||
|
{\stepcounter{textcitetotal}%
|
||||||
|
\textcitedelim}%
|
||||||
|
\usebibmacro{textcite}}
|
||||||
|
{\ifbool{cbx:parens}
|
||||||
|
{\bibcloseparen\global\boolfalse{cbx:parens}}
|
||||||
|
{}}
|
||||||
|
{\usebibmacro{textcite:postnote}}
|
||||||
|
|
||||||
|
\DeclareMultiCiteCommand{\textcites}{\textcite}{}
|
||||||
|
|
||||||
|
\endinput
|
18
arbeit/chapter/Anhang.tex
Normal file
18
arbeit/chapter/Anhang.tex
Normal file
|
@ -0,0 +1,18 @@
|
||||||
|
%!TEX root = ../Thesis.tex
|
||||||
|
\section*{Anhang}
|
||||||
|
\addcontentsline{toc}{section}{Anhang}
|
||||||
|
\fancyhead[R]{Anhang}
|
||||||
|
|
||||||
|
\anhangsverzeichnis
|
||||||
|
|
||||||
|
\anhang{Gesprächsnotizen}
|
||||||
|
|
||||||
|
\subanhang{Gespräch mit Werner Müller}
|
||||||
|
|
||||||
|
Gespräch mit Werner Müller am 01.01.2013 zum Thema XXX:
|
||||||
|
\begin{compactitem}
|
||||||
|
\item Über das gute Wetter gesprochen
|
||||||
|
\item Die Regenwahrscheinlichkeit liegt immer bei ca. 3\%
|
||||||
|
\item Das Unternehmen ist total super
|
||||||
|
\item Hier könnte eine wichtige Gesprächsnotiz stehen
|
||||||
|
\end{compactitem}
|
6
arbeit/chapter/Aufbau_Struktur.tex
Normal file
6
arbeit/chapter/Aufbau_Struktur.tex
Normal file
|
@ -0,0 +1,6 @@
|
||||||
|
%!TEX root = ../Thesis.tex
|
||||||
|
\subsection{Aufbau und Struktur der Arbeit}
|
||||||
|
|
||||||
|
In Kapitel \cref{sec:installation} wird die Installation von MikTex, dem TeXnicCenter und einiger Tools erklärt. (Anmerkung: MikTeX enthält ab Version 2.8 den Editor TeXworks.) Die Ausführungen beziehen sich hauptsächlich auf Programme für das Betriebssystem ``Microsoft Windows''. Unter Linux bzw. Mac-OS gibt es aber ähnliche Distibutionen bzw. Editoren. Wo bekannt, wird auf Unterschiede hingewiesen.
|
||||||
|
|
||||||
|
Im Anschluss werden die verwendeten Pakete vorgestellt und erläutert. Es wird nicht auf grundsätzliches zu Latex eingegangen. Dises kann in entsprechenden Dokumenten nachgelesen werden.\footnote{\cite[siehe][]{einf:latex,fort:latex}}
|
13
arbeit/chapter/Ehrenwoertliche_Erklaerung.tex
Normal file
13
arbeit/chapter/Ehrenwoertliche_Erklaerung.tex
Normal file
|
@ -0,0 +1,13 @@
|
||||||
|
%!TEX root = ../Thesis.tex
|
||||||
|
|
||||||
|
\section*{Ehrenwörtliche Erklärung}
|
||||||
|
\addcontentsline{toc}{section}{Ehrenwörtliche Erklärung}
|
||||||
|
\fancyhead[R]{Ehrenwörtliche Erklärung}
|
||||||
|
|
||||||
|
Hiermit erkläre ich, dass ich die vorliegende \dokumententyp{} selbständig angefertigt habe. Es wurden nur die in der Arbeit ausdrücklich benannten Quellen und Hilfsmittel benutzt. Wörtlich oder sinngemäß übernommenes Gedankengut habe ich als solches kenntlich gemacht. Diese Arbeit hat in gleicher oder ähnlicher Form noch keiner Prüfungsbehörde vorgelegen.
|
||||||
|
\vspace{20mm}
|
||||||
|
|
||||||
|
\ort, \abgabedatum
|
||||||
|
\vspace{10mm}
|
||||||
|
|
||||||
|
\underline{\hspace{8cm}}\\\dokumentenautor
|
18
arbeit/chapter/Einleitung.tex
Normal file
18
arbeit/chapter/Einleitung.tex
Normal file
|
@ -0,0 +1,18 @@
|
||||||
|
%!TEX root = ../Thesis.tex
|
||||||
|
\section{Einleitung}
|
||||||
|
|
||||||
|
\subsection{Zielsetzuing}
|
||||||
|
|
||||||
|
Das Ziel dieser Arbeit ist es eine Einführung in die Funktion von \gls{TSDB} zu geben.
|
||||||
|
Außerdem soll beispeilhaft an InfluxDB gezeigt werden wie mit einer \gls{TSDB} gearbeitet wird.
|
||||||
|
Dazu werden die Wetterdaten vom \gls{DWD} Importiert und ausgewertet.
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
\subsection{Aufbau und Vorgehensweise}
|
||||||
|
|
||||||
|
Im ersten Teil dieser Arbeit werden die Grundlagen von \gls{TSDB} erklärt und besonderheiten beschreiben.
|
||||||
|
Im darauf Folgenden Kapitel wird dann exemplarisch an InfluxDB gezeigt wie mit einer \gls{TSDB} gearbeitet wird.
|
||||||
|
|
||||||
|
Im letzen Kapitel werden die Inhalte dieser Arbeit zusammengefasst.
|
||||||
|
|
170
arbeit/chapter/Grundlagen.tex
Normal file
170
arbeit/chapter/Grundlagen.tex
Normal file
|
@ -0,0 +1,170 @@
|
||||||
|
%!TEX root = ../Thesis.tex
|
||||||
|
\section{Grundlagen}
|
||||||
|
|
||||||
|
Das ist ein Test
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
\subsection{Schrift}
|
||||||
|
\label{sec:schrift}
|
||||||
|
|
||||||
|
\subsubsection{Schriftgrößen}
|
||||||
|
\label{sec:schriftgroessen}
|
||||||
|
\tiny Das ist sehr kleine Schrift\\
|
||||||
|
\small Das ist kleine Schrift\\
|
||||||
|
\normalsize Das ist normale Schrift\\
|
||||||
|
\large Das ist große Schrift\\
|
||||||
|
\Large Das ist größere Schrift\\
|
||||||
|
\LARGE Das ist noch größere Schrift\\
|
||||||
|
\huge Das ist riesige Schrift\\
|
||||||
|
\Huge Das ist noch riesigere Schrift\\
|
||||||
|
\scriptsize Das ist Script Schrift\\
|
||||||
|
\footnotesize Das ist Fußnoten Schrift
|
||||||
|
\normalsize
|
||||||
|
|
||||||
|
\subsubsection{Schrift Typen}
|
||||||
|
\label{sec:Schrift Typen}
|
||||||
|
\textbf{Das ist ein fetter Text}\\
|
||||||
|
\textit{Das ist ein kursiver Text}\\
|
||||||
|
\underline{Das ist ein unterstrichener Text}\\
|
||||||
|
\textsc{Das ist ein kapitälchen Text}\\
|
||||||
|
\textsf{Das ist ein serifenloser Text}\\
|
||||||
|
\texttt{Das ist ein Schreibmaschinen Text}\\
|
||||||
|
\textnormal{Das ist ein normaler Text}
|
||||||
|
|
||||||
|
\subsubsection{Schrift Ausrichtung}
|
||||||
|
\label{sec:Schrift Ausrichtung}
|
||||||
|
\begin{quote}
|
||||||
|
Quote Text (Der gesamte Text innerhalb der Umgebung wird von beiden Seiten eingerückt)
|
||||||
|
\end{quote}
|
||||||
|
\begin{center}
|
||||||
|
Zentrierter Text (Der gesamte Text innerhalb der Umgebung wird zentriert)
|
||||||
|
\end{center}
|
||||||
|
\begin{flushleft}
|
||||||
|
Linksbündiger Text (Der gesamte Text innerhalb der Umgebung wird linksbündig)
|
||||||
|
\end{flushleft}
|
||||||
|
\begin{flushright}
|
||||||
|
Rechtsbündiger Text (Der gesamte Text innerhalb der Umgebung wird rechtsbündig)
|
||||||
|
\end{flushright}
|
||||||
|
In einer Fußnote\footnote{können zusätzliche Ergänzungen, Präzisierungen, Textverweise usw. eingeführt werden.}
|
||||||
|
|
||||||
|
\subsection{Abbildungen}
|
||||||
|
|
||||||
|
In \cref{fig:fhdw} sehen Sie das Logo der FHDW.
|
||||||
|
|
||||||
|
\begin{figure}[hbt]
|
||||||
|
\centering
|
||||||
|
\begin{minipage}[t]{.7\textwidth} % Breite, z.B. 1\textwidth
|
||||||
|
\caption{Das Logo der FHDW} % Überschrift
|
||||||
|
\includegraphics[width=1\textwidth]{img/fhdw}\\ % Pfad
|
||||||
|
\source{Eigene Darstellung} % Quelle
|
||||||
|
\label{fig:fhdw}
|
||||||
|
\end{minipage}
|
||||||
|
\end{figure}
|
||||||
|
|
||||||
|
\subsection{Tabellen}
|
||||||
|
|
||||||
|
In \cref{tab:pin} auf Seite \pageref{tab:pin} sehen Sie die am häufigsten benutzten PINs.
|
||||||
|
|
||||||
|
\begin{table}[hbt]
|
||||||
|
\centering
|
||||||
|
\begin{minipage}[t]{.5\textwidth} % Breite, z.B. 1\textwidth
|
||||||
|
\caption{Die am häufigsten verwendeten PINs} % Überschrift
|
||||||
|
\begin{tabularx}{\columnwidth}{rXrr}
|
||||||
|
\toprule
|
||||||
|
Rank & PIN & Percentage & Accumulated \\
|
||||||
|
\midrule
|
||||||
|
1 & 1234 & 4.34\% & 4.34\%\\
|
||||||
|
2 & 0000 & 2.57\% & 6.91\%\\
|
||||||
|
3 & 2580 & 2.32\% & 9.23\%\\
|
||||||
|
4 & 1111 & 1.60\% & 10.83\%\\
|
||||||
|
5 & 5555 & 0.87\% & 12.70\%\\
|
||||||
|
6 & 5683 & 0.70\% & 12.39\%\\
|
||||||
|
7 & 0852 & 0.60\% & 12.99\%\\
|
||||||
|
8 & 2222 & 0.56\% & 13.55\%\\
|
||||||
|
9 & 1212 & 0.49\% & 14.03\%\\
|
||||||
|
10 & 1998 & 0.43\% & 14.46\%\\
|
||||||
|
\bottomrule
|
||||||
|
\end{tabularx}
|
||||||
|
\source{Eigene Darstellung} % Quelle
|
||||||
|
\label{tab:pin}
|
||||||
|
\end{minipage}
|
||||||
|
\end{table}
|
||||||
|
|
||||||
|
\subsection{Zitate}
|
||||||
|
|
||||||
|
Ein Zitat im Fließtext ist zu sehen bei \citet{Fuller2011}.
|
||||||
|
|
||||||
|
Ein vergleichendes Zitat.\footnote{\cite[vgl.][5\psqq]{Maslennikov2011}}
|
||||||
|
|
||||||
|
Ein \enquote{wörtliches Zitat}\footnote{\cite[13\psq]{Meier2010}}
|
||||||
|
|
||||||
|
Zitat einer Quelle mit mehreren Autoren.\footnote{\cite[vgl.][32\psqq]{Hocking2011a}}
|
||||||
|
|
||||||
|
|
||||||
|
\subsection{Abkürzungen}
|
||||||
|
Bei der ersten Verwendung werden Abkürzungen ausgeschrieben: \gls{AES}.
|
||||||
|
Später wird dann automatisch nur noch die Kurzform benutzt: \gls{AES}
|
||||||
|
|
||||||
|
|
||||||
|
\subsection{Listen}
|
||||||
|
\label{sec:Listen}
|
||||||
|
Eine einfache List mit Punkten:
|
||||||
|
|
||||||
|
\begin{compactitem}
|
||||||
|
\item Punkt 1
|
||||||
|
\item Punkt 2
|
||||||
|
\item Punkt 3
|
||||||
|
\end{compactitem}
|
||||||
|
|
||||||
|
Eine einfache Liste mit Nummern:
|
||||||
|
\begin{compactenum}
|
||||||
|
\item Punkt 1
|
||||||
|
\item Punkt 2
|
||||||
|
\item Punkt 3
|
||||||
|
\end{compactenum}
|
||||||
|
|
||||||
|
Eine einfache Liste mit römischen Nummern:
|
||||||
|
\begin{compactenum}[I.]
|
||||||
|
\item Punkt 1
|
||||||
|
\item Punkt 2
|
||||||
|
\item Punkt 3
|
||||||
|
\end{compactenum}
|
||||||
|
|
||||||
|
Eine einfache Liste mit Buchstaben:
|
||||||
|
\begin{compactenum}[(a)]
|
||||||
|
\item Punkt 1
|
||||||
|
\item Punkt 2
|
||||||
|
\item Punkt 3
|
||||||
|
\end{compactenum}
|
||||||
|
|
||||||
|
\subsection{Quelltext}
|
||||||
|
|
||||||
|
Listing~\ref{list:android} auf Seite~\pageref{list:android} zeigt einigen Quelltext.
|
||||||
|
|
||||||
|
\begin{figure}[bht]
|
||||||
|
\begin{lstlisting}[caption=Scanning for Wi-Fi Access Points on Android, label=list:android]
|
||||||
|
registerReceiver(new RSSIBroadcastReceiver(),
|
||||||
|
new IntentFilter(WifiManager.SCAN_RESULTS_AVAILABLE_ACTION));
|
||||||
|
|
||||||
|
WifiManager wifi = getSystemService(Context.WIFI_SERVICE);
|
||||||
|
wifi.startScan();
|
||||||
|
|
||||||
|
/* not thread safe */
|
||||||
|
public class RSSIBroadcastReceiver extends BroadcastReceiver {
|
||||||
|
|
||||||
|
public void onReceive(Context context, Intent intent) {
|
||||||
|
WifiManager wifi = getSystemService(Context.WIFI_SERVICE);
|
||||||
|
List<ScanResult> scanResults = wifiManager.getScanResults();
|
||||||
|
|
||||||
|
for (ScanResult scanResult : results) {
|
||||||
|
RSSI rssi = new RSSI();
|
||||||
|
rssi.bssi = scanResult.BSSID;
|
||||||
|
rssi.signalLevel = scanResult.level;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
\end{lstlisting}
|
||||||
|
%\footnoterule{}
|
||||||
|
%\footnotesize{Casts have been omitted for the sake of readability}
|
||||||
|
\end{figure}
|
82
arbeit/chapter/Installation.tex
Normal file
82
arbeit/chapter/Installation.tex
Normal file
|
@ -0,0 +1,82 @@
|
||||||
|
%!TEX root = ../Thesis.tex
|
||||||
|
\section{Installation}
|
||||||
|
\label{instal}
|
||||||
|
|
||||||
|
\subsection{TeX-Distribution}
|
||||||
|
|
||||||
|
Für die Arbeit mit \LaTeX ist eine aktuelle TeX-Distribution erforderlich.
|
||||||
|
|
||||||
|
\subsubsection{Windows}
|
||||||
|
|
||||||
|
Unter Windows ist MiKTeX die Standard-{\LaTeX}-Distribution. Der MikTex-Installer kann unter \url{http://miktex.org/download} heruntergeladen werden.
|
||||||
|
|
||||||
|
\subsubsection{Linux}
|
||||||
|
|
||||||
|
Die Standard-{\LaTeX}-Distribution unter Linux ist Tex Live, welche über die gängigen Software-Repositories installiert werden kann.
|
||||||
|
|
||||||
|
Unter Debian/Ubuntu kann die Installation der erforderlichen Pakete mittels der folgenden Befehlen durchgeführt werden:
|
||||||
|
|
||||||
|
\texttt{sudo apt-get install texlive-latex-base}\\
|
||||||
|
\texttt{sudo apt-get install texlive-latex-recommended}\\
|
||||||
|
\texttt{sudo apt-get install texlive-fonts-recommended}\\
|
||||||
|
\texttt{sudo apt-get install biblatex}\\
|
||||||
|
\texttt{sudo apt-get install biber}
|
||||||
|
|
||||||
|
\subsubsection{Mac-OS}
|
||||||
|
Von der Tex-User-Group wird jährlich ein komplettes aktuelles Mac{\TeX}-Paket angeboten (http://www.tug.org/mactex/index.html), in dem alle relevanten Programme und Pakete enthalten sind.
|
||||||
|
|
||||||
|
\subsection{PDF-Viewer}
|
||||||
|
|
||||||
|
\subsubsection{Windows}
|
||||||
|
|
||||||
|
Als PDF-Viewer unter Windows bietet sich der freie Sumatra PDF Viewer an: \url{http://blog.kowalczyk.info/software/sumatrapdf/download-free-pdf-viewer-de.html}
|
||||||
|
|
||||||
|
\subsubsection{Linux und Mac-OS}
|
||||||
|
|
||||||
|
Die installierten Standard-PDF-Viewer unter Linux bzw. Mac-OS können problemlos genutzt werden.
|
||||||
|
|
||||||
|
\subsection{Hello World}
|
||||||
|
Nach der Installation sollte ein erster Test der Vorlage versucht werden. Dazu öffnen Sie ein Kommandozeilenfenster und wechseln in das Verzeichnis, in dem sich die {\LaTeX}-Quellen dieser Vorlage befinden. Anschließend müssen auf der Kommandozeile die Befehle
|
||||||
|
\begin{lstlisting}
|
||||||
|
biber Thesis
|
||||||
|
pdflatex Thesis
|
||||||
|
\end{lstlisting}
|
||||||
|
eingegeben werden. Nun sollte eine neue Datei \texttt{Thesis.pdf} erzeugt worden sein. Falls nicht, sehen Sie bitte in den Ausgaben nach, die \LaTeX erzeugt hat. Diese sind recht umfangreich, auch wenn ein PDF-Dokument erzeugt werden konnte.
|
||||||
|
|
||||||
|
|
||||||
|
\subsection{Literaturverwaltung}
|
||||||
|
|
||||||
|
Für die Verwaltung von Quellen eignet sich das freie, Cloud-basierte Mendely: \url{http://www.mendeley.com/download-mendeley-desktop/}.
|
||||||
|
|
||||||
|
\begin{figure}[hbt]
|
||||||
|
\centering
|
||||||
|
\begin{minipage}[t]{1\textwidth} % Breite, z.B. 1\textwidth
|
||||||
|
\caption{Mendeley Referenzmanager} % Überschrift
|
||||||
|
\includegraphics[width=1\textwidth]{img/Mendeley-destop-screenshot}\\ % Pfad
|
||||||
|
\source{\url{http://dominique-fleury.com/?p=302}} % Quelle
|
||||||
|
\end{minipage}
|
||||||
|
\end{figure}
|
||||||
|
|
||||||
|
\subsection{Texteditor}
|
||||||
|
|
||||||
|
Als Texteditor für \LaTeX wird Sublime Text (\url{http://www.sublimetext.com}) empfohlen. Zur Arbeit mit Latex ist das Plugin \emph{LaTeXTools} erforderlich (\url{https://github.com/SublimeText/LaTeXTools}).
|
||||||
|
|
||||||
|
\begin{figure}[hbt]
|
||||||
|
\centering
|
||||||
|
\begin{minipage}[t]{1\textwidth} % Breite, z.B. 1\textwidth
|
||||||
|
\caption{Sublime Texteditor} % Überschrift
|
||||||
|
\includegraphics[width=1\textwidth]{img/sublime.png}\\ % Pfad
|
||||||
|
\source{\url{http://www.sublimetext.com/screenshots/alpha_goto_anything2_large.png}} % Quelle
|
||||||
|
\end{minipage}
|
||||||
|
\end{figure}
|
||||||
|
|
||||||
|
\subsection{PDF-Erzeugung}
|
||||||
|
|
||||||
|
Für die Erzeugung des PDF-Dokuments inklusive Referenzen, Quellenverzeichnis und Glossar sind mehrere Programmaufrufe und -durchläufe erforderlich. Der vollständige Aufruf zur PDF-Erzeugung lautet:
|
||||||
|
|
||||||
|
\texttt{pdflatex Thesis}\\
|
||||||
|
\texttt{biber Thesis}\\
|
||||||
|
\texttt{makeindex -s Thesis.ist -t Thesis.alg -o Thesis.acr Thesis.acn}\\
|
||||||
|
\texttt{makeglossaries Thesis}\\
|
||||||
|
\texttt{pdflatex Thesis}\\
|
||||||
|
\texttt{pdflatex Thesis}\\
|
30
arbeit/chapter/Quellenverzeichnis.tex
Normal file
30
arbeit/chapter/Quellenverzeichnis.tex
Normal file
|
@ -0,0 +1,30 @@
|
||||||
|
%!TEX root = ../Thesis.tex
|
||||||
|
\section*{Quellenverzeichnis}
|
||||||
|
\addcontentsline{toc}{section}{Quellenverzeichnis}
|
||||||
|
\fancyhead[R]{Quellenverzeichnis}
|
||||||
|
|
||||||
|
\defbibheading{mono}{\subsection*{Monographien}}
|
||||||
|
\defbibheading{mag}{\subsection*{Aufsätze in Sammelbänden und Zeitschriften}}
|
||||||
|
\defbibheading{art}{\subsection*{Zeitungsartikel}}
|
||||||
|
\defbibheading{web}{\subsection*{Internetquellen}}
|
||||||
|
\defbibheading{leg}{\subsection*{Rechtsprechung}}
|
||||||
|
\defbibheading{comp}{\subsection*{Unternehmensunterlagen/Gesprächsnotizen}}
|
||||||
|
|
||||||
|
\setlength\bibitemsep{1.5\itemsep}
|
||||||
|
\setlength{\bibhang}{2em}
|
||||||
|
|
||||||
|
\renewcommand{\baselinestretch}{1.50}\normalsize
|
||||||
|
|
||||||
|
\begingroup
|
||||||
|
\sloppy
|
||||||
|
|
||||||
|
\printbibliography[heading=mono,keyword=mono]
|
||||||
|
\printbibliography[heading=mag,keyword=mag]
|
||||||
|
\printbibliography[heading=web,keyword=web]
|
||||||
|
|
||||||
|
% Bei Bedarf einkommentieren: (erzeugt sonst Warnungen)
|
||||||
|
% \printbibliography[heading=art,keyword=art]
|
||||||
|
% \printbibliography[heading=leg,keyword=leg]
|
||||||
|
% \printbibliography[heading=comp,keyword=comp]
|
||||||
|
|
||||||
|
\endgroup
|
11
arbeit/chapter/Sperrvermerk.tex
Normal file
11
arbeit/chapter/Sperrvermerk.tex
Normal file
|
@ -0,0 +1,11 @@
|
||||||
|
%!TEX root = ../Thesis.tex
|
||||||
|
\section*{Sperrvermerk}
|
||||||
|
\addcontentsline{toc}{section}{Sperrvermerk}
|
||||||
|
\fancyhead[R]{Sperrvermerk}
|
||||||
|
|
||||||
|
Diese Arbeit enthält vertrauliche Informationen über die Firma \koorperationsunternehmen. Die Weitergabe des Inhalts dieser Arbeit (auch in Auszügen) ist untersagt. Es dürfen keinerlei Kopien oder Abschriften - auch nicht in digitaler Form - angefertigt werden. Auch darf diese Arbeit nicht veröffentlicht werden und ist ausschließlich den Prüfern, Mitarbeitern der Verwaltung und Mitgliedern des Prüfungsausschusses sowie auf Nachfrage einer Evaluierungskommission zugänglich zu machen. Personen, die Einsicht in diese Arbeit erhalten, verpflichten sich, über die Inhalte dieser Arbeit und all ihren Anhängen keine Informationen, die die Firma \koorperationsunternehmen{} betreffen, gegenüber Dritten preiszugeben. Ausnahmen bedürfen der schriftlichen Genehmigung der Firma \koorperationsunternehmen{} und des Verfassers.
|
||||||
|
|
||||||
|
|
||||||
|
Die Arbeit oder Teile davon dürfen von der FHDW einer Plagiatsprüfung durch einen Plagiatsoftware-Anbieter unterzogen werden. Der Sperrvermerk ist somit im Fall einer Plagiatsprüfung nicht wirksam.
|
||||||
|
\newpage
|
||||||
|
\fancyhead[R]{\leftmark}
|
28
arbeit/chapter/Titelseite.tex
Normal file
28
arbeit/chapter/Titelseite.tex
Normal file
|
@ -0,0 +1,28 @@
|
||||||
|
%!TEX root = ../Thesis.tex
|
||||||
|
\begin{titlepage}
|
||||||
|
\begin{center}
|
||||||
|
|
||||||
|
\includegraphics[scale=1.20]{img/fhdw}\\
|
||||||
|
\vspace{.7cm}
|
||||||
|
\Huge{\bfseries\dokumententyp}
|
||||||
|
~\vspace{.5cm}\\
|
||||||
|
\LARGE{\dokumententitel}
|
||||||
|
~\vspace{1.3cm}\\
|
||||||
|
|
||||||
|
\large{
|
||||||
|
Erstellt von:\\\vspace{1mm}
|
||||||
|
\dokumentenautor\\
|
||||||
|
\dokumentenautoradress
|
||||||
|
|
||||||
|
\vspace{1.5cm}
|
||||||
|
Prüfer:\vspace{1mm}\\
|
||||||
|
\dokumentenpruefer
|
||||||
|
|
||||||
|
\vspace{1.5cm}
|
||||||
|
Eingereicht am:\vspace{1mm}\\
|
||||||
|
\abgabedatum
|
||||||
|
}
|
||||||
|
\end{center}
|
||||||
|
|
||||||
|
\end{titlepage}
|
||||||
|
|
5
arbeit/chapter/Zusammenfassung.tex
Normal file
5
arbeit/chapter/Zusammenfassung.tex
Normal file
|
@ -0,0 +1,5 @@
|
||||||
|
%!TEX root = ../Thesis.tex
|
||||||
|
\section{Zusammenfassung}
|
||||||
|
|
||||||
|
Dieses Dokument ist eine Hilfe, um die Formalien für eine Bachelor-Thesis an der
|
||||||
|
FHDW bei der Verwendung von {\LaTeX} zu erfüllen und dabei möglichst viele Automatismen von {\LaTeX} zu nutzen. Eine Absprache mit dem betreuenden Professor ist dennoch ratsam.
|
11
arbeit/config/Abkuerzungen.tex
Normal file
11
arbeit/config/Abkuerzungen.tex
Normal file
|
@ -0,0 +1,11 @@
|
||||||
|
|
||||||
|
|
||||||
|
\newacronym{TSDB}{TSDB}{Time Series Database}
|
||||||
|
\newacronym{DWD}{DWD}{Deutscher Wetterdienst}
|
||||||
|
|
||||||
|
%%%%%%%%%%%%%%%% Alte Abkürzungen
|
||||||
|
|
||||||
|
\newacronym{AES}{AES}{Advanced Encryption Standard}
|
||||||
|
\newacronym{AI}{AI}{Artificial Intelligence}
|
||||||
|
\newacronym{AOA}{AOA}{Angle of Arrival}
|
||||||
|
\newacronym{API}{API}{Application Programming Interface}
|
235
arbeit/config/Config.tex
Normal file
235
arbeit/config/Config.tex
Normal file
|
@ -0,0 +1,235 @@
|
||||||
|
%!TEX root = ../Thesis.tex
|
||||||
|
%% Basierend auf TeXnicCenter-Vorlage von Mark Müller
|
||||||
|
%% Willi Nüßer
|
||||||
|
%% Waldemar Penner
|
||||||
|
%% Ulrich Reus
|
||||||
|
%% Frank Plass
|
||||||
|
%% Oliver Tribeß
|
||||||
|
%% Daniel Hintze
|
||||||
|
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
|
||||||
|
|
||||||
|
% Wählen Sie die Optionen aus, indem Sie % vor der Option entfernen
|
||||||
|
% Dokumentation des KOMA-Script-Packets: scrguide
|
||||||
|
|
||||||
|
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
|
||||||
|
%% Optionen zum Layout des Artikels %%
|
||||||
|
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
|
||||||
|
\documentclass[%
|
||||||
|
paper=A4, % alle weiteren Papierformat einstellbar
|
||||||
|
fontsize=12pt, % Schriftgröße (12pt, 11pt (Standard))
|
||||||
|
BCOR=12mm, % Bindekorrektur, bspw. 1 cm
|
||||||
|
DIV=14, % breiter Satzspiegel
|
||||||
|
parskip=half*, % Absatzformatierung s. scrguide 3.1
|
||||||
|
headsepline, % Trennline zum Seitenkopf
|
||||||
|
%footsepline, % Trennline zum Seitenfuß
|
||||||
|
%normalheadings, % Überschriften etwas kleiner (smallheadings)
|
||||||
|
listof=totoc, % Tabellen & Abbildungsverzeichnis ins Inhaltsverzeichnis
|
||||||
|
%bibtotoc, % Literaturverzeichnis im Inhalt
|
||||||
|
%draft % Überlangen Zeilen in Ausgabe gekennzeichnet
|
||||||
|
footinclude=false,% Fußzeile in die Satzspiegelberechnung einbeziehen
|
||||||
|
headinclude=true, % Kopfzeile in die Satzspiegelberechnung einbeziehen
|
||||||
|
final % draft beschleunigt die Kompilierung
|
||||||
|
]
|
||||||
|
{scrartcl}
|
||||||
|
|
||||||
|
%\setuptoc{toc}{totoc} % Inhaltsverzeichnis ins Inhaltsverzeichnis
|
||||||
|
|
||||||
|
% Neue Deutsche Rechtschreibung und Deutsche Standardtexte
|
||||||
|
\usepackage[ngerman]{babel}
|
||||||
|
|
||||||
|
% Umlaute können verwendet werden
|
||||||
|
\usepackage[utf8]{inputenc}
|
||||||
|
|
||||||
|
% Echte Umlaute
|
||||||
|
\usepackage[T1]{fontenc}
|
||||||
|
|
||||||
|
% Latin Modern Font, Type1-Schriftart für nicht-englische Texte
|
||||||
|
\usepackage{lmodern}
|
||||||
|
|
||||||
|
% 1/2-zeiliger Zeilenabstand
|
||||||
|
\usepackage[onehalfspacing]{setspace}
|
||||||
|
|
||||||
|
% Für die Defenition eigener Kopf- und Fußzeilen
|
||||||
|
\usepackage{fancyhdr}
|
||||||
|
|
||||||
|
% Für die Verwendung von Grafiken
|
||||||
|
\usepackage[pdftex]{graphicx}
|
||||||
|
|
||||||
|
% Bessere Tabellen
|
||||||
|
\usepackage{tabularx}
|
||||||
|
|
||||||
|
% Für die Befehle \toprule, \midrule und \bottomrule, z.B. in Tabellen
|
||||||
|
\usepackage{booktabs}
|
||||||
|
|
||||||
|
% Erlaubt die Benutzung von Farben
|
||||||
|
\usepackage{color}
|
||||||
|
|
||||||
|
% Verbessertes URL-Handling mit \url{http://...}
|
||||||
|
\usepackage{url}
|
||||||
|
|
||||||
|
% Listen ohne Abstände \begin{compactlist}...\end{compactlist}
|
||||||
|
\usepackage{paralist}
|
||||||
|
|
||||||
|
% Ausgabe der aktuellen Uhrzeit für die Draft-Versionen
|
||||||
|
\usepackage{datetime}
|
||||||
|
|
||||||
|
% Deutsche Anführungszeichen
|
||||||
|
\usepackage[babel,german=quotes]{csquotes}
|
||||||
|
|
||||||
|
% Konfiguration der Abbildungs- und Tabellenbezeichnungen
|
||||||
|
\usepackage[format=hang, font={footnotesize, sf}, labelfont=bf, justification=raggedright,singlelinecheck=false]{caption}
|
||||||
|
|
||||||
|
% Verbessert die Lesbarkeit durch Mikrotypografie
|
||||||
|
\usepackage[activate={true,nocompatibility},final,tracking=true,kerning=true,spacing=true,factor=1100,stretch=10,shrink=10]{microtype}
|
||||||
|
|
||||||
|
% Zitate und Quellenverzeichnis
|
||||||
|
\usepackage[
|
||||||
|
bibstyle=authoryear,
|
||||||
|
citestyle=authoryear-fhdw,
|
||||||
|
giveninits=false, % false = Vornamen werden ausgeschrieben
|
||||||
|
natbib=true,
|
||||||
|
urldate=long, % "besucht am" - Datum
|
||||||
|
%url=false,
|
||||||
|
date=long,
|
||||||
|
dashed=false,
|
||||||
|
maxcitenames=3, % max. Anzahl Autorennamen in Zitaten
|
||||||
|
maxbibnames=99, % max. Anzahl Autorennamen im Quellenverzeichnis
|
||||||
|
%backend=bibtex % Ggf. für ältere Distributionen bibtex verwenden
|
||||||
|
backend=biber
|
||||||
|
]{biblatex}
|
||||||
|
|
||||||
|
% Bibliograpthy
|
||||||
|
\bibliography{library/library}
|
||||||
|
|
||||||
|
% Keine Einrückung bei einem neuen Absatz
|
||||||
|
\parindent 0pt
|
||||||
|
|
||||||
|
% Ebenentiefe der Nummerierung
|
||||||
|
\setcounter{secnumdepth}{3}
|
||||||
|
|
||||||
|
% Gliederungstiefe im Inhaltsverzeichnis
|
||||||
|
\setcounter{tocdepth}{3}
|
||||||
|
|
||||||
|
% Tabellen- und Abbildungsverzeichnis mit Bezeichnung:
|
||||||
|
\usepackage[titles]{tocloft}
|
||||||
|
|
||||||
|
% Sourcecode-Listings
|
||||||
|
\usepackage{listings}
|
||||||
|
|
||||||
|
% Bestimmte Warnungen unterdrücken
|
||||||
|
% siehe http://tex.stackexchange.com/questions/51867/koma-warning-about-toc
|
||||||
|
\usepackage{scrhack}
|
||||||
|
|
||||||
|
%% http://tex.stackexchange.com/questions/126839/how-to-add-a-colon-after-listing-label
|
||||||
|
\makeatletter
|
||||||
|
\begingroup\let\newcounter\@gobble\let\setcounter\@gobbletwo
|
||||||
|
\globaldefs\@ne \let\c@loldepth\@ne
|
||||||
|
\newlistof{listings}{lol}{\lstlistlistingname}
|
||||||
|
\endgroup
|
||||||
|
\let\l@lstlisting\l@listings
|
||||||
|
\makeatother
|
||||||
|
|
||||||
|
\renewcommand*\cftfigpresnum{Abbildung~}
|
||||||
|
\renewcommand*\cfttabpresnum{Tabelle~}
|
||||||
|
\renewcommand*\cftlistingspresnum{Listing~}
|
||||||
|
\renewcommand{\cftfigaftersnum}{:}
|
||||||
|
\renewcommand{\cfttabaftersnum}{:}
|
||||||
|
\renewcommand{\cftlistingsaftersnum}{:}
|
||||||
|
\settowidth{\cftfignumwidth}{\cftfigpresnum 99~\cftfigaftersnum}
|
||||||
|
\settowidth{\cfttabnumwidth}{\cfttabpresnum 99~\cftfigaftersnum}
|
||||||
|
\settowidth{\cftlistingsnumwidth}{\cftlistingspresnum 99~\cftfigaftersnum}
|
||||||
|
\setlength{\cfttabindent}{1.5em}
|
||||||
|
\setlength{\cftfigindent}{1.5em}
|
||||||
|
\setlength{\cftlistingsindent}{1.5em}
|
||||||
|
|
||||||
|
\renewcommand\lstlistlistingname{Listingverzeichnis}
|
||||||
|
|
||||||
|
% Style für Kopf- und Fußzeilenfelder
|
||||||
|
\pagestyle{fancy}
|
||||||
|
\fancyhf{}
|
||||||
|
\fancyhead[R]{\leftmark}
|
||||||
|
\fancyfoot[R]{\thepage}
|
||||||
|
\renewcommand{\sectionmark}[1]{\markboth{#1}{#1}}
|
||||||
|
\fancypagestyle{plain}{}
|
||||||
|
|
||||||
|
% Macro für Quellenangaben unter Abbildungen und Tabellen
|
||||||
|
\newcommand{\source}[1]{{\vspace{-1mm}\\\footnotesize\textsf{\textbf{Quelle:}} \textsf{#1}\par}}
|
||||||
|
|
||||||
|
% Anpassungen der Formatierung an Eclipse-Aussehen
|
||||||
|
% http://jevopi.blogspot.de/2010/03/nicely-formatted-listings-in-latex-with.html
|
||||||
|
%\definecolor{sh_comment}{rgb}{0.12, 0.38, 0.18 } %adjusted, in Eclipse: {0.25, 0.42, 0.30 } = #3F6A4D
|
||||||
|
%\definecolor{sh_keyword}{rgb}{0.37, 0.08, 0.25} % #5F1441
|
||||||
|
%\definecolor{sh_string}{rgb}{0.06, 0.10, 0.98} % #101AF9
|
||||||
|
% Für Druckausgabe sollte alles schwarz sein
|
||||||
|
\definecolor{sh_comment}{rgb}{0.0, 0.0, 0.0 }
|
||||||
|
\definecolor{sh_keyword}{rgb}{0.0, 0.0, 0.0 }
|
||||||
|
\definecolor{sh_string}{rgb}{0.0, 0.0, 0.0 }
|
||||||
|
|
||||||
|
\lstset{ %
|
||||||
|
language=Java,
|
||||||
|
basicstyle=\small\ttfamily,
|
||||||
|
fontadjust,
|
||||||
|
xrightmargin=1mm,
|
||||||
|
xleftmargin=5mm,
|
||||||
|
tabsize=2,
|
||||||
|
columns=flexible,
|
||||||
|
showstringspaces=false,
|
||||||
|
rulesepcolor=\color{black},
|
||||||
|
showspaces=false,showtabs=false,tabsize=2,
|
||||||
|
stringstyle=\color{sh_string},
|
||||||
|
keywordstyle=\color{sh_keyword}\bfseries,
|
||||||
|
commentstyle=\color{sh_comment}\itshape,
|
||||||
|
captionpos=t,
|
||||||
|
lineskip=-0.3em
|
||||||
|
}
|
||||||
|
|
||||||
|
%\makeatletter
|
||||||
|
%\def\l@lstlisting#1#2{\@dottedtocline{1}{0em}{1.5em}{\lstlistingname\space{#1}}{#2}}
|
||||||
|
%\makeatother
|
||||||
|
|
||||||
|
% Anhangsverzeichnis
|
||||||
|
\usepackage[nohints]{minitoc} %Anhangsverzeichnis
|
||||||
|
|
||||||
|
\makeatletter
|
||||||
|
\newcounter{fktnr}\setcounter{fktnr}{0}
|
||||||
|
\newcounter{subfktnr}[fktnr]\setcounter{subfktnr}{0}
|
||||||
|
|
||||||
|
\renewcommand\thesubfktnr{\arabic{fktnr}.\arabic{subfktnr}}
|
||||||
|
\newcounter{anhangcounter}
|
||||||
|
\newcommand{\blatt}{\stepcounter{anhangcounter}}
|
||||||
|
|
||||||
|
\newcommand{\anhang}[1]{\setcounter{anhangcounter}{0}\refstepcounter{fktnr}
|
||||||
|
\addcontentsline{fk}{subsection}{Anhang~\thefktnr: \hspace*{1em}#1}
|
||||||
|
\subsection*{{Anhang~\thefktnr \hspace*{1em} #1 \hspace*{-1em}}}
|
||||||
|
}
|
||||||
|
|
||||||
|
\newcommand{\subanhang}[1]{\setcounter{anhangcounter}{0}\refstepcounter{subfktnr}
|
||||||
|
\addcontentsline{fk}{subsubsection}{Anhang~\thesubfktnr: \hspace*{1em}#1}
|
||||||
|
\subsubsection*{{Anhang~\thesubfktnr \hspace*{1em} #1 \hspace*{-1em}}}
|
||||||
|
}
|
||||||
|
|
||||||
|
\newcommand{\anhangsverzeichnis}{\mtcaddsection{\subsection*{Anhangsverzeichnis \@mkboth{FKT}{FKT}}}\@starttoc{fk}\newpage}
|
||||||
|
|
||||||
|
% Links im PDF
|
||||||
|
\usepackage[pdfpagemode={UseOutlines}, plainpages=false,breaklinks=true,pdfpagelabels]{hyperref}
|
||||||
|
|
||||||
|
% Abkürzungsverzeichnis
|
||||||
|
\usepackage[acronym, % create list of acronyms
|
||||||
|
nonumberlist,
|
||||||
|
toc,
|
||||||
|
section,
|
||||||
|
nomain, % don't need main glossary for this example
|
||||||
|
hyperfirst=false,% don't hyperlink first use
|
||||||
|
%sanitize=none % switch off sanitization as description % Deprecated
|
||||||
|
]{glossaries}
|
||||||
|
\newglossarystyle{mylist}{%
|
||||||
|
\setglossarystyle{long}% base this style on the list style
|
||||||
|
\renewcommand*{\glossaryentryfield}[5]{%
|
||||||
|
\glsentryitem{##1}\textbf{##2} & ##3 \\}%
|
||||||
|
}
|
||||||
|
|
||||||
|
% Verbessert das Referenzieren von Kapiteln, Abbildungen etc.
|
||||||
|
\usepackage[german,capitalise]{cleveref}
|
||||||
|
|
||||||
|
\input{config/Abkuerzungen}
|
||||||
|
\makeglossaries\makeglossaries
|
BIN
arbeit/img/Mendeley-destop-screenshot.jpg
Normal file
BIN
arbeit/img/Mendeley-destop-screenshot.jpg
Normal file
Binary file not shown.
After Width: | Height: | Size: 230 KiB |
BIN
arbeit/img/fhdw.jpg
Normal file
BIN
arbeit/img/fhdw.jpg
Normal file
Binary file not shown.
After Width: | Height: | Size: 117 KiB |
BIN
arbeit/img/sublime.png
Normal file
BIN
arbeit/img/sublime.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 141 KiB |
39
arbeit/library/library.bib
Normal file
39
arbeit/library/library.bib
Normal file
|
@ -0,0 +1,39 @@
|
||||||
|
@article{Fuller2011,
|
||||||
|
author = {F\"{u}ller, Matthias and N\"{u}\ss er, Willi and Rustemeyer, Thomas},
|
||||||
|
journal = {Pervasive and Mobile Computing},
|
||||||
|
number = {3},
|
||||||
|
pages = {467--482},
|
||||||
|
publisher = {Elsevier B.V.},
|
||||||
|
title = {{Context driven process selection and integration of mobile and pervasive systems}},
|
||||||
|
volume = {8},
|
||||||
|
year = {2012},
|
||||||
|
keywords = {mono}
|
||||||
|
}
|
||||||
|
|
||||||
|
@book{Meier2010,
|
||||||
|
address = {Indianapolis, IN, USA},
|
||||||
|
author = {Meier, Reto},
|
||||||
|
pages = {576},
|
||||||
|
publisher = {Wiley},
|
||||||
|
title = {{Professional Android 2 Application Development}},
|
||||||
|
year = {2010},
|
||||||
|
keywords = {mono}
|
||||||
|
}
|
||||||
|
|
||||||
|
@misc{Maslennikov2011,
|
||||||
|
author = {Maslennikov, Denis},
|
||||||
|
title = {{ZeuS-in-the-Mobile – Facts and Theories}},
|
||||||
|
url = {http://www.securelist.com/en/analysis/204792194/ZeuS\_in\_the\_Mobile\_Facts\_and\_Theories},
|
||||||
|
urldate = {2012-12-20},
|
||||||
|
year = {2011},
|
||||||
|
keywords = {web}
|
||||||
|
}
|
||||||
|
|
||||||
|
@inproceedings{Hocking2011a,
|
||||||
|
author = {Hocking, Christopher G. and Furnell, Steven M. and Clarke, Nathan L. and Reynolds, Paul L.},
|
||||||
|
booktitle = {Proceedings of International Conference on Information Assurance and Security (IAS)},
|
||||||
|
pages = {304--310},
|
||||||
|
title = {{A Distributed and Cooperative User Authentication Framework}},
|
||||||
|
year = {2010},
|
||||||
|
keywords = {mag}
|
||||||
|
}
|
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
|
@ -53,7 +53,7 @@
|
||||||
"import io\n",
|
"import io\n",
|
||||||
"import pandas as pd\n",
|
"import pandas as pd\n",
|
||||||
"\n",
|
"\n",
|
||||||
"url = 'https://opendata.dwd.de/climate_environment/CDC/observations_germany/climate/10_minutes/air_temperature/historical/'\n",
|
"url = 'https://opendata.dwd.de/climate_environment/CDC/observations_germany/climate/10_minutes/air_temperature/now/'\n",
|
||||||
"download_folder = 'dwd-data/'\n",
|
"download_folder = 'dwd-data/'\n",
|
||||||
"\n",
|
"\n",
|
||||||
"from datetime import datetime\n",
|
"from datetime import datetime\n",
|
||||||
|
@ -132,7 +132,7 @@
|
||||||
"text": [
|
"text": [
|
||||||
"Download\n",
|
"Download\n",
|
||||||
"<Response [200]>\n",
|
"<Response [200]>\n",
|
||||||
"<a href=\"10minutenwerte_TU_00003_20000101_20091231_hist.zip\">10minutenwerte_TU_00003_20000101_20091231_hist.zip</a>\n"
|
"<a href=\"10minutenwerte_TU_00071_now.zip\">10minutenwerte_TU_00071_now.zip</a>\n"
|
||||||
]
|
]
|
||||||
}
|
}
|
||||||
],
|
],
|
||||||
|
@ -168,7 +168,7 @@
|
||||||
"name": "stdout",
|
"name": "stdout",
|
||||||
"output_type": "stream",
|
"output_type": "stream",
|
||||||
"text": [
|
"text": [
|
||||||
"Download 1619 von 1619\r"
|
"Download 480 von 480\r"
|
||||||
]
|
]
|
||||||
}
|
}
|
||||||
],
|
],
|
||||||
|
@ -222,7 +222,7 @@
|
||||||
"name": "stdout",
|
"name": "stdout",
|
||||||
"output_type": "stream",
|
"output_type": "stream",
|
||||||
"text": [
|
"text": [
|
||||||
"dwd-data/zehn_min_tu_Beschreibung_Stationen.txt\n",
|
"dwd-data/zehn_now_tu_Beschreibung_Stationen.txt\n",
|
||||||
"Großenkneten \n"
|
"Großenkneten \n"
|
||||||
]
|
]
|
||||||
}
|
}
|
||||||
|
@ -314,23 +314,15 @@
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"cell_type": "code",
|
"cell_type": "code",
|
||||||
"execution_count": 7,
|
"execution_count": 6,
|
||||||
"id": "27966795-ee46-4af1-b63c-0f728333ec79",
|
"id": "27966795-ee46-4af1-b63c-0f728333ec79",
|
||||||
"metadata": {},
|
"metadata": {},
|
||||||
"outputs": [
|
"outputs": [
|
||||||
{
|
{
|
||||||
"ename": "ValueError",
|
"name": "stdout",
|
||||||
"evalue": "unconverted data remains: .0",
|
"output_type": "stream",
|
||||||
"output_type": "error",
|
"text": [
|
||||||
"traceback": [
|
"Import durchgeführt \r"
|
||||||
"\u001b[0;31m---------------------------------------------------------------------------\u001b[0m",
|
|
||||||
"\u001b[0;31mValueError\u001b[0m Traceback (most recent call last)",
|
|
||||||
"Input \u001b[0;32mIn [7]\u001b[0m, in \u001b[0;36m<cell line: 46>\u001b[0;34m()\u001b[0m\n\u001b[1;32m 49\u001b[0m \u001b[38;5;28mzip\u001b[39m\u001b[38;5;241m=\u001b[39mzipfile\u001b[38;5;241m.\u001b[39mZipFile(file_path)\n\u001b[1;32m 50\u001b[0m f\u001b[38;5;241m=\u001b[39m\u001b[38;5;28mzip\u001b[39m\u001b[38;5;241m.\u001b[39mopen(\u001b[38;5;28mzip\u001b[39m\u001b[38;5;241m.\u001b[39mnamelist()[\u001b[38;5;241m0\u001b[39m])\n\u001b[0;32m---> 51\u001b[0m \u001b[43mread_dwd_file\u001b[49m\u001b[43m(\u001b[49m\u001b[43mf\u001b[49m\u001b[43m)\u001b[49m\n\u001b[1;32m 52\u001b[0m \u001b[38;5;66;03m#print(contents)\u001b[39;00m\n\u001b[1;32m 54\u001b[0m \u001b[38;5;28mprint\u001b[39m(\u001b[38;5;124m\"\u001b[39m\u001b[38;5;124m \u001b[39m\u001b[38;5;124m\"\u001b[39m, end\u001b[38;5;241m=\u001b[39m\u001b[38;5;124m'\u001b[39m\u001b[38;5;130;01m\\r\u001b[39;00m\u001b[38;5;124m'\u001b[39m)\n",
|
|
||||||
"Input \u001b[0;32mIn [7]\u001b[0m, in \u001b[0;36mread_dwd_file\u001b[0;34m(file)\u001b[0m\n\u001b[1;32m 40\u001b[0m df \u001b[38;5;241m=\u001b[39m pd\u001b[38;5;241m.\u001b[39mread_csv(file,sep\u001b[38;5;241m=\u001b[39m\u001b[38;5;124m'\u001b[39m\u001b[38;5;124m;\u001b[39m\u001b[38;5;124m'\u001b[39m)\n\u001b[1;32m 41\u001b[0m \u001b[38;5;66;03m#print(df, end='\\r')\u001b[39;00m\n\u001b[1;32m 42\u001b[0m \u001b[38;5;66;03m#print(df.iat[0,1])\u001b[39;00m\n\u001b[0;32m---> 43\u001b[0m \u001b[43mimport_data\u001b[49m\u001b[43m(\u001b[49m\u001b[43mdf\u001b[49m\u001b[43m)\u001b[49m\n",
|
|
||||||
"Input \u001b[0;32mIn [7]\u001b[0m, in \u001b[0;36mimport_data\u001b[0;34m(df)\u001b[0m\n\u001b[1;32m 6\u001b[0m error \u001b[38;5;241m=\u001b[39m \u001b[38;5;241m0\u001b[39m\n\u001b[1;32m 8\u001b[0m \u001b[38;5;28;01mfor\u001b[39;00m index, row \u001b[38;5;129;01min\u001b[39;00m df\u001b[38;5;241m.\u001b[39miterrows():\n\u001b[0;32m---> 10\u001b[0m measurement_time \u001b[38;5;241m=\u001b[39m \u001b[43mdatetime\u001b[49m\u001b[38;5;241;43m.\u001b[39;49m\u001b[43mstrptime\u001b[49m\u001b[43m(\u001b[49m\u001b[38;5;28;43mstr\u001b[39;49m\u001b[43m(\u001b[49m\u001b[43mrow\u001b[49m\u001b[43m[\u001b[49m\u001b[38;5;241;43m1\u001b[39;49m\u001b[43m]\u001b[49m\u001b[43m)\u001b[49m\u001b[43m,\u001b[49m\u001b[38;5;124;43m\"\u001b[39;49m\u001b[38;5;124;43m%\u001b[39;49m\u001b[38;5;124;43mY\u001b[39;49m\u001b[38;5;124;43m%\u001b[39;49m\u001b[38;5;124;43mm\u001b[39;49m\u001b[38;5;132;43;01m%d\u001b[39;49;00m\u001b[38;5;124;43m%\u001b[39;49m\u001b[38;5;124;43mH\u001b[39;49m\u001b[38;5;124;43m%\u001b[39;49m\u001b[38;5;124;43mM\u001b[39;49m\u001b[38;5;124;43m\"\u001b[39;49m\u001b[43m)\u001b[49m\n\u001b[1;32m 12\u001b[0m \u001b[38;5;66;03m#station = stations[str(row[0])].name\u001b[39;00m\n\u001b[1;32m 14\u001b[0m \u001b[38;5;28;01mtry\u001b[39;00m:\n",
|
|
||||||
"File \u001b[0;32m/opt/conda/lib/python3.9/_strptime.py:568\u001b[0m, in \u001b[0;36m_strptime_datetime\u001b[0;34m(cls, data_string, format)\u001b[0m\n\u001b[1;32m 565\u001b[0m \u001b[38;5;28;01mdef\u001b[39;00m \u001b[38;5;21m_strptime_datetime\u001b[39m(\u001b[38;5;28mcls\u001b[39m, data_string, \u001b[38;5;28mformat\u001b[39m\u001b[38;5;241m=\u001b[39m\u001b[38;5;124m\"\u001b[39m\u001b[38;5;132;01m%a\u001b[39;00m\u001b[38;5;124m \u001b[39m\u001b[38;5;124m%\u001b[39m\u001b[38;5;124mb \u001b[39m\u001b[38;5;132;01m%d\u001b[39;00m\u001b[38;5;124m \u001b[39m\u001b[38;5;124m%\u001b[39m\u001b[38;5;124mH:\u001b[39m\u001b[38;5;124m%\u001b[39m\u001b[38;5;124mM:\u001b[39m\u001b[38;5;124m%\u001b[39m\u001b[38;5;124mS \u001b[39m\u001b[38;5;124m%\u001b[39m\u001b[38;5;124mY\u001b[39m\u001b[38;5;124m\"\u001b[39m):\n\u001b[1;32m 566\u001b[0m \u001b[38;5;124;03m\"\"\"Return a class cls instance based on the input string and the\u001b[39;00m\n\u001b[1;32m 567\u001b[0m \u001b[38;5;124;03m format string.\"\"\"\u001b[39;00m\n\u001b[0;32m--> 568\u001b[0m tt, fraction, gmtoff_fraction \u001b[38;5;241m=\u001b[39m \u001b[43m_strptime\u001b[49m\u001b[43m(\u001b[49m\u001b[43mdata_string\u001b[49m\u001b[43m,\u001b[49m\u001b[43m \u001b[49m\u001b[38;5;28;43mformat\u001b[39;49m\u001b[43m)\u001b[49m\n\u001b[1;32m 569\u001b[0m tzname, gmtoff \u001b[38;5;241m=\u001b[39m tt[\u001b[38;5;241m-\u001b[39m\u001b[38;5;241m2\u001b[39m:]\n\u001b[1;32m 570\u001b[0m args \u001b[38;5;241m=\u001b[39m tt[:\u001b[38;5;241m6\u001b[39m] \u001b[38;5;241m+\u001b[39m (fraction,)\n",
|
|
||||||
"File \u001b[0;32m/opt/conda/lib/python3.9/_strptime.py:352\u001b[0m, in \u001b[0;36m_strptime\u001b[0;34m(data_string, format)\u001b[0m\n\u001b[1;32m 349\u001b[0m \u001b[38;5;28;01mraise\u001b[39;00m \u001b[38;5;167;01mValueError\u001b[39;00m(\u001b[38;5;124m\"\u001b[39m\u001b[38;5;124mtime data \u001b[39m\u001b[38;5;132;01m%r\u001b[39;00m\u001b[38;5;124m does not match format \u001b[39m\u001b[38;5;132;01m%r\u001b[39;00m\u001b[38;5;124m\"\u001b[39m \u001b[38;5;241m%\u001b[39m\n\u001b[1;32m 350\u001b[0m (data_string, \u001b[38;5;28mformat\u001b[39m))\n\u001b[1;32m 351\u001b[0m \u001b[38;5;28;01mif\u001b[39;00m \u001b[38;5;28mlen\u001b[39m(data_string) \u001b[38;5;241m!=\u001b[39m found\u001b[38;5;241m.\u001b[39mend():\n\u001b[0;32m--> 352\u001b[0m \u001b[38;5;28;01mraise\u001b[39;00m \u001b[38;5;167;01mValueError\u001b[39;00m(\u001b[38;5;124m\"\u001b[39m\u001b[38;5;124munconverted data remains: \u001b[39m\u001b[38;5;132;01m%s\u001b[39;00m\u001b[38;5;124m\"\u001b[39m \u001b[38;5;241m%\u001b[39m\n\u001b[1;32m 353\u001b[0m data_string[found\u001b[38;5;241m.\u001b[39mend():])\n\u001b[1;32m 355\u001b[0m iso_year \u001b[38;5;241m=\u001b[39m year \u001b[38;5;241m=\u001b[39m \u001b[38;5;28;01mNone\u001b[39;00m\n\u001b[1;32m 356\u001b[0m month \u001b[38;5;241m=\u001b[39m day \u001b[38;5;241m=\u001b[39m \u001b[38;5;241m1\u001b[39m\n",
|
|
||||||
"\u001b[0;31mValueError\u001b[0m: unconverted data remains: .0"
|
|
||||||
]
|
]
|
||||||
}
|
}
|
||||||
],
|
],
|
||||||
|
@ -344,12 +336,13 @@
|
||||||
" \n",
|
" \n",
|
||||||
" for index, row in df.iterrows():\n",
|
" for index, row in df.iterrows():\n",
|
||||||
" \n",
|
" \n",
|
||||||
" measurement_time = datetime.strptime(str(row[1]),\"%Y%m%d%H%M\")\n",
|
" measurement_time = datetime.strptime(str(int(row[1])),\"%Y%m%d%H%M\")\n",
|
||||||
"\n",
|
"\n",
|
||||||
" #station = stations[str(row[0])].name\n",
|
" #station = stations[str(row[0])].name\n",
|
||||||
" \n",
|
" \n",
|
||||||
" try:\n",
|
" try:\n",
|
||||||
" station = stations[str(row[0])].name\n",
|
" station = stations[str(row[0])].name\n",
|
||||||
|
" #print(station)\n",
|
||||||
" except:\n",
|
" except:\n",
|
||||||
" print(\"Station unknow\", end='\\r')\n",
|
" print(\"Station unknow\", end='\\r')\n",
|
||||||
" else:\n",
|
" else:\n",
|
||||||
|
@ -391,14 +384,6 @@
|
||||||
"print(\" \", end='\\r')\n",
|
"print(\" \", end='\\r')\n",
|
||||||
"print(\"Import durchgeführt\", end='\\r')"
|
"print(\"Import durchgeführt\", end='\\r')"
|
||||||
]
|
]
|
||||||
},
|
|
||||||
{
|
|
||||||
"cell_type": "code",
|
|
||||||
"execution_count": null,
|
|
||||||
"id": "dd710963-8d0a-487e-8d08-dfb45c1fee4d",
|
|
||||||
"metadata": {},
|
|
||||||
"outputs": [],
|
|
||||||
"source": []
|
|
||||||
}
|
}
|
||||||
],
|
],
|
||||||
"metadata": {
|
"metadata": {
|
||||||
|
|
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
|
@ -13,18 +13,6 @@ services:
|
||||||
RESTARTABLE: "yes"
|
RESTARTABLE: "yes"
|
||||||
depends_on:
|
depends_on:
|
||||||
- mariadb
|
- mariadb
|
||||||
|
|
||||||
mariadb:
|
|
||||||
image: mariadb
|
|
||||||
ports:
|
|
||||||
- "3306:3306"
|
|
||||||
volumes:
|
|
||||||
- ./data/mariadb:/var/lib/mysql
|
|
||||||
environment:
|
|
||||||
MYSQL_ROOT_PASSWORD: fhdw
|
|
||||||
MYSQL_USER: adminer
|
|
||||||
MYSQL_PASSWORD: fhdw
|
|
||||||
MYSQL_DATABASE: adminer
|
|
||||||
|
|
||||||
influxdb:
|
influxdb:
|
||||||
image: influxdb
|
image: influxdb
|
||||||
|
@ -38,17 +26,4 @@ services:
|
||||||
DOCKER_INFLUXDB_INIT_BUCKET: "test-bucked"
|
DOCKER_INFLUXDB_INIT_BUCKET: "test-bucked"
|
||||||
volumes:
|
volumes:
|
||||||
- ./data/influxdb/data:/var/lib/influxdb2
|
- ./data/influxdb/data:/var/lib/influxdb2
|
||||||
- ./data/influxdb/config:/etc/influxdb2
|
- ./data/influxdb/config:/etc/influxdb2
|
||||||
|
|
||||||
adminer:
|
|
||||||
image: adminer:latest
|
|
||||||
depends_on:
|
|
||||||
- mariadb
|
|
||||||
environment:
|
|
||||||
ADMINER_DEFAULT_DB_DRIVER: mysql
|
|
||||||
ADMINER_DEFAULT_DB_HOST: mariadb
|
|
||||||
ADMINER_DEFAULT_DB_NAME: adminer
|
|
||||||
ADMINER_DESIGN: nette
|
|
||||||
ADMINER_PLUGINS: tables-filter tinymce
|
|
||||||
ports:
|
|
||||||
- 9000:8080
|
|
23
export.sql
23
export.sql
|
@ -1,23 +0,0 @@
|
||||||
-- Adminer 4.8.1 MySQL 5.5.5-10.7.3-MariaDB-1:10.7.3+maria~focal dump
|
|
||||||
|
|
||||||
SET NAMES utf8;
|
|
||||||
SET time_zone = '+00:00';
|
|
||||||
SET foreign_key_checks = 0;
|
|
||||||
SET sql_mode = 'NO_AUTO_VALUE_ON_ZERO';
|
|
||||||
|
|
||||||
SET NAMES utf8mb4;
|
|
||||||
|
|
||||||
DROP TABLE IF EXISTS `test`;
|
|
||||||
CREATE TABLE `test` (
|
|
||||||
`id` int(11) NOT NULL AUTO_INCREMENT,
|
|
||||||
`text` varchar(100) NOT NULL,
|
|
||||||
`last_change` timestamp NOT NULL DEFAULT '0000-00-00 00:00:00' ON UPDATE current_timestamp(),
|
|
||||||
`json` longtext CHARACTER SET utf8mb4 COLLATE utf8mb4_bin NOT NULL CHECK (json_valid(`json`)),
|
|
||||||
PRIMARY KEY (`id`)
|
|
||||||
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4;
|
|
||||||
|
|
||||||
INSERT INTO `test` (`id`, `text`, `last_change`, `json`) VALUES
|
|
||||||
(1, 'leer', '2022-04-20 06:37:46', '{}'),
|
|
||||||
(2, 'eins', '2022-04-20 06:39:33', '{\"eins\": 1}');
|
|
||||||
|
|
||||||
-- 2022-04-20 06:39:49
|
|
Reference in a new issue