Forum Replies Created
-
AuthorPosts
-
SamerKeymasterAre you using OSPi with Dan’s program or Arduino based OpenSprinkler?
Make sure all software is up to date. If your using OSPi, you probably need to enable the mobile app plugin. Please consult other threads regarding this process.
SamerKeymasterDan,
For some reason your Github page lost about 5-6 commits. One of the removed commit’s is my plugin permissions fix. This update no longer loads any plugins, including the mobile app one. This is causing issues for user’s with the app. Is there anyway we can remedy this? Ideally, “system” plugins should be exempt from the permission thing? Because even though we are using the plugin system to implement the API, almost all user’s want/expect it.
Thanks!
SamerKeymasterAny luck getting the app to work completely?
SamerKeymasterDave,
Since you mentioned that you’re using my mobile app, I want to point out it can backup your configuration. This can be found in the side panel. This can easily be reimported at a later time, if needed.
SamerKeymasterI have to admit I am using Apache2 for my proxy (using SSL and Basic authorization). I will setup nginx as @nayr has described in the wiki and attempt some tests. I will let you know what I find.
Thanks!
SamerKeymasterSure, that totally makes sense. I will take a look at the web app and try and fix your issue.
Regarding the native app not connecting, is the auto scan also failing? Are you on the same WiFi network? Using the right port? I have had random reports of connection issues and really want to pinpoint the problem.
Thanks!
SamerKeymasterIf you check auth, it should ask you for the credentials after you push submit. I never made this clear and realize this now. Let me try to make this process a little more clear.
In the meantime, the IP is just the IP and port, if needed.
SamerKeymasterThank you for sharing! That scenario is exactly why I made the mobile app from the beginning. Enjoy!
SamerKeymasterSorry to hear that. To be honest with you I have been focusing on the native apps instead of the web app. I assume a slight incompatibility with OSPi is at fault. If you are willing, the native apps are a much better solution. However, let me know if you prefer the web app and I can try and troubleshoot that.
SamerKeymasterThat is actually a separate program and this thread seems to be the best area for help: http://rayshobby.net/phpBB3/viewtopic.php?f=28&t=244
SamerKeymasterAh thank you Ray! I wasn’t paying enough attention.
The mobile app only supports the interval program (default on Arduino). For OSPi users, this is provided by Dan’s interval program (named OSPi hence the confusion). This is available here: http://github.com/Dan-in-ca/OSPi
SamerKeymasterNo problem, glad it was an easy fix!
SamerKeymasterBoth IP’s you listed off are local segments and are not routable over the Internet. An easy way to discover your IP is by visiting http://wimi.com while on your WiFi. This is the IP the mobile app wants. Inside the mobile app, you can navigate to the manage sites page and change the IP from the local one to the outside IP.
Glad everything is working again for you though and hopefully we can get the final step going.
Another thing, your Comcast modem is probably acting as a router. If this is the case and you have another router plugged into the modem you might have a double NAT. This is important since you will have to open ports on both your router and the Comcast modem. This is just one possibility to exclude.
SamerKeymasterHonestly, I am not able to re-create the issue. Can you help me by creating a step by step list of instructions to re-create the problem?
SamerKeymasterPlease be sure your phone is on the same network as your OSPi. Also, please be sure you are using the latest version of both OSPi and the mobile app.
I am not sure what you mean by “103113”.
SamerKeymasterOkay that’s what I was trying to narrow down. I will see what I can do in regard to this.
Thanks
SamerKeymasterThat is odd. I will have to look into this. Does it at least work correctly without the mobile app?
SamerKeymasterI believe this bug was reported by another user and the solution was posted on Github. Please try the latest update of OSPi and let us know if that helps.
SamerKeymasterFrom the OpenSprinkler user manual:
Reset: on OpenSprinkler 2.0 and prior versions, holding B2 while starting the controller provides a short-cut to the Reset option. Select yes and then hold B3, a hardware reset will be triggered, and the controller will recover to default settings.
From OpenSprinkler 2.1, holding B2 while starting the controller will enter bootloader mode, which allows you to flash the microcontroller with a new firmware. To enter Reset as above, you can use the Reset option.Also, within the app you can backup the config without the password. Import it after reset.
SamerKeymaster401 unauthorized from within the mobile app?
SamerKeymasterThank you!
As for the retry, I actually want to make all of the home page status items interactive. I was thinking of tapping them to toggle them. For network error, this would retry the connection. For manual mode and operation off, ask you to toggle it. For program running, take you to current status page.
I also want/will fix a bug restoring the weather after a network error. Basically, if you manage to network error and then restore connection without the app dying….its kinda hard to get the weather to show back up. I am already working on this.
I should have this out soon (of course the various stores have their approval lag time).
SamerKeymasterI was explaining what I meant by “no errors”
Well, I am on OS X not a Raspberry Pi. So my conditions are 100% different.
SamerKeymasterI wasn’t suggesting, by any means, we ignore the blank station issue. Anyways, you understood my point.
Also, for what it’s worth, I am not able to reproduce this error.
git clone https://github.com/Dan-in-CA/OSPi
cd OSPi
python ospi.py
ctrl + c //Bug with location preventing UI to load first time (for me at least)
python ospi.py
Navigate to the UI http://127.0.0.1:8080 or appropriate IP
1) Stations: Set station 1 to blank, save
2) Switch to manual mode
3) Turn station 8 on, no error
4) Turn station 8 off, no error
5) Repeat 4 and 5 in tandem 4 times, no errorErrors are both web and python output.
SamerKeymasterMaybe wrap the log write within a try? Or anything interacting with the SD card?
SamerKeymaster@nayr I just finished adding SSL support into my mobile app and it also supports HTTP basic authorization. This should work perfectly with your proxy setup. I am using it with an Apache ProxyPass directive over SSL and Basic auth and it is working great!
The 401 status code cannot be detected on async AJAX calls with a timeout (because on mobile the authorization box is hidden but open until the timeout hits). Therefore, automatic redirection to authorization prompt is impossible. User may type user:pass@ip:port in the IP box however the user/pass becomes unnecessarily exposed. So I added a collapsible box with advanced options showing ssl and authorization (independent checkboxes). If you specify use authorization, a follow-up popup will show for the credentials.
I will post back here once the app’s are in the respective app stores with these features. Thanks for the motivation to secure things a bit!
-
AuthorPosts