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

Getting error when creating docker (Step 4) #43

Open
mermelmadness opened this issue Feb 10, 2022 · 27 comments
Open

Getting error when creating docker (Step 4) #43

mermelmadness opened this issue Feb 10, 2022 · 27 comments

Comments

@mermelmadness
Copy link

mermelmadness commented Feb 10, 2022

I'm following the instructions and get this error when trying to run the docker commands:

docker run --name rest980 -e BLID=***************************** -e PASSWORD=************************** -e ROBOT_IP=192.168.1.126 -e FIRMWARE_VERSION=2 -p 3000:3000 koalazak/rest980:latest

WARNING: The requested image's platform (linux/amd64) does not match the detected host platform (linux/arm64/v8) and no specific platform was requested standard_init_linux.go:228: exec user process caused: exec format error

Running on a Raspberry Pi 3

@jeremywillans
Copy link
Owner

The official repo does have have an ARM Image (compatible with RPi) - have a look at this thread where a community member provides a working image

@mermelmadness
Copy link
Author

mermelmadness commented Feb 11, 2022

Ok, but I'm not sure what command I should be running. Is it the same as the one you listed but ...maramend/rest980 instead?

Because when I do that I get:

[email protected] start /usr/src/app
node ./bin/www
WARNING: NODE_ENV value of 'production' did not match any deployment config file names.
WARNING: See https://github.com/lorenwest/node-config/wiki/Strict-Mode

@jeremywillans
Copy link
Owner

once you have the image online, step 5 is what you follow to get the room details from the ip address of the docker host running the rest980 container (on the port you specified, being 3000 unless changed)

@mermelmadness
Copy link
Author

mermelmadness commented Feb 11, 2022

Step 5 I can do. I actually tried to do this earlier and got this, so I'm trying again, but more closely following the directions. I got all my info in a text document so I know the RIDs and everything (don't have any zones). I just can't get it to work. Seems that it's not too easy to start over, either.
image
Was hoping someone made a video of the step by step and put it online. I'm not too good with just knowing how to do something in code or where files are supposed to be. I have an MQTT broker since I use Z2M but I'm not sure what you mean by "A working MQTT Server with discovery is also needed" or how to set it up.

@jeremywillans
Copy link
Owner

if your use MQTT for Z2M then you should be set ready to go.

ok so if you have all the room ids, then move onto step 6 in which you do need to get your handy dirty with code and update the relevant secrets, input_booleans and input_texts to match what you have configured.

based on the above, im not sure if you have used packages yet to bring your vacuum.yaml file into the HA config. if you check the developer tab, do you see a sensor.rest980 ?

@mermelmadness
Copy link
Author

No, no entity by that name.

I didn't complete step 4. The docker won't build on my Pi. Can I just install these integrations instead?
image
image
image

I have a J7, btw

@mermelmadness
Copy link
Author

mermelmadness commented Feb 11, 2022

I'd like to start over from scratch, but I'm not sure how to remove the original docker. I'm also still not sure how to build the armv7 on my Pi. Nothing seemed to work.

@mermelmadness
Copy link
Author

The official repo does have have an ARM Image (compatible with RPi) - have a look at this thread where a community member provides a working image

So, I just ran a uname command and got this:

Linux a0d7b954-ssh 5.10.92-v8 #1 SMP PREEMPT Tue Feb 8 17:24:27 UTC 2022 aarch64 Linux

Does this mean I have the 64-bit OS? Shouldn't the regular repo work, then?

@jeremywillans
Copy link
Owner

No, no entity by that name.

I didn't complete step 4. The docker won't build on my Pi. Can I just install these integrations instead?

image

image

image

I have a J7, btw

Yea you should just be able to use the j7 image.. in fact I recommend it!

@mermelmadness
Copy link
Author

Yea you should just be able to use the j7 image.. in fact I recommend it!

I've been seeing this for over 20 minutes
image

@mermelmadness
Copy link
Author

It completely locked up my Pi and none of my devices were working. Had to shut down and restart.

@jeremywillans
Copy link
Owner

When you install the image, it need down actually build the image file so it could actually take a while spending on how much other stuff is running on the box.

iirc you have the j7 - so make sure you use that particular image variant

@mermelmadness
Copy link
Author

mermelmadness commented Feb 13, 2022

Alright, I got rid of everything I don't use anymore and stopped all addons I don't actively use every day. Let's see what happens.

@mermelmadness
Copy link
Author

Do you have a Discord?

@mermelmadness
Copy link
Author

It just won't build on my Pi. Every time I try and install it completely locks it up. Gonna have to wait until I get better hardware. I'm either going to repurpose a NUC, MacBook Pro, or Mac Mini for my new setup.

@mermelmadness
Copy link
Author

mermelmadness commented Feb 15, 2022

I'm up and running with newer hardware and no problems installing the addons. One question. Does vacuum.yaml belong in /config or /config/vacuum?

EDIT: More than one question. I followed the instructions again and still get "entity not found" errors.

@jeremywillans
Copy link
Owner

jeremywillans commented Feb 16, 2022

vacuum.yaml should go in /config/packages/

however you need to enable the packages feature in your main config file.
check and either add/update the homeassistant section of the configuration.yaml as noted below -

homeassistant:
  packages: !include_dir_named packages

@mermelmadness
Copy link
Author

That was the missing piece.

image

Will test later this morning. I removed the schedule dropdown since I don't use any schedules. Now, you said the map view wasn't working anymore since iRobot changed their API?

@jeremywillans
Copy link
Owner

Glad its working!

Yeah maps aren't working until the robot is able to publish the positional data again.

@mermelmadness
Copy link
Author

mermelmadness commented Feb 17, 2022

Ok, will check for updates periodically. Now, when initially setting up I got all my RIDs by doing a couple of groups of rooms and writing down the order. One thing I noticed is that you can’t select the order for the robot to vacuum from the Lovelace UI. You just select the rooms and it will do them in whatever order it wants to. Is that accurate? Did I miss something in the config that would let me select the room order for a new clean job?

@jeremywillans
Copy link
Owner

it will order then based on the order you enable the booleans

check out this item 👍

@mermelmadness
Copy link
Author

Tried that. No matter what room I select first it tries to do my office first, then gives a navigation error and says the map is incorrect. I’ll redo the RIDs to make sure they’re accurate.

@jeremywillans
Copy link
Owner

Hmm, I haven’t tested this on the j7, but it should work the same. Can you confirm when you enable the booleans the order in the clean_rooms input text is correct?

Can you schedule a clean from the iRobot app and copy the api response for the lastCommand section? Just want to compare against the what I see from the i7

@mermelmadness
Copy link
Author

Here's the result of the API from the last cleaning job I did, which was last night. Only did 3 rooms.

"lastCommand":{"command":"clean","initiator":"google","time":1645055483,"ordered":1,"pmap_id":"u917o-SARKqlXLWdJQtWBA","regions":[{"region_id":"18","type":"rid"},{"region_id":"34","type":"rid"},{"region_id":"33","type":"rid"}],"user_pmapv_id":null,"favorite_id":null,"robot_id":null,"select_all":null},"lastDisconnect":0,"mapUploadAllowed":true,"missionTelemetry":{"aux_comms":1,"bat_stats":1,"behaviors_report":1,"camera_settings":1,"coverage_report":1,"hardknock_report":1,"map_hypotheses":1,"map_load":1,"map_save":1,"pmap_navigability":1,"sensor_stats":1,"tumor_classifier_report":1,"vital_stats":1,"vslam_report":1},"mssnNavStats":{"nMssn":48,"missionId":"01FW2F573R0FPYXP5Z3C3YK990","gLmk":72,"lmk":63,"reLc":0,"plnErr":"none","mTrk":93,"kdp":0,"sfkdp":0,"nmc":2,"nmmc":1,"nrmc":0,"mpSt":"idle","l_drift":0,"h_drift":0,"l_squal":3,"h_squal":29},"name":"Howie","noAutoPasses":true,"noPP":false,"odoaMode":0,"odoaFeats":{},"openOnly":false,"pmapLearningAllowed":true,"pmaps":[{"sV6rnViTQWiqQalv0WO1pA":"220213T021224"},{"u917o-SARKqlXLWdJQtWBA":"220217T003441"}],"pmapCL":true,"pmapShare":{"copy":[1,4]},"rankOverlap":15,"reflexSettings":{"rlWheelDrop":{"enabled":0}},"sceneRecog":1,"schedHold":false,"sku":"j755020","softwareVer":"sapphire+1.2.12+Firmware-Production+57","subModSwVer":{"nav":"sapphire-nav+1.2.12+ubuntu-HEAD-4316d8880a0+0","mob":"1.2.12+ubuntu-HEAD-4316d8880a0+0","pwr":"0.2.6+ubuntu-HEAD-4316d8880a0+0","sft":"1.3.1+ubuntu-HEAD-5dc7afa7447+21","mobBtl":"4.1","cam":"0.2.31","linux":"linux+sextant-5.18.8_release+Firmware-Production+57","con":"4.7.1-tags/release-4.7.1@bb784e52/","parcels":{"machine-learning-parcel":"none"}},"svcEndpoints":{"svcDeplId":"v011"},"timezone":"America/New_York","tls":{"tzbChk":1,"privKType":2,"lcCiphers":[0,0,0,0,0,0,0,50380848,50336514,50380847]},"twoPass":false,"tz":{"events":[{"dt":1641038400,"off":-300},{"dt":1647154801,"off":-240},{"dt":1667714401,"off":-300}],"ver":13},"vacHigh":false,"netinfo":{"dhcp":true,"addr":"192.168.1.126","mask":"255.255.255.0","gw":"192.168.1.1","dns1":"192.168.1.1","dns2":"0.0.0.0","bssid":"04:d4:c4:1d:6c:54","sec":4},"signal":{"rssi":-69,"snr":27,"noise":-96},"wifistat":{"cloud":14,"wifi":1,"uap":false},"wlcfg":{"sec":4,"ssid":"417765736F6D6573617563655F3547"}}

@mermelmadness
Copy link
Author

mermelmadness commented Feb 17, 2022

Just tried it again. Definitely did not choose my office, but it started there anyway. And now I have to reboot it for some reason as the iRobot app can't connect.

@mermelmadness
Copy link
Author

I'm still having the issue of selective room cleaning not being correct. It always starts with the room the dock is in.

@jeremywillans
Copy link
Owner

discussing 1:1

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