config in ini

This commit is contained in:
2019-08-22 20:54:55 +02:00
parent a454a4aac5
commit 935ad372b0
7 changed files with 52 additions and 27 deletions

View File

@@ -48,7 +48,7 @@ def main_server_loop():
}
}
cherrypy.tree.mount(voltage.EnergyInfo(), "/", conf)
cherrypy.tree.mount(index.landingPage(), "/", conf)
cherrypy.tree.mount(voltage.EnergyInfo(), "/energy", conf)
cherrypy.tree.mount(weather.WeatherInfo(), "/weather", conf)
cherrypy.tree.mount(status.StatusInfo(), "/status", conf)

View File

@@ -1,11 +1,14 @@
[General]
_server_protocol = https
_server_name = bastart.spoton.cz
_server_port = 443
_server_bind_ip = 0.0.0.0
[InfluxDB]
_influx_host = localhost
_influx_port = 8086
_influx_user = pi
_influx_pwd = Ventil
_influx_pwd = Ventil6996
_influx_weather_db = weather_v2
_influx_status_db = status
_influx_voltage_db = voltage

View File

@@ -4,19 +4,25 @@
<div class="col"></div>
<main class="pt-4 col-10">
<h1>Plutonium monitoring</h1>
<h5>Keeping an eye on things</h5>
<h5>Keeping an eye on things, since 11/2017</h5>
<section class="row text-center placeholders">
<section class="row text-left placeholders">
<div class="col placeholder">
Not available, due to RasPi gone crazy from all that traffic
</div>
<div class="col placeholder">
But is surely was beautiful.
<p>The whole idea of this is a RasPi based monitoring of</p>
<ul>
<li>Base RasPi metrics</li>
<li>Victron based solar MPPT trackers (optional module)</li>
<li>Davis Vantage Vue (optional module)</li>
<li>Any other IoT stuff (optional)</li>
</ul>
<p>Feel free to explore the tabs in the upper menu</p>
<p>For additional information, look at
<a href="https://bastart.spoton.cz/git/spoton/freedavis">Git for this project</a></p>
</div>
</section>
<section class="row text-center placeholders">
<div class="col">
<img src="./static/img/old_fame.jpg" class="img-fluid">
Cheers.
</div>
</section>

View File

@@ -7,7 +7,7 @@
<div class="collapse navbar-collapse" id="navbarsExampleDefault">
<ul class="navbar-nav mr-auto">
<li class="nav-item {energy}">
<a class="nav-link" href="https://bastart.spoton.cz">Energy</a>
<a class="nav-link" href="https://bastart.spoton.cz/energy">Energy</a>
</li>
<li class="nav-item {weather}">
<a class="nav-link" href="https://bastart.spoton.cz/weather">Weather</a>