This file contains hidden or 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
# Solar Charger Code | |
# (C) Ryan Walmsley 2023 | |
# This code will monitor and calculate the average solar export from the house, then charge from it. | |
# It then instructs my charger (an EO Mini Pro) to then charge at the set rate. | |
from requests import get, post, exceptions | |
import requests | |
from pprint import pprint | |
import json |
This file contains hidden or 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
- name: Moonstream | |
hosts: myhosts | |
pre_tasks: | |
- name: Check Hosts Online | |
ansible.builtin.ping: | |
- name: Update APT | |
become: true | |
apt: | |
name: "*" | |
state: latest |
This file contains hidden or 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
from papirus import PapirusTextPos | |
from time import sleep | |
import urllib2 | |
import json | |
#INPUT YOUR TEAM ID HERE | |
FAHTEAMID="236472" | |
url = "https://apps.foldingathome.org/stats.py?callback=&user=&team="+str(FAHTEAMID) |
This file contains hidden or 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
from papirus import PapirusTextPos | |
from time import sleep | |
import urllib2 | |
import json | |
#INPUT YOUR TEAM ID HERE | |
FAHTEAMID="236472" | |
url = "https://apps.foldingathome.org/stats.py?callback=&user=&team="+str(FAHTEAMID) |