Compare commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
df837701d8 | ||
|
|
fcf2a7cf45 | ||
|
|
fcbd54420e | ||
|
|
a08c8768a1 | ||
|
|
0344f8810d | ||
|
|
c49eebb612 | ||
|
|
53046ba6f0 | ||
|
|
aebb758109 | ||
|
|
076bcaa81f | ||
|
|
2899de3eac | ||
|
|
64533183f3 |
@@ -0,0 +1,21 @@
|
||||
name: Publish to Comfy registry
|
||||
on:
|
||||
workflow_dispatch:
|
||||
push:
|
||||
branches:
|
||||
- main
|
||||
paths:
|
||||
- "pyproject.toml"
|
||||
|
||||
jobs:
|
||||
publish-node:
|
||||
name: Publish Custom Node to registry
|
||||
runs-on: ubuntu-latest
|
||||
steps:
|
||||
- name: Check out code
|
||||
uses: actions/checkout@v4
|
||||
- name: Publish Custom Node
|
||||
uses: Comfy-Org/publish-node-action@main
|
||||
with:
|
||||
## Add your own personal access token to your Github Repository secrets and reference it here.
|
||||
personal_access_token: ${{ secrets.REGISTRY_ACCESS_TOKEN }}
|
||||
@@ -1,11 +1,10 @@
|
||||
# Warning: very outdated code, do not use!
|
||||
|
||||
|
||||

|
||||
|
||||
|
||||
Version: 2.0.0
|
||||
- 10-11-2023 - Initial Release
|
||||
- 11-11-2023 - Added Seed Modifier
|
||||
- 12-11-2023 - Modified Seed node to accept expressions
|
||||
- 13-11-2023 - Added Latent Noise Provider (Transforming Ambient RF Signals using `RTL_TCP` as noise)
|
||||
|
||||
|
||||
|
||||
# ZSuite - Prompter
|
||||
@@ -16,7 +15,7 @@ Example line:
|
||||
|
||||
`__preamble__ painting by __artist__`
|
||||
|
||||
This prompt will be processed with random line form the file called `preamble.txt` and `artists.txt` in the folder:
|
||||
This prompt will be processed with random line fetched from a file called `preamble.txt` and `artists.txt` in the folder:
|
||||
|
||||
`.\comfyui\custom_nodes\Zephys\nodes\blocks\*.txt`
|
||||
|
||||
@@ -27,7 +26,7 @@ I often myself use a `Counter` node that comes almost by default for math operat
|
||||
me to make sure the `Prompter` gets processed each time you hit `Generate`.
|
||||
|
||||
|
||||
# ZSuite - RF Node (Testing Phase)
|
||||
# ZSuite - RF Node (PoC)
|
||||
|
||||
- *This section explains the functioning of the RF Node within ZSuite, emphasizing the need for an RTL-SDR device, server setup, and predefined configurations.
|
||||
the rtl_tcp is an I/Q spectrum server for RTL2832 based DVB-T receivers*
|
||||
@@ -54,7 +53,7 @@ To facilitate communication with the RTL-SDR device, a server must be set up. Th
|
||||
1. **RTL_TCP Installation:**
|
||||
- Follow the Debian-specific instructions provided in the [RTL_TCP Manpage](https://manpages.debian.org/testing/rtl-sdr/rtl_tcp.1.en.html).
|
||||
- Execute the command: `rtl_tcp -a <ip> -p <port> -d 0` to initiate the service on the specified IP and port.
|
||||
- The IP is to be expected either localhost (safe) or outside ip address for servibbg outside your network.
|
||||
- The IP is to be expected either localhost (safe) or outside ip address for serving outside your network.
|
||||
- Port can be anything you wish, I do advice to use a high-range, because in Linux environment most ports lower then `< 1024` are reserved and restricted.
|
||||
|
||||

|
||||
|
||||
+26
-22
@@ -89,28 +89,32 @@ class ZSuiteNoise:
|
||||
return (s,)
|
||||
|
||||
def collect_rtl_noise(self, host, port, duration):
|
||||
# Collect RTL-SDR noise data from specified host and port
|
||||
print(f"[ZSuite] Opening connection...")
|
||||
|
||||
with socket.socket(socket.AF_INET, socket.SOCK_STREAM) as s:
|
||||
s.settimeout(5) # Set a shorter timeout for testing
|
||||
try:
|
||||
s.connect((host, port))
|
||||
except Exception as e:
|
||||
print(f"[ZSuite] Error caught: {e}")
|
||||
return np.array([]), np.array([])
|
||||
|
||||
# Send RTL-SDR parameters to the device
|
||||
print(f"[ZSuite] Sending parameters [{DEVICE_FREQUENCY},{DEVICE_IQ},{DEVICE_TUNER},{DEVICE_GAIN}]")
|
||||
self.send_command(s, 0x01, DEVICE_FREQUENCY)
|
||||
self.send_command(s, 0x02, DEVICE_IQ)
|
||||
self.send_command(s, 0x03, DEVICE_TUNER)
|
||||
self.send_command(s, 0x04, DEVICE_GAIN)
|
||||
|
||||
# Collect noise data from the device
|
||||
noise_data = self.collect_data(s, duration)
|
||||
|
||||
return self.prepare_noise(noise_data)
|
||||
try:
|
||||
# Collect RTL-SDR noise data from specified host and port
|
||||
print(f"[ZSuite] Opening connection...")
|
||||
|
||||
with socket.socket(socket.AF_INET, socket.SOCK_STREAM) as s:
|
||||
s.settimeout(5) # Set a shorter timeout for testing
|
||||
try:
|
||||
s.connect((host, port))
|
||||
except Exception as e:
|
||||
print(f"[ZSuite] Error caught: {e}")
|
||||
return np.array([]), np.array([])
|
||||
|
||||
# Send RTL-SDR parameters to the device
|
||||
print(f"[ZSuite] Sending parameters [{DEVICE_FREQUENCY},{DEVICE_IQ},{DEVICE_TUNER},{DEVICE_GAIN}]")
|
||||
self.send_command(s, 0x01, DEVICE_FREQUENCY)
|
||||
self.send_command(s, 0x02, DEVICE_IQ)
|
||||
self.send_command(s, 0x03, DEVICE_TUNER)
|
||||
self.send_command(s, 0x04, DEVICE_GAIN)
|
||||
|
||||
# Collect noise data from the device
|
||||
noise_data = self.collect_data(s, duration)
|
||||
|
||||
return self.prepare_noise(noise_data)
|
||||
except Exception as e:
|
||||
print(f"[ZSuite] Error caught: {e}")
|
||||
return np.array([]), np.array([])
|
||||
|
||||
def send_command(self, sock, opcode, value):
|
||||
# Send command to the RTL-SDR device
|
||||
|
||||
@@ -0,0 +1,14 @@
|
||||
[project]
|
||||
name = "zsuite"
|
||||
description = "Nodes:Prompter, RF Noise, SeedMod."
|
||||
version = "1.0.0"
|
||||
license = "LICENSE"
|
||||
|
||||
[project.urls]
|
||||
Repository = "https://github.com/TheBarret/ZSuite"
|
||||
# Used by Comfy Registry https://comfyregistry.org
|
||||
|
||||
[tool.comfy]
|
||||
PublisherId = ""
|
||||
DisplayName = "ZSuite"
|
||||
Icon = ""
|
||||
Reference in New Issue
Block a user