Hello,
I have a Raspberry Pi with the installed piaware and a dongle, but I wonder if it is possible to provide data to it otherwise (For an IP: PORT) in place of the dongle
Sorry for bad english.
Hello,
I have a Raspberry Pi with the installed piaware and a dongle, but I wonder if it is possible to provide data to it otherwise (For an IP: PORT) in place of the dongle
Sorry for bad english.
I have found this line that indicates where the PI will fetch the data:
nc -d 30005 | nc 127.0.0.1 30004 &
but where I put it so that it starts when the PI restarts?
You can create a file containing the line below and then run “crontab filename”. It will run the command upon boot. I put the sleep in there to give it a bit of time so everything can come up. The best way to do it would be to create a script that goes into /etc/init.d that has the stuff in it to have things go in precisely the right order, but this is the easiest:
@reboot sleep 30; nc -d <IP ANDDRESS> 30005 | nc 127.0.0.1 30004 &