09-11-2020 08:57 AM
Hello,
I wrote a litte programm for mymodule to get only the information I need and not everything being in the my-grid demo.
Now I want to get the percentage of the battery as well. This does not work.
How would I call this ?
Right now I call everything I need like this:
COBI.rideService.speed.subscribe(function(speed) {$('#speed').html(`You are riding at ${ speed.toFixed(2) } m/s`);
Any idea ?
battery and state do not work.
Regards,
Jochen
Solved! Go to Solution.
09-25-2020 05:24 PM
Hello Jochen,
You can access your eBike's battery with the following command:
cobi.battery.state.subscribe(function(value) {
// from here you can do whatever you want with the battery
})
Let me know if that helped!
Best regards,
10-04-2020 04:50 PM