WebApp issue

General Discussion

WebApp issue

Postby captainserial » Wed May 21, 2014 8:46 am

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 7398 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 7398 times
captainserial
newt
newt
 
Posts: 2
Joined: Tue Aug 20, 2013 3:38 am

Re: WebApp issue

Postby mathewss » Wed May 21, 2014 9:07 am

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
mathewss
Moderator
Moderator
 
Posts: 188
Joined: Fri Dec 06, 2013 11:14 am

Re: WebApp issue

Postby captainserial » Wed May 21, 2014 11:22 am

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!
captainserial
newt
newt
 
Posts: 2
Joined: Tue Aug 20, 2013 3:38 am

Re: WebApp issue

Postby kevin » Wed May 21, 2014 12:27 pm

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!
Not an employee of the company. Just here to help and keep things clean.
kevin
Platinum Nut
Platinum Nut
 
Posts: 994
Joined: Fri Aug 16, 2013 10:10 am

Re: WebApp issue

Postby kevin » Thu May 22, 2014 11:59 am

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
Not an employee of the company. Just here to help and keep things clean.
kevin
Platinum Nut
Platinum Nut
 
Posts: 994
Joined: Fri Aug 16, 2013 10:10 am


Return to General

Who is online

Users browsing this forum: No registered users and 22 guests

cron