sayoun / gandi.widget Goto Github PK
View Code? Open in Web Editor NEWGtk Gandi widget using on gandi.cli as library.
License: GNU General Public License v3.0
Gtk Gandi widget using on gandi.cli as library.
License: GNU General Public License v3.0
I don't know if it was status check or an api call.
When the Gandi platform is under maintenance or an incident is published on http://status.gandi.net the widget show a popup for a second each couple of second with the name of the post on status. In case of a long running maintenance or incident, the notification is quite annoying.
I would like to change the frequency of the popup notification, maybe with a configuration variable.
Possible solution: if the incident is older than 10 minutes before now, show the popup each 30 seconds with the information for 2 minutes, then decrease the frequency to one popup every hour.
When I start /usr/bin/gwidget, the output show this traceback and the GTK widget does not show any information about my products (after a couple of minutes).
Traceback (most recent call last):
File "/usr/lib/python2.7/dist-packages/gandi/widget/__init__.py", line 145, in display_elements
items = element.display(elements)
File "/usr/lib/python2.7/dist-packages/gandi/widget/iaas.py", line 39, in display
account['credit_usage'])
KeyError: 'credit_usage'
Using a python shell on Gandi public API with my account, I got:
>>> api.hosting.rating.list(tok)
[]
>>> api.hosting.account.info(tok)['credits']
1784120
>>> api.hosting.account.info(tok)['average_credit_cost']
0.0
version installed:
Have a first level menu with "iaas", "paas", "certificate", "domain" and then the list in a second level.
(and keep the info/action level on the list detail)
When installing the widget without having a previous Gandi.cli configured it will fail.
Maybe detect upon launch the configuration sate and provide a modal to provide the API key with a link to the webpage where to find it ?
For exemple on domain, paas soon to expire, iaas low level of credits, ...
This could also make a color change in the icon (in case you are not in front of the computer when the notif append)
Is it possible ? how to do it ? need documentation for this.
To specify :
It could be interesting to have a different user-agent used by the widget from the one used by the CLI
having some color change in the icon when an event appear in status.gandi.net
Would it be possible to have a setuptools process for installing the python application ? This would help in the packaging for Linux distribution.
/me is working on the Debian packaging.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.