first mockup in go

This commit is contained in:
2019-08-18 23:21:16 +02:00
parent 9ce235274f
commit 969ae63d02
5638 changed files with 579400 additions and 0 deletions

View File

@@ -0,0 +1,4 @@
#!/bin/sh
/usr/bin/openpdu initboards
/usr/bin/openpdu initoutlets

View File

@@ -0,0 +1,30 @@
[DEFAULT]
# EXAMPLE GPIO BOARD
# [board0]
# channel0 = 1
# channel1 = 2
# channel2 = 3
# channel3 = 7
# channel4 = 8
# channel5 = 9
# channel6 = 11
# channel7 = 12
# type = gpio-out
# channels = 8
# EXAMPLE I2C BOARD
# [board1]
# type = i2c-out
# address = 0x27
# channels = 8
# bus = 0
# EXAMPLE I2C CURRENT BOARD
# [board2]
# type = i2c-current
# address = 0x48
# channels = 4
# bus = 0

View File

@@ -0,0 +1,31 @@
[DEFAULT]
description = Generic outlet
startpower = 1
# [outlet0]
# board = 0
# channel = 0
# description = Router
# [outlet1]
# board = 0
# channel = 1
# description = NAS
# [outlet2]
# board = 1
# channel = 0
# description = Switch
# [outlet3]
# board=1
# channel=1
# currentboard=2
# currentboardchannel=1
# description = MailServer
# [outlet4]
# board=1
# channel=2
# description = Extra Fan
# startpower = 0