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
apt install python3-pip htop lm-sensors | |
pip3 install --upgrade pip | |
apt remove python3-wrapt | |
apt remove python3-scipy | |
apt install cmake libncurses5-dev libncursesw5-dev git | |
git clone https://github.com/Syllo/nvtop.git | |
mkdir -p nvtop/build | |
cd nvtop/build | |
cmake .. |
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
[Unit] | |
Description=Home assistant service for Temperature/Humidity | |
[Service] | |
ExecStart=/usr/bin/python3 /opt/remotehomeassistant_dht11.py | |
WorkingDirectory=/opt/ | |
StandardOutput=inherit | |
StandardError=inherit | |
Restart=always | |
User=pi |
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
sensor: | |
- platform: oasa | |
name: "Leave Home Station" | |
bus: "409" | |
lat: "37.996364" | |
lon: "23.792815" |
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
#!/usr/bin/env python3 | |
import subprocess | |
import sys | |
import logging | |
from shutil import copytree, ignore_patterns, rmtree | |
import os | |
from subprocess import call | |
logging.basicConfig( |
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
#! /usr/bin/python3 | |
import time | |
import subprocess | |
import re | |
START = 4000 | |
DIFF = 500 |
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
# Copyright (C) 2017 Google Inc. | |
# | |
# Licensed under the Apache License, Version 2.0 (the "License"); | |
# you may not use this file except in compliance with the License. | |
# You may obtain a copy of the License at | |
# | |
# http://www.apache.org/licenses/LICENSE-2.0 | |
# | |
# Unless required by applicable law or agreed to in writing, software | |
# distributed under the License is distributed on an "AS IS" BASIS, |
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
#!/usr/bin/env python3 | |
# -*- coding: utf-8 -*- | |
__author__ = "bkbilly" | |
from pysnmp.entity.rfc3413.oneliner import cmdgen | |
from datetime import datetime | |
import matplotlib.pyplot as plt | |
import matplotlib.animation as animation |
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
#include <IRremoteESP8266.h> | |
#include <stdio.h> | |
#include <string.h> | |
#include <time.h> | |
#include <stdlib.h> | |
#include <ESP8266WiFi.h> | |
#include <PubSubClient.h> | |
#define DEBUG 1 | |
const char* ssid = ""; | |
const char* password = ""; |
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
#!/usr/bin/python | |
import requests | |
import re | |
import threading | |
import time | |
import socket | |
import json | |
from datetime import datetime | |
import pytz |
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
import RPi.GPIO as GPIO | |
import socket | |
import json | |
import signal | |
from itertools import cycle | |
from wakeonlan import wol | |
import time | |
class switchButton(): | |
def __init__(self, inputPin, pressDelay=0.5, pressStep=1.5): |