Forum Replies Created
-
AuthorPosts
-
bjcatlinParticipantIt sounds like the formatting isn’t quite right. You may want to try replacing the dashes with colons when entering the MAC address in your router. So put 2C:3A:E8:08:11:4A in there.
bjcatlinParticipantAfter further digging through the code, I can see one way that the OpenSprinkler firmware might be listening on IPv6 only. If you check the contents of the file /proc/sys/net/ipv6/bindv6only and it is a “1”, then the OpenSprinkler code would need to bind to IPv4 and IPv6 separately, which I don’t see it doing. This very possibly could lead to an IPv6 only situation. But if the value of bindv6only is a “0”, which it should be in most situations, then the linux kernel takes care of mapping IPv4 packets in to the IPv6 space, and so the single binding is all that is needed for both IPv4 and IPv6 traffic.
So in summary, if you type the following:
cat /proc/sys/net/ipv6/bindv6only
and you get a 0 back, then your installation will work for both IPv4 and IPv6.I hope this helps…
bjcatlinParticipantI’ve looked through the OpenSprinkler code, and I don’t see anything that requires IPv6. I’m running the latest firmware on my RPI, and both IPv4 and IPv6 work perfectly. If you are just running “netstat -a” and seeing that OpenSprinkler is listening only on TCP6, then that seems to be more of a netstat display issue, as it is indeed listening on both IPv6 and IPv4 (at least on my RPI it is like this).
bjcatlinParticipantI have created an image with the latest version of Raspbian (stretch) which seems to work perfectly with both IPv4 and IPv6. It is loaded up with the latest Unified Firmware, 2.1.7 (moved from /home/pi/OpenSprinklerGen2 to /srv/OpenSprinklerGen2). I’ve tested it on RPI B+, RPI 2, and RPI 3. It has a few other improvements, such as a software watchdog that will restart the OpenSprinkler firmware if it should fail for any reason, plus I’ve added a delay in the startup of Apache so that if OpenSprinkler is changed to listen on port 80, it will take priority over Apache.
If you would like to give it a test, it is available at the following link:
http://www.roar-ranch.com/OpenSprinkler/OpenSprinklerPI-4G-2_1_7.7zI have also created an image that is set up for the “Official Raspberry Pi 7-inch touchscreen”. This version is designed to use the Pi touchscreen in a vertical position and it displays the OpenSprinkler web interface in a Kiosk (full screen) interface. This is perfect for those who need local control, such as your friendly gardener. Once I get mine completely assembled, I’ll see if I can make a video of it so that people can see what it looks like. If you have a RPI touchscreen, and either a RPI 2 or RPI 3 and want to give it a try, here is the link to that version:
http://www.roar-ranch.com/OpenSprinkler/OpenSprinklerPI-4G-touchscreen-2_1_7.7zUnfortunately, the touchscreen version does not work well on RPI B+ or earlier, due to the single-core processor.
Anyway, if you try either of these images, please let me know how it works out for you. If it appears to work well, I can submit it to Ray to replace the outdated image on the website now.
bjcatlinParticipantNew error found. I just performed a ‘git pull’ to updated my two instances of the mobile app, and both instances are now getting an error when trying to load the initial page. The error in the web log is:
PHP Parse error: syntax error, unexpected ‘[‘ in /srv/Storage/Web/homecontrol/home/watercontrol/main.php on line 150
That section of code is:
#Resolve location to LID
function get_wunderground_lid() {
$options = get_options();
if (preg_match("/pws:/",$options["loc"]) == 1) {
$lid = $options["loc"];
} else {
$data = file_get_contents("http://autocomplete.wunderground.com/aq?h=0&query=".urlencode($options["loc"]));
$data = json_decode($data);
if ($data == []) return "";
$lid = "zmw:".$data->{'RESULTS'}[0]->{'zmw'};
}
return $lid;
}The line of code in question is if ($data == []) return “”;
In my limited programming knowledge, that line looks fine to me, so I am not sure why it is failing at that point. Any ideas?
Build is be22ab114cdbcdf996a41a171350d2b2fd4673e7
bjcatlinParticipantMoving the rain delay to EEPROM would definitely be helpful. During thunderstorms (which is when rain delay is used), the lightning often knocks out my power for short periods of time. A couple of times this year I found my plants being watered in the rain after I had set the rain delay. So having this carry through power outages would be a huge improvement for me!
bjcatlinParticipantIt definitely isn’t a big deal. But just to be clear, I was talking about the page title (as it shows in the tab, task list, default name for bookmark, etc), not where the OpenSprinkler logo is. Both systems are hosted on the same web server, so right now, I just refer to the URL to see which system I’m connected to. I have no problem with it being kept as-is, as more configuration options does tend to confuse users at times. Just please keep it in mind if you ever have so many options that you end up creating an “Advanced” setup. 😀
-
AuthorPosts