Coder Social home page Coder Social logo

pso2-eq-api's Introduction

Docker Automated build

PSO2 EQ API

Websocket API with the latest EQ information from @pso2_emg_hour. Used on Weeb Bot.

Using

Simply establish a websocket connection to ws://pso2api.westeurope.azurecontainer.io:8080 and wait for events :)

Reference

Currently the API sends nothing but the following payload:

{
    "id": "1254411171907731457"
    "date": {
        "UTC": "Sun Apr 26 2020 14:05:03 GMT+0000",
        "JP": "Sun Apr 26 2020 23:05:03 GMT+0900"
    },
    "upcoming": [
        {
            "date": {
                "UTC": "Sun Apr 26 2020 14:05:03 GMT+0000",
                "JP": "Sun Apr 26 2020 23:05:03 GMT+0900"
            },
            "name": "Mining Base Defense Training: VR"
        },
        {
            "date": {
                "UTC": "Sun Apr 26 2020 14:05:03 GMT+0000",
                "JP": "Sun Apr26 2020 23:05:03 GMT+0900"
            },
            "name": "Raging Dark Arms"
        },
    ],
    "inProgress": {
        "date": {
            "UTC": "Sun Apr 26 2020 14:05:03 GMT+0000",
            "JP": "Sun Apr 26 2020 23:05:03 GMT+0900"
        },
        "name": "Mining Base Defense Training: VR"
    },
}

id: Unique identifier for the payload

date: Date referring to the object it's attached to.

upcoming: Array of upcoming emergency quests

inProgress: Current in-progress emergency quest. Will be omitted if there is none.

Deploying

This project is available on Dockerhub. Running should be as simple as running docker run kaze404/pso2-eq-api:latest -p 8080:8080. The API will be available for usage on the port 8080.

pso2-eq-api's People

Contributors

dependabot[bot] avatar kxze avatar noviarrs avatar reveriadive avatar skyleite avatar winterachrono avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar

pso2-eq-api's Issues

Fix output format

[
  {
    "time" : "2016-10-25 19:05:04",
    "eqs" : [{
      "ship" : 1,
      "name" : "Cradle"
    },
    {
      "ship" : 2,
      "name" : "Urban"
    }]
  }
]

Delayed EQ's (Still in-time for alert.)

Racing the Phantom Mother wasn't on the EQ list when I got a Beach Wars alert. (The scheduled one that happened two hours after it.)

Kinda sad as that made my "Next alert time in # hours." that I've added skip to the EQ after.
thanks

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.