akii / elescore Goto Github PK
View Code? Open in Web Editor NEWElevator scoring service
Home Page: https://elescore.de
License: BSD 3-Clause "New" or "Revised" License
Elevator scoring service
Home Page: https://elescore.de
License: BSD 3-Clause "New" or "Revised" License
This has following implications:
Needs to be strictly evaluated in order to be fast.
Would probably be nice to take the current disruption map and transform it into a heat map.
The Elescore client must be re-designed to reflect the recent developments in the backend.
The shift away from stations to objects must bring new ways of searching for elevators
Login + Profile pages
Faving of facilities/objects
Removal of the disruption map
Facility details
Object details
Disruption details
Statistics page (maybe even by source)
Theme will be Vuetify.
Must have support for multiple languages.
This should be done in 1 second. Something isn't performing as it should.
"API" is there: https://www.bogestra.de/aufzuginfos/aufzuginfos-ueberblick.html
Basically, the DB integration does something like this:
This can be fixed by chunking up the stream by seconds and processing each chunk comparing it to the chunk before that. If the difference is too high, the chunk can be ignored all together.
For this to work, the replaying and persistence of events must move into the source such that this becomes possible:
P.each disruptionEvents >-> chunkP >
|
clientP >-> monitorP >-> storeEventP >+> monitorP' >-> P.concat
This also enables the usage of appendMany
, which I assume is faster.
As a follow up, the Source m a
can then become a Functor and Monoid with which the handling later on is simplified.
At some point calculating every projection from scratch will not be possible anymore. Either because it takes a long time or the memory footprint will be too high.
A good first candidate is the list of all projections. It already takes very long to project. Once the UI catches up, there will also be filtering by facility or object as well as pagination.
To be able to support persisted projections there needs to be:
Orange thingie in the upper right corner…
is in the wrong formatting because the number is a child of the fa-warning icon which is not correct.
Wrong, current code:
<li class="dropdown dropdown-dark">
<i class="fa fa-warning fa-2x" style="padding: 20px; margin-right: 65px; color: orange;"> 169</i>
</li>
Correction proposal:
<li class="dropdown dropdown-dark" style="color: orange;">
<i class="fa fa-warning fa-2x"></i>
<span style="font-size: 2em;">169</span>
</li>
(tested in DOM)
Apparently they're quite slow. Writing to it after each event just makes this worse.
The reason "monitoring not available" indicates that no monitoring is available. We hence cannot assume it is out of order. Facilities in that state should not be graded.
I noticed a major outage of monitoring where around 3k facilities were reported out of order with reason "monitoring disrupted". To fix this, we need to intelligently filter out disruptions:
As for calculating the grade and total downtime, there are basically a few cases of which only 2 are relevant:
|-------------------------|
|------------------------>| Case 1: Monitoring dis. only
|------------<----------->| Case 2: Disruption before, resolved after
|-----<------>------------| Case 3: Disruption before and after
|------------>------------| Case 4: Disrupted after
-> monitoring dis only = ignore
-> Case 2 -> we don't know when it really ended; have to include
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.