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

Continuous Search not working with YAML file #352

Closed
boydthomson opened this issue Jun 28, 2024 · 4 comments
Closed

Continuous Search not working with YAML file #352

boydthomson opened this issue Jun 28, 2024 · 4 comments
Assignees
Labels
bug Something isn't working triage This will looked at

Comments

@boydthomson
Copy link

boydthomson commented Jun 28, 2024

Describe the bug

I have tried every conceivable combination of continuous: true and search-forever, yet no matter what, camply exits as soon as it finds a site.

Original Camply Command (with --debug)

YAML:

provider: goingtocamp
recreation_area: # (LIST OR SINGLE ENTRY)
  - 12
campgrounds: # ENTIRE FIELD CAN BE OMITTED IF NOT USED - (LIST OR SINGLE ENTRY)
  - -2147483647 # Alice Lake
  - -2147483606 # Golden Ears
  - -2147483550 # Porteau Cove
  - -2147483618 # Manning Park
  - -2147483535 # Silver Lake

start_date:
  - 2024-06-26
  - 2024-06-27
  - 2024-06-27
  - 2024-07-03
  - 2024-07-10
  - 2024-07-17
  - 2024-07-24
  - 2024-07-31
  - 2024-06-27
  - 2024-07-04
  - 2024-07-11
  - 2024-07-18
  - 2024-07-25
  - 2024-08-01
end_date:
  - 2024-06-29
  - 2024-06-29
  - 2024-06-30
  - 2024-07-06
  - 2024-07-13
  - 2024-07-20
  - 2024-07-27
  - 2024-08-03
  - 2024-06-30
  - 2024-07-07
  - 2024-07-14
  - 2024-07-21
  - 2024-07-28
  - 2024-08-04

notifications:
  - pushover
  - email

continuous: true

continuous: true

@boydthomson boydthomson added the bug Something isn't working label Jun 28, 2024
@github-actions github-actions bot added the triage This will looked at label Jun 28, 2024
@juftin
Copy link
Owner

juftin commented Jun 28, 2024

Can you supply your YAML file as written using GitHub code blocks?

@juftin
Copy link
Owner

juftin commented Jun 28, 2024

Actually, I was able to decipher the YAML format @boydthomson

Details

provider: goingtocamp
recreation_area: 12
campgrounds:
  - -2147483647 # Alice Lake
  - -2147483606 # Golden Ears
  - -2147483550 # Porteau Cove
  - -2147483618 # Manning Park
  - -2147483535 # Silver Lake
start_date:
  - 2024-06-28
  - 2024-07-03
  - 2024-07-10
  - 2024-07-17
  - 2024-07-24
  - 2024-07-31
  - 2024-06-27
  - 2024-07-04
  - 2024-07-11
  - 2024-07-18
  - 2024-07-25
  - 2024-08-01
end_date:
  - 2024-06-30
  - 2024-07-06
  - 2024-07-13
  - 2024-07-20
  - 2024-07-27
  - 2024-08-03
  - 2024-06-30
  - 2024-07-07
  - 2024-07-14
  - 2024-07-21
  - 2024-07-28
  - 2024-08-04
notifications:
  - pushover
  - email
continuous: true

You're missing the search_forever field in the YAML file (I think you might be trying search-forever)

https://juftin.com/camply/command_line_usage/#using-a-yaml-configuration-file-to-search-for-campsites

@boydthomson
Copy link
Author

boydthomson commented Jun 28, 2024 via email

@boydthomson
Copy link
Author

the underscore worked. I was confused because the command-line option was with the hyphen at https://juftin.com/camply/how_to_run/#search-forever.

It's working now. Thanks so much!!!

@juftin juftin closed this as completed Jul 2, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working triage This will looked at
Projects
None yet
Development

No branches or pull requests

2 participants