Skip to main content

Control your SIGNATURE MotionMount TVM7675 Pro using Python

Project description

Introduction

This Python module allows control of the TVM 7675 Pro (SIGNATURE) series of MotionMount's from Vogel's Products.

Getting Started

This module can be installed using the following command: pip install python-MotionMount

In your Python code you can then use the module as follows:

import asyncio
import motionmount

ip = "MMF8A55F.local." # Can also be "169.254.13.16" or similar
port = 23 # The best way to get the port number is using zeroconf, but it's likely '23'

async def main():
    mm = MotionMount(ip, port)

    try:
        await mm.connect()
        await mm.go_to_preset(1)

        print(f"Extension: {mm.extension}")

        name = await mm.get_name()
        print(f"The name is: \"{name}\"")

        await mm.go_to_position(50, -50)
    except Exception as e:
        print(f"Something bad happened: {e}")
    finally:
        await asyncio.sleep(1)
        await mm.disconnect()


if __name__ == '__main__':
    asyncio.run(main())

To get the IP address of the MotionMount you can use pyzeroconf or you can use a manual tool like dns-sd in the macOS Terminal or a GUI tool like Discovery (macOS) or Bonjour Browser (Windows)

A simple example using pyzeroconf is included in the examples folder.

If you want to run the examples from a clone of the repository you can use a command similar to: PYTHONPATH=./src/motionmount python examples/simple.py

Changelog

1.0.1: - Fix bug in allowed preset indices

2.0.0: - Include position data in presets

2.1.0: - Add timeout (15 s) to connect()

2.2.0: - Add support for authentication to the MotionMount

2.3.0: - Add new system_status property for pre-parsed aggregated system status

MIT License

Copyright (c) 2023 Vogel's Products

Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

python_motionmount-2.3.0.tar.gz (9.9 kB view details)

Uploaded Source

Built Distributions

If you're not sure about the file name format, learn more about wheel file names.

python_motionmount-2.3.0-py3-none-any.whl (9.5 kB view details)

Uploaded Python 3

python_MotionMount-2.3.0-py3-none-any.whl (9.3 kB view details)

Uploaded Python 3

File details

Details for the file python_motionmount-2.3.0.tar.gz.

File metadata

  • Download URL: python_motionmount-2.3.0.tar.gz
  • Upload date:
  • Size: 9.9 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/5.0.0 CPython/3.9.6

File hashes

Hashes for python_motionmount-2.3.0.tar.gz
Algorithm Hash digest
SHA256 1c77d802de903ba5474cbc64daf6c9e4d374b4f671df3948e86e2dc660af27d5
MD5 4858bbbf2ebaaa879a5301f9ea55224b
BLAKE2b-256 fc3b53f86c11296134c88d41b035cd9691130117cffd969c5beb4a893e0852a4

See more details on using hashes here.

File details

Details for the file python_motionmount-2.3.0-py3-none-any.whl.

File metadata

File hashes

Hashes for python_motionmount-2.3.0-py3-none-any.whl
Algorithm Hash digest
SHA256 70911edab17b93d7326489c1c05ab21ea1537704f864d6bbf38e6106e9bf3cac
MD5 2a1a593ec8d9397ee91ecf6816521ca8
BLAKE2b-256 f148b774299e0bb009ce4a1cb221f13fd8ddc7714a3a043d8a1dc313f3adeb4b

See more details on using hashes here.

File details

Details for the file python_MotionMount-2.3.0-py3-none-any.whl.

File metadata

File hashes

Hashes for python_MotionMount-2.3.0-py3-none-any.whl
Algorithm Hash digest
SHA256 f63511e5e119d8acf3b9f215f6778bcba1f9f4fb05f12f7dfb11ca175434a9b5
MD5 5070b0a63f4c5c19d9153ec1cca667a1
BLAKE2b-256 3e50e0933f0cd5059072ebaa240135986e870c1ea02a23bd05d0f274d5fdee2b

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page