Go to advanced search

by axel77
Tue Apr 30, 2019 12:10 am
Forum: Python
Topic: Help parsing incoming UDP data to use as variables
Replies: 7
Views: 617

Re: Help parsing incoming UDP data to use as variables

That worked great, thanks! I originally tried it with a tiny sleep command (40ms), but it works instantaneously without it and no simulated presses are skipped.
by axel77
Thu Apr 25, 2019 3:22 am
Forum: Python
Topic: Help parsing incoming UDP data to use as variables
Replies: 7
Views: 617

Re: Help parsing incoming UDP data to use as variables

Not sure if better to make a new thread, but i'm looking to add a repeater function to the python script to make it so I don't need to send multiple udp commands. I'd like to make a media skip forward/backward routine that multiplies the right/left cursor x times. I'm thinking this can be accomplish...
by axel77
Mon Mar 11, 2019 5:57 pm
Forum: Python
Topic: Help parsing incoming UDP data to use as variables
Replies: 7
Views: 617

Re: Help parsing incoming UDP data to use as variables

That did it! Thanks!!! NOTES: --I changed the UDP Sender format to var1 var2 (using only a space as the separator ). --I ran into an issue where the script would run too early after boot (socket.error: [Errno 99] Cannot assign requested address). Fixed with 10 second delay. --var1 inputs are for key...
by axel77
Mon Mar 11, 2019 5:31 pm
Forum: Python
Topic: Help parsing incoming UDP data to use as variables
Replies: 7
Views: 617

Re: Help parsing incoming UDP data to use as variables

Thanks for the input! Gave it a shot, got error: Traceback (most recent call last): File "./incoming.py", line 22, in <module> write_report(chr(var1)+NULL_CHAR+chr(var2)+NULL_CHAR85) TypeError: an integer is required I continue to stumble on 'integer is required'. I'll keep reading up on data splits
by axel77
Mon Mar 11, 2019 4:09 pm
Forum: Python
Topic: Help parsing incoming UDP data to use as variables
Replies: 7
Views: 617

Help parsing incoming UDP data to use as variables

I am trying to turn an old android phone into an ip-only universal remote for the living room. The goal is to have a rpi zero w setup as an HID keyboard where I can send navigation keystrokes to my nvidia shield tv over UDP. I have the rpi receiving UDP commands from the phone using this script: #!/...
by axel77
Tue May 30, 2017 9:25 pm
Forum: Beginners
Topic: Push requests to an rpi?
Replies: 1
Views: 437

Push requests to an rpi?

I'm trying to set up a monitoring solution where an rpi zero w is waiting for a query to then send off a push notification. I have no problems setting up the push notification from the rpi, but what is the best way to send a trigger to the zero? I don't need the zero to parse lots of information fro...
by axel77
Thu May 04, 2017 4:36 am
Forum: General discussion
Topic: Basic electrical question
Replies: 15
Views: 2448

Re: Basic electrical question

The type of appliance is a washing machine and dryer. Was planning on taking the shroud off the display and wiring into the small green led that indicates power (the warranty/guarantee isn't an issue since they passed a year ago). Original idea was to sugru a LDR sensor over the led and get the read...
by axel77
Tue May 02, 2017 2:48 am
Forum: General discussion
Topic: Basic electrical question
Replies: 15
Views: 2448

Basic electrical question

I want my rpi zero to know if a wire to an LED on an appliance is either getting current or not, no need to measure more than on or off.

What's the best way to safely transfer this information to the rpi?

Go to advanced search