Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Feature]: Preisdifferenz in Json Tabelle #116

Open
AFPass opened this issue Jan 23, 2023 · 7 comments
Open

[Feature]: Preisdifferenz in Json Tabelle #116

AFPass opened this issue Jan 23, 2023 · 7 comments

Comments

@AFPass
Copy link

AFPass commented Jan 23, 2023

Is your feature request related to a problem? Please describe.

Kannst Du die Preisdifferenz in die Station Json Tabelle mit aufnehmen?
Ggf. Parametergesteuert für jede Station und/oder Spritsorte?

Describe the solution you'd like

No response

Describe alternatives you've considered

No response

Additional context

No response

@xXBJXx
Copy link
Contributor

xXBJXx commented Jan 23, 2023

Wenn ich es einbaue, dann ohnehin für jede Station, das könnte so aussehen

Würde das so passen?

[
  {
    "station": "Test",
    "status": "open",
    "e5": 1.729,
    "differenceE5": 0.03,
    "e10": 1.669,
    "differenceE10": -0.03,
    "diesel": 1.849,
    "differenceDiesel": -0.01,
    "discount": "0"
  },
  {
    "station": "Test2",
    "status": "open",
    "e5": 1.719,
    "differenceE5": -0.02,
    "e10": 1.679,
    "differenceE10": 0.03,
    "diesel": 1.839,
    "differenceDiesel": -0.01,
    "discount": "0"
  },
]

@AFPass
Copy link
Author

AFPass commented Jan 24, 2023

Das wäre super.

xXBJXx added a commit that referenced this issue Feb 6, 2023
xXBJXx added a commit that referenced this issue Feb 6, 2023
* (xXBJXx) added difference to jsonTable [issue #116](#116)
* (xXBJXx) added a log message for the error `parameter error`
* (xXBJXx) set the name length to 34 characters
* (xXBJXx) Added verification if the api key is encrypted
* (xXBJXx) updated the Dependencies
@benbensimpson
Copy link

seid dem letzten update simmt meine tabelle nicht mehr
`

Station status e5 e10 Diesel differenceE10
TotalEnergies Bueren open 1.989 0.18 1.929 0.18
Aral O.Tudorf open 1.949 0.21 1.889 0.21
JET LIPPSTADT open 1.919 0.12 1.859 0.12
JET DELBRÜCK open 1.909 0.12 1.849 0.12
` bei e10 habe ich die Preisdifferenz mir fehlt da jetzt der normal preis

@xXBJXx
Copy link
Contributor

xXBJXx commented Feb 14, 2023

@benbensimpson Poste doch mal den Inhalt von tankerkoenig.0.stations.jsonTable soweit ich es bei mir in der jsonTable sehe, passt alles

@benbensimpson
Copy link

benbensimpson commented Feb 17, 2023

@xXBJXx
[{"station":"Aral O.Tudorf","status":"open","e5":1.959,"differenceE5":0.21,"e10":1.899,"differenceE10":0.21,"diesel":1.939,"differenceDiesel":0.29,"discount":"0"},{"station":"Raiffeisen Haaren","status":"open","e5":1.769,"differenceE5":-0.01,"e10":1.709,"differenceE10":-0.01,"diesel":1.699,"differenceDiesel":-0.01,"discount":"0"},{"station":"Schallenkamp Haaren","status":"open","e5":1.769,"differenceE5":-0.03,"e10":1.729,"differenceE10":-0.03,"diesel":1.669,"differenceDiesel":-0.03,"discount":"0"},{"station":"Raiffeisen Salzkotte","status":"open","e5":1.909,"differenceE5":0.15,"e10":1.849,"differenceE10":0.15,"diesel":1.829,"differenceDiesel":0.15,"discount":"0"},{"station":"CLASSIC Salzkotten","status":"open","e5":1.909,"differenceE5":0.15,"e10":1.639,"differenceE10":0,"diesel":1.889,"differenceDiesel":0.21,"discount":"0"},{"station":"TotalEnergies Bueren","status":"open","e5":1.979,"differenceE5":0.17,"e10":1.919,"differenceE10":0.17,"diesel":1.959,"differenceDiesel":0.23,"discount":"0"},{"station":"JET LIPPSTADT","status":"open","e5":1.909,"differenceE5":-0.02,"e10":1.849,"differenceE10":-0.02,"diesel":1.899,"differenceDiesel":-0.01,"discount":"0"},{"station":"JET DELBRÜCK","status":"open","e5":1.879,"differenceE5":-0.03,"e10":1.819,"differenceE10":-0.03,"diesel":1.879,"differenceDiesel":-0.03,"discount":"0"},{"station":"Schütte","status":"open","e5":1.759,"differenceE5":0.03,"e10":1.649,"differenceE10":0,"diesel":1.689,"differenceDiesel":-0.02,"discount":"0"},{"station":"STAR Steinhausen","status":"open","e5":1.909,"differenceE5":0.14,"e10":1.849,"differenceE10":0.14,"diesel":1.899,"differenceDiesel":0.23,"discount":"0"}]
`

Station status e5 e10 Diesel differenceE10
Aral O.Tudorf open 1.959 0.21 1.899 0.21
Raiffeisen Haaren open 1.769 -0.01 1.709 -0.01
Schallenkamp Haaren open 1.769 -0.03 1.729 -0.03
Raiffeisen Salzkotte open 1.909 0.15 1.849 0.15
CLASSIC Salzkotten open 1.909 0.15 1.639 0
TotalEnergies Bueren open 1.979 0.17 1.919 0.17
JET LIPPSTADT open 1.909 -0.02 1.849 -0.02
JET DELBRÜCK open 1.879 -0.03 1.819 -0.03
Schütte open 1.759 0.03 1.649 0
STAR Steinhausen open 1.909 0.14 1.849 0.14
`

@xXBJXx
Copy link
Contributor

xXBJXx commented Feb 17, 2023

@benbensimpson

[
  {
    "station": "Aral O.Tudorf",
    "status": "open",
    "e5": 1.959,
    "differenceE5": 0.21,
    "e10": 1.899,
    "differenceE10": 0.21,
    "diesel": 1.939,
    "differenceDiesel": 0.29,
    "discount": "0"
  },
  {
    "station": "Raiffeisen Haaren",
    "status": "open",
    "e5": 1.769,
    "differenceE5": -0.01,
    "e10": 1.709,
    "differenceE10": -0.01,
    "diesel": 1.699,
    "differenceDiesel": -0.01,
    "discount": "0"
  }
]

Wie du oben sehen kannst sind, alle nötigen Attribute vorhanden, alle Preise und auch alle Preisdifferenzen.
Bei einer Json Tabelle müssen sie schon selbst angeben, welche Attribute sie benutzen wohlen, wenn sie nichts angeben werden alle Attribute so wie sie in der Json stehen genommen.
In der vis können sie bei einer Table unter Allgemein angeben, wie viele Kolumnanzahl (Spaltenanzahl) sie haben wohlen und dann unter Headers [1/2/3 usw.] die Spalten anpassen, was dort rein soll siehe mein Bild
image
Die fertige Tabelle schaut dann so aus
image

@benbensimpson
Copy link

Danke hab es anpassen können
`


Station Status e5 e10 Diesel
Aral O.Tudorf Station Closed 1.739 1.679 1.639
Raiffeisen Haaren open 1.769 1.709 1.699
Schallenkamp Haaren open 1.749 1.709 1.649
Raiffeisen Salzkotte open 1.759 1.699 1.669
CLASSIC Salzkotten Station Closed 1.729 1.639 1.639
TotalEnergies Bueren open 1.959 1.899 1.939
JET LIPPSTADT open 1.789 1.729 1.709
JET DELBRÜCK open 1.789 1.729 1.689
Schütte open 1.759 1.649 1.689
STAR Steinhausen Station Closed 1.749 1.689 1.669
`

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants