Coder Social home page Coder Social logo

Comments (12)

msiggi avatar msiggi commented on July 24, 2024 1

Ich hab's leider nicht geloggt, kommt da ein Spiel oder ein Array von Spielen zurück.

Es kommt das geänderte Spiel als Objekt zurück.

from openligadb-samples.

hokascha avatar hokascha commented on July 24, 2024

Möglicherweise wäre auch ein MQTT Broker eine gute Wahl, wenig Aufwand und Last am Server, einfach beim Client einzubinden.

from openligadb-samples.

msiggi avatar msiggi commented on July 24, 2024

Möglicherweise wäre auch ein MQTT Broker eine gute Wahl, wenig Aufwand und Last am Server, einfach beim Client einzubinden.

Wie wäre es mit diesem Broker? https://www.hivemq.com/public-mqtt-broker/ ?

from openligadb-samples.

hokascha avatar hokascha commented on July 24, 2024

Ja, damit wäre sogar der Broker selbst extern ausgelagert, dann bräuchte die API oder sonstein Prozess am OLDB-Server "nur" noch die Ergebnisse dorthin pushen, alle anderen können sich dort bedienen.
Wenn du etwas mehr Kontrolle haben willst, kannst Du natürlich selbst einen Broker hosten, zum Beispiel mosquitto.

from openligadb-samples.

msiggi avatar msiggi commented on July 24, 2024

Hi. Änderungen der Spiele sollten nun per MQTT gepushed werden. Bitte testet es!

Broker: broker.hivemq.com
Port: 8883
TLS-enabled

Subscription-Topic: openligadb

from openligadb-samples.

xdream77 avatar xdream77 commented on July 24, 2024

@msiggi
Ich hatte mich letzte Woche damit verbunden und bekam auch Messages.
Das macht so vieles einfacher. 👍 Vielen Danke dafür.

Ich hab's leider nicht geloggt, kommt da ein Spiel oder ein Array von Spielen zurück.

from openligadb-samples.

xdream77 avatar xdream77 commented on July 24, 2024

Kannst du bitte einmal erklären, wann Nachrichten kommen.

Gestern beim DFB Pokal Finale habe ich nur eine Nachricht bekommen als das Spiel beendet war.
Ich bin davon ausgegangen, dass jede Änderung des Datensatzes, also auch Tore, zu einem Push führen.

Weil nun auch Sommerpause und Spielflaute herrscht, ist es schwer zu testen.

Danke dir und lieben Gruß

from openligadb-samples.

msiggi avatar msiggi commented on July 24, 2024

Es sollte bei jeder Änderung eines Spiels (Tor, Ergebnis, Spiel beendet....) eine Message geschickt werden.

Nimm doch zum Testen diese Liga hier, hier kannst Du mit den Ergebnissen spielen!

from openligadb-samples.

xdream77 avatar xdream77 commented on July 24, 2024

Top, funktioniert alles!
Die TestLiga kannte ich nicht.

Danke für alles.

from openligadb-samples.

msiggi avatar msiggi commented on July 24, 2024

Die Testliga ist ja auch neu #78 ;-)

from openligadb-samples.

hokascha avatar hokascha commented on July 24, 2024

sehr cool, funktioniert super, danke!

from openligadb-samples.

hokascha avatar hokascha commented on July 24, 2024

Allerdings kam heute eine Nachricht, die ich nicht ganz nachvollziehen kann, das war heute um 12:43:

{
 "matchID": 69352,
 "matchDateTime": "2024-06-18T21:00:00",
 "timeZoneID": "W. Europe Standard Time",
 "leagueId": 4708,
 "leagueName": "UEFA EURO 2024",
 "leagueSeason": 2024,
 "leagueShortcut": "em",
 "matchDateTimeUTC": "2024-06-18T19:00:00Z",
 "group": {
   "groupName": "1. Runde Gruppenphase",
   "groupOrderID": 1,
   "groupID": 44154
 },
 "team1": {
   "teamId": 3198,
   "teamName": "Portugal",
   "shortName": "PRT",
   "teamIconUrl": "https://upload.wikimedia.org/wikipedia/commons/thumb/5/5c/Flag_of_Portugal.svg/2000px-Flag_of_Portugal.svg.png",
   "teamGroupName": null
 },
 "team2": {
   "teamId": 141,
   "teamName": "Tschechien",
   "shortName": "CZE",
   "teamIconUrl": "https://upload.wikimedia.org/wikipedia/commons/thumb/c/cb/Flag_of_the_Czech_Republic.svg/200px-Flag_of_the_Czech_Republic.svg.png",
   "teamGroupName": null
 },
 "lastUpdateDateTime": "2024-06-19T12:43:29.92",
 "matchIsFinished": false,
 "matchResults": [
   {
     "resultID": 110943,
     "resultName": "Halbzeitergebnis",
     "pointsTeam1": 0,
     "pointsTeam2": 0,
     "resultOrderID": 1,
     "resultTypeID": 1,
     "resultDescription": "Ergebnis zur Halbzeitpause"
   },
   {
     "resultID": 110944,
     "resultName": "Endergebnis",
     "pointsTeam1": 0,
     "pointsTeam2": 0,
     "resultOrderID": 2,
     "resultTypeID": 2,
     "resultDescription": "Ergebnis nach Ende der offiziellen Spielzeit"
   }
 ],
 "goals": [],
 "location": {
   "locationID": 1216,
   "locationCity": "Leipzig",
   "locationStadium": null
 },
 "numberOfViewers": null
}

Da wurde also das Spiel von gestern irgendwie wieder auf 0:0 gesetzt und matchIsFinished ist wieder false und lastUpdateDateTime ist "2024-06-19T12:43:29.92". Wenn ich genau dieses Spiel von der API abrufe mit https://api.openligadb.de/getmatchdata/69352 wird aber der korrekte Spielstand angezeigt und lastUpdateDateTime ist "2024-06-19T00:20:54.67". Wie kommt es zu sowas?

from openligadb-samples.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.