WXforum.net

Weather Software => My AcuRite smartHUB Software => Topic started by: WonderWX on December 07, 2016, 04:38:47 PM

Title: Local responder script
Post by: WonderWX on December 07, 2016, 04:38:47 PM
For testing purposes... When you might want to do something crazy and not go thru myacurite or something.
Make sure you are on 224 firmware so the smarthub doesn't go into update mode.
These make use of the dns redirect and ncat mentioned in my previous post, as well as https://www.cygwin.com/  bash Terminal
Someone could probably do these things in a windows batch file too.


The Terminal command line to start ncat and the responder script:
while true; do sh respond.sh | ./ncat -l 80 -o output.txt ; done

The respond.sh bash script
 [ You are not allowed to view attachments ]

an additional file, output.txt will be created. 

Kevin's program is looking for the full response packet.  Just responding "success" or whatever is not enough. The time is important too, for things like, oh..... rain?