Skip to content

Commit

Permalink
change port to 8010 everywhere.
Browse files Browse the repository at this point in the history
  • Loading branch information
mgineer85 committed Nov 17, 2024
1 parent d18db2d commit ff370ed
Show file tree
Hide file tree
Showing 6 changed files with 8 additions and 8 deletions.
4 changes: 2 additions & 2 deletions examples/connector/capture_and_download_pool.py
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,8 @@
from wigglecam.connector.models import ConfigCameraNode, ConfigCameraPool

nodes: list[CameraNode] = []
nodes.append(CameraNode(config=ConfigCameraNode(description="cam1", base_url="http://127.0.0.1:8000/")))
# nodes.append(CameraNode(config=ConfigCameraNode(description="cam2", base_url="http://127.0.0.1:8000/")))
nodes.append(CameraNode(config=ConfigCameraNode(description="cam1", base_url="http://127.0.0.1:8010/")))
# nodes.append(CameraNode(config=ConfigCameraNode(description="cam2", base_url="http://127.0.0.1:8011/")))


camera_pool = CameraPool(ConfigCameraPool(), nodes=nodes)
Expand Down
4 changes: 2 additions & 2 deletions examples/connector/list_nodes.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,8 @@
from wigglecam.connector.models import ConfigCameraNode, ConfigCameraPool

nodes: list[CameraNode] = []
nodes.append(CameraNode(config=ConfigCameraNode(description="cam1", base_url="http://127.0.0.1:8000/")))
# nodes.append(CameraNode(config=ConfigCameraNode(description="cam2", base_url="http://127.0.0.1:8000/")))
nodes.append(CameraNode(config=ConfigCameraNode(description="cam1", base_url="http://127.0.0.1:8010/")))
# nodes.append(CameraNode(config=ConfigCameraNode(description="cam2", base_url="http://127.0.0.1:8011/")))

camera_pool = CameraPool(ConfigCameraPool(), nodes=nodes)

Expand Down
2 changes: 1 addition & 1 deletion examples/gpio.py
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@

# Device.pin_factory = MockFactory()
parser = argparse.ArgumentParser()
parser.add_argument("--base_url", action="store", default="http://127.0.0.1:8000", help="Base URL to connect to (default: %(default)s).")
parser.add_argument("--base_url", action="store", default="http://127.0.0.1:8010", help="Base URL to connect to (default: %(default)s).")
parser.add_argument("--shutter_pin", action="store", default="GPIO4", help="GPIO the shutter button is connected to (default: %(default)s).")


Expand Down
2 changes: 1 addition & 1 deletion examples/gui/camera.py
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@

basedir = os.path.dirname(__file__)
parser = argparse.ArgumentParser()
parser.add_argument("--base_url", action="store", default="http://127.0.0.1:8000", help="Base URL to connect to (default: %(default)s).")
parser.add_argument("--base_url", action="store", default="http://127.0.0.1:8010", help="Base URL to connect to (default: %(default)s).")

session = requests.Session()

Expand Down
2 changes: 1 addition & 1 deletion examples/oneshot.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
import requests

parser = argparse.ArgumentParser()
parser.add_argument("--base_url", action="store", default="http://127.0.0.1:8000", help="Base URL to connect to (default: %(default)s).")
parser.add_argument("--base_url", action="store", default="http://127.0.0.1:8010", help="Base URL to connect to (default: %(default)s).")


def main(args=None):
Expand Down
2 changes: 1 addition & 1 deletion wigglecam/connector/models.py
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ class ConfigCameraNode(BaseModel):
description="Not used in the app, you can use it to identify the node.",
)
base_url: HttpUrl = Field(
default="http://127.0.0.1:8000",
default="http://127.0.0.1:8010",
description="Base URL (including port) the node can be accessed by. Based on your setup, usually IP is preferred over hostname.",
)

Expand Down

0 comments on commit ff370ed

Please sign in to comment.