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
""" | |
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 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 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)))) |