Ihre Browserversion ist veraltet. Wir empfehlen, Ihren Browser auf die neueste Version zu aktualisieren.
Wetteranalyse

Taurus Wetteranalyse-Tool

 Quellcode (c) Luca Franziskowski 2019

 [Download .bat]

 


 

@echo off & setlocal EnableDelayedExpansion 

rem ********************************************************************
rem Copyright: Luca Franziskowski, 2018. All Rights reserved!
rem You are not allowed to copy this code, or to edit!
rem ********************************************************************


rem Variablen definieren: *********
set monat=%date:~3,2%
set version=0.0.2
set year=%date:~6%
set close=1
set appname=taurus
set edition=Commandline
set unlocked=0
set lizenz=null
set hide=1

title %appname% Mathematic-User-Tool
cd %appdata%
if not exist %appname% mkdir %appname%
cd %appname%
set lastlogin=null

if exist last.txt set/p lastlogin=<last.txt
if not exist last.txt set lastlog=none
if exist last.txt set/p lastlog=<last.txt
if not exist rget.key goto skiplizenz
if exist rget.key set/p lizenz=<rget.key

rem lizenz auf gueltigkeit ueberpruefen: **********
if %lizenz%==Em2eA-QxIm6-L3gG3 set unlocked=1
if %lizenz%==nB3xa-U4cH0-2cWlV set unlocked=1
if %lizenz%==Zc8c9-1jHeQ-M56xS set unlocked=1
if %unlocked%==0 echo **** You must activate %appname% to use the most features! ****
:skiplizenz
echo.
echo    %appname% %version% :: Activated: %unlocked%
echo  * User:  %username%, Last Login: %lastlogin% *
echo.


rem abfrage von mitgelieferten kommandos **************************************************************

IF [%1]==[] goto weiterende rem übergabeparameter leer? 
if %1==-t goto a
if %1==-temp goto a rem Temperatur kalkulation

if %1==-c0 set close=0
if %1==-c1 set close=1

if %1==-write goto write rem Temperaturen festhalten
if %1==-gwrite goto writegui

if %1==-trends goto trends rem Temperatur Trends erkennen

if %1==-log goto log rem log datei anzeigen 

if %1==-visit start http://batchsoftware.wix.com/taurus rem website besuchen
if %1==-visit goto ende

if %1==-export goto export rem Datenbank exportieren
if %1==-import goto import

if %1==-help goto help 
if %1==-info goto info
if %1==-login echo.
if %1==-login echo Your last Weather-Input: %lastlogin%
if %1==-login goto ende

if %1==-del goto delete rem Loeschen aller Daten 

if %1==-w set w=%2 %3
if %1==-w echo Variable was set. Please use "-write" to save changes.

if %1==-unlock goto unlocker rem Vollversion unlock

if %1==-min goto min
if %1==-max goto max

if %1==-calc goto calc

rem Farbthemen:
if %1==-theme1 color 8f
if %1==-theme1 echo Theme applied.!
if %1==-theme1 goto ende
if %1==-theme2 color b0
if %1==-theme2 echo Theme applied.!
if %1==-theme2 goto ende
if %1==-theme3 color f0
if %1==-theme3 echo Theme applied.!
if %1==-theme3 goto ende
if %1==-theme0 color 0f
if %1==-theme0 echo Theme applied.!
if %1==-theme0 goto ende

if %1==-path echo %appdata%/taurus/%year%/database%monat%.db | clip
if %1==-path echo Path copied to pasteboard.
if %1==-path goto ende

if %1==-install goto install

IF [%2]==[] goto weiterende
if %2==+ goto plus
if %2==- goto minus
if %2==/ goto geteilt
if %2==* goto mal
if %2==$ goto dreisatz rem not supported!
:weiterende
echo Command not found.
goto ende

rem *********************************************************************************************************

:install
echo Installing...
copy %appname%.exe C:\Users\%username%
cd/d C:\Users\%username%
if not exist %appname%.exe goto error
echo Installed. You can now access %appname% easily.
goto ende

:import
if %unlocked%==0 echo Activate %appname% to unlock this feature!
if %unlocked%==0 goto ende

cls
echo folder=Folderpath: 
if not exist %folder% goto ende
echo Beginning to import database......
xcopy %folder% %appdata%\%appname% /e /s /y
echo Import completed.
timeout/t 5 >nul
goto ende

:export

if %unlocked%==0 echo Activate %appname% to unlock this feature!
if %unlocked%==0 goto ende

cls
echo Press a key to export all files to the desktop.
pause >nul
cls
echo Exporting........
cd/d C:\Users\%username%\Desktop
mkdir Taurus_Export_%Date%
xcopy %appdata%\%appname% C:\Users\%username%\Desktop\Taurus_Export_%Date% /e /s /y
echo Export was successfull.
timeout/t 5 >nul
goto ende


rem Kalkulations menue:

:calc
echo %appdata% Calc.
set/p dateipfad=Your File-path: 
if not exist %dateipfad% goto ende
echo What do you want?
echo 1. Addition
echo 2. Subtract
echo 3. Average
echo 4. Find text
set/p inp=:::
echo.
if %inp%==1 goto inp1
if %inp%==2 goto inp2
if %inp%==3 goto inp3
if %inp%==4 goto inp4
goto ende

:inp1
echo %appname% is now searching and making some stuff...
set/a zahl=0
for /f %%i in (%dateipfad%) do (
set/a zahl+=%%i
 )
echo Your result: %zahl%
pause
goto ende

:inp2
echo %appname% is now searching and making some stuff...
set/a zahl=0
for /f %%i in (%dateipfad%) do (
set/a zahl-=%%i
)
echo Your result: %a%
pause
goto ende

:inp3
echo %appname% is now searching and making some stuff...
set a=0
set zaehler=0
for /f %%i in (%dateipfad%) do (
set/a a+=%%i
set/a zaehler+=1
)
set/a a=%a%/%zaehler%
echo Your result: %a%
pause
goto ende

:inp4
cd %appdata%/taurus
if not exist cache mkdir cache
cd %appdata%/taurus/cache
set zaehler=1
set line=0
set findthis=null
echo This search is key-sensitive!
set/p findthis=Thistofind:::
echo %appname% is now searching...
find /n "%findthis%" %dateipfad% >found.txt
type found.txt

echo.
echo File was written with your results.
echo %appdata%/taurus/cache |clip
echo Filepath copied to pasteboard.
echo.
goto ende

rem Ende calcuationsprogramm


:max
cd %appdata%\taurus
echo.
echo Temperature highscore:
if not exist min.txt echo Can not find file. (min.txt)
if not exist max.txt echo Can not find file. (max.txt)
if not exist max.txt goto ende
echo.
type max.txt
echo.
goto ende

:min 
cd %appdata%\taurus
echo.
echo Temperature minimum:
if not exist min.txt echo Can not find file. (min.txt)
if not exist max.txt echo Can not find file. (max.txt)
if not exist min.txt goto ende
echo.
type min.txt
echo.
goto ende

rem ausgelassen
:dreisatz
set/a erg=%1/%3
set/a erg=%erg%*%3
set/a erg2=%1-%erg%
echo.
echo -Calculator-
echo Your discount:%erg%
echo You must pay: %erg2%
goto ende


rem Simple rechnungen *********************************************
:minus
set/a erg=%1-%3
echo.
echo -Calculator-
echo Your result is: %erg%
goto ende

:mal
set/a erg=%1*%3
echo.
echo -Calculator-
echo Your result is: %erg%
goto ende

:geteilt
set/a erg=%1/%3
echo.
echo -Calculator-
echo Your result is: %erg%
goto ende

:plus
set/a erg=%1+%3
echo.
echo -Calculator-
echo Your result is: %erg%
goto ende

rem *****************************************************************



rem Lizenz-Tool:

:unlocker
cls
if %unlocked%==1 echo Your Version is already activated!
if %unlocked%==1 goto ende
cd %appdata%\%appname%
set lizenz=0
echo Unlocker for %appname%
echo Purchase a valid license on our website.
echo.
set/p lizenz=License: 
if %lizenz%==Zc8c9-1jHeQ-M56xS echo Zc8c9-1jHeQ-M56xS >rget.key
if %lizenz%==Zc8c9-1jHeQ-M56xS goto unlockedok
if %lizenz%==nB3xa-U4cH0-2cWlV echo nB3xa-U4cH0-2cWlV >rget.key
if %lizenz%==nB3xa-U4cH0-2cWlV goto unlockedok
if %lizenz%==Zc8c9-1jHeQ-M56xS echo Zc8c9-1jHeQ-M56xS >rget.key
if %lizenz%==Zc8c9-1jHeQ-M56xS goto unlockedok
echo.
echo Your license is not valid! Please try again.
pause
goto unlocker
:unlockedok
color a
echo ***************************************************
echo          %appname% is now unlocked!
echo             Thanks for purchasing!
echo You are now allowed to use all the features,
echo and can use the software for a PC in your company.
echo ***************************************************
echo.
goto ende

rem Informationen:

:info
echo.
echo %appname%
echo Version:          %version%
echo Edition:          %edition%
echo Temperature-Area: -20 Degree up to 40 Degree Celsius.
echo.
echo (c) Luca Franziskowski.
echo All Rights reserved!
echo Made in 2018.
if %unlocked%==1 echo Unlocked:Yes
if %unlocked%==0 echo Unlocked:No
goto ende

rem log datei anzeigen:

:log
cls
cd %appdata%/taurus
echo ***    Log-File     ***
if not exist log.txt echo Log-File not found!
if exist log.txt type log.txt
goto ende

rem alles loeschen:

:delete
cls
echo WARNING! ALL DATA WILL BE LOST!!!
echo If you want to continue, press a key
echo else, press ctr + c.
echo.
timeout/t 1 >nul
pause >nul
cls
echo Deleting Database and all Files...
cd %appdata%
rd /s /q taurus
echo Every File is now deleted!
goto ende

rem hilfe anzeigen:

:help
cls
echo Taurus
echo Mathematic-User-Tool
echo ***********************************************
echo TEMPERATURE CALCULATIONS
echo -t  :   supervise temperature
echo -write (temperature): write temperature in log
echo -log:    shows the log-File
ECHO BASIC MATHEMATICS
ECHO a * b:   multiply
echo a / b:   divide
echo a + b:   add
echo a - b:   substract
ECHO UNLOCK FEATURES
ECHO -unlock: Unlock all the features, and to have 
echo          the ability to use Taurus in your 
echo          company.
echo SETTINGS
ECHO -del:    Delete all informations and data!
echo -export: Export all informations and data!
echo .
echo INFORMATIONS
echo help: shows this help
echo info: more information
echo.
echo Get help to use this tool online at
echo batchsoftware.wix.com/taurus or type in
echo -visit. Thank you!
echo ***********************************************
goto ende

:writegui
echo. 
echo Taurus Writer - Guided
set ein=0
set wdatum=0
set temp=xp
set comment=-none-
set rain=0
set wmonat=%date:~3,2%
set wyear=%date:~6%
set weather=nothing to comment
echo.
echo Is this the Date of your log: %Date%?
echo 1 = Yes
echo 2 = No, i want to change the log-date!
set/p ein=:::
if %ein%==1 set wdatum=%Date%
if %ein%==2 set/p wdatum=Your new Date:
if %ein%==2 set wyear=%wdatum:~6%
if %ein%==2 set wmonat=%wdatum:~3,2%
:recover 
echo Now type in your Temperature Average of this day:
set/p temp=:::
if %temp%==xp goto recover
echo How was the weather at this day?
set/p weather=:::
echo Did it rain?
echo            0     = No
echo (amound of rain) = Yes
set/p rain=:::
echo Any other comment:
set/p comment=:::

echo Saving this log...
cd %appdata%/taurus
echo %date% >last.txt
cd %appdata%\taurus\%wyear%
echo %temp% >>database%wmonat%.db
echo %rain% %wdatum% >>rain%wmonat%.db
cd/d %appdata%\taurus
echo %temp% %wdatum%::%Time% %comment% Rain: %rain% Weather: %weather%>>log.txt

rem maximal- und minimalwerte abspeichern:
cd/d %appdata%\taurus
if not exist min.txt echo 99999 >>min.txt
if not exist max.txt echo -99999 >>max.txt
set/p min=<min.txt
set/p max=<max.txt
if %temp% LSS %min% echo %temp% >min.txt
if %temp% LSS %min% echo %wdatum% >>min.txt
if %temp% LSS %min% echo New Temp-Min was saved.
if %temp% GTR %max% echo %temp% >max.txt
if %temp% GTR %max% echo %wdatum% >>max.txt
if %temp% GTR %max% echo New Temp-Max was saved.
goto ende

rem ****************************************************************************************************
:write
IF [%2]==[] goto ende

rem Mögliche Temperatur Übergabe in var temperatur abspeichern:
if %2==-n goto rum
if %2==-h goto rum
if %2==-c goto rum
if %2==-w goto rum
set temperatur=%2
:rum

rem ueberpruefen ob ordner exestieren:

set monat=%date:~3,2%
cd %appdata%
if not exist taurus mkdir taurus
cd %appdata%/taurus
if not exist %year% mkdir %year%
cd %appdata%\taurus\%year%

rem vorab heutiges datum sichern:
cd %appdata%/taurus
echo %date% >last.txt

rem weg, um notizen in datei zu speichern:
if %2==-n echo %Date%::%Time% Notice: %3 %4 %5 %6 %7 %8 %9 >>log_Notice.txt
if %2==-n echo Notice has been saved!
if %2==-n goto ende


rem Daten nachtragen:
if not %2==-h goto write2

set bla=%4
set anderesjahr=%bla:~6%
set omonat=%bla:~3,2%
if not %year%==%anderesjahr% cd/d %appdata%\taurus\%anderesjahr%
cd %appdata%\taurus\%year%
echo %3 >>database%omonat%.db
goto juppies3

:write2
rem Normaler weg temperaturen zu sichern:
cd %appdata%\taurus\%year%
echo %2 >>database%monat%.db


IF [%3]==[] goto juppies2 
IF [%4]==[] goto juppies2

rem Erzeugt eine Notizdatenbank wenn erwuenscht:
if %3==-n echo %4 %5 %6 %7 %8 %9 %Date%::%Time% Temperature: %2 >>noticebase%monat%.db

rem Kommentare und Wetterdaten hinzufuegen:

cd/d %appdata%\taurus
if %3==-c echo %2 %Date%::%Time% %4 %5 %6 %7 %8 %9>>log.txt
if %3==-c goto juppies
if %3==-w echo %2 %Date%::%Time% Weather: %5 %6 %7 %8 %9>>log.txt
if %3==-w goto juppies2

IF [%6]==[] goto juppies2
if %6==-w echo                   Weather: %7 %8 %9>>log.txt

:juppies2
cd %appdata%/taurus

rem normaler weg:
IF [%3]==[] echo %2 %Date%::%Time% >>log.txt
IF [%3]==[] goto juppies

rem spezieller weg:
:juppies3
cd/d %appdata%\taurus
if %2==-h echo %3 %4::%5 >>log.txt
if %2==-h echo Log-File Date is now changed to %4::%5
:juppies

rem maximal- und minimalwerte abspeichern:
cd/d %appdata%\taurus
if not exist min.txt echo 99999 >>min.txt
if not exist max.txt echo -99999 >>max.txt
set/p min=<min.txt
set/p max=<max.txt
if %2 LSS %min% echo %2 >min.txt
if %2 LSS %min% echo %date% >>min.txt
if %2 LSS %min% echo New Temp-Min was saved.
if %2 LSS %min% set/a out=%min%-%temperatur%
if %2 LSS %min% echo Old Temperature: %min%. Decreased for %out% to %temperatur%.
if %2 GTR %max% echo %2 >max.txt
if %2 GTR %max% echo %date% >>max.txt
if %2 GTR %max% echo New Temp-Max was saved.
if %2 GTR %max% set/a out=%temperatur%-%max%
if %2 GTR %max% echo Old Temperature: %max%. Increased for %out% to %temperatur%.

rem beenden:

echo.
echo Written in Database. %Date%::%Time%
goto ende
rem *********************************************************************************************************


:a
rem IF [%2]==[] goto aa
set/a vmonat=%monat%-1
set path=%appdata%/taurus/%year%/database%monat%.db
set warning=nothing.
if not exist %path% set warning=Your database was changed to database%vmonat%.db
if not exist %path% set path=%appdata%/taurus/%year%/database%vmonat%.db
set aus=%2


:aa
:start
echo.
echo TaurusTemp. The Temperature Powertoolbox */.\*
echo.
echo Warnings: %warning%
echo.
if not exist %path% echo You have to enter a other file-path!
if exist %path% echo Press Enter to use default-path.

set/p path=Database-Path: 
echo.
echo                        Select a action:
echo ************************************************************************
echo * 1 = Daily graphic 2 = Monthly average 3 = Display average 4 = Trends *
echo * 5 = Show number in averages
echo ************************************************************************
set/p aus=:::
:ab
if %aus%==1 goto auswertungdaily
if %aus%==2 goto durchschnitt
if %aus%==3 goto auswertungimpirium
if %aus%==4 goto trends
if %aus%==5 set hide=0
if %aus%==5 goto aa
cls
goto a

:trends
cd %appdata%\taurus\%year%
set/a trend=0
if not exist averages.txt echo Error #01: Use first "monthly average"!
if not exist averages.txt goto ende
echo calculating averages from the past years...
rem ******************************** Initialisieren von einigen variablen ******************************************************************************
set ergebnis=200
set ergebnis2=200
set ergebnis3=200
set ergebnis4=200
set ergebnis5=200
set ergebnis6=200
set ergebnis7=200
set ergebnis8=200
set ergebnis9=200
set ergebnis10=200
rem ********************************* Errechnen des durchschnittswertes fuer jedes jahr bis 10 Jahre **************************************************
for /f %%i in (averages.txt) do (
set/a zahl+=%%i
set/a zaehler+=1
)
set/a ergebnis=%zahl%/%zaehler%
echo %ergebnis% >yearaverage.txt

set/a vyear=%year%-1
cd %appdata%/taurus

rem EXESTIERT JAHR 2?
if not exist %vyear% goto weiter
REM JAHR 2 ERRECHNEN:
cd %vyear%
for /f %%i in (averages.txt) do (
set/a zahl+=%%i
set/a zaehler+=1
)
set/a ergebnis2=%zahl%/%zaehler%
echo %ergebnis2% >yearaverage.txt

set/a vyear=%vyear%-1
cd %appdata%/taurus
REM EXESTIERT JAHR 3?
if not exist %vyear% goto weiter
REM JAHR 3 ERRECHNEN:
cd %vyear%
for /f %%i in (averages.txt) do (
set/a zahl+=%%i
set/a zaehler+=1
)
set/a ergebnis3=%zahl%/%zaehler%
echo %ergebnis3% >yearaverage.txt

set/a vyear=%vyear%-1
cd %appdata%/taurus
REM EXESTIERT JAHR 4?
if not exist %vyear% goto weiter
REM JAHR 4 ERRECHNEN:
cd %vyear%
for /f %%i in (averages.txt) do (
set/a zahl+=%%i
set/a zaehler+=1
)
set/a ergebnis4=%zahl%/%zaehler%
echo %ergebnis4% >yearaverage.txt

set/a vyear=%vyear%-1
cd %appdata%/taurus
REM EXESTIERT JAHR 5?
if not exist %vyear% goto weiter
REM JAHR 5 ERRECHNEN:
cd %vyear%
for /f %%i in (averages.txt) do (
set/a zahl+=%%i
set/a zaehler+=1
)
set/a ergebnis5=%zahl%/%zaehler%
echo %ergebnis5% >yearaverage.txt

set/a vyear=%vyear%-1
cd %appdata%/taurus
REM EXESTIERT JAHR 6?
if not exist %vyear% goto weiter
REM JAHR 6 ERRECHNEN:
cd %vyear%
for /f %%i in (averages.txt) do (
set/a zahl+=%%i
set/a zaehler+=1
)
set/a ergebnis6=%zahl%/%zaehler%
echo %ergebnis6% >yearaverage.txt

set/a vyear=%vyear%-1
cd %appdata%/taurus
REM EXESTIERT JAHR 7?
if not exist %vyear% goto weiter
REM JAHR 7 ERRECHNEN:

cd %vyear%
for /f %%i in (averages.txt) do (
set/a zahl+=%%i
set/a zaehler+=1
)
set/a ergebnis7=%zahl%/%zaehler%
echo %ergebnis7% >yearaverage.txt

set/a vyear=%vyear%-1
cd %appdata%/taurus
REM EXESTIERT JAHR 8?
if not exist %vyear% goto weiter
REM JAHR 8 ERRECHNEN:

cd %vyear%
for /f %%i in (averages.txt) do (
set/a zahl+=%%i
set/a zaehler+=1
)
set/a ergebnis8=%zahl%/%zaehler%
echo %ergebnis8% >yearaverage.txt

set/a vyear=%vyear%-1
cd %appdata%/taurus

REM EXESTIERT JAHR 9?
if not exist %vyear% goto weiter
REM JAHR 9 ERRECHNEN:

cd %vyear%
for /f %%i in (averages.txt) do (
set/a zahl+=%%i
set/a zaehler+=1
)
set/a ergebnis9=%zahl%/%zaehler%
echo %ergebnis9% >yearaverage.txt

set/a vyear=%vyear%-1
cd %appdata%/taurus

REM EXESTIERT JAHR 10?
if not exist %vyear% goto weiter
REM JAHR 10 ERRECHNEN:

cd %vyear%
for /f %%i in (averages.txt) do (
set/a zahl+=%%i
set/a zaehler+=1
)
set/a ergebnis10=%zahl%/%zaehler%
echo %ergebnis10% >yearaverage.txt

set/a vyear=%vyear%-1
cd %appdata%/taurus

:weiter
cls
set trend=0
set/a vyear=%year%-1
echo ****************************************************
echo            YEAR TO YEAR COMPARISON:

rem ************************************************ ERZEUGE ZEUG ****************************************************
if %ergebnis% LSS %ergebnis2% set/a ergo=%ergebnis2%-%ergebnis%
if %ergebnis% LSS %ergebnis2% echo Temperature increased to %ergo% in year %year% 
if %ergebnis% GTR %ergebnis2% set/a ergo=%ergebnis%-%ergebnis2%
if %ergebnis% GTR %ergebnis2% echo Temperature decreased to %ergo% in year %year% 
if %ergebnis% EQU %ergebnis2% echo Temperature stabilized in year %year% 
set/a vyear=%year%-1
if %ergebnis3%==200 goto ende
if %ergebnis2% LSS %ergebnis3% set/a ergo=%ergebnis3%-%ergebnis2%
if %ergebnis2% LSS %ergebnis3% echo Temperature increased to %ergo% in year %vyear%
if %ergebnis2% GTR %ergebnis3% set/a ergo=%ergebnis2%-%ergebnis3%
if %ergebnis2% GTR %ergebnis3% echo Temperature decreased to %ergo% in year %vyear% 
if %ergebnis2% EQU %ergebnis3% echo Temperature stabilized in year %year% 
set/a vyear=%vyear%-1
if %ergebnis4%==200 goto ende
if %ergebnis3% LSS %ergebnis4% set/a ergo=%ergebnis4%-%ergebnis3%
if %ergebnis3% LSS %ergebnis4% echo Temperature increased to %ergo% in year %vyear%
if %ergebnis3% GTR %ergebnis4% set/a ergo=%ergebnis3%-%ergebnis4%
if %ergebnis3% GTR %ergebnis4% echo Temperature decreased to %ergo% in year %vyear% 
if %ergebnis3% EQU %ergebnis4% echo Temperature stabilized in year %year% 
set/a vyear=%vyear%-1
if %ergebnis5%==200 goto ende
if %ergebnis4% LSS %ergebnis5% set/a ergo=%ergebnis5%-%ergebnis4%
if %ergebnis4% LSS %ergebnis5% echo Temperature increased to %ergo% in year %vyear%
if %ergebnis4% GTR %ergebnis5% set/a ergo=%ergebnis4%-%ergebnis5%
if %ergebnis4% GTR %ergebnis5% echo Temperature decreased to %ergo% in year %vyear% 
if %ergebnis4% EQU %ergebnis5% echo Temperature stabilized in year %year% 
set/a vyear=%vyear%-1
if %ergebnis6%==200 goto ende
if %ergebnis5% LSS %ergebnis6% set/a ergo=%ergebnis6%-%ergebnis5%
if %ergebnis5% LSS %ergebnis6% echo Temperature increased to %ergo% in year %vyear%
if %ergebnis5% GTR %ergebnis6% set/a ergo=%ergebnis5%-%ergebnis6%
if %ergebnis5% GTR %ergebnis6% echo Temperature decreased to %ergo% in year %vyear% 
if %ergebnis5% EQU %ergebnis6% echo Temperature stabilized in year %year% 
set/a vyear=%vyear%-1
if %ergebnis7%==200 goto ende
if %ergebnis6% LSS %ergebnis7% set/a ergo=%ergebnis7%-%ergebnis6%
if %ergebnis6% LSS %ergebnis7% echo Temperature increased to %ergo% in year %vyear%
if %ergebnis6% GTR %ergebnis7% set/a ergo=%ergebnis6%-%ergebnis7%
if %ergebnis6% GTR %ergebnis7% echo Temperature decreased to %ergo% in year %vyear% 
if %ergebnis6% EQU %ergebnis7% echo Temperature stabilized in year %year% 
set/a vyear=%vyear%-1
if %ergebnis8%==200 goto ende
if %ergebnis7% LSS %ergebnis8% set/a ergo=%ergebnis8%-%ergebnis7%
if %ergebnis7% LSS %ergebnis8% echo Temperature increased to %ergo% in year %vyear%
if %ergebnis7% GTR %ergebnis8% set/a ergo=%ergebnis7%-%ergebnis8%
if %ergebnis7% GTR %ergebnis8% echo Temperature decreased to %ergo% in year %vyear% 
if %ergebnis7% EQU %ergebnis8% echo Temperature stabilized in year %year% 
set/a vyear=%vyear%-1
if %ergebnis9%==200 goto ende
if %ergebnis8% LSS %ergebnis9% set/a ergo=%ergebnis9%-%ergebnis8%
if %ergebnis8% LSS %ergebnis9% echo Temperature increased to %ergo% in year %vyear%
if %ergebnis8% GTR %ergebnis9% set/a ergo=%ergebnis8%-%ergebnis9%
if %ergebnis8% GTR %ergebnis9% echo Temperature decreased to %ergo% in year %vyear% 
if %ergebnis8% EQU %ergebnis9% echo Temperature stabilized in year %year% 
set/a vyear=%vyear%-1
if %ergebnis10%==200 goto ende
if %ergebnis9% LSS %ergebnis10% set/a ergo=%ergebnis10%-%ergebnis9%
if %ergebnis9% LSS %ergebnis10% echo Temperature increased to %ergo% in year %vyear%
if %ergebnis9% GTR %ergebnis10% set/a ergo=%ergebnis9%-%ergebnis10%
if %ergebnis9% GTR %ergebnis10% echo Temperature decreased to %ergo% in year %vyear% 
if %ergebnis9% EQU %ergebnis10% echo Temperature stabilized in year %year% 
set/a vyear=%vyear%-1


goto ende


rem Ende dieser sektion






:durchschnitt
if %unlocked%==0 echo Activate this Version to use this feature!
if %unlocked%==0 goto ende

echo From which month is this Database?
echo Enter = This month. Other: Type for example: 05 for May
set info=%date:~3,2%
set/p info=:::
set monat=%date:~3,2%
echo *** Average ***
if not exist %path% goto ende
set/a zahl=0
set/a zaehler=0
rem lese datei aus und errechne den durchschnitt
for /f %%i in (%path%) do (
set/a zahl+=%%i
set/a zaehler+=1
)
set/a ergebnis=%zahl%/%zaehler%

echo *************************************
echo Month Average:     %ergebnis% Degree
echo Numbers:           %zaehler% Days
echo Addition:          %zahl% 
echo *************************************
cd %appdata%
if not exist taurus mkdir taurus
cd taurus
if not exist %year% mkdir %year%
cd %year%
rem Dateinamen aus %pfad% herausbrechen:
rem for /f "delims=" %%i in ('echo %pfad%') do set "info=%%~nxi" 
echo %ergebnis% %info% >>averages.txt
pause
goto ende

:auswertungimpirium
cd/d %appdata%/taurus/%year%
if not exist averages.txt goto ende
echo -------------------------------------------------------
set highest=0
set min=999999
set max=-999999
set lowest=9999
set zaehler=0
for /f %%i in (averages.txt) do (

if %%i lss !min! (
	set/a min=%%i
	)
if %%i gtr !max! (
	set/a max=%%i
	)
if %%i GTR 40 echo ***************************************** MAXED OUT %%i >>graph_d%Date%.txt
if %%i EQU 40 echo ****************************************  %%i >>graph_d%Date%.txt
if %%i EQU 39 echo ***************************************   %%i >>graph_d%Date%.txt
if %%i EQU 38 echo **************************************    %%i >>graph_d%Date%.txt
if %%i EQU 37 echo *************************************     %%i >>graph_d%Date%.txt
if %%i EQU 36 echo ************************************      %%i >>graph_d%Date%.txt
if %%i EQU 35 echo ***********************************       %%i >>graph_d%Date%.txt
if %%i EQU 34 echo **********************************        %%i >>graph_d%Date%.txt
if %%i EQU 33 echo *********************************         %%i >>graph_d%Date%.txt
if %%i EQU 32 echo ********************************          %%i >>graph_d%Date%.txt
if %%i EQU 31 echo *******************************           %%i >>graph_d%Date%.txt
if %%i EQU 30 echo ******************************            %%i >>graph_d%Date%.txt
if %%i EQU 29 echo *****************************             %%i >>graph_d%Date%.txt
if %%i EQU 28 echo ****************************              %%i >>graph_d%Date%.txt
if %%i EQU 27 echo ***************************               %%i >>graph_d%Date%.txt
if %%i EQU 26 echo **************************                %%i >>graph_d%Date%.txt
if %%i EQU 25 echo *************************                 %%i >>graph_d%Date%.txt
if %%i EQU 24 echo ************************                  %%i >>graph_d%Date%.txt
if %%i EQU 23 echo ***********************                   %%i >>graph_d%Date%.txt
if %%i EQU 22 echo **********************                    %%i >>graph_d%Date%.txt
if %%i EQU 21 echo *********************                     %%i >>graph_d%Date%.txt
if %%i EQU 20 echo ********************                      %%i >>graph_d%Date%.txt
if %%i EQU 19 echo *******************                       %%i >>graph_d%Date%.txt
if %%i EQU 18 echo ******************                        %%i >>graph_d%Date%.txt
if %%i EQU 17 echo *****************                         %%i >>graph_d%Date%.txt
if %%i EQU 16 echo ****************                          %%i >>graph_d%Date%.txt
if %%i EQU 15 echo ***************                           %%i >>graph_d%Date%.txt
if %%i EQU 14 echo **************                            %%i >>graph_d%Date%.txt
if %%i EQU 13 echo *************                             %%i >>graph_d%Date%.txt
if %%i EQU 12 echo ************                              %%i >>graph_d%Date%.txt
if %%i EQU 11 echo ***********                               %%i >>graph_d%Date%.txt
if %%i EQU 10 echo **********                                %%i >>graph_d%Date%.txt
if %%i EQU 9 echo *********                                  %%i >>graph_d%Date%.txt
if %%i EQU 8 echo ********                                   %%i >>graph_d%Date%.txt
if %%i EQU 7 echo *******                                    %%i >>graph_d%Date%.txt
if %%i EQU 6 echo ******                                     %%i >>graph_d%Date%.txt
if %%i EQU 5 echo *****                                      %%i >>graph_d%Date%.txt
if %%i EQU 4 echo ****                                       %%i >>graph_d%Date%.txt
if %%i EQU 3 echo ***                                        %%i >>graph_d%Date%.txt
if %%i EQU 2 echo **                                         %%i >>graph_d%Date%.txt
if %%i EQU 1 echo *                                          %%i >>graph_d%Date%.txt
if %%i EQU 0 echo .                                          %%i >>graph_d%Date%.txt
if %%i EQU -20 echo *******************#           -         %%i MAXED OUT! >>graph_d%Date%.txt
if %%i EQU -19 echo ******************#            -         %%i >>graph_d%Date%.txt
if %%i EQU -18 echo *****************#             -         %%i >>graph_d%Date%.txt
if %%i EQU -17 echo ****************#              -         %%i >>graph_d%Date%.txt
if %%i EQU -16 echo ***************#               -         %%i >>graph_d%Date%.txt
if %%i EQU -15 echo **************#                -         %%i >>graph_d%Date%.txt
if %%i EQU -14 echo *************#                 -         %%i >>graph_d%Date%.txt
if %%i EQU -13 echo ************#                  -         %%i >>graph_d%Date%.txt
if %%i EQU -12 echo ***********#                   -         %%i >>graph_d%Date%.txt
if %%i EQU -11 echo **********#                    -         %%i >>graph_d%Date%.txt
if %%i EQU -10 echo *********#                     -         %%i >>graph_d%Date%.txt
if %%i EQU -9 echo *********#                      -         %%i >>graph_d%Date%.txt
if %%i EQU -8 echo ********#                       -         %%i >>graph_d%Date%.txt
if %%i EQU -7 echo *******#                        -         %%i >>graph_d%Date%.txt
if %%i EQU -6 echo ******#                         -         %%i >>graph_d%Date%.txt
if %%i EQU -5 echo *****#                          -         %%i >>graph_d%Date%.txt
if %%i EQU -4 echo ****#                           -         %%i >>graph_d%Date%.txt
if %%i EQU -3 echo ***#                            -         %%i >>graph_d%Date%.txt
if %%i EQU -2 echo **#                             -         %%i >>graph_d%Date%.txt
if %%i EQU -1 echo *#                              -         %%i >>graph_d%Date%.txt
set/a zaehler+=1
)
ren graph_d%Date%.txt graph%Date%

type graph%Date%.txt
echo.
echo Highest Temperature: %max%
echo Lowest  Temperature: %min%
set/a diff=%max%-%min%
echo         Difference : %diff%
echo -------------------------------------------------------
echo The monthly average is now graphical displayed.
rem echo The Number on the right side is the Month-Number.
pause
goto ende


:auswertungdaily

if %unlocked%==0 echo You need to activate this version to use this feature! 
if %unlocked%==0 goto ende

cd %appdata%/taurus/%year%
if not exist %path% echo File not found #Error 01
if not exist %path% goto ende
cd %pfad%
echo Day for Day-View for database:
echo -------------------------------------------------------
set highest=0
set trends=0
set min=99999
set max=-99999
set halfer1=20
set halfer2=20
set gesamt=0
set zaehler=0
set zaehler2=0
set zaehlerlow=0
set zaehlerhigh=0
set lowest=9999
set letztetemp=92
if exist graph_d%Date%.txt echo File will now be overwritten.
if exist graph_d%Date%.txt del graph_d%Date%.txt

for /f %%i in (%path%) do (
set/a zaehler+=1
)
echo %zaehler%
set/a half=%zaehler%/2
echo %half%
pause
for /f %%i in (%path%) do (
if %%i GTR 40 echo ***************************************** MAXED OUT %%i >>graph_d%Date%.txt
if %%i EQU 40 echo ****************************************  %%i >>graph_d%Date%.txt
if %%i EQU 39 echo ***************************************   %%i >>graph_d%Date%.txt
if %%i EQU 38 echo **************************************    %%i >>graph_d%Date%.txt
if %%i EQU 37 echo *************************************     %%i >>graph_d%Date%.txt
if %%i EQU 36 echo ************************************      %%i >>graph_d%Date%.txt
if %%i EQU 35 echo ***********************************       %%i >>graph_d%Date%.txt
if %%i EQU 34 echo **********************************        %%i >>graph_d%Date%.txt
if %%i EQU 33 echo *********************************         %%i >>graph_d%Date%.txt
if %%i EQU 32 echo ********************************          %%i >>graph_d%Date%.txt
if %%i EQU 31 echo *******************************           %%i >>graph_d%Date%.txt
if %%i EQU 30 echo ******************************            %%i >>graph_d%Date%.txt
if %%i EQU 29 echo *****************************             %%i >>graph_d%Date%.txt
if %%i EQU 28 echo ****************************              %%i >>graph_d%Date%.txt
if %%i EQU 27 echo ***************************               %%i >>graph_d%Date%.txt
if %%i EQU 26 echo **************************                %%i >>graph_d%Date%.txt
if %%i EQU 25 echo *************************                 %%i >>graph_d%Date%.txt
if %%i EQU 24 echo ************************                  %%i >>graph_d%Date%.txt
if %%i EQU 23 echo ***********************                   %%i >>graph_d%Date%.txt
if %%i EQU 22 echo **********************                    %%i >>graph_d%Date%.txt
if %%i EQU 21 echo *********************                     %%i >>graph_d%Date%.txt
if %%i EQU 20 echo ********************                      %%i >>graph_d%Date%.txt
if %%i EQU 19 echo *******************                       %%i >>graph_d%Date%.txt
if %%i EQU 18 echo ******************                        %%i >>graph_d%Date%.txt
if %%i EQU 17 echo *****************                         %%i >>graph_d%Date%.txt
if %%i EQU 16 echo ****************                          %%i >>graph_d%Date%.txt
if %%i EQU 15 echo ***************                           %%i >>graph_d%Date%.txt
if %%i EQU 14 echo **************                            %%i >>graph_d%Date%.txt
if %%i EQU 13 echo *************                             %%i >>graph_d%Date%.txt
if %%i EQU 12 echo ************                              %%i >>graph_d%Date%.txt
if %%i EQU 11 echo ***********                               %%i >>graph_d%Date%.txt
if %%i EQU 10 echo **********                                %%i >>graph_d%Date%.txt
if %%i EQU 9 echo *********                                  %%i >>graph_d%Date%.txt
if %%i EQU 8 echo ********                                   %%i >>graph_d%Date%.txt
if %%i EQU 7 echo *******                                    %%i >>graph_d%Date%.txt
if %%i EQU 6 echo ******                                     %%i >>graph_d%Date%.txt
if %%i EQU 5 echo *****                                      %%i >>graph_d%Date%.txt
if %%i EQU 4 echo ****                                       %%i >>graph_d%Date%.txt
if %%i EQU 3 echo ***                                        %%i >>graph_d%Date%.txt
if %%i EQU 2 echo **                                         %%i >>graph_d%Date%.txt
if %%i EQU 1 echo *                                          %%i >>graph_d%Date%.txt
if %%i EQU 0 echo .                                          %%i >>graph_d%Date%.txt
if %%i EQU -20 echo *******************#           -         %%i MAXED OUT! >>graph_d%Date%.txt
if %%i EQU -19 echo ******************#            -         %%i >>graph_d%Date%.txt
if %%i EQU -18 echo *****************#             -         %%i >>graph_d%Date%.txt
if %%i EQU -17 echo ****************#              -         %%i >>graph_d%Date%.txt
if %%i EQU -16 echo ***************#               -         %%i >>graph_d%Date%.txt
if %%i EQU -15 echo **************#                -         %%i >>graph_d%Date%.txt
if %%i EQU -14 echo *************#                 -         %%i >>graph_d%Date%.txt
if %%i EQU -13 echo ************#                  -         %%i >>graph_d%Date%.txt
if %%i EQU -12 echo ***********#                   -         %%i >>graph_d%Date%.txt
if %%i EQU -11 echo **********#                    -         %%i >>graph_d%Date%.txt
if %%i EQU -10 echo *********#                     -         %%i >>graph_d%Date%.txt
if %%i EQU -9 echo *********#                      -         %%i >>graph_d%Date%.txt
if %%i EQU -8 echo ********#                       -         %%i >>graph_d%Date%.txt
if %%i EQU -7 echo *******#                        -         %%i >>graph_d%Date%.txt
if %%i EQU -6 echo ******#                         -         %%i >>graph_d%Date%.txt
if %%i EQU -5 echo *****#                          -         %%i >>graph_d%Date%.txt
if %%i EQU -4 echo ****#                           -         %%i >>graph_d%Date%.txt
if %%i EQU -3 echo ***#                            -         %%i >>graph_d%Date%.txt
if %%i EQU -2 echo **#                             -         %%i >>graph_d%Date%.txt
if %%i EQU -1 echo *#                              -         %%i >>graph_d%Date%.txt
set/a gesamt+=%%i




if %%i lss !letztetemp! (
	set vorletztetemp=%letztetemp%
	echo Beackpoint at %vorletztetemp% %letztetemp%
	)
	set/a letztetemp=%%i

if %%i lss !halfer1! (
	set/a zaehlerlow+=%%i
	)
if %%i gtr !halfer2! (
	set/a zaehlerhigh+=%%i
	)

if %%i gtr !max! (
	set/a max=%%i
	)

if %%i lss !min! (
	set/a min=%%i
	)
)


type graph_d%Date%.txt

rem einige weitere rechnungen:

set/a zaehlerhigh=%zaehlerhigh%/%half%
set/a zaehlerlow=%zaehlerlow%/%half%

if %zaehlerhigh% GTR %zaehlerlow% set trend=Temperature will increase! (higher)
if %zaehlerhigh% LSS %zaehlerlow% set trend=Temperature will decrease! (lower)

set/a diff=%max%-%min%
set/a average=%gesamt%/%zaehler%


echo -------------------------------------------------------
echo Lowest  Temperature: %min%
echo Highest Temperature: %max%
echo Difference:          %diff%
echo Trends:              %trend%
echo Average:             %average%
echo Days:                %zaehler%
echo Path: %appdata%/taurus/%year%/graph_d%Date%.txt 
echo Lowest  Temperature: %min% >>analysis%month%.txt
echo Highest Temperature: %max%  >>analysis%month%.txt
echo Difference:          %diff% >>analysis%month%.txt
echo Trends:              %trend% >>analysis%month%.txt
echo Average:             %average% >>analysis%month%.txt
echo Days:                %zaehler% >>analysis%month%.txt
echo Date:                %date% >>analysis%month%.txt
echo Time:                %time%  >>analysis%month%.txt
echo Database: %appdata%/taurus/%year%/graph_d%Date%.txt >>analysis%month%.txt 
echo Analysis saved as "analysis%month%.txt".
echo -------------------------------------------------------
echo Informations are now graphical displayed.

goto ende



for /f %%i in (averages.txt) do (
echo %%i


if %vergleicher% LSS %%i echo n
if %vergleicher% EQU %%i echo e
if %vergleicher% GTR %%i echo p

set vergleicher=%%i


)



rem ************ endsequenz ***********

:ende
echo.
echo Taurus 2018. (c) Luca Franziskowski. All Rights reserved!
echo.
echo.
title Command-Line

Neuigkeiten

 Erfahre die neuesten Nachrichten aus der IT-Welt über unseren Blog.

Blog besuchen

 Login für Freunde und Kollegen

Cookie-Regelung

Diese Website verwendet Cookies, zum Speichern von Informationen auf Ihrem Computer.

Stimmen Sie dem zu?