Fetching OEE Downtime Data
The RESTful Provider for fetching OEE Downtime reasons called Top5DowntimeReasons will be created in the Sepasoft Web Services module's RESTful Provider area. It will be called by a pre-built RESTful Consumer (in our case, just script in the Script Console) and return a dataset containing the top five reasons for the line provided (Packaging Line 1).
Create Top5DowntimeReasons RESTful Provider
This RESTful Provider has already been partially completed. Open and complete it as follows:
Copy the script below and insert after the #execute analysis function.
Snippet
Python |
def do_GET(request): |
The completed Response Message script should look like this:
Python |
def do_GET(request): |
