433Mhz script not working?

Topics (not sure which fora)
when not sure where to post, post here and mods will move it to right forum.

Moderators: leecollings, remb0

Post Reply
TankySpanky
Posts: 43
Joined: Wednesday 06 February 2019 18:54
Target OS: Raspberry Pi / ODroid
Domoticz version: Beta
Location: Belgium
Contact:

433Mhz script not working?

Post 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 :(
Raspberry Pi 3 B+ & Domoticz Beta & Dashticz Beta = Headache :)
But it keeps you van the straat
freijn
Posts: 536
Joined: Friday 23 December 2016 16:40
Target OS: Raspberry Pi / ODroid
Domoticz version: Stable
Location: Netherlands Purmerend
Contact:

Re: 433Mhz script not working?

Post 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
TankySpanky
Posts: 43
Joined: Wednesday 06 February 2019 18:54
Target OS: Raspberry Pi / ODroid
Domoticz version: Beta
Location: Belgium
Contact:

Re: 433Mhz script not working?

Post 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
Raspberry Pi 3 B+ & Domoticz Beta & Dashticz Beta = Headache :)
But it keeps you van the straat
Post Reply

Who is online

Users browsing this forum: No registered users and 1 guest