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]: Zeitstempel als Datenpunkt #91

Closed
Chaot1 opened this issue Nov 19, 2022 · 4 comments
Closed

[Feature]: Zeitstempel als Datenpunkt #91

Chaot1 opened this issue Nov 19, 2022 · 4 comments

Comments

@Chaot1
Copy link

Chaot1 commented Nov 19, 2022

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

Ich würde mir gerne den Zeitstempel des tiefsten und des höchsten Preises als separaten Datenpunkt wünschen.
Die Datenpunkte würde ich dann in der Datenbank speichern und bekomme so ein Wochenprofil wann es an welcher Tankstelle üblicherweise zu den günstigsten Preisen kommt und wann man die unbedingt meiden sollte.

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 Nov 19, 2022

Soll der Zeitstempel bei jeder Aktualisierung der min / max aktualisiert werden?
Und in welchem Format soll der Zeitstempel sein? In den DP tankerkoenig.0.stations.lastUpdate ist das Format Epoch ⇨ 1668861935057, das wird dann in den DP von ioBroker umgewandelt in ein Menschenlesbares Format.

@Chaot1
Copy link
Author

Chaot1 commented Nov 19, 2022

Bei jeder Aktualisierung ist vermutlich einfacher umzusetzen.
Was im Datenpunkt dann steht ist nicht zwingend wichtig. Es geht mir dann um die Aufzeichnung in der Datenbank. Ob ich dann Epoch umwandle oder den Wert als Zahl habe ist, denke ich zunächst egal.

@xXBJXx
Copy link
Contributor

xXBJXx commented Nov 19, 2022

Ok dann mache ich es so wie im tankerkoenig.0.stations.lastUpdate

xXBJXx added a commit that referenced this issue Nov 19, 2022
* (xXBJXx) moved misc-data type to vehicle type
* (xXBJXx) fixed messages rules and added new messages for Adapter Update
* (xXBJXx) update dependencies
* (xXBJXx) added lastUpdate_min / lastUpdate_max DP [issue #91](#91)
@Schmakus
Copy link
Contributor

Hätte es nicht nötig gehabt. ;-) Jeder Datenpunkt beinhaltet automatisch die letzte Änderung und letzte Aktualisierung. ;-)

@xXBJXx xXBJXx added the done label Dec 23, 2022
@xXBJXx xXBJXx closed this as completed Dec 23, 2022
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