Coder Social home page Coder Social logo

integrapy's People

Contributors

michal-konopinski avatar mjochab avatar mkorz avatar mwegrzynek avatar slawekb avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar

integrapy's Issues

next error in python3.6.3

python3 -m IntegraPy.demo 192.168.100.180

Traceback (most recent call last):
File "/usr/local/lib/python3.6/runpy.py", line 193, in _run_module_as_main
"main", mod_spec)
File "/usr/local/lib/python3.6/runpy.py", line 85, in _run_code
exec(code, run_globals)
File "/tmp/IntegraPy/IntegraPy/demo.py", line 27, in
for part in integra.get_armed_partitions()
File "/tmp/IntegraPy/IntegraPy/init.py", line 205, in get_armed_partitions
resp = self.run_command(b'0A')
File "/tmp/IntegraPy/IntegraPy/init.py", line 81, in run_command
raise Exception('Wrong header - got {}'.format(hexlify(resp[:2])))
Exception: Wrong header - got b'1042'

obsluga bledow przy podlaczonym innym sockecie

Witam,

Zauwazeylem ze brak jest obslugi bledow tu chodzi o zajetosc przez polaczenie innego programu do centrali

root /integra # python3 integrademo.py
0x10
0x42
0x75
0x73
0x79
0x21
0xD
0xA
0xD7
0x0
0x0
0x0
0x0
0x0
0x0
0x0
0x0
Traceback (most recent call last):
File "integrademo.py", line 257, in
iVersion()
File "integrademo.py", line 137, in iVersion
resp = sendcommand("7E")
File "integrademo.py", line 88, in sendcommand
raise Exception("Wrong header - got %X%X" % (resp[0], resp[1]))
Exception: Wrong header - got 1042

Switch Output

Hi, I love your project.

I can read the zone status and partition statuses but I can't figure out how I can switch an output.
Could you give me an example so I can test it in the demo.py script?

It should start with toggle_outputs but whats next? Do I need to put the output number or the output text and in what format?
FYI I am not a programmer of some sort ;)

Thanks!

UnicodeDecodeError: 'utf-8' codec can't decode byte

I get the following error:

-- ------------- --
-- Receving data --
<<<0xFE ('þ')
<<<0xFE ('þ')
<<<0xEE ('î')
<<<0x4 ('')
<<<0x1 ('')
<<<0x29 (')')
<<<0x56 ('V')
<<<0xFD ('ý')
<<<0x73 ('s')
<<<0x74 ('t')
<<<0x75 ('u')
<<<0x70 ('p')
<<<0x20 (' ')
<<<0x20 (' ')
<<<0x20 (' ')
<<<0x31 ('1')
<<<0x20 (' ')
<<<0x20 (' ')
<<<0x20 (' ')
<<<0x20 (' ')
<<<0x20 (' ')
<<<0x20 (' ')
<<<0xD8 ('Ø')
<<<0x81 ('�')
<<<0xFE ('þ')
')<0xD ('
-- ------------- --
Traceback (most recent call last):
  File "integrademo.py", line 263, in <module>
    iOutputs()
  File "integrademo.py", line 201, in iOutputs
    o += str(8 * i + b + 1) + " " + iName(8 * i + b + 1, OUTPUT) + ": ON\n"
  File "integrademo.py", line 172, in iName
    return r[3:].decode("utf-8")
UnicodeDecodeError: 'utf-8' codec can't decode byte 0xfd in position 1: invalid start byte

To fix this I had to change line 172

    return r[3:].decode("utf-8")

to

    return r[3:].decode("utf-8", "ignore")

I have no experience with Python and I don't know what these invalid characters at the end of the message contain.

Complete log with DEBUG=1: http://pastebin.com/mNP1diEQ

Sterowanie zalaczeniem i wylaczeiem stref oraz status alarmu i eventow

Witam,

Czy udalo by sie jakos opisac jakie i dodac parametry aby mozna bylo sterowac tym skryptem zalacz strefy wylacz pokaz stan oraz odczytac eventy, kasowac alarmy, kilka funkcji poprzez podanie parametrow ?
Moze cos na zasadzie parametru do skryptu np. 1 armed, 2 disarmed , 3 status, 4 alarm statys, 5 status awarii, 6 kasowanie awarii, 7 kasowanie alarmu, 8, odczyt zdazen, 9 stan stref albo poszczegolnych czujnikow, 0 info o centrali itp.

Pozdrawiam,
RL

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.