Comments (2)
the WorxCloud object got the function update(), but I cannot manage to get the status from it..
from pyworxcloud.
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)
- How do I define "CloudType" and the WorxCloud object HOT 3
- Issue installing this in home assistant HOT 4
- Needs to import mqtt from awsiotsdk, not awsiot HOT 28
- Connection broken HOT 6
- MQTT connection is not automatically reconnected on drop/errors HOT 1
- Error initializing an account with multiple mowers
- Missing handling of timeout
- Not aligned requirements file HOT 1
- Python version requirement HOT 8
- Can I use this as a bridge HOT 3
- last_status is None HOT 4
- Loading fails when missing last_status HOT 2
- How to send mover to specific zone HOT 11
- AttributeError: 'Client' object has no attribute '_on_pre_connect'. Did you mean: 'on_pre_connect'? HOT 9
- Firmware version is no longer a floating point number and parsing fails as a result HOT 2
- enhancement: handle Cloudflare Turnstile interception HOT 2
- Question - how can i write current api data to a file HOT 11
- Internal mower state not updated when update message is received HOT 1
- BUG: unhandled exception if no gps key stops MQTT data receive
- Request: More stable API HOT 6
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from pyworxcloud.