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
NO36256 | SEED_FOR_NO36256_GOES_HERE | |
---|---|---|
NO12345 | SEED_FOR_NO12345_GOES_HERE | |
NO46256 | SEED_FOR_NO46256_GOES_HERE |
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
# Imports some required PyOTA libraries | |
import iota | |
from iota import Address | |
# Imports some libraries required by OpenALPR communication | |
import requests | |
import base64 | |
import json | |
# Imports the CSV library used for DB comm. |
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
#Import some libraries | |
import RPi.GPIO as GPIO | |
from datetime import datetime | |
# Import the PyOTA library | |
import iota | |
from iota import Address | |
# Input pin used by IR reciever | |
pin = 12 |
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
// Include the IRemote library | |
#include <IRremote.h> | |
IRsend irsend; | |
// A hexadecimal representation of the IOTA payment address | |
// where each element in the array consist of four characters | |
const int long msgArray[] = {0x47545a55,0x48515350,0x52415143,0x54535142,0x5a45454d,0x4c5a5051,0x55504141,0x394c504c,0x4757434b,0x464e4556,0x4b42494e,0x5845585a,0x52414356,0x4b4b4b43,0x59505750,0x4b483941,0x574c474a,0x48504c4f,0x5a5a4f59,0x54414c41,0x574f5653,0x494a4959,0x565a}; | |
// Defines the delay in milliseconds between each IR message | |
const int delay_time = 500; |
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
# Imports the textrwap library | |
from textwrap import wrap | |
# Replace with your own IOTA payment address | |
sample = 'NYZBHOVSMDWWABXSACAJTTWJOQRPVVAWLBSFQVSJSWWBJJLLSQKNZFC9XCRPQSVFQZPBJCJRANNPVMMEZQJRQSVVGZ' | |
# Create a list with 4 characters in each element | |
mylist = wrap(sample,4) | |
result = '' |
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
#!/usr/bin/python | |
# Imports some Python Date/Time functions | |
import time | |
import datetime | |
# Imports the phue library | |
from phue import Bridge | |
# Create a Hue Bridge object |
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
from phue import Bridge | |
b = Bridge('YOUR HUE BRIDGE IP') | |
b.connect() |
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
#!/usr/bin/python | |
# Imports some Python Date/Time functions | |
import time | |
import datetime | |
# Import requests library | |
import requests | |
# Import json library |
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
# import the necessary packages | |
from rvm_lib import ReverseVendingMachine | |
from imutils.video import VideoStream | |
import time | |
# Select web cam. or PiCam | |
vs = VideoStream(src=0).start() | |
# vs = VideoStream(usePiCamera=True).start() | |
print("[INFO] warming up camera...") |
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
# import the necessary packages | |
from __future__ import print_function | |
from PIL import Image | |
from PIL import ImageTk | |
import tkinter as tki | |
from tkinter import scrolledtext | |
from pyzbar import pyzbar | |
import threading | |
import imutils | |
import cv2 |