GithubHelp home page GithubHelp logo

Comments (3)

datagutten avatar datagutten commented on July 3, 2024

I forgot to update sample.py after removing the class argument, I fixed it now and the script should be working.
Run it like python sample.py [SmartConnect username] [SmartConnect password]

The class should be pretty simple to use, call .login with username and password as arguments, then you can call .gateways to get a dict with information about all UPSs in your account.
The login will only be valid for a limited amount of time, then you have to login again.
I have not been able to make a new login from an existing class instance, so I have to delete the instance and create a new one.

from apc-smartconnect-py.

yurividal avatar yurividal commented on July 3, 2024

cool. it works now. I'm gonna play a bit with the outputs and see if i can manage to get it into influxdb for visualization with grafana. Hopefully i won't get blocked by apc for running this once every minute.

from apc-smartconnect-py.

datagutten avatar datagutten commented on July 3, 2024

I recommend that you keep an active session as long as it lasts and do not repeat the login process every minute.
I fear that they might add a captcha if we misuse it.

from apc-smartconnect-py.

Related Issues (3)

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.