- bled112 dongle on your machine
- Create a Python virtual environment (Python 2.7 or 3.6)
- Install:
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import argparse | |
import time | |
import sys | |
from iotile.core.hw import HardwareManager | |
def build_parser(): | |
parser = argparse.ArgumentParser(description="Print broadcast readings from a specific device") | |
parser.add_argument('-d', '--dev', type=lambda x: int(x, 0), help="Optional, the UUID of the device you want to see broadcasts from (0x21 for example)") | |
parser.add_argument('-i', '--interval', type=float, default=1.0, help="The minimum interval in seconds between two reported readings (only applies when -d is given), defaults to 1s") |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
;; .emacs.d/init.el | |
;; =================================== | |
;; MELPA Package Support | |
;; =================================== | |
;; Enables basic packaging support | |
(require 'package) | |
;; Adds the Melpa archive to the list of available repositories | |
(add-to-list 'package-archives |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
sudo apt-get update | |
sudo apt-get upgrade | |
# Store Github credentials | |
git config --global credential.helper store | |
git clone ... | |
# Install Python | |
sudo apt-get install -y python | |
sudo apt-get install python3.8 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
FROM python:3.12-slim as production | |
ENV DEBIAN_FRONTEND="noninteractive" | |
SHELL ["/bin/bash", "-c"] | |
WORKDIR /app | |
RUN set -eux; \ | |
apt-get update && \ |
OlderNewer