7 Commits

Author SHA1 Message Date
9ce235274f added readme
All checks were successful
the build was successful
2018-09-15 15:09:41 +02:00
17adbaff26 Merge branch 'develop'
All checks were successful
the build was successful
2018-09-15 15:03:36 +02:00
fbadb31efd Merge branch 'feature/drone' into develop 2018-09-15 15:03:22 +02:00
96ddb976b5 Merge branch 'feature/daemon' into develop 2018-09-15 14:50:10 +02:00
35a8509273 updated build image
Some checks failed
the build failed
2018-09-15 14:48:15 +02:00
a1ad4a7412 updated repo url 2018-09-15 14:48:02 +02:00
3c0df7e84e Aggiungi '.drone.yml'
Some checks failed
the build failed
2018-08-20 09:23:26 +00:00
4 changed files with 68 additions and 1 deletions

34
.drone.yml Normal file
View 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

View File

@@ -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
View 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
View File

@@ -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 = []