virtualzone/landroid-bridge

Newbie, how do I install using docker or build from source - HassoI Pi

Closed this issue · 1 comments

Hi,

Newbie here struggling with new world.

The install notes talk about either installing using docker, or build from source.

I am unsure how to access docker, and when I try the build from source route i just get an unexpected indentifier error on the first line of code when entered into node.js (of which I understand nothing!)

I have searched for this basic help but without success. any pointers/patient assistance greatfully received

Hello @markdswan926, have you ever used Docker for anything? If not, you can head over to https://www.digitalocean.com/community/tutorials/how-to-install-and-use-docker-on-ubuntu-18-04 and follow these simple instuctions to get started with Docker on Ubuntu Linux.

I'm using the landroid-bridge on my QNAP NAS to monitor my Landroid-S mower. However, there is currently some issue and the bridge never connects. See ticket #88.

The code I'm using to start the bridge is as following:

# file: docker-compose.yml
version: '3'

services:
  landroid:
    image: virtualzone/landroid-bridge
    container_name: landroid
    restart: unless-stopped
    ports:
      - "3000:3000"
    volumes:
      - ./config.json:/usr/src/app/config.json

File config.json

{
    "http": {
        "port": 3000
    },
    "landroid-s": {
        "enable": true,
        "email": "[REDACTED]",
        "pwd": "[REDACTED]",
        "dev_sel": 0
    },
    "mqtt": {
        "enable": true,
        "url": "mqtt://10.0.0.55",
        "topic": "landroid"
    },
    "scheduler": {
        "enable": false,
        "cron": false,
        "weather": {
            "provider": "wunderground",
            "apiKey": "YOUR_API_KEY",
            "latitude": 50.00,
            "longitude": 8.00
        },
        "db": "./scheduler.db",
        "earliestStart": 10,
        "latestStop": 15,
        "startEarly": true,
        "offDays": 2,
        "squareMeters": 200,
        "perHour": 50,
        "mowTime": 60,
        "chargeTime": 60,
        "daysForTotalCut": 4,
        "rainDelay": 90,
        "threshold": 30
    }
}

Using docker-compose to start the bridge

# Assuming Docker has been installed successfully
docker-compose up -d