Seite 1 von 2

Get remaining time of current job?

Verfasst: Sa 18. Aug 2018, 12:02
von phrusher
Hi,

I've been trying to read through the documentation for the API but could not see any way to retrieve the remaining time or the end time of the current job. Is it possible somehow either through http or mqtt? There seem to be a little bit of documentation missing overall so I'm hoping it's OUT there somewhere but that I've just missed it :)

Re: Get remaining time of current job?

Verfasst: Sa 25. Aug 2018, 17:24
von shadowkiller
hey,

maybe there is no possibility for retrieving the remaining time for mowing.

The Mower itself decides when to go back for loading because of the remaining battery charge. Maybe you have to know the border of remaining battery charge when mower goes back for loading. With this maybe it'll be possible to nearly predict the possible remaining mowing time from the point of actual battery charge by yourselfs automation systems calculations.

Re: Get remaining time of current job?

Verfasst: So 26. Aug 2018, 10:20
von pirni
Guess He means something like:
Mowing time left: 37min
Regarding the Timer for that Day. No matter of charging time or breaks.
Should be possible to read the end time of the time schedule for Robonect

Re: Get remaining time of current job?

Verfasst: So 26. Aug 2018, 11:53
von shadowkiller
phrusher hat geschrieben:...
could not see any way to retrieve the remaining time or the end time of the current job.
...
Do you mean end time of a Timer or end time of the actual mowing cycle inside a Timer-range?

Anyway, for each case the answer we can offer is what we just wrote.
Anybody else with another idea?

Re: Get remaining time of current job?

Verfasst: So 26. Aug 2018, 12:33
von phrusher
Something basic and just getting the end time of the current job would be sufficient for me. Don't need to know if it's a scheduled job from the Timer or a manually placed "job".

The reason for this is that one side of the garden is a slope downwards towards the neighbors. Whenever the mower changes state in that slope, for example from "mowing" to "searching", it rolls down to their lawn and ends up outside our cutting area and stops there.

What I've done to solve this for now is to have a Service call the Robonect API to get the tilt of the mower and if the angle is low the Service sends a command for EOD. It works as long as my Timer ends at a specific time as the Service start calling it five minutes before the Timer schedule ends. But if I change the time of the Timer or create a manual job it won't work.

So what I'm hoping for is that whenever the mower starts cutting the Service will receive an event, probably a Status change through mqtt, and can then retrieve the expected end time and schedule the EOD command a few minutes before that planned end.

Makes sense?

Re: Get remaining time of current job?

Verfasst: So 26. Aug 2018, 12:39
von shadowkiller
Ok. So this is the only answer, I can give you:
shadowkiller hat geschrieben:hey,

maybe there is no possibility for retrieving the remaining time for mowing.

The Mower itself decides when to go back for loading because of the remaining battery charge. Maybe you have to know the border of remaining battery charge when mower goes back for loading. With this maybe it'll be possible to nearly predict the possible remaining mowing time from the point of actual battery charge by yourselfs automation systems calculations.
If this will be not practical for you and nobody else has an idea, please ask „admin“ for assistance per forum private message.

Re: Get remaining time of current job?

Verfasst: Do 30. Aug 2018, 22:40
von phrusher
Making it return based on battery level is quite easy with the mqtt events but it's the planned end time I would need, to bad that there is no ready method to retrieve that.

Thanks for your suggestions though!

Re: Get remaining time of current job?

Verfasst: Fr 31. Aug 2018, 02:44
von shadowkiller
I think you didn’t understand. Maybe because of my bad English...

The Mower decides itself(!) based on battery level, when to go back. There is no planned time!
But if you mean the end time of a Timer range, you can use this information. But there is nothing else.

Please ask admin.

Re: Get remaining time of current job?

Verfasst: Fr 31. Aug 2018, 04:04
von phrusher
Yes, I understand fine. I think :) For example if the mower usually returns when the battery reaches 30% it's easy to listen to the battery events over mqtt and send an EOD command whenever the battery gets below 35%.

What I mean by planned end is the end of the Timer or the end of a manually placed job.

Re: Get remaining time of current job?

Verfasst: Fr 31. Aug 2018, 17:30
von shadowkiller
phrusher hat geschrieben:
Fr 31. Aug 2018, 04:04
Yes, I understand fine.
Good!
...
What I mean by planned end is the end of the Timer or the end of a manually placed job.
And now, what is the problem? Use the end time and the actual time to calculate the remaining time by your software.