Skip to content
This repository has been archived by the owner on Apr 4, 2019. It is now read-only.

arichiv/um.laundry

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

31 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

UM Laundry README

With the UM Laundry app you can:

  • View the status of washers and dryers at the University of Michigan
  • See the time remaining for machines in use
  • Set notifications for when washers and dryers will be finished
  • Set Favorite Rooms for easy access

iTunes Store Page: https://itunes.apple.com/us/app/um-laundry/id455514358

API Information

AJAX JS URL: http://www.housing.umich.edu/sites/all/modules/hsg_laundry/hsg-laundry-ajax2.js

getBuildings()

http://housing.umich.edu/laundry-locator/locations/0

{"locations": [
    {"loc": {
        "building": "Alice Lloyd Hall",
        "code": "10" //BUILDING_CODE **REQUIRED TO BE VALID**
    }},
    ...
]}

getRooms(BUILDING)

http://housing.umich.edu/laundry-locator/rooms/BUILDING/0

{"rooms":[
    {"room": {
        "name": "South",
        "code":"31" /* Use 0 for all rooms */
    }},
    ...
]}

getStatus(BUILDING, ROOM = 0)

http://housing.umich.edu/laundry-locator/status/BUILDING/ROOM/0

{"statuses": [
    {"stat": {
        "name":"Available",
        "code": "1" /* Use 0 for all statuses */
    }},
    ...
]}

getReport(BUILDING, ROOM = 0, STATUS = 0)

http://housing.umich.edu/laundry-locator/report/BUILDING/ROOM/STATUS/0

30|| /* Number of results */
<table class="mach_disp">
    <tr>
        <th>ID</th>
        <th>Machine Type</th>
        <th>Status</th>
        <th>Time Remaining</th>
        <th>Room</th>
    </tr>
    <tr class="mach_busy">
        <td>1</td>
        <td>Washer</td>
        <td>In Use</td>
        <td>22m</td>
        <td>Jordan</td>
    </tr>
    ...
</table>

Releases

No releases published

Packages

No packages published