Compare commits

11 Commits
Author SHA1 Message Date
Zephyroku df837701d8 Update README to emphasize outdated code warning 2026-07-31 11:37:10 +02:00
Zephyroku fcf2a7cf45 Add warning for outdated code in README
Added a warning about outdated code.
2026-07-31 11:36:34 +02:00
Barret fcbd54420e Update README.md 2024-08-10 15:31:02 +02:00
Barret a08c8768a1 Update ZS_Rtlsdr.py
Added minor error handling
2024-08-04 15:39:07 +02:00
Barret 0344f8810d Update README.md 2024-08-04 15:11:21 +02:00
Barret c49eebb612 Update README.md 2024-08-04 15:08:23 +02:00
Barret 53046ba6f0 Update README.md 2024-07-18 13:40:51 +02:00
Barret aebb758109 Merge pull request #1 from haohaocreates/publish
Add Github Action for Publishing to Comfy Registry
2024-06-25 12:19:11 +02:00
Barret 076bcaa81f Merge pull request #2 from haohaocreates/pyproject
Add pyproject.toml for Custom Node Registry
2024-06-21 09:00:00 +02:00
haohaocreates 2899de3eac chore(pyproject): Add pyproject.toml for Custom Node Registry 2024-05-22 17:29:09 -04:00
haohaocreates 64533183f3 chore(publish): Add Github Action for Publishing to Comfy Registry 2024-05-22 17:29:05 -04:00
4 changed files with 68 additions and 30 deletions
+21
View File
@@ -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 }}
+7 -8
View File
@@ -1,11 +1,10 @@
# Warning: very outdated code, do not use!
![afbeelding](https://github.com/TheBarret/ZSuite/assets/25234371/309a5f2c-81cb-496c-bb79-a34b56d08807)
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.
![afbeelding](https://github.com/TheBarret/ZSuite/assets/25234371/fd5e517c-c3bd-4ad6-a219-c61648bf757c)
+26 -22
View File
@@ -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
+14
View File
@@ -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 = ""