Schwäbische Alb, Laichingen, Blaubeuren, Westerheim, Heroldstatt, Merklingen, Ulm - Signal
This file contains 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
# LiFePO4wered access Python module | |
# Copyright (c) 2017 Patrick Van Oosterwijck | |
from ctypes import cdll | |
import humanized_opening_hours as hoh | |
from datetime import datetime, timedelta | |
import time, multiprocessing | |
import os.path | |
from typing import Union |
This file contains 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
#!/bin/bash | |
# Read voltage from i2c if Wittypi is mounted | |
# run with `bash witty_voltage.sh` | |
readonly I2C_MC_ADDRESS=0x08 | |
readonly I2C_VOLTAGE_IN_I=1 | |
readonly I2C_VOLTAGE_IN_D=2 | |
i2c_read() | |
{ |