Skip to content

Instantly share code, notes, and snippets.

#!/bin/python
import subprocess
import RPi.GPIO as GPIO
import time
import argparse
import daemon
import socket
import json
class GPIOPin:
@jowlo
jowlo / .block
Last active June 3, 2019 14:33 — forked from heybignick/.block
D3.js v4 Force Directed Graph with Labels
license: gpl-3.0
height: 600
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
#!/usr/bin/env python
"""
Simple script to transform openscale csv export files to a format accepted by garmin connect at
https://connect.garmin.com/modern/import-data
Note: When importing the language needs to be set to English, otherwise the import fails.
Set everything to metric units and to YYYY-MM-DD date format.
If you want to compute BMI for the file give your height (im meters) as second parameter.