Giter VIP home page Giter VIP logo

Comments (2)

LordMax2 avatar LordMax2 commented on August 11, 2024

the WorxCloud object got the function update(), but I cannot manage to get the status from it..

from pyworxcloud.

MTrab avatar MTrab commented on August 11, 2024

These are the current attributes - haven't had the time to update the documentation with these yet:

    self.accessories
    self.battery_charge_cycle
    self.battery_charge_cycle_current
    self.battery_charge_cycles_reset
    self.battery_charging
    self.battery_percent
    self.battery_temperature
    self.battery_voltage
    self.blade_time
    self.blade_time_current
    self.blade_work_time_reset
    self.board
    self.current_zone
    self.distance
    self.error
    self.error_description
    self.firmware
    self.gps_latitude
    self.gps_longitude
    self.locked
    self.mac
    self.mac_address
    self.mowing_zone
    self.mqtt_in
    self.mqtt_out
    self.mqtt_topics
    self.online
    self.ots_capable
    self.partymode_capable
    self.partymode_enabled
    self.pitch
    self.rain_delay
    self.rain_delay_time_remaining
    self.rain_sensor_triggered
    self.roll
    self.rssi
    self.schedule_mower_active
    self.schedule_variation
    self.schedules
    self.serial
    self.serial_number
    self.status
    self.status_description
    self.updated
    self.work_time
    self.yaw
    self.zone
    self.zone_probability

So as pr. documentation, you get the status like this:

from pyworxcloud import WorxCloud
cloud = WorxCloud("your@email", "Password")

# Initialize connection
auth = cloud.initialize()

if not auth:
    # If invalid credentials are used, or something happend during
    # authorize, then exit
    exit(0)

# Connect to device with index 0 (devices are enumerated 0, 1, 2 ...) and do
# not verify SSL (False)
cloud.connect(0, False)

# Read latest states received from the device
cloud.update()

print(cloud.status)

from pyworxcloud.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.