Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

REST980 /api/local/info/state response doesn't contain location #63

Closed
Kirbo opened this issue Jul 31, 2023 · 1 comment
Closed

REST980 /api/local/info/state response doesn't contain location #63

Kirbo opened this issue Jul 31, 2023 · 1 comment

Comments

@Kirbo
Copy link

Kirbo commented Jul 31, 2023

I have Roomba iRobot J7+

I had to use this "rest980" image so that I could get any response from the /api/local/info/state koalazak/rest980#67

Then I did everything that this repo of yours tells me to do and everything else is working perfectly, except:

  • http://192.168.1.10:3000/api/local/info/state response does not contain location at all
  • http://192.168.1.10:3001/image.php says No Coordinates found in file, is it reachable and populated? Log file - http://192.168.1.10:3001/vacuum.log?
  • The camera.roomba is empty

I am able to select the rooms that I want to clean and that works just like a charm.

I'm using Portainer and using this:

###################################
# Docker Portainer Stack
###################################
version: "2"
services:
  rest980:
    # This will be accessed via 192.168.1.10:3000
    container_name: rest980
    image: koalazak/rest980:latest
    ports:
      - "3000:3000"
    environment:
      - BLID=[redacted]
      - ENABLE_CLOUD=no
      - ENABLE_LOCAL=yes
      - FIRMWARE_VERSION=2
      - KEEP_ALIVE=yes
      - PASSWORD=[redacted]
      - PORT=3000
      - ROBOT_IP=192.168.1.100
      - ROBOT_CIPHERS=TLS_AES_256_GCM_SHA384
    restart: unless-stopped
  php-nginx:
    # This will be accessed via 192.168.1.10:3001
    container_name: php-nginx
    image: webhippie/php-nginx:latest
    environment:
      NGINX_WEBROOT: "/app"
    volumes:
      - /var/lib/docker/volumes/hass_config/_data/roomba/vacuum:/app
    ports:
      - "3001:8080"
    restart: unless-stopped

Don't know what else to provide.
Please advice!

image
image
image

http://192.168.1.10:3000/api/local/info/state

{
    "audio": {
        "volume": 100
    },
    "batPct": 100,
    "batteryType": "F12433070",
    "batInfo": {
        "mDate": "2022-3-4",
        "mName": "PanasonicEnergy",
        "mDaySerial": 13997,
        "mData": "303030333032303200000000000000000000000000",
        "mLife": "0C510B3E10720D3F468D000804C7F6E400C6FEA42B0FFFFF001F139500000000",
        "cCount": 70,
        "afCount": 0
    },
    "batAuthEnable": null,
    "bbchg": {
        "nChatters": 14,
        "nKnockoffs": 1,
        "nLithF": 0,
        "nChgOk": 195,
        "aborts": [
            0,
            0,
            0
        ],
        "chgErr": [
            0,
            0,
            0,
            0,
            0
        ],
        "smberr": 0,
        "nChgErr": 0
    },
    "bbmssn": {
        "aCycleM": 59,
        "aMssnM": 59,
        "nMssnF": 4,
        "nMssnC": 88,
        "nMssnOk": 174,
        "nMssn": 266
    },
    "bbnav": {
        "aMtrack": 99,
        "nGoodLmrks": 42,
        "aGain": 232,
        "aExpo": 32
    },
    "bbpause": {
        "pauses": [
            18,
            18,
            17,
            17,
            46,
            0,
            0,
            0,
            0,
            0
        ]
    },
    "bbrstinfo": {
        "nNavRst": 40,
        "nOomRst": 1,
        "nMobRst": 43,
        "nMapLoadRst": 0,
        "nSafRst": 0,
        "safCauses": [
            0,
            0,
            0,
            0,
            0,
            0,
            0,
            0,
            0,
            0
        ]
    },
    "bbrun": {
        "nOvertemps": 0,
        "nEvacs": 238,
        "nCBump": 0,
        "nWStll": 0,
        "nMBStll": 99,
        "nPanics": 139,
        "nPicks": 50,
        "nOpticalDD": 0,
        "nPiezoDD": 0,
        "nScrubs": 0,
        "nStuck": 5,
        "nCliffsF": 2273,
        "nCliffsR": 0
    },
    "bbswitch": {
        "nBumper": 143025,
        "nDrops": 268,
        "nDock": 0,
        "nSpot": 0,
        "nClean": 71
    },
    "bbsys": {
        "min": 39,
        "hr": 5018
    },
    "behaviorFwk": null,
    "bin": {
        "present": true,
        "full": false,
        "type": "std"
    },
    "binPause": true,
    "binTypeDetect": 0,
    "cap": {
        "binFullDetect": 2,
        "addOnHw": 1,
        "oMode": 10,
        "odoa": 6,
        "dockComm": 1,
        "maps": 3,
        "pmaps": 10,
        "mc": 2,
        "tLine": 2,
        "area": 1,
        "eco": 1,
        "multiPass": 2,
        "edge": 0,
        "pp": 0,
        "team": 1,
        "pose": 2,
        "lang": 2,
        "hm": 0,
        "5ghz": 1,
        "prov": 3,
        "sched": 2,
        "svcConf": 1,
        "ota": 2,
        "log": 2,
        "langOta": 0,
        "ns": 1,
        "bleLog": 1,
        "expectingUserConf": 2
    },
    "carpetBoost": false,
    "childLock": false,
    "chrgLrPtrn": 2,
    "cleanMissionStatus": {
        "cycle": "clean",
        "phase": "hmPostMsn",
        "expireM": 0,
        "rechrgM": 0,
        "error": 0,
        "notReady": 0,
        "condNotReady": [],
        "mssnM": 0,
        "expireTm": 0,
        "rechrgTm": 0,
        "mssnStrtTm": 1690826693,
        "operatingMode": 1,
        "initiator": "localApp",
        "nMssn": 267,
        "missionId": "01H6PHZPC89TNQ5VDT8FME39AA"
    },
    "cleanSchedule2": [],
    "cloudEnv": "prod",
    "connected": true,
    "country": "FI",
    "deploymentState": 0,
    "dock": {
        "known": true,
        "pn": "4724349",
        "state": 300,
        "id": "19724962122878147100180134271301832468075",
        "fwVer": "4.8.6",
        "hwRev": 0,
        "varID": 6,
        "cap": {
            "evac": 1,
            "fr": 0
        }
    },
    "evacAllowed": true,
    "ecoCharge": false,
    "featureFlags": {
        "pmapSharing": 0,
        "clearHaz": true,
        "covHybridPlan": 1,
        "rugTraversal": 1,
        "chrgLrPtrnEnable": 1,
        "covPlan": 0,
        "homeMonitoring": false,
        "mapCleanup": 1,
        "stratParams": 0,
        "wallE": 0,
        "trainingStrategy": 201,
        "childLockEnable": 1,
        "reachableSpaceFlags": 2062
    },
    "hwPartsRev": {
        "csscID": 0,
        "mobBrd": 17,
        "mobBlid": "CD8A3313626A996BB4EE6E1225BB5AD4",
        "imuPartNo": "LSM6DSR",
        "lrDrv": "AW21024",
        "NavBrd": 100,
        "navSerialNo": "SSE1C0W4L",
        "wlan0HwAddr": "4c:b9:ea:02:3a:5a"
    },
    "hwDbgr": null,
    "imgUpload": 1,
    "langs2": {
        "sVer": "1.0",
        "dLangs": {
            "ver": "0.37",
            "langs": [
                "ar-SA_1",
                "ar-SA_2",
                "cs-CZ_1",
                "cs-CZ_2",
                "da-DK_1",
                "da-DK_2",
                "de-DE_1",
                "de-DE_2",
                "en-GB_1",
                "en-GB_2",
                "en-US_1",
                "en-US_2",
                "es-ES_1",
                "es-ES_2",
                "es-XL_1",
                "es-XL_2",
                "fi-FI_1",
                "fi-FI_2",
                "fr-CA_1",
                "fr-CA_2",
                "fr-FR_1",
                "fr-FR_2",
                "he-IL_1",
                "he-IL_2",
                "it-IT_1",
                "it-IT_2",
                "ja-JP_1",
                "ja-JP_2",
                "ko-KR_1",
                "ko-KR_2",
                "nb-NO_1",
                "nb-NO_2",
                "nl-NL_1",
                "nl-NL_2",
                "pl-PL_1",
                "pl-PL_2",
                "pt-BR_1",
                "pt-BR_2",
                "pt-PT_1",
                "pt-PT_2",
                "ru-RU_1",
                "ru-RU_2",
                "sv-SE_1",
                "sv-SE_2",
                "tr-TR_1",
                "tr-TR_2",
                "zh-CN_1",
                "zh-CN_2",
                "zh-HK_1",
                "zh-HK_2",
                "zh-TW_1",
                "zh-TW_2"
            ]
        },
        "sLang": "fi-FI_1",
        "aSlots": 0
    },
    "lastCommand": {
        "command": "start",
        "favorite_id": null,
        "initiator": "localApp",
        "params": null,
        "time": 1690826693,
        "ordered": 1,
        "pmap_id": "l3aXQn2CQHSnTnEVSCFaXg",
        "regions": [
            {
                "region_id": "0",
                "type": "rid"
            }
        ]
    },
    "lastDisconnect": 4,
    "mapUploadAllowed": true,
    "missionTelemetry": {
        "aux_comms": 1,
        "bat_stats": 1,
        "behaviors_report": 1,
        "camera_settings": 1,
        "coverage_report": 1,
        "hardknock_report": 1,
        "learned_policy_report": 1,
        "map_cleanup_report": 1,
        "map_hypotheses": 1,
        "map_load": 1,
        "map_save": 1,
        "pmap_navigability": 1,
        "roomseg_report": 1,
        "sensor_stats": 1,
        "tumor_classifier_report": 1,
        "visual_stasis_report": 1,
        "vital_stats": 1,
        "vslam_report": 1
    },
    "mssnNavStats": {
        "nMssn": 266,
        "missionId": "01H6PECGTRAMNSMRT0AZ5SPPG5",
        "gLmk": 42,
        "lmk": 20,
        "reLc": 0,
        "plnErr": "none",
        "mTrk": 99,
        "kdp": 0,
        "sfkdp": 0,
        "nmc": 1,
        "nmmc": 1,
        "nrmc": 0,
        "mpSt": "idle",
        "l_drift": 0,
        "h_drift": 0,
        "l_squal": 0,
        "h_squal": 64
    },
    "name": "Cyka Blyat",
    "noAutoPasses": true,
    "odoaMode": 0,
    "odoaFeats": null,
    "openOnly": false,
    "optFeats": {
        "pmaps": null,
        "odoaLite": {
            "enabled": false,
            "exp": null
        }
    },
    "peopleFilter": 1,
    "pmapLearningAllowed": true,
    "pmaps": [
        {
            "l3aXQn2CQHSnTnEVSCFaXg": "230731T172014"
        }
    ],
    "pmapCL": true,
    "pmapSGen": 4,
    "pmapShare": {
        "copy": [
            1,
            2,
            4,
            6
        ],
        "share": null
    },
    "precheck": {
        "weather": 0,
        "readiness": 0,
        "readinessTm": 1800
    },
    "rankOverlap": 15,
    "reflexSettings": {
        "rlWheelDrop": {
            "enabled": 6
        }
    },
    "runtimeStats": {
        "sqft": 273,
        "min": 6,
        "hr": 125
    },
    "sceneRecog": null,
    "schedHold": false,
    "secureBoot": {
        "log": 2,
        "flip": 0,
        "sbl1Ver": "B3.3.01_PPUB",
        "stublVer": "B3.4.00_PPUB",
        "efuse": 1,
        "blType": 1,
        "enforce": 2,
        "lastRst": "4000080000000a0",
        "recov": "linux+sextant-7.9.1_release+Firmware-Production+135",
        "idSwitch": 0,
        "permReq": 0,
        "perm": "none"
    },
    "sku": "j755840",
    "smartHome": {
        "homeMonitoringAllowed": false
    },
    "softwareVer": "sapphire+23.12.4+2023-06-07-cca733b60c4+Firmware-Production+150",
    "streamingVideoStatus": null,
    "subModSwVer": {
        "nav": "sapphire-nav+23.12.4+ubuntu-HEAD-cca733b60c4+150",
        "mob": "23.12.4+ubuntu-HEAD-cca733b60c4+150",
        "pwr": "0.2.11+ubuntu-HEAD-cca733b60c4+150",
        "sft": "1.5.2+ubuntu-HEAD-fb86fda8957+33",
        "mobBtl": "4.1",
        "cam": "0.2.31",
        "linux": "linux+sextant-7.14.0_release+Firmware-Production+150",
        "con": "4.9.20-tags/release-4.9.20@9a60cdf9/ubuntu(*)",
        "parcels": {
            "machine-learning-parcel": "none"
        }
    },
    "svcEndpoints": {
        "svcDeplId": "v011"
    },
    "timezone": "Europe/Helsinki",
    "tls": {
        "tzbChk": 1,
        "privKType": 2,
        "lcCiphers": [
            0,
            0,
            0,
            0,
            0,
            0,
            0,
            50336514,
            50380848,
            50336513
        ]
    },
    "twoPass": true,
    "tz": {
        "events": [
            {
                "dt": 1688212800,
                "off": 180
            },
            {
                "dt": 1698541201,
                "off": 120
            },
            {
                "dt": 1711846801,
                "off": 180
            }
        ],
        "ver": 19
    },
    "vacHigh": false,
    "netinfo": {
        "dhcp": true,
        "addr": "192.168.1.100",
        "mask": "255.255.255.0",
        "gw": "192.168.1.1",
        "dns1": "192.168.1.15",
        "dns2": "0.0.0.0",
        "bssid": "[redacted]",
        "sec": 4,
        "freq": 5220
    },
    "signal": {
        "rssi": -54,
        "snr": 42,
        "noise": -96
    },
    "wifistat": {
        "wifi": 1,
        "uap": false,
        "cloud": 14
    },
    "wlcfg": {
        "sec": 4,
        "ssid": "50696E6775"
    }
}
@jeremywillans
Copy link
Owner

Known issue due to changes in iRobot API

refer here for any future updates

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants