Stomer API for accessing data from your Stromer Speed Bike.
Project description
Stromer API
This Python package contains the interfaces for interacting with the Stromer web API that is normally used by the Stromer mobile app. Using this API you can retrieve data of your bike.
Installation:
`pip install stromer_api`
Usage:
`from stromer_api import StromerBike`
`mybike = StromerBike(<your username>, <your password>, <stromer client id>)`
`print(mybike.state.trip_distance)`
`print(mybike.position.latitude)`
The client_id you should intercept using a proxy (eg. mitm proxy) or maybe it can be obtained from decompiling the android apk of the Stromer OMNI app. Many discussions can be found on the internet how to get hold of it.
The following properties can be accessed:
-
.state
-
.state.trip_distance
-
.state.suiversion
-
.state.average_speed_trip
-
.state.power_on_cycles
-
.state.tntversion
-
.state.atmospheric_pressure
-
.state.battery_SOC
-
.state.assistance_level
-
.state.bike_speed
-
.state.trip_time
-
.state.trip_time_str
-
.state.battery_health
-
.state.theft_flag
-
.state.motor_temp
-
.state.battery_temp
-
.state.rcvts
-
.state.rcvts_str
-
.state.average_energy_consumption
-
.state.total_time
-
.state.total_time
-
.state.total_distance
-
.state.light_on
-
.state.total_energy_consumption
-
.state.lock_flag
-
.position
-
.position.latitude
-
.position.longitude
-
.position.altitude
-
.position.speed
-
.position.timets
-
.position.timets_str
-
.position.rcvts
-
.position.rcvts_str
This API makes use of the "unofficial" endpoints /bike, /bike/<bike_id>/state, and /bike/<bike_id>/position. If you are aware of new or others that work please leave a message.
Any suggestions for additions are of course also very welcome!
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
File details
Details for the file stromer_api-1.0.tar.gz
.
File metadata
- Download URL: stromer_api-1.0.tar.gz
- Upload date:
- Size: 3.3 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.0 CPython/3.10.1
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 370022c7f06fd13d82ed2e36ac8b665a3119a8515afc7b29034d0841c9c07588 |
|
MD5 | adb6d825842243a6dfc27b1b1755fe8c |
|
BLAKE2b-256 | b5c7c432c995a3b23e713629fe479282fe67354a3d1b01f91224c2b3e2384020 |