项目作者: TheCacophonyProject

项目描述 :
Talking to the ATtiny on the PCB over i2c
高级语言: Go
项目地址: git://github.com/TheCacophonyProject/attiny-controller.git
创建时间: 2018-04-11T05:59:21Z
项目社区:https://github.com/TheCacophonyProject/attiny-controller

开源协议:GNU General Public License v3.0

下载


attiny-controller

This daemon communicates to the ATtiny microcontroller attached to
Cacophony Project Raspberry Pi based devices. It is responsible for
controller the device on/off window.

DBUS API

attiny-controller exposes a simple API on the system DBUS. It listens
on org.cacophony.ATtiny and exposes objects its interface at
/org/cacophony/ATtiny. The following methods are available:

  • IsPresent() -> bool: returns true if an ATtiny was detected.
  • StayOnFor(minutes): sets a number of minutes the device should
    stay on for (overiding any configured on/off window).

Here’s an example of how to call the IsPresent API from the command line:

  1. dbus-send \
  2. --system \
  3. --type=method_call \
  4. --print-reply \
  5. --dest=org.cacophony.ATtiny \
  6. /org/cacophony/ATtiny \
  7. org.cacophony.ATtiny.IsPresent

Releases

Releases are built using TravisCI. To create a release visit the
repository on Github
and then follow our general instructions
for creating a release.