I'm back at it again. And a major good thing - I can FINALLY control the Pi via my Mac. What a relief! I was using the Pi on an ironing board connected to the TV next to it in my loft room (it is a proper room though, honest)!
And here is where I am right now. I'm falling down at Part 3 Create Docker Compose Manifest. I get this message:
pi@raspberrypi:
~/homebridge $ mkdir /home/pi/homebridge
mkdir: cannot create directory ‘/home/pi/homebridge’: File exists
And this is the entire process up to Part 3:
pi@raspberrypi:
~ $ sudo apt-get -y install python-setuptools && sudo easy_install pip && sudo pip install docker-compose
Reading package lists... Done
Building dependency tree
Reading state information... Done
python-setuptools is already the newest version (33.1.1-1).
python-setuptools set to manually installed.
The following packages were automatically installed and are no longer required:
libuv1 lxkeymap python-cairo python-gobject python-gobject-2 python-gtk2
python-xklavier
Use 'sudo apt autoremove' to remove them.
0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.
Searching for pip
Best match: pip 9.0.1
Adding pip 9.0.1 to easy-install.pth file
Installing pip script to /usr/local/bin
Installing pip2.7 script to /usr/local/bin
Installing pip2 script to /usr/local/bin
Using /usr/lib/python2.7/dist-packages
Processing dependencies for pip
Finished processing dependencies for pip
Collecting docker-compose
Downloading
https://files.pythonhosted.org/pack...fb/docker_compose-1.21.2-py2.py3-none-any.whl (123kB)
100% |████████████████████████████████| 133kB 1.2MB/s
Collecting PyYAML<4,>=3.10 (from docker-compose)
Downloading
https://files.pythonhosted.org/pack...c635d36245a72a6a69b23b383a/PyYAML-3.12.tar.gz (253kB)
100% |████████████████████████████████| 256kB 619kB/s
Requirement already satisfied: requests!=2.11.0,!=2.12.2,!=2.18.0,<2.19,>=2.6.1 in /usr/lib/python2.7/dist-packages (from docker-compose)
Collecting websocket-client<1.0,>=0.32.0 (from docker-compose)
Downloading
https://files.pythonhosted.org/pack.../websocket_client-0.48.0-py2.py3-none-any.whl (198kB)
100% |████████████████████████████████| 204kB 1.0MB/s
Requirement already satisfied: ipaddress>=1.0.16; python_version < "3.3" in /usr/lib/python2.7/dist-packages (from docker-compose)
Collecting backports.ssl-match-hostname>=3.5; python_version < "3.5" (from docker-compose)
Downloading
https://files.pythonhosted.org/pack...3/backports.ssl_match_hostname-3.5.0.1.tar.gz
Collecting docker<4.0,>=3.3.0 (from docker-compose)
Downloading
https://files.pythonhosted.org/pack...b060371b6f9/docker-3.4.0-py2.py3-none-any.whl (122kB)
100% |████████████████████████████████| 122kB 1.5MB/s
Collecting dockerpty<0.5,>=0.4.1 (from docker-compose)
Downloading
https://files.pythonhosted.org/pack...98fe8b06f44becc028d3ba/dockerpty-0.4.1.tar.gz
Collecting texttable<0.10,>=0.9.0 (from docker-compose)
Downloading
https://files.pythonhosted.org/pack...84ef7abd30d1eae00a4d80/texttable-0.9.1.tar.gz
Requirement already satisfied: enum34<2,>=1.0.4; python_version < "3.4" in /usr/lib/python2.7/dist-packages (from docker-compose)
Requirement already satisfied: six<2,>=1.3.0 in /usr/lib/python2.7/dist-packages (from docker-compose)
Collecting jsonschema<3,>=2.5.1 (from docker-compose)
Downloading
https://files.pythonhosted.org/pack...d2912da/jsonschema-2.6.0-py2.py3-none-any.whl
Collecting docopt<0.7,>=0.6.1 (from docker-compose)
Downloading
https://www.piwheels.org/simple/docopt/docopt-0.6.2-py2.py3-none-any.whl
Collecting cached-property<2,>=1.2.0 (from docker-compose)
Downloading
https://files.pythonhosted.org/pack...0e/cached_property-1.4.3-py2.py3-none-any.whl
Collecting docker-pycreds>=0.3.0 (from docker<4.0,>=3.3.0->docker-compose)
Downloading
https://files.pythonhosted.org/pack...ab5/docker_pycreds-0.3.0-py2.py3-none-any.whl
Collecting functools32; python_version == "2.7" (from jsonschema<3,>=2.5.1->docker-compose)
Downloading
https://files.pythonhosted.org/pack...f47c3502ef034365db/functools32-3.2.3-2.tar.gz
Building wheels for collected packages: PyYAML, backports.ssl-match-hostname, dockerpty, texttable, functools32
Running setup.py bdist_wheel for PyYAML ... done
Stored in directory: /root/.cache/pip/wheels/03/05/65/bdc14f2c6e09e82ae3e0f13d021e1b6b2481437ea2f207df3f
Running setup.py bdist_wheel for backports.ssl-match-hostname ... done
Stored in directory: /root/.cache/pip/wheels/99/7e/f7/a88a9bcf7a3bd6b12cf6a74eee8c89746aaa02f71ab7b33939
Running setup.py bdist_wheel for dockerpty ... done
Stored in directory: /root/.cache/pip/wheels/e5/1e/86/bd0a97a0907c6c654af654d5875d1d4383dd1f575f77cee4aa
Running setup.py bdist_wheel for texttable ... done
Stored in directory: /root/.cache/pip/wheels/99/1e/2b/8452d3a48dad98632787556a0f2f90d56703b39cdf7d142dd1
Running setup.py bdist_wheel for functools32 ... done
Stored in directory: /root/.cache/pip/wheels/b5/18/32/77a1030457155606ba5e3ec3a8a57132b1a04b1c4f765177b2
Successfully built PyYAML backports.ssl-match-hostname dockerpty texttable functools32
Installing collected packages: PyYAML, websocket-client, backports.ssl-match-hostname, docker-pycreds, docker, dockerpty, texttable, functools32, jsonschema, docopt, cached-property, docker-compose
Successfully installed PyYAML-3.12 backports.ssl-match-hostname-3.5.0.1 cached-property-1.4.3 docker-3.4.0 docker-compose-1.21.2 docker-pycreds-0.3.0 dockerpty-0.4.1 docopt-0.6.2 functools32-3.2.3.post2 jsonschema-2.6.0 texttable-0.9.1 websocket-client-0.48.0
pi@raspberrypi:
~ $ mkdir /home/pi/homebridge
pi@raspberrypi:
~ $ cd /home/pi/homebridge
pi@raspberrypi:
~/homebridge $ nano docker-compose.yml
pi@raspberrypi:
~/homebridge $ docker-compose up -d
ERROR: Top level object in './docker-compose.yml' needs to be an object not '<type 'NoneType'>'.
pi@raspberrypi:
~/homebridge $ docker-compose up -d
ERROR: Top level object in './docker-compose.yml' needs to be an object not '<type 'NoneType'>'.
pi@raspberrypi:
~/homebridge $ nano docker-compose.yml
pi@raspberrypi:
~/homebridge $ docker-compose logs -f
ERROR: Top level object in './docker-compose.yml' needs to be an object not '<type 'str'>'.
pi@raspberrypi:
~/homebridge $ ping raspberrypi
PING raspberrypi (127.0.1.1) 56(84) bytes of data.
64 bytes from raspberrypi (127.0.1.1): icmp_seq=1 ttl=64 time=0.125 ms
64 bytes from raspberrypi (127.0.1.1): icmp_seq=2 ttl=64 time=0.104 ms
64 bytes from raspberrypi (127.0.1.1): icmp_seq=3 ttl=64 time=0.055 ms
64 bytes from raspberrypi (127.0.1.1): icmp_seq=4 ttl=64 time=0.090 ms
64 bytes from raspberrypi (127.0.1.1): icmp_seq=5 ttl=64 time=0.096 ms
64 bytes from raspberrypi (127.0.1.1): icmp_seq=6 ttl=64 time=0.048 ms
64 bytes from raspberrypi (127.0.1.1): icmp_seq=7 ttl=64 time=0.075 ms
64 bytes from raspberrypi (127.0.1.1): icmp_seq=8 ttl=64 time=0.102 ms
64 bytes from raspberrypi (127.0.1.1): icmp_seq=9 ttl=64 time=0.104 ms
^X64 bytes from raspberrypi (127.0.1.1): icmp_seq=10 ttl=64 time=0.064 ms
64 bytes from raspberrypi (127.0.1.1): icmp_seq=11 ttl=64 time=0.106 ms
64 bytes from raspberrypi (127.0.1.1): icmp_seq=12 ttl=64 time=0.105 ms
64 bytes from raspberrypi (127.0.1.1): icmp_seq=13 ttl=64 time=0.095 ms
64 bytes from raspberrypi (127.0.1.1): icmp_seq=14 ttl=64 time=0.092 ms
^C
--- raspberrypi ping statistics ---
14 packets transmitted, 14 received, 0% packet loss, time 13512ms
rtt min/avg/max/mdev = 0.048/0.090/0.125/0.021 ms
pi@raspberrypi:
~/homebridge $