Search

Register

Thanks for signing-up! You will receive an email with further instructions to activate your account!

username already taken
You already have an account? .

Login

Forgot password?
Don't have an account yet? Register now for using the UI-Designer and the forum or creating projects.

raspberry pi sprinkler controller with perl

Project Information

This is a simple starting json file and perl program to echo out the commands sent from net IO. It is the start of a larger project to run a sprinkler system at my house. I didn't see a lot of perl examples with the net IO setup, so I thought this might be useful for those that want to use perl

Description

The json file has sliders to send information to the perl script. Data can also be queried back for the status, and there is a switch to force the relay on for a certain zone.

The attached perl program will receive the udp packets and echo them to the screen

To run on a raspberry pi you can execute from the autostart directory

/home/pi/.config/autostart

and edit the auto.desktop file

add a line like exec = lxterminal -e /home/pi/rainman1p12_perl.pl

remember to make the perl script execute-able with chmod ug+x or similar command


A few other notes
I was working on this with the Iphone and laptop and found a couple of other usefull programs to work with as well.

For the PC to see if the packets are moving you can try a program called packet sender. It will listen to udp and tcp and will allow an echo response. You can find at packetsender.com

Also on the Iphone there is a nice utility called “Finger” to see what is connected to the net if you want to check on your raspberry pi address from your Iphone.

When you want to see if data is going to and from your Iphon there is another program called “UDP tool” which is similar to packet sender but lets you see the data on your phone.



Attachments