Code Monkey home page Code Monkey logo

Comments (6)

baudneo avatar baudneo commented on May 29, 2024

Use the zm IP address and :5000

Localhost:5000 will work if you are using a shell connected to your zm/es host.

from mlapi.

FormBurden avatar FormBurden commented on May 29, 2024

Ah ok. Well, now I get a "curl: (7) Failed to connect to localhost port 5000" error. I'm guessing I should be running mlapi or something when I try to do this? But of course when I do the "python3 ./mlapi.py -c mlapiconfig.ini" command in the mlapi folder, in the ZoneMinder logs and if I run the --debug it states secret token not found MLAPI_SECRET_KEY which I assume you get from running the 'Get an Access Token" command, but that isn't working cause of connection port 5000 error.

What would I do?

from mlapi.

baudneo avatar baudneo commented on May 29, 2024

That's a seperate thing. The secret key it is referring to is inside mlapiconfig.ini, you can put anything you want there it's just a "seed" to create access tokens with. You set it once and never have to worry about it again.

from mlapi.

baudneo avatar baudneo commented on May 29, 2024

I would focus on getting zmes setup and running first before setting mlapi up though.

from mlapi.

baudneo avatar baudneo commented on May 29, 2024

If you can sanitize the passwords and stuff from your config file you can post it as a github gist and then post the link here. I can look over the file and see if I can help you config it properly.

from mlapi.

FormBurden avatar FormBurden commented on May 29, 2024

Hey, don't worry about it. I got it working correctly. When you told me about just creating your own log string of text/characters for the secret key-pass, I did just that. And everything works correctly. I really appreciate it.

from mlapi.

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.