Skip to content

Instantly share code, notes, and snippets.

@trytone
trytone / raw_ir_to_pronto_hex.pl
Last active January 28, 2020 12:55
Convert RAW IR to Pronto Hex
use Data::Dumper;
# inputs
my $data = {
'Home' => '3000 3000 500 500 500 1500 500 1500 500 500 500 1500 500 500 500 500 500 500 500 500 500 500 500 500 500 500 500 1500 500 1500 500 1500 500 1500 500 500 500 500 500 500 500 500 500 500 500 500 500 500 500 500 500 500 500 500 500 500 500 500 500 500 500 500 500 500 500 500 500 500 500 1500 500 1500 500 1500 500 500 500 1500 500 1500 500 1500 500',
'Auto' => '3000 3000 500 500 500 1500 500 1500 500 500 500 1500 500 500 500 500 500 500 500 1500 500 500 500 1500 500 500 500 500 500 500 500 500 500 500 500 500 500 500 500 500 500 500 500 500 500 500 500 500 500 500 500 500 500 500 500 500 500 500 500 500 500 500 500 500 500 500 500 500 500 500 500 500 500 500 500 1500 500 500 500 500 500 500 500',
'Spot' => '3000 3000 500 500 500 1500 500 1500 500 500 500 1500 500 500 500 500 500 500 500 500 500 500 500 500 500 1500 500 500 500 500 500 1500 500 500 500 500 500 500 500 500 500 500 500 500 500 500 500 500 500 500 500 500 500 500 500 500 500 500 500 500 500 500 500 5
@trytone
trytone / EUFY_RoboVac11.irplus
Last active January 28, 2020 10:58
irplus xml for EUFY RoboVac11
<irplus>
<device manufacturer="EUFY" model="RoboVac V11" columns="12" format="PRONTO_HEX" repeatheader="false" frequency="38028">
<button label="&#1045214;" labelSize="20.0" span="6">0000 006D 002A 0000 0072 0072 0013 0013 0013 0039 0013 0039 0013 0013 0013 0039 0013 0013 0013 0013 0013 0013 0013 0013 0013 0013 0013 0013 0013 0013 0013 0039 0013 0039 0013 0039 0013 0039 0013 0013 0013 0013 0013 0013 0013 0013 0013 0013 0013 0013 0013 0013 0013 0013 0013 0013 0013 0013 0013 0013 0013 0013 0013 0013 0013 0013 0013 0013 0013 0013 0013 0013 0013 0039 0013 0039 0013 0039 0013 0013 0013 0039 0013 0039 0013 0039 0013 0072</button>
<button label="AUTO" labelSize="20.0" span="6" backgroundColor="FFC84334">0000 006D 002A 0000 0072 0072 0013 0013 0013 0039 0013 0039 0013 0013 0013 0039 0013 0013 0013 0013 0013 0013 0013 0039 0013 0013 0013 0039 0013 0013 0013 0013 0013 0013 0013 0013 0013 0013 0013 0013 0013 0013 0013 0013 0013 0013 0013 0013 0013 0013 0013 0013 0013 0013 0013 0013 0013 0013 0013 0013 0013 0013 0013 001
@trytone
trytone / pronto_hex_eufy_robovac_11.txt
Created January 28, 2020 12:53
Pronto HEX codes for EUFY RoboVac11
Right : 0000 006D 002A 0000 0072 0072 0013 0013 0013 0039 0013 0039 0013 0013 0013 0039 0013 0013 0013 0013 0013 0013 0013 0039 0013 0039 0013 0013 0013 0039 0013 0013 0013 0039 0013 0013 0013 0039 0013 0013 0013 0013 0013 0013 0013 0013 0013 0013 0013 0013 0013 0013 0013 0013 0013 0013 0013 0013 0013 0013 0013 0013 0013 0013 0013 0013 0013 0013 0013 0013 0013 0013 0013 0013 0013 0039 0013 0039 0013 0039 0013 0039 0013 0013 0013 0039 0013 0072
Left : 0000 006D 002A 0000 0072 0072 0013 0013 0013 0039 0013 0039 0013 0013 0013 0039 0013 0013 0013 0013 0013 0013 0013 0039 0013 0039 0013 0013 0013 0013 0013 0013 0013 0039 0013 0039 0013 0013 0013 0013 0013 0013 0013 0013 0013 0013 0013 0013 0013 0013 0013 0013 0013 0013 0013 0013 0013 0013 0013 0013 0013 0013 0013 0013 0013 0013 0013 0013 0013 0013 0013 0013 0013 0013 0013 0039 0013 0013 0013 0039 0013 0039 0013 0039 0013 0013 0013 0072
Up : 0000 006D 002A 0000 0072 0072 0013 0013 0013 0039 0013 0039 0013 0013 0013 0039 0013 0013 0013 0013 00
@trytone
trytone / nbox-stream-from-pc
Last active May 7, 2021 22:14
Stream Screen Capture Video From PC to NBOX 5800S Device using RTMP protocol
Replace all 192.168.0.2 with your local IP
NBOX 5800S:
1. Login to device by telnet/ssh and run "wget http://iptvplayer.pl/iptvinstaller.sh -O - | /bin/sh"
2. Run "echo 'streamPC; rtmp://192.168.0.2/view/test' > /hdd/urllist.txt"
3. Reboot device
4. "SETUP" button => "Plugins" => "IPTV Player" or "E2iPlayer" => All plugins (rubic cube icon) => Urllists player ( white document icon ) => All => streamPC
Windows 10:
@trytone
trytone / IR_Transceiver_Arduino.ino
Last active April 21, 2023 23:52
IR Transceiver for Arduino
#include <IRremote.h>
const int ir_recv_pin = 8;
const int ir_send_pin = 3;
IRrecv irrecv(ir_recv_pin);
IRsend irsend(ir_send_pin);
decode_results results;
@trytone
trytone / RDM6300_reader.ino
Last active April 24, 2023 20:25
RDM6300 125kHz RFID Arduino Reader
#include <SoftwareSerial.h>
const int BUFFER_SIZE = 14; // RFID DATA FRAME FORMAT: 1byte head (value: 2), 10byte data (2byte version + 8byte tag), 2byte checksum, 1byte tail (value: 3)
const int DATA_SIZE = 10; // 10byte data (2byte version + 8byte tag)
const int DATA_VERSION_SIZE = 2; // 2byte version (actual meaning of these two bytes may vary)
const int DATA_TAG_SIZE = 8; // 8byte tag
const int CHECKSUM_SIZE = 2; // 2byte checksum
SoftwareSerial ssrfid = SoftwareSerial(6,8); // RX, TX
@trytone
trytone / Atmega32u4_BadUSB
Created April 25, 2023 20:22
Arduino Pro Micro (Atmega32u4) - BadUSB
#include <Keyboard.h>
#include <SoftwareSerial.h>
// Set up SoftwareSerial on pins 14 and 15 (RX, TX)
SoftwareSerial mySerial(14, 15);
void setup() {
// Start serial communication with baud rate of 9600
Serial.begin(9600);
mySerial.begin(9600);