Forum Replies Created
-
AuthorPosts
-
SamerKeymasterWhich app are you using?
Where specifically are you running the stations from (run-once, scheduled program, manual, etc)?
Odd issue for sure, hopefully we can figure it out just need some details.
SamerKeymasterThe app is now also available on Amazon’s App Store: http://www.amazon.com/gp/aw/d/B00JYFL8LW/ref=mp_s_a_1_4
Supports all Kindle Fire devices except Fire TV.
SamerKeymasterWhy use the web app? Native apps are available from any App Store (iOS, Google, Amazon, Windows 8, and BlackBerry QNX)
SamerKeymasterIf you are on iOS, an update is pending and should be available by the end of the week.
Otherwise, let me know and I will continue testing.
Thanks!
SamerKeymasterI will take a look at this and see what I can do.
SamerKeymasterIt’s actually slightly older (the new UI) and lacks the the addons API and specifically the mobile_api plugin. Plus a lot of other things changed as well. Maybe when the addons is ported to that version it will work.
SamerKeymaster@rorycb The Blackberry version got accepted! Link: http://appworld.blackberry.com/webstore/content/53161895/. I will push an update soon to bring it up to speed with automatic scanning, etc.
Thanks!
Update: I just submitted 1.0.10 to BB App World.
SamerKeymasterGlad that was it! For remote access there is no formal guide (yet). This is partially because I am working on a better solution than simply port forwarding however right now that is the only real option. Simply opening port 80 for your OpenSprinkler on your router will do the trick. If you need help port forwarding let me know.
If you are security conscious I suggest you take a look at @nayr’s post. This is the same method I use personally (but with 2 factor authentication as well). This method just gained support by the mobile application (iOS version still pending). For the SSL/proxy guide, it can vary in difficulty and does require some knowledge going in and most importantly requires another computer on your network.
Those are two main options right now.
SamerKeymasterThe issue becomes GPIO control. If you run both programs only one will likely be able to control the valves (and typically the first program to start). So not ideal to run both at the same time. However yea you can configure the interval program within the options page.
SamerKeymasterYou need to update the interval program. That SD image was made a while back. Simply cd into the directory and issue a: git pull.
Your options aren’t able to be changed because you aren’t supplying the password. After the submit button, is an input field for the password (default: opendoor).
SamerKeymasterThe native mobile apps have the same UI (with more updates actually). It is available in the Play store as Sprinklers https://play.google.com/store/apps/details?id=com.albahra.sprinklers
SamerKeymasterMay I suggest you try the native apps instead? Or do you prefer the PHP web app?
I’m trying to move away from the PHP version for this very reason. It’s complicated setup, confusing IP and port settings, and just kinda clunky. The native apps are as easy as downloading an app and works with all devices now (pending update on iOS).
SamerKeymaster@fsped09 Based on what you told me you are trying to setup the PHP web application up on your Raspberry Pi which is attached to an OSPi running Dan’s interval program. Is that correct?
If so, are you using the latest of all the software? If you don’t mind I will need some more information because the mobile app has diversified and now offers native variants available in the app stores (Apple, Google, and Microsoft).
SamerKeymasterWell, good news, the 1.8.3 support is complete. I am doing some final testing now and should get that pushed out to the various stores within the week.
SamerKeymasterIn regards to 1.8.3 firmware support, I am happy to announce I will be adding backward support for firmware 1.8.3. It seems most platform’s let me ignore CORS rules and grab the data I need. However, if possible please do upgrade. I am almost done writing the code and will probably take a week before it makes it out into the various stores.
Thanks.
SamerKeymasterCorrect, under options you’ll find a setting named expansion boards. Change this to the number of expansion boards you have connected. Keep in mind if you are using the new 16 zone expanders that they count as two expanders.
SamerKeymasterAbsolutely! I don’t own an OSPi nor have I used the preconfigured image however I believe it should be as easy as installing a GUI via apt-get install.
You could also install OSPi on the NOOBS image using two commands:
apt-get install git
git clone https://github.com/Dan-in-CA/OSPi
SamerKeymasterWell, you haven’t described a problem per-se. That login prompt sounds like the end-point. That’s only used to make changes to the system or update software, etc.
The sprinkler interaction will occur in a web browser on your device (laptop, tablet, phone, etc).
Now you might need the device IP which can be found by typing: ifconfig. This would be done after logging in as you described earlier. The default port is 8080 so the URL would be http://the_ip:8080
Hope this helps.
SamerKeymaster@rorycb I tried the plugin you first linked since it does what I want and is the proper way to do the plugin (finally read the API/Docs). However the plugin is returning status:false. I checked and the plugin has a simulator library compiled in. Any idea if it works in the simulator?
I put it on my Github (https://github.com/salbahra/Test/) so it is easier to add into cordova.
SamerKeymasterWell, I went ahead and submitted the app to the BlackBerry World for QNX devices (9 of them). It is pending approval. The only missing thing is the automatic device detection. That will come soon.
SamerKeymaster@Tomh sorry about the issues you had. I did a lot more research today and realized this is something Verizon does to get $500 (and probably as a minor protection to its clients).
SamerKeymasterSorry but going to have to ask for your help again. The first link you sent uses compiled libraries but from my understanding JS alone can do it. So I am trying to modify my plugin https://github.com/salbahra/NetworkInterfacePlugin to support the device. I read that the qnx global stores most of the information needed and specifically the connection is found here:
window.qnx.webplatform.device.activeConnection
I just have no way to figure out which way to get the IP. Any idea?
Update: This is what I have so far:
function getIP() {
var con;
try {
con = window.qnx.webplatform.device.activeConnection;
}
catch (e) { return false; }
if (!con || con.type == 'cellular') return false;
return con.ipAddress; // This is the made up part lol
}
module.exports = {
getIPAddress: function (success, fail, args, env) {
var result = new PluginResult(args, env),
ip = getIP();
if (!ip) {
result.error();
} else {
result.ok(ip);
}
}
};
SamerKeymasterThank you for the link! Exactly what I needed 🙂
I wrote the device detection entirely in Javascript however one of the issues I had was figuring out which IP’s to scan. I decided if I could get the WiFi IP, I could just scan that subnet. That is exactly what I do but of course I disable this if a WAN IP is used (requiring a LAN IP).
Also excited to hear that BB World will still allow the app. At this point I am just waiting for BB to reply to my ID verification. Thanks!
SamerKeymaster@rorycb Well, everything was going well however I think I hit a snag. Blackberry web view seems to enforce CORS requests and requires a non-wildcard whitelist. Meaning I have to somehow exclude the IP of your OpenSprinkler at compile time. This of course is impossible. I did some research and the fix seems to be disabling web security within the web view however this seems to prevent submission to the store. This seems to be related to PhoneGap/Cordova apps.
Do you have any advice? Other than that, the app runs rather well on the emulator (really well designed emulator setup IMO). I have to write some custom code for the BlackBerry however so it can give me the WiFi IP. This will probably take me some time to figure out.
If I can solve the first issue, I think we will be home free. I am currently awaiting BlackBerry identification verification (they made me scan my driver’s license which is odd since none of the other’s did).
Thanks.
Update: The above mentioned fix does in fact remedy the situation. I guess I could submit the app in this form and see what happens.
SamerKeymasterYes it is, let me look into it and I will get back with you. I currently use Build which no longer supports BB as of 3.x but I might just build BB locally.
Thanks.
-
AuthorPosts