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
-- RSWarehouse.lua | |
-- Author: Scott Adkins <[email protected]> (Zucanthor) | |
-- Published: 2021-09-21 | |
-- | |
-- This program monitors work requests for the Minecolonies Warehouse and | |
-- tries to fulfill requests from the Refined Storage network. If the | |
-- RS network doesn't have enough items and a crafting pattern exists, a | |
-- crafting job is scheduled to restock the items in order to fulfill the | |
-- work request. The script will continuously loop, monitoring for new | |
-- requests and checking on crafting jobs to fulfill previous requests. |
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 os | |
import pathlib | |
import subprocess | |
import sys | |
import time | |
def load_test_file(file_path): | |
with open(file_path, encoding='utf-8') as file: | |
return file.read().strip().splitlines() |
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 os | |
import pathlib | |
import time | |
import psutil | |
import subprocess | |
import sys | |
def load_test_file(file_path): | |
with open(file_path, encoding='utf-8') as file: |
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 typing import NamedTuple | |
from geopy.geocoders import Nominatim # type: ignore | |
import config # type: ignore | |
from exceptions import CantGetCoordinates | |
class Coordinate(NamedTuple): | |
latitude: float | |
longitude: float |