View _ranger.py
""" | |
The range trading bot would work on price swings in a preset range | |
IMPORTANT: You have to configure it to what you believe the trading corridor is! | |
DISCLAIMER: all losses or harm resulting from the use of this code is YOUR SOLE responsibility | |
2013-12-12 piramida, based on balancer bot by prof7bit | |
goxtool is property of prof7bit | |
""" | |
from datetime import datetime |
View gitignore
# Compiled source # | |
################### | |
*.com | |
*.class | |
*.dll | |
*.exe | |
*.o | |
*.so | |
# Packages # |
View sds011.py
#!/usr/bin/python | |
# -*- coding: UTF-8 -*- | |
import serial, time, struct | |
ser = serial.Serial() | |
ser.port = "/dev/cu.wchusbserial1410" # Set this to your serial port | |
ser.baudrate = 9600 | |
ser.open() |