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 socket, time, math, struct | |
import numpy as np | |
import serial | |
UDP_IP = "127.0.0.1" | |
UDP_PORT = 6999 | |
SAMPLE_RATE = 48000 | |
PACKET_SIZE = 10000 | |
PACKET_DURATION = PACKET_SIZE/SAMPLE_RATE |
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 gi | |
gi.require_version('GdkPixbuf', '2.0') | |
from gi.repository import GdkPixbuf, GLib | |
gi.require_version("Gtk", "3.0") | |
from gi.repository import Gtk, Gdk | |
from PIL import Image | |
import requests | |
imggif = Image.open(requests.get("https://www.hamqsl.com/solar101pic.php", stream=True).raw) | |
imggif.load() |