fintic-tracker/templates/index.html

66 lines
3.0 KiB
HTML

<!DOCTYPE html>
<head>
<link rel="stylesheet" href='/static/style.css' />
<title>{{ title }}</title>
<style>p {color:gray}</style>
</head>
<body>
<center>
<h2>Stock Ticker Control Panel</h2>
<h3>Time of last page reload <br> {{ time }}</h3>
<hr width=70% size=3 noshade>
<p>Last command sent: {{ lastcommand }}</p>
<br>
<h3>Runtime: {{ runtime }}s & API call: {{ delay }}s before refresh <br> displayed at a speed of {{ speedtime }}m/s</h3>
<p>Set the amount of time each image is displayed before a refresh in seconds</p>
<form action="/Runtime" method="POST">
<input name="text" placeholder="300"style="height:24px">
<input type="submit" value="Runtime"style="height:30px">
</form>
<p>Set the amount of time before next image refresh that the stocks are updated</p>
<form action="/Delay" method="POST">
<input name="text" placeholder="20"style="height:24px">
<input type="submit" value="Delay"style="height:30px">
</form>
<p>Set the speed the image scrolls across the screen (m/s, lower is faster)</p>
<form action="/Speed" method="POST">
<input name="text" placeholder="25"style="height:24px">
<input type="submit" value="Speed"style="height:30px">
</form>
<br><br>
<h3>Tickers to display</h3>
<p>To change the tickers displayed please upload a CSV (comma separated value) file with 11 tickers on each row e.g</p>
<p>MSFT,NFLX,GOOG,TSLA,AAPL,INTC,TXN,HPQ,HOG,LUV,WMT</p>
<p>WMT,LUV,HOG,HPQ,TXN,INTC,AAPL,TSLA,GOOG,NFLX,MSFT</p>
<form action="/Ticker" method="POST" enctype=multipart/form-data>
<p><input type=file name=file style="height:30px">
<input type=submit value=Upload style="height:30px">
</form>
<br><br>
<h3>Logos</h3>
<p>Upload logo images (e.g "TICKER.png") or change the default images here</p>
<p>1) logos must be 32px in height and can be any width</p>
<p>2) "blank.png" is the space between stocks, default of 10x32px</p>
<p>3) "default.png" is the default logo to be used if no logo can be found</p>
<p>4) arrows (up/down.png) must be 16x14px</p>
<form action="/AddLogo" method="POST" enctype=multipart/form-data>
<p><input type=file name=file style="height:30px">
<input type=submit value=Upload style="height:30px">
</form>
<p>Logos currently in file:</p>
<p>{{ logofiles }}</p>
<br><br>
<form action="/matrix" method="POST">
<input type="submit" name="Run Display" value="Run Display" style="height:50px" >
<input type="submit" name="Stop Display (at next refresh)" value="Stop Display (at next refresh)"style="height:50px">
<input type="submit" name="Shutdown the pi" value="Shutdown the pi"style="height:50px">
</form>
<br><br>
<br><br>
</center>
</body>
</html>