Skip to content

ScapularSteam/Hackapine

Repository files navigation

Hackapine

A bridge to enable Hack Clubbers to log time spent soldering with the PinecilV2 on Hackatime

Progress

[x] Make a Python module to connect to and gather data from the PinecilV2.

[WIP] Detect changes in motion and trigger relevant events

[ ] Create events and send heartbeat to Wakatime CLI

Using the pinecil.py module

Install the dependencies:

pip install asyncio
pip install bleak

Import the module

from pinecil import Pinecil

Note: the module pinecil.py should be placed in the same folder as the file you are importing it into

Using the module

There are 4 methods: scan(), select(),read_temperature(), read_motion()

These methods are asynchronous, so you will need to use the asyncio module to run these methods

Example:

from pinecil import Pinecil
import asyncio

myPinecil = Pinecil()
asyncio.run(myPinecil.scan())

About

Hackatime support for PinecilV2 over BLE

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages