Comments (3)
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.
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.
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
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from apc-smartconnect-py.