forked from OpenPDU/openpdu
Compare commits
7 Commits
feature/da
...
master
| Author | SHA1 | Date | |
|---|---|---|---|
| 9ce235274f | |||
| 17adbaff26 | |||
| fbadb31efd | |||
| 96ddb976b5 | |||
| 35a8509273 | |||
| a1ad4a7412 | |||
| 3c0df7e84e |
34
.drone.yml
Normal file
34
.drone.yml
Normal file
@@ -0,0 +1,34 @@
|
|||||||
|
platform: linux/arm
|
||||||
|
|
||||||
|
workspace:
|
||||||
|
base: /home/builder/package
|
||||||
|
path: /
|
||||||
|
|
||||||
|
clone:
|
||||||
|
default:
|
||||||
|
image: plugins/git:linux-arm
|
||||||
|
depth: 50
|
||||||
|
|
||||||
|
pipeline:
|
||||||
|
build:
|
||||||
|
image: openpdu/builder:3.7
|
||||||
|
environment:
|
||||||
|
- REPODEST=/home/builder/package
|
||||||
|
secrets:
|
||||||
|
- source: abuild_ssh_key
|
||||||
|
target: RSA_PRIVATE_KEY
|
||||||
|
- source: abuild_ssh_key_name
|
||||||
|
target: RSA_PRIVATE_KEY_NAME
|
||||||
|
|
||||||
|
gitea_release:
|
||||||
|
image: plugins/gitea-release:linux-arm
|
||||||
|
files: builder/armhf/*.apk
|
||||||
|
checksum:
|
||||||
|
- md5
|
||||||
|
- sha1
|
||||||
|
- sha256
|
||||||
|
- sha512
|
||||||
|
secrets: [ gitea_token ]
|
||||||
|
base_url: https://git.asperti.com
|
||||||
|
when:
|
||||||
|
event: tag
|
||||||
2
APKBUILD
2
APKBUILD
@@ -4,7 +4,7 @@ pkgname=openpdu
|
|||||||
pkgver=0.2.0
|
pkgver=0.2.0
|
||||||
pkgrel=1
|
pkgrel=1
|
||||||
pkgdesc="OpenPDU project - main binary"
|
pkgdesc="OpenPDU project - main binary"
|
||||||
url="https://github.com/openpdu/openpdu"
|
url="https://git.asperti.com/OpenPDU/openpdu"
|
||||||
arch="noarch"
|
arch="noarch"
|
||||||
license="GPL2"
|
license="GPL2"
|
||||||
depends="python py-argh apk-cron py-bottle i2c-tools"
|
depends="python py-argh apk-cron py-bottle i2c-tools"
|
||||||
|
|||||||
23
README.md
Normal file
23
README.md
Normal file
@@ -0,0 +1,23 @@
|
|||||||
|
# The OpenPDU project
|
||||||
|
|
||||||
|
This repo contains the source code for the main binary of the OpenPDU project.
|
||||||
|
|
||||||
|
OpenPDU is an OpenHardware and OpenSource project for a network-connected PDU.
|
||||||
|
The goal is to build a modular system than can be used to retrofit an existing 19" rack PDU to a real networked PDU. A secondary goal is the use of commonly available hardware, where possible, at least for the main controller.
|
||||||
|
|
||||||
|
## Hardware
|
||||||
|
The first iteration will cover the scenario of a retrofit of an existing (rack) power strip. In any case we'll keep separated the system into the following modules:
|
||||||
|
|
||||||
|
- DC power supply
|
||||||
|
- controller board
|
||||||
|
- power board
|
||||||
|
|
||||||
|
The power supply will power the controller and the power board, taking the power from the existing power switch (it's uncommon to have a rack power strip without a power button; in this case it's required to add a power button).
|
||||||
|
|
||||||
|
The controller board will be a commonly available one (let's say a Raspberry PI 2/3, Orange Pi, ...). The requirements are:
|
||||||
|
|
||||||
|
- capable of running linux
|
||||||
|
- at least 256mb of RAM
|
||||||
|
- ethernet port
|
||||||
|
- GPIO/i2c port
|
||||||
|
- (40pin connector? some orangepis have only 26)
|
||||||
10
openpdu
10
openpdu
@@ -101,6 +101,16 @@ def getpower(outlet, json=False):
|
|||||||
return JSON.dumps({'powerstatus':out,'outlet':outlet}) if json else msg
|
return JSON.dumps({'powerstatus':out,'outlet':outlet}) if json else msg
|
||||||
|
|
||||||
|
|
||||||
|
# class Abstract1( object ):
|
||||||
|
# """Some description that tells you it's abstract,
|
||||||
|
# often listing the methods you're expected to supply."""
|
||||||
|
# def aMethod( self ):
|
||||||
|
# raise NotImplementedError( "Should have implemented this" )
|
||||||
|
#
|
||||||
|
# class Cipo(Abstract1):
|
||||||
|
# pass
|
||||||
|
|
||||||
|
|
||||||
class BoardDummy(object):
|
class BoardDummy(object):
|
||||||
channels = []
|
channels = []
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user