Page 1 of 1

WebApp issue

PostPosted: Wed May 21, 2014 8:46 am
by captainserial
I had my AD2USB working over ser2sock from a raspberry pi, but I wanted to use the web app and was having difficulty getting it working from a stock rasbpian. I installed the beta image of your custom rasbpian, and I can connect to the web app, but it doesn't seem to be able to connect to AD2USB. I tried running through the setup assistant, twice, telling it both that the device was local and network, with no success. My AlarmDecoder.app on my mac can connect to ser2sock, but then seems unable to do anything else. I have attached some screenshots:

Screen Shot 2014-05-21 at 9.28.59 AM.png
Web app not working
Screen Shot 2014-05-21 at 9.28.59 AM.png (491.29 KiB) Viewed 7402 times


Screen Shot 2014-05-21 at 9.44.35 AM.png
alarmdecoder.app not working
Screen Shot 2014-05-21 at 9.44.35 AM.png (451.25 KiB) Viewed 7402 times

Re: WebApp issue

PostPosted: Wed May 21, 2014 9:07 am
by mathewss
First off THANKS!!! for helping us test and work out the issues.

I suspect the problem is that the device path is wrong. By default in "setup" of the web gui when you select AD2USB and local device it defaults currently to /dev/ttyAMA0 try changing this to /dev/ttyUSB0 by re-entering setup on the webapp.

Re
Sean M

Re: WebApp issue

PostPosted: Wed May 21, 2014 11:22 am
by captainserial
mathewss wrote:I suspect the problem is that the device path is wrong.


That was it! I've got it working now. Sort of. I have a few other things.

  • I don't seem to be able to change the admin user password or disable or delete that account. That is troubling.
  • I set up a notification to email me whenever a zone is faulted. It doesn't seem to be working. I am using gmail for my mail server as I don't have sendmail configured on my pi. Is that supported?
  • When I'm viewing the web app on iOS (latest version), I can't scroll. I can get through forms by "tabbing", but some pages I can't view completely as a result. Safari on my Mac does not have this problem.

Other than that, I have to say this is a huge step forward over the old software. I am excited to see where it goes from here.

Thank you for continuing to support your product!

Re: WebApp issue

PostPosted: Wed May 21, 2014 12:27 pm
by kevin
Hey, glad you're enjoying it! As it's beta, you'll see things improve over time. One of them being specifically tablet support issues. Issues with portrait and landscape are still cropping up here and there - if you can't scroll holding it in one orientation, I suggest trying the other for the time being. Though the main use-case of the webapp for mobile and tablet devices is the keypad, we will continue to improve other areas.

The default password for the admin account in our image is 'alarmdecoder' - you should be able to change the password for this account knowing this information. You cannot disable the admin account, but you can change it.

As far as email goes - it should be supported, though I do not think we have tested specifically with gmail. If you are having trouble, I suggest for the time being installing sendmail on your pi and using that as your mail server.


captainserial wrote:
mathewss wrote:I suspect the problem is that the device path is wrong.


That was it! I've got it working now. Sort of. I have a few other things.

  • I don't seem to be able to change the admin user password or disable or delete that account. That is troubling.
  • I set up a notification to email me whenever a zone is faulted. It doesn't seem to be working. I am using gmail for my mail server as I don't have sendmail configured on my pi. Is that supported?
  • When I'm viewing the web app on iOS (latest version), I can't scroll. I can get through forms by "tabbing", but some pages I can't view completely as a result. Safari on my Mac does not have this problem.

Other than that, I have to say this is a huge step forward over the old software. I am excited to see where it goes from here.

Thank you for continuing to support your product!

Re: WebApp issue

PostPosted: Thu May 22, 2014 11:59 am
by kevin
To fix scrolling issues on ipad until we push a new version, you can edit the static/css/main.css file and remove the "overflow-x: hidden" style on the #wrap ID - this starts on about line 103 in the file.

Note that this will only work for IOS devices, doing this on android devices will make things iffy - our codebase handles this, but if you wanted to enable scrolling in IOS now, you can do the above.

You can also change the viewport in templates/layouts/base.html for the ipad if you want, about line 40:

From:
Code: Select all
           viewport.setAttribute('content', 'width=extend-to-zoom, initial-scale=0.9, target-densitydpi=device-dpi, user-scalable=no, maximum-scale=0.9');

To:
Code: Select all
            viewport.setAttribute('content', 'width=device-width, initial-scale=1.0, target-densitydpi=device-dpi, user-scalable=no, maximum-scale=1.0');



Thanks,
Kevin