See bottom of that page. I wrote a small program to switch the LED lights on at one hour before sunset, and off again one hour after sunrise. You can enter your location as coordinates, and the color of the lights. Commands are send over UDP, three tries for every change, as UDP packets may get lost.
It can very easily be modified to control other lights via other ways of I/O. Code is C, released under the GPL.
formatting link
It is based on the 'sunrise' program, and needs that installed, sunrise is copyright somebody else, you can find that here:
All the criticism about the poor quality of his schematics and he seems to have made this one even worse than the rest.
It is a shame you taint your fine work and interesting projects with such poor documentation. You should be ashamed of yourself! Shame on you, shame, shame, shame!
Jan, how about a mea culpa and I'll find a way to produce schematics that are easily readable on my webpage.
On a sunny day (Sun, 15 May 2011 19:04:36 -0500) it happened John KD5YI wrote in :
sunset,
I/O.
formatting link
even worldwide.
You would need to know my IP address for that! Try echo R0 G0 B0 | netcat -u -q 0 86.81.55.74 1024
Replace the '0' zeros by 0-255 for any light color for Red Green and Blue I have opened that port 1024 now just for fun. Anyone can try, I will give feedback, but of course I cannot easily see who does what.
On a sunny day (Mon, 16 May 2011 14:51:13 -0500) it happened John KD5YI wrote in :
No, it says 10.0.0.157 1024 for all I know, link please?
PS
10.0.0.xxx is a LAN address. Addresses in that range are not globally accesable, but are forwarded from the main IP by the router via a NAT (Network Address Translation) table.
For example I can set the NAT table in the router to translate incoming UDP packets for port 999 to 1024 10.0.0.157 on the LAN. That is a good protection, as somebody may find the posting later and start to play, Then packets to port 1024 will just get lost (of course I will not use 999, take a guess :-) )
Once could set up a script that sends R0 G0 B0 to all ports in sequence though. But then this IP changes in a few days....
On a sunny day (Mon, 16 May 2011 20:11:27 GMT) it happened Jan Panteltje wrote in :
Another project, called IO_pic has a password protection, it will not even respond without having seen the password string. Something on the to do list for the color thing.
ElectronDepot website is not affiliated with any of the manufacturers or service providers discussed here.
All logos and trade names are the property of their respective owners.