benoitcrauet/WebMIV

Problème de véhicules fantômes

benoitcrauet opened this issue · 1 comments

Trains fantômes sur l'interface.

signal-2023-10-24-185802_002

Ici, les trains 11 et 12min n'existe pas dans le generated/hours :

{
}

Dans le DOM généré, les GUID indiqués en data n'existe pas dans le generated :

<div id="nextVehicles">
    <div class="vehicle visible" id="MLV_ItemMLV_268447238LOC" data-departuredelayed="true" data-departuretime="2023-10-24T17:05:21.000Z" data-arrivaldelayed="true" data-arrivaltime="2023-10-24T17:05:21.000Z" data-waitingtime="210">
        <div class="vehicleTitle">
            <div class="container"><span class="vehicleTitle_position"></span><span class="vehicleTitle_type"></span></div>
        </div>
        <div class="vehicleWait" style="opacity: 1;">
            <div class="container"><span class="vehicleWait_value">4</span><span class="vehicleWait_unit">min</span></div>
        </div>
    </div>
    <div class="vehicle visible" id="MLV_ItemMLV_268466648LOC" data-departuredelayed="true" data-departuretime="2023-10-24T17:07:11.000Z" data-arrivaldelayed="true" data-arrivaltime="2023-10-24T17:07:11.000Z" data-waitingtime="320">
        <div class="vehicleTitle">
            <div class="container"><span class="vehicleTitle_position"></span><span class="vehicleTitle_type"></span></div>
        </div>
        <div class="vehicleWait" style="opacity: 1;">
            <div class="container"><span class="vehicleWait_value">6</span><span class="vehicleWait_unit">min</span></div>
        </div>
    </div>
    <div class="vehicle visible" id="MLV_ItemMLV_268468546LOC" data-departuredelayed="false" data-departuretime="2023-10-24T17:09:00.000Z" data-arrivaldelayed="false" data-arrivaltime="2023-10-24T17:09:00.000Z" data-waitingtime="429">
        <div class="vehicleTitle">
            <div class="container"><span class="vehicleTitle_position"></span><span class="vehicleTitle_type"></span></div>
        </div>
        <div class="vehicleWait" style="opacity: 1;">
            <div class="container"><span class="vehicleWait_value">8</span><span class="vehicleWait_unit">min</span></div>
        </div>
    </div>
    <div class="vehicle visible" id="MLV_ItemMLV_268467692LOC" data-departuredelayed="false" data-departuretime="2023-10-24T17:12:00.000Z" data-arrivaldelayed="false" data-arrivaltime="2023-10-24T17:12:00.000Z" data-waitingtime="609">
        <div class="vehicleTitle">
            <div class="container"><span class="vehicleTitle_position"></span><span class="vehicleTitle_type"></span></div>
        </div>
        <div class="vehicleWait" style="opacity: 1;">
            <div class="container"><span class="vehicleWait_value">11</span><span class="vehicleWait_unit">min</span></div>
        </div>
    </div>
    <div class="vehicle visible" id="MLV_ItemMLV_268458984LOC" data-departuredelayed="false" data-departuretime="2023-10-24T17:17:00.000Z" data-arrivaldelayed="false" data-arrivaltime="2023-10-24T17:17:00.000Z" data-waitingtime="909">
        <div class="vehicleTitle">
            <div class="container"><span class="vehicleTitle_position"></span><span class="vehicleTitle_type"></span></div>
        </div>
        <div class="vehicleWait" style="opacity: 1;">
            <div class="container"><span class="vehicleWait_value">16</span><span class="vehicleWait_unit">min</span></div>
        </div>
    </div>
</div>

Le settings.ini associé

[general]
; HTTP port
httpport=80
; IDFM Prim API Key (get it on https://prim.iledefrance-mobilites.fr/fr)
apikey=

; Put all your displays here

[binaches-mlv]
; rer/bus/metro/tram
linetype=bus
; Number/letter of the line (for display)
linenumber=43
; Hex color of the line without # (for display)
linecolor=8D653D
; Minimum waiting time to display (in seconds)
minimumwait=0
; Default limit of displayed vehicles (0 for no limit)
limit=0
; Display name
displayname=Binaches > Chessy
; To get ID of stations: https://data.iledefrance-mobilites.fr/explore/dataset/arrets-transporteur/custom/?disjunctive.fournisseurname
stationid=15321

# DISPLAY FILTERS
direction[] ; Direction filter initialisation
lineid[] ; Line ID filter initialisation

[binaches-mlv-home]
; rer/bus/metro/tram
linetype=bus
; Number/letter of the line (for display)
linenumber=43
; Hex color of the line without # (for display)
linecolor=8D653D
; Minimum waiting time to display (in seconds)
minimumwait=420
; Default limit of displayed vehicles (0 for no limit)
limit=0
; Display name
displayname=Binaches > Chessy
; To get ID of stations: https://data.iledefrance-mobilites.fr/explore/dataset/arrets-transporteur/custom/?disjunctive.fournisseurname
stationid=15321

# DISPLAY FILTERS
direction[] ; Direction filter initialisation
lineid[] ; Line ID filter initialisation

[mlv-val2]
; rer/bus/metro/tram
linetype=bus
; Number/letter of the line (for display)
linenumber=43
; Hex color of the line without # (for display)
linecolor=8D653D
; Minimum waiting time to display (in seconds)
minimumwait=0
; Default limit of displayed vehicles (0 for no limit)
limit=0
; Display name
displayname="Chessy > Val d'Europe"
; To get ID of stations: https://data.iledefrance-mobilites.fr/explore/dataset/arrets-transporteur/custom/?disjunctive.fournisseurname
stationid=417792

# DISPLAY FILTERS
direction[] ; Direction filter initialisation
lineid[] ; Line ID filter initialisation

[pkg-nord]
; rer/bus/metro/tram
linetype=bus
; Number/letter of the line (for display)
linenumber=43
; Hex color of the line without # (for display)
linecolor=8D653D
; Minimum waiting time to display (in seconds)
minimumwait=0
; Default limit of displayed vehicles (0 for no limit)
limit=0
; Display name
displayname="Parking Nord > Val d'Europe"
; To get ID of stations: https://data.iledefrance-mobilites.fr/explore/dataset/arrets-transporteur/custom/?disjunctive.fournisseurname
stationid=10533

# DISPLAY FILTERS
direction[] ; Direction filter initialisation
lineid[] ; Line ID filter initialisation

[pkg-nord-regie]
; rer/bus/metro/tram
linetype=bus
; Number/letter of the line (for display)
linenumber=43
; Hex color of the line without # (for display)
linecolor=8D653D
; Minimum waiting time to display (in seconds)
minimumwait=720
; Default limit of displayed vehicles (0 for no limit)
limit=0
; Display name
displayname="Parking Nord > Val d'Europe"
; To get ID of stations: https://data.iledefrance-mobilites.fr/explore/dataset/arrets-transporteur/custom/?disjunctive.fournisseurname
stationid=10533

# DISPLAY FILTERS
direction[] ; Direction filter initialisation
lineid[] ; Line ID filter initialisation

[valdeurope-mlv]
; rer/bus/metro/tram
linetype=rer
; Number/letter of the line (for display)
linenumber=A
; Hex color of the line without # (for display)
linecolor=FF4343
; Minimum waiting time to display (in seconds)
minimumwait=120
; Default limit of displayed vehicles (0 for no limit)
limit=0
; Display name
displayname=Val d'Europe - Direction Chessy

; To get ID of stations: https://data.iledefrance-mobilites.fr/explore/dataset/arrets-transporteur/custom/?disjunctive.fournisseurname
stationid=474003

# DISPLAY FILTERS
direction[] ; Direction filter initialisation
lineid[] ; Line ID filter initialisation

En l'état, pas de bug de l'afficheur à proprement parler.
Les data fantôme semblent provenir de PRIM.

Je vais voir pour intégrer un contrôle des données entrantes à postériori, afin de vérifier si les véhicules fantômes sont toujours renvoyés par PRIM plusieurs cycles après leur apparition, auquel cas, le véhicule sera supprimé.