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
""" | |
Utilities for interacting with unreliable Wax endpoints for transactions on that network. | |
Copyright (C) 2021 Vyryn | |
This program is free software: you can redistribute it and/or modify | |
it under the terms of the GNU Affero General Public License as | |
published by the Free Software Foundation, either version 3 of the | |
License, or (at your option) any later version. | |
This program is distributed in the hope that it will be useful, |
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
# Wax api Alienworlds Mining aggregator by Vyryn. Licensed under the GNU AGPLv3. | |
# https://www.gnu.org/licenses/agpl-3.0.en.html | |
import asyncio | |
import json | |
from datetime import datetime | |
# pip install aiohttp | |
import aiohttp | |
# pip install parsedatetime | |
import parsedatetime as pdt |
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
# Actual atmospheric pressure in hPa | |
aap = 990 | |
# Actual temperature in Celsius | |
atc = 10 | |
# Height above sea level | |
hasl = 500 | |
# Adjusted-to-the-sea barometric pressure | |
a2ts = aap + ((aap * 9.80665 * hasl)/(287 * (273 + atc + (hasl/400)))) |
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
import math | |
def get_frost_point_c(t_air_c, dew_point_c): | |
"""Compute the frost point in degrees Celsius | |
:param t_air_c: current ambient temperature in degrees Celsius | |
:type t_air_c: float | |
:param dew_point_c: current dew point in degrees Celsius | |
:type dew_point_c: float |