Skip to content

trieb/worx-landroid

Repository files navigation

worx-landroid

This script polls the Landroid-Worx for data over REST-api and publish it to a Mqtt-brooker using the Paho Mqtt Client. It also publish the data using Dweet.io to easily view it on e.g. freeboard.io.

To get started

  1. Copy config_default.ini to config.ini
  2. Add your configuration to config.ini
  3. Install required libraries
  • pip install paho-mqtt paho-mqtt
  • pip install requests

Start

$ python run.py

NEW: Dockerfile and docker-compose.yml for Docker

Commands

There are currently three different commands, start, gohome and check. A command is sent by sending a mqtt message to <BaseTopic>/command <command>

  • check - Collect status rapport
  • start - Start mowing
  • gohome - Stop, and go home

Testing the script with mosquitto_pub.exe

$ ./mosquitto_pub.exe -h 192.168.1.5 -t my_topic/command -m start

#openHAB

Alarms from LandroidWorx in openHAB

Alarms

The alarms below are being pushed if alarm is given. A general alarm_ok = 1 if any of the alarms below are high.

"allarmi": [ // Alarms 0, blade_blocked 1, repositioning_error 2, outside_wire 3, blade_blocked 4, outside_wire 5, mower_tilted 6, error 7, error 8, error 9, collision_sensor_blocked 10,
11, charge_error 12, battery_error 13, 14, 15, 16, 17, 18, 19, 20, 21, 22, 23, 24, 25, 26, 27, 28, 29, 30 ],

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published