Added configuration
This commit is contained in:
parent
6d61833fcf
commit
4af21973d2
1
.gitignore
vendored
1
.gitignore
vendored
|
@ -1,3 +1,2 @@
|
||||||
config.yml
|
|
||||||
*.pyc
|
*.pyc
|
||||||
snippets
|
snippets
|
||||||
|
|
51
server/config.yml
Normal file
51
server/config.yml
Normal file
|
@ -0,0 +1,51 @@
|
||||||
|
# Konfigurace serverové části
|
||||||
|
|
||||||
|
# Přihlašovací údaje k lora.plzen.eu
|
||||||
|
lora_api:
|
||||||
|
username: USERNAME
|
||||||
|
password: PASSWORD
|
||||||
|
|
||||||
|
# Konfigurace HTTP serveru
|
||||||
|
http:
|
||||||
|
host: 0.0.0.0
|
||||||
|
port: 8080
|
||||||
|
|
||||||
|
# Sledované zastávky
|
||||||
|
# - ID je možné zjistit z PMDP API
|
||||||
|
# - name: jméno zastávky
|
||||||
|
stops:
|
||||||
|
1:
|
||||||
|
name: Slovany
|
||||||
|
40:
|
||||||
|
name: Borský park
|
||||||
|
38:
|
||||||
|
name: Technická
|
||||||
|
|
||||||
|
# Filtry
|
||||||
|
# - lines: požadovaná čísla linek (nepovinné)
|
||||||
|
# - types: požadovaný typ spoje (nepovinné)
|
||||||
|
# - destinations: požadované poslední stanice (nepovinné)
|
||||||
|
filters:
|
||||||
|
tramvaj_smer_bory:
|
||||||
|
lines: ["4"]
|
||||||
|
destinations: ["Bory", "Univerzita"]
|
||||||
|
tramvaj_smer_kosutka:
|
||||||
|
lines: ["4"]
|
||||||
|
destinations: ["Košutka", "Vozovna Slovany"]
|
||||||
|
autobusy:
|
||||||
|
types: [3]
|
||||||
|
|
||||||
|
# Zařízení
|
||||||
|
# - id: EUID zařízení
|
||||||
|
# - stop_id: ID zastávky
|
||||||
|
# - filter: použitý filtr (nepovinný)
|
||||||
|
# - enabled: aktivace / deaktivace zařízení (nepovinné)
|
||||||
|
devices:
|
||||||
|
- id: 0xbdea85badeedf1
|
||||||
|
stop_id: 40
|
||||||
|
filter: tramvaj_smer_bory
|
||||||
|
enabled: true
|
||||||
|
|
||||||
|
# Webová administrace
|
||||||
|
admin:
|
||||||
|
secret: TajneHeslo
|
|
@ -20,9 +20,9 @@
|
||||||
<div class="settings" :class="{ visible: d.visible }">
|
<div class="settings" :class="{ visible: d.visible }">
|
||||||
<div class="filter">{{ d.filter ? d.filter : "žádný" }}</div>
|
<div class="filter">{{ d.filter ? d.filter : "žádný" }}</div>
|
||||||
<div class="actions">
|
<div class="actions">
|
||||||
<button @click="device_clear(i)">Vymazat</button>
|
|
||||||
<button @click="device_toggle(i, false)" v-if="d.enabled">Deaktivovat</button>
|
<button @click="device_toggle(i, false)" v-if="d.enabled">Deaktivovat</button>
|
||||||
<button @click="device_toggle(i, true)" v-else>Aktivovat</button>
|
<button @click="device_toggle(i, true)" v-else>Aktivovat</button>
|
||||||
|
<button @click="device_clear(i)">Vymazat</button>
|
||||||
<button @click="device_resend(i)" v-if="d.enabled">Přeposlat</button>
|
<button @click="device_resend(i)" v-if="d.enabled">Přeposlat</button>
|
||||||
<button @click="device_change_stop(i)">Zastávka</button>
|
<button @click="device_change_stop(i)">Zastávka</button>
|
||||||
<button @click="device_change_filter(i)">Filtr</button>
|
<button @click="device_change_filter(i)">Filtr</button>
|
||||||
|
|
Loading…
Reference in a new issue