Giter VIP home page Giter VIP logo

denison-laundry-status's Introduction

Denison Laundry Status API

Dev Note:

project is under maintenance, please try again when this line is removed. I am kinda busy with college lately xD

It turns out the API host expires my auth token. All I need to do is setup the interceptor to extract the auth token and update project secrets. Now it should work normally.

Table of Content:

Endpoint

Sample Request Body

{
	"room": "Curtis Hall"
}

Possible hall names:

  • Schaffer House
  • Beaver Hall
  • Beta House
  • Chamberlin House
  • Crawford Hall
  • Curtis Hall
  • East Hall
  • Lower Elm
  • Upper Elm
  • Gilpatrick House
  • Hayes Appartment
  • Huffman Hall
  • Kappa Sigma
  • King Hall
  • Morrow House
  • Moshier-Huchison House
  • Preston House
  • Sawyer Hall
  • Shaw Hall
  • Shepardson Hall
  • Silverstein Apartments - 2nd
  • Silverstein Apartments - 4th
  • Smith Hall
  • Stone Hall
  • Pratt Hall
  • Brown Hall
  • Myers Hall
  • Good Hall
  • Sunset House
  • Taylor House
  • Wright Apartments

Sample Response Body

{
    "machineStatus": {
        "dryers": [
            {
                "type": "dryer",
                "remainingSeconds": 3300,
                "status": "READY TO START"
            },
            {
                "type": "dryer",
                "remainingSeconds": 3300,
                "status": "READY TO START"
            },
            {
                "type": "dryer",
                "remainingSeconds": 3300,
                "status": "AVAILABLE"
            },
            {
                "type": "dryer",
                "remainingSeconds": 3600,
                "status": "AVAILABLE"
            }
        ],
        "washers": [
            {
                "type": "washer",
                "remainingSeconds": 1800,
                "status": "READY TO START"
            },
            {
                "type": "washer",
                "remainingSeconds": 1800,
                "status": "READY TO START"
            },
            {
                "type": "washer",
                "remainingSeconds": 1800,
                "status": "READY TO START"
            },
            {
                "type": "washer",
                "remainingSeconds": 1800,
                "status": "AVAILABLE"
            },
            {
                "type": "washer",
                "remainingSeconds": 1800,
                "status": "AVAILABLE"
            }
        ],
        "availableDryers": 4,
        "completeDryers": 0,
        "inUsedDryers": 0,
        "errorDryers": 0,
        "availableWasher": 5,
        "completeWashers": 0,
        "inUsedWashers": 0,
        "errorWashers": 0,
        "messages": "Right now, there are 5 available washer, and 4 available dryers"
    }
}

Siri Shortcut

  • Link to the Siri shortcut that calls this API:
  • https://www.icloud.com/shortcuts/44d1ee9e73de4da4b275ca87ba9558f2
  • This will allow you to ask Siri to speak the "messages" key of the response body whenever you say "laundry status"
  • You can customize the summon command (default by "laundry status") to whatever you like by editing the shortcut yourself.
  • You can edit the hall you want to know the status of (usually the hall you are living in). By default it's Curtis Hall because I live there ๐Ÿ˜

How to change the hall you want to get status of

Technologies

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.