1
0
Fork 0
Operating system and applications for the PineTime watch
 
 
 
 
Go to file
jebba 537f42f726 patchlet for ppc64le micropython 2021-06-15 17:36:59 -06:00
.github/workflows github: workflows: Fix add-path problems 2020-12-24 14:14:39 +00:00
bootloader@dd7f0d2772 use jebbatime-bootloader 2021-06-14 17:42:52 -06:00
config Set time scriptlets 2021-06-12 15:14:59 -06:00
micropython@79034e2b52 use https for micropython submodule 2021-06-14 16:52:38 -06:00
patches patchlet for ppc64le micropython 2021-06-15 17:36:59 -06:00
reloader@14f85fc921 reloader: Update to newer factory firmware for pinetime 2021-06-03 17:09:32 +01:00
res jebbatime.png 2021-06-12 17:48:41 -06:00
scripts rustc on bullseye, upgrade pip3 2021-06-15 17:20:09 -06:00
tools wasptool: Fix progress bar numbering 2021-05-05 21:02:16 +01:00
upstream move docs/ etc to upstream dir 2021-06-14 23:46:37 -06:00
wasp rm some P8 2021-06-14 14:41:33 -06:00
.gitignore spreadsheet of Pinetime OS/distros 2021-06-15 00:00:38 -06:00
.gitmodules use jebbatime-bootloader 2021-06-14 17:42:52 -06:00
COPYING Add licensing information for all wasp-os files. 2020-03-22 15:40:18 +00:00
COPYING.LGPL Add licensing information for all wasp-os files. 2020-03-22 15:40:18 +00:00
Makefile cruft up make 2021-06-14 14:14:55 -06:00
README.md rustc on bullseye, upgrade pip3 2021-06-15 17:20:09 -06:00
TODO.md rm some ble 2021-06-14 13:38:47 -06:00
pinetime-os.ods A few notes on Pinetime OS 2021-06-15 16:56:47 -06:00

README.md

jebbatime

jebbatime is an operating system and application suite for the PineTime watch.

Build

To build.

  • Debian Buster (10).

Dependenices

Debian Packages

Install dependencies from Debian repos.

sudo apt install \
      wget git build-essential libsdl2-2.0-0 python3-click python3-gi \
      python3-numpy python3-pexpect python3-pil python3-pip python3-pydbus \
      python3-serial unzip \
      graphviz python3-recommonmark \
      python3-sphinx \
      python3-cairo \
      python3-ecdsa \
      pkg-config \
      bluez \
      ntpdate \
      sudo \
      gcc-arm-none-eabi ccache \
      fonts-lobstertwo

ccache

Add to ~/.bashrc:

PATH=~/.local/bin:/usr/lib/ccache:$PATH

Source

Source sauce.

git clone git@spacecruft.org:jebbatime/jebbatime.git
# Or
git clone https://spacecruft.org/jebbatime/jebbatime.git
cd jebbatime
./scripts/jebbatime-install-deb-deps
./scripts/jebbatime-install-py-deps

Python

Manually, install Python dependencies with pip.

pip3 install --user -r wasp/requirements.txt
pip3 install --user freetype-py

Bullseye

Debian Bullseye (11) on ppc64le wants rustc to build/install pip package cryptography.

./scripts/jebbatime-install-deb-deps
sudo apt -y install rustc
./scripts/jebbatime-install-py-deps

Submodules

Some submodules are mirrored.

make submodules
# XXX grabs some source zips
make softdevice

Compile

Build thang.

# Blow out, rinse, repeat. Should take less than a minute or so.
make mrproper
make clean BOARD=pinetime
make submodules
make all BOARD=pinetime

Fonts

HOWTO add font.

cd tools/micropython-font-to-py

./font_to_py.py								\
	/usr/share/fonts/opentype/lobstertwo/LobsterTwo-Bold.otf	\
	--xmap 64							\
	--errchar 58							\
	--smallest 48							\
	--largest 58							\
	lobstertwobold64.py

mv lobstertwobold64.py ../../wasp/fonts/

Setup

This assumes two devices, the sealed watch and the open developers watch.

mkdir ~/.config/
cp -p config/jebbatime.conf ~/.config/
# Adjust as needed.
vim ~/.config/jebbatime.conf

Use

Basic scripts are in scripts/.

Upstream

Fork

jebbatime is a lesser fork of Daniel Thompson's Wasp-os.

  • Same licenses.
  • Renamed.
  • Removed more than added.
  • Removing bits not used on Pinetime.
  • Removing bits not used by me.
  • No step counter.
  • No heart rate monitor.
  • Etc.
  • Not much useful added.
  • Nice digital face font. Battery and BLE icon removed from main app.

Source

Upstream source code:

Non-free bits

XXX Appears to include non-free "5-Clause Nordic License". :|

4. This software, with or without modification, must only be used with a
   Nordic Semiconductor ASA integrated circuit.