Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

FollowPath: execute path only once #4663

Closed
janpascal opened this issue Aug 24, 2016 · 3 comments
Closed

FollowPath: execute path only once #4663

janpascal opened this issue Aug 24, 2016 · 3 comments

Comments

@janpascal
Copy link
Contributor

Short Description

Sometime I prefer the bot to follow the path only once, instead of looping. This could be useful for having the bot walk to a new location following a number of waypoints, and then go chasing pokemon and pokestops at the new location.

Possible solution

In the FollowPath configuration, implement path_mode = 'single'. In follow_path.py in the work() function, check for this path_mode in the piece of code that handles the situation where the end of the path is reached. If so, return WorkerResult.SUCCESS to allow lower priority tasks to run.

How it would help others

It would help if you want your bot to walk to another location once, and there in the new area after the path is finished.

@k4n30 k4n30 changed the title [FeatureRequest] FollowPath: execute path only once FollowPath: execute path only once Aug 24, 2016
@MZorzy
Copy link

MZorzy commented Aug 24, 2016

Or add something like 'stop' on map.json
(and pause tot sec)

@maxprzemo
Copy link

A similar effect can be achieved now.
Set the number of laps
"number_lap": 1,
A restart time eg
"timer_restart_min": "06:00:00",
"timer_restart_max": "07:00:00"
After each lap be a break 6-7 hours

@janpascal
Copy link
Contributor Author

Not exactly : in that case the bot would stop completely instead of going off chasing pokestops (if you put in a Move to Tower with a lower priority)

On 24 August 2016 18:08:45 CEST, "Przemysław " [email protected] wrote:

A similar effect can be achieved now.
Set the number of laps
"number_lap": 1,
A restart time eg
"timer_restart_min": "06:00:00",
"timer_restart_max": "07:00:00"
After each lap be a break 6-7 hours

You are receiving this because you authored the thread.
Reply to this email directly or view it on GitHub:
#4663 (comment)

Sent from my Android device with K-9 Mail. Please excuse my brevity.

@k4n30 k4n30 closed this as completed Aug 25, 2016
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

4 participants