diff --git a/__pycache__/pyccsone.cpython-310.pyc b/__pycache__/pyccsone.cpython-310.pyc new file mode 100644 index 0000000..04cc86b Binary files /dev/null and b/__pycache__/pyccsone.cpython-310.pyc differ diff --git a/pyccsone.py b/pyccsone.py index 678db38..ef0b62e 100644 --- a/pyccsone.py +++ b/pyccsone.py @@ -1,48 +1,10 @@ """ CCSOne Python libary -written by Paul Schürholz -Example usage: -create CCSOne object: -ccsoneobj = ccsone.CCSOne(IP_ADDRESS, PORT, AUTHNAME, HOTKEYS) - -close connection: -ccsoneobj.closesocket() - -get device information: -ccsoneobj.getdeviceinformation() - -add camera object: -ccsoneobj.addcam(CAMERA_NUMBER) - -subscribe to function: -ccsoneobj.cams[CAMERA_NUMBER].valuesubscribe(FUNCTION_ID) - -get function value / subscribe if not known: -ccsoneobj.getfunctionvalue(FUNCTION_ID) - -change function value: -ccsoneobj.cams[CAMERA_NUMBER].functionvaluechange(FUNCTION_ID, VALUE) - -set tally state: -ccsoneobj.cams[CAMERA_NUMBER].settally(TALLY_STATE) - -toggle tally state: -ccsoneobj.cams[CAMERA_NUMBER].toggletally() - -get tally state: -ccsoneobj.cams[CAMERA_NUMBER].gettally() - -set gain COLOR=>(r,g,b) VALUE=>0-99: -ccsoneobj.cams[CAMERA_NUMBER].setgain(COLOR, VALUE) - -get gain (r,g,b): -ccsoneobj.cams[CAMERA_NUMBER].getgain(COLOR) - -get Fstop: -ccsoneobj.cams[CAMERA_NUMBER].getf() - -responses are handled automatically in a recieve thread +Copyright (C) 2023 Paul Schürholz +This program is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later version. +This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details. +You should have received a copy of the GNU General Public License along with this program. If not, see . """ import socket import time