Energenie EG-PMS User Manual Page 16

  • Download
  • Add to my manuals
  • Print
  • Page
    / 30
  • Table of contents
  • BOOKMARKS
  • Rated. / 5. Based on customer reviews
Page view 15
pickups Documentation, Release 0.7.0
3.4 Reference
Automatic generated Documenation by apidoc and autodoc.
3.4.1 pickups
Subpackages
pickups.bamboo
Submodules
bamboopickup
class pickups.bamboo.bamboopickup.BambooPickup(configfile)
Bases: pickups.basepickup.BasePickup
As a child class of BasePickup, BambooPickup implements all methods needed to update extreme feedback
devices using an Atlassian Bamboo buildserver and a RasberryPi with a manageable USB-Powersocket. Bam-
booPickup is using Bamboo’s REST-API to acquire all needed information on builds.
Initialize a BambooPickup object reading build statuses and updating connected feedback devices, according to
the logic defined in update_status().
Parameters configfile – A config file which is passed to the baseclass to read it in.
Returns None
Raises None
overall_status
Getter for the overall status of the builds.
Returns A list filtered by the result status of each build possibly look-
ing like [{’buildState’: ’Successful’}, {’buildState’:
’Successful’}]. Valid statuses are Successful, Failed and Unknown.
Raises None
builds_status
Getter for the current status of the builds.
Returns
List, filtered by plans possibly looking like [{’isBuilding’: False},
{’isBuilding’: True}]. Valid current statuses are:
True if a build is currently running
False if a build is currently not running.
Raises None
cleanup()
Turn off all lamps if system is interrupted somehow. Using pickups.helpers.register() ensures
this is called when a SIGTERM is sent.
Returns None
Raises None
12 Chapter 3. Contents:
Page view 15
1 2 ... 11 12 13 14 15 16 17 18 19 20 21 ... 29 30

Comments to this Manuals

No comments