Skip to content

Instantly share code, notes, and snippets.

View adityaduggal's full-sized avatar

Aditya Duggal adityaduggal

View GitHub Profile
@adityaduggal
adityaduggal / auto_aquarium.py
Last active February 29, 2020 10:46
reef-pi auto error clearing and admin reload on temperature probe errors. It also reloads when temperature stays constant even when heaters are ON.
#!/usr/bin/python
import requests
import json
import time
from datetime import datetime, timedelta, date
from time import strptime
set_no_of_readings = 10
timestamp = (time.strftime("%Y-%m-%d %H:%M:%S"))
cred = '{"user":"aditya", "password":"aditya"}'
yum install -y libpng
yum install -y libjpeg
yum install -y openssl
yum install -y icu
yum install -y libX11
yum install -y libXext
yum install -y libXrender
yum install -y xorg-x11-fonts-Type1
yum install -y xorg-x11-fonts-75dpi