Giter VIP home page Giter VIP logo

Comments (6)

pliablepixels avatar pliablepixels commented on June 20, 2024

Hi there, if you are manually running it (not via zmdc.pl) and its exiting, please do a tail -f /var/log/syslog to see what its outputting.

from zmeventnotification.

pliablepixels avatar pliablepixels commented on June 20, 2024

closing as no update from poster

from zmeventnotification.

asantaga avatar asantaga commented on June 20, 2024

Hi there, apologies for not responding.. the trials of a 1yr old baby, work going nuts and.. well no other excuses!!!

Anyway, looking in the log files tonight I realised I hadnt installed Net::WebSocket::Server , so I went through installed those and all works fine!

thanks again.

from zmeventnotification.

pliablepixels avatar pliablepixels commented on June 20, 2024

sounds good and congrats on the baby!

from zmeventnotification.

asantaga avatar asantaga commented on June 20, 2024

One question, Ive installed it and it appears to be running correctly, I can log in, ask its version number but Im not receiving any events . On the server side it appears to be sending the event (cant login to the server at the moment) but the client doesnt receive them.. Im using Simple WebSocket Client Chrome Extension.. Any ideas?

I'll get the syslog to you later

from zmeventnotification.

pliablepixels avatar pliablepixels commented on June 20, 2024

Depends on how you are connecting to it Chrome Simple Websocket client doesn't work with WSS, so change $useSecure to 0 in zmeventserver.

Then launch simple web socket client, and first connect with the right auth - this involves:

  • keep monitoring event server logs
  • open WS URL ws://ip:port
  • once open you need to send your auth information
    Paste this in the request text box:
{"event":"auth","data":{"user":"admin","password":"your password"}}

You will get a message saying

{"type":"","status":"Success","reason":"","version":"0.9","event":"auth"}

Now just force an alarm and you'll get a alarm message in the message box of your simplewebsocket client

{"status":"Success","events":[{"EventId":"27811","MonitorId":"1","Name":"Garage"}],"event":"alarm","type":""}

from zmeventnotification.

Related Issues (20)

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.