搜索

注册

感谢您的注册!您会收到一封确认邮件,用于激活您的账户。

username already taken
您已经有账户了? .

Login

忘记了密码?
您还没有一个账户? 马上注册 注册新账户使用界面编辑器和论坛

raspberry pi sprinkler controller with perl

项目信息

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

描述

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.



附件