Apache License 2.0

项目介绍

everettsouthwick/trusted-traveler-scheduler 是一个托管在 GitHub 上的开源项目,主要使用 Python 编写,采用 Apache License 2.0 许可证,目前获得 61 个 Star、16 次 Fork。

仓库全名
everettsouthwick/trusted-traveler-scheduler
开源许可证
Apache License 2.0
Star 数
61
Fork 数
16
未关闭 Issue
9

README 摘要

Trusted Traveler Scheduler Cloud-Hosted Option A hosted version of this tool is available at www.goglobalentry.com if you prefer not to set up the script yourself. Self-Hosted Option You can run this script locally to automatically fetch new appointment dates/times for the configured location(s) from the Trusted Traveler Program API. This works for Global Entry, NEXUS, SENTRI, or FAST appointments, provided the…

完整内容见 GitHub 原始 README 或本页 。

常见问题

trusted-traveler-scheduler 用什么语言开发?

主要使用 Python 编写,采用 Apache License 2.0 许可证,目前有 61 个 Star。

trusted-traveler-scheduler 可以免费商用吗?

仓库采用 Apache License 2.0 许可证,可免费使用与修改,商业使用请遵守许可证条款(例如保留版权声明与许可声明)。

如何获取 trusted-traveler-scheduler 的源码?

可以直接克隆仓库:git clone https://github.com/everettsouthwick/trusted-traveler-scheduler.git;安装与运行步骤见仓库 README。

trusted-traveler-scheduler 最近还在维护吗?

仓库最近一次更新为 5月30日,当前有 9 个未关闭 Issue;Star 数为 61,可作为社区活跃度的参考。

关于

GitHub 原始描述(英文)

Python script for periodically fetching appointment dates from the Trusted Traveler Program API for Global Entry, Nexus, SENTRI, and FAST, with notifications to the user when new appointments are discovered.

描述取自 GitHub 官方 API,保持仓库作者书写的原文。

语言占比

Dockerfile
Python

README

Trusted Traveler Scheduler

Image

Cloud-Hosted Option

A hosted version of this tool is available at www.goglobalentry.com if you prefer not to set up the script yourself.

Self-Hosted Option

You can run this script locally to automatically fetch new appointment dates/times for the configured location(s) from the Trusted Traveler Program API. This works for Global Entry, NEXUS, SENTRI, or FAST appointments, provided the enrollment center you select offers the service.

Table of Contents

Installation

Prerequisites

  1. First download the script to your machine and enter into the resulting directory:
git clone https://github.com/everettsouthwick/trusted-traveler-scheduler.git
cd trusted-traveler-scheduler
  1. Then install the required packages to run the script:
pip install -r requirements.txt

Usage

To use the script, run the following command:

python ttp.py [-d CURRENT_APPOINTMENT_DATE] [-l LOCATION_IDS] [-n NOTIFICATION_LEVEL] 
    [-u NOTIFICATION_URLS] [-r RETRIEVAL_INTERVAL] [-s START_APPOINTMENT_TIME] 
    [-e END_APPOINTMENT_TIME]

All of the arguments are optional, and will take precedence over the values supplied in config.json, with the exception of location_ids and notification_urls which will merge the values into a single list.

For example, the following command would retrieve appointments before December 31, 2023 for locations 5004 and 5140 and send notifications to the two Discord URLs every 5 minutes if the appointment time is between 8:00 AM and 8:00 PM:

python ttp.py -d "December 31, 2023" -l 5004,5140 -n 1 
    -u discord://id/token,discord://id/token -r 5m -s 08:00
    -e 20:00

For complete documentation, you can use the following command:

python ttp.py -h

Docker

Pulling the image

The script can be configured to run in Docker. You can pull the latest container image from the Docker repository by running the following command:

docker pull ecsouthwick/trusted-traveler-scheduler

To pull the develop branch from the Docker repository, add the :develop tag to the above command:

docker pull ecsouthwick/trusted-traveler-scheduler:develop
Running the Container

Once you have pulled the image from docker, you may use the following command to run the container:

docker run -d ecsouthwick/trusted-traveler-scheduler [-d CURRENT_APPOINTMENT_DATE] [-l LOCATION_IDS] 
    [-n NOTIFICATION_LEVEL] [-u NOTIFICATION_URLS] [-r RETRIEVAL_INTERVAL] [-s START_APPOINTMENT_TIME] 
    [-e END_APPOINTMENT_TIME]

Optionally, you may attach your config.json file to the container to utilize your configuration settings.

docker run -d --name ttp --volume /path/to/config.json:/app/config.json ecsouthwick/trusted-traveler-scheduler

Note: The recommended restart policy for the container is on-failed or no.

Configuration

  1. Copy config.example.json to config.json.
  2. See CONFIGURATION.md for detailed instructions on setting up config.json.

Locations

For information on the list of applicable locations, see LOCATIONS.md.

Credits

  • Drewster727 for their goes-notify repository which was used for initial testing of the Trusted Traveler Program API.
  • jdholtz for their work on auto-southwest-check-in which in part influenced the logic and overall structure of this project.

More From Me

  • Go Global Entry - Get instant alerts when Global Entry interview slots open
  • Stepio - Social step tracking app with group challenges
  • southwick.dev - My developer portfolio

评论

暂无评论