Documentation   Beta - Work in progress 
LOGO! API Documentation LOGO! Sample Resources About

Documentation on how to use the API

Logo!API Server is a middleware API that allows you to query your Siemens Logo! to return various variable and operating parameter through a REST or RESTful API call.
.

Usage:

https://www.ambersys.net/logoapi?logokey=<Your Logo Key>

JSON Return :

{
                "status": "OK",                  Query Status Return. OK/Login Failed/Unauthorised Referer/Invalid Hostname/Time Out
                "var": {                                  Variable returns from the Logo! PLC.
                                "I1": 1,                  Digital Input 1
                                "I2": 1,                  Digital Input 2
                                "I3": 0,                  Digital Input 3
                                "I4": 0,                  Digital Input 4
                                "M1": 1,               Digital Flag 1
                                "M2": 1,               Digital Flag 2
                                "M3": 0,               Digital Flag 3
                                "M4": 0,               Digital Flag 4
                                "AI1": 570,           Analogue Input 1
                                "AI2": 592,           Analogue Input 2
                                "AI3": 563,           Analogue Input 3
                                "AI4": 475,           Analogue Input 4
                                "AM1": 1207,     Analogue Flag 1
                                "AM2": 1099,     Analogue Flag 2
                                "AM3": 1652,     Analogue Flag 2
                                "AM4": 1213       Analogue Flag 2
                },
                "logoinfo": {                       Information from Siemens Logo! PLC
                                "Device Series": "LOGO!8 6ED1052-xxx08 0BA0",              
                                "Device Type": "12/24RCE",
                                "FW Version": "1.82.02",
                                "IP Address": "192.168.1.10",      Logo! Local Configured LAN IP
                                "Public IP": "10.20.30.40",             Logo! Current Public IP
                                "Function Key: "F1-ok-ok",             Function Key Pressed-Press Status-Release Status
                                "Status": "Running"                        Logo! Current Status
                },
                "apiinfo": {                                          API Information
                                "apikey": "webkeydemo",           API Key
                                "daycount": "95",                             API Request Count for the Day
                                "monthcount": "95",                      API Request Count for the Month
                                "sectaken": 0,                                    Sec Taken for API to execute
                                "datetime": "2019-11-11 11:11:11"           Current Date Time
                },
                "debuginfo": {                                   Information for debugging , will change so do not use
                                "domain": "logo8demo.dyndns.org",
                                "request": "web",
                                "requestip": "1.2.3.4",
                                "logokey": "jEdnuGcUWhWSpsFDqsfiraQkVfcXXA", Your Logo Key. Use https://www.ambersys.net/logoapi?logokey=<Your Logo Key To Retreive your Info>
                                "message": "Some Information Message",
                                "httpreferer": "https://www.ambersys.net/api/logo8apidemo",
                                "apiver": "20191108_V1"              API Version
                }
}