Page 1 of 1

433Mhz script not working?

Posted: Wednesday 06 February 2019 19:05
by TankySpanky
Hello,
Im new to this all and took the easy way to get a 433.92mhz send /receiver setup?
5 a bord with a low cost transmitter / receiver and created all according to a website what looked the most simple and plain to me.

It ended with a tiny script to send the "codesend XXXXXXX" command in a sh file what i had to place at the virtual switch

Before this post i have been searching the internet for about 3 hours to check for a working solution.

User is pi, all files are "registered" to pi ( de domoticz folder and scriptfiles etc etc etc )

This is the error i keep getting

2019-02-06 18:52:04.891 Error: Error executing script command (/home/pi/domoticz/scripts/verzenden.sh). returned: 32512

The content of the file verzenden.sh is .....

Code: Select all

#!/bin/bash
for (( i=1; i <= $2; i++ ))
do
sudo //home/pi/433Utils/RPi_utils/codesend $1
done
My brain stopped working after the 3 hours of searching and reading.

Help :(

Re: 433Mhz script not working?

Posted: Wednesday 06 February 2019 20:00
by freijn
Have you searched on this forum ?

I found this one as well :

to anyone else who is suffering similar issues with no idea of whats happening...

try opening the file using "vi"

check for your line endings and make sure they are in unix format

Re: 433Mhz script not working?

Posted: Friday 08 February 2019 18:32
by TankySpanky
oplossing 1 )

In plaats van het script aan te sturen gewoon intypen:

Code: Select all

script://home/pi/domoticz/scripts/codesend XXXXXXXX
codesend gewoon naar scripts gekopieerd
Dan stuurt hij het kennelijk ook aan ( bij mij werkt het naar behoren )
Vi ben ik minder mee bekend en do eigenlijk alles via nano als eerste (typen & copy/paste)

en als 2de verbind ik met "Bitvise SSH client" daar zit ook een "file-explorer" in en die gebruik ik dan weer met notepad :)

Toch allemaal bedankt en van mij mag hij gesloten worden.

mvg