WIP - E-moticz - Mobile site / app

Moderator: leecollings

ldb2000
Posts: 1
Joined: Tuesday 24 March 2015 6:55
Target OS: Raspberry Pi / ODroid
Domoticz version:
Contact:

WIP - E-moticz - Mobile site / app

Post by ldb2000 »

I have 2 issues with the code attached:

1/ cordova.js is missing (but maybe it is not needed)
2/ a CORS issue "No 'Access-Control-Allow-Origin' header is present on the requested resource." (installing the chrome extension https://chrome.google.com/webstore/deta ... ihlkkiljbi makes it work)
possible solution: http://blog.novanet.no/angularjs-with-j ... k-on-time/

But really nice work. Thanks
schmm
Posts: 8
Joined: Monday 29 September 2014 21:28
Target OS: Raspberry Pi / ODroid
Domoticz version:
Location: Weert (Netherlands)
Contact:

Re: WIP - E-moticz - Mobile site / app

Post by schmm »

Hi,

Tnx for this theme. This is a very nice one!

But i have the following issue. I have six temperature sensors and on my iphone. Only four are shown and on my iphone (5s) they are to small.

Also the last T from Watt is not shown correctly on my phone.

See the attached screenshots from my iphone
WatT and Temp Sensor
WatT and Temp Sensor
IMG_0030.PNG (150.37 KiB) Viewed 4816 times
EDIT:

The first problem i already solved.

The two temp sensors that did not display where the sensors with only temperature values and no humidity values.

So i edited the file tab-dash.html and added the following part after the normal temperature module:

The big change is: Line 5. "light.Type=== 'Temp'

Code: Select all

  <div class="row">
         <div 
            class="card col temp" 
            ng-repeat="light in devices" 
            ng-if="light.Type === 'Temp' && light.Favorite == 1"
            ng-model="light.checked">
            <div class="item item-text-wrap">
               <i class="icon ion-thermometer"></i>
               <div class="info">
                  <h3>{{ light.Temp }}&deg;</h3>
               </div>
            </div>
            <div class="item item-divider">
               <h2>{{ light.Name }}</h2>
            </div>
         </div>
      </div>

edit 2:

To add app lights (philips HUE and mi-light) to switch by the theme, i edited the 2 tab files tab-dash.html and tab-lights.html.

and added on both files:

Code: Select all

<ion-toggle ng-repeat="light in devices" ng-if="( light.Type === 'Lighting 1' || light.Type === 'Lighting 2')
with

Code: Select all

<ion-toggle ng-repeat="light in devices" ng-if="(light.Type === 'Lighting Limitless/Applamp' || light.Type === 'Lighting 1' || light.Type === 'Lighting 2')
owkay, you can only switch these light's but it's a start :)
emke
Posts: 10
Joined: Tuesday 10 February 2015 14:23
Target OS: Raspberry Pi / ODroid
Domoticz version:
Contact:

Re: WIP - E-moticz - Mobile site / app

Post by emke »

Thanks, i will add that to my code. Maybe it's useful to add it to Github if someone is interested?

Thanks to ldb2000 i finally got the JSONP not working so you can also use it from an external address.

I'm still busy with the redesign of the Energy tab and apply some small fixes.
schmm
Posts: 8
Joined: Monday 29 September 2014 21:28
Target OS: Raspberry Pi / ODroid
Domoticz version:
Location: Weert (Netherlands)
Contact:

Re: WIP - E-moticz - Mobile site / app

Post by schmm »

Please put it on Github. So you can refer to one place for the download and i'm intrested to assist with the development of this theme!
rachmat
Posts: 8
Joined: Wednesday 04 February 2015 22:54
Target OS: Raspberry Pi / ODroid
Domoticz version:
Location: Germany
Contact:

Re: WIP - E-moticz - Mobile site / app

Post by rachmat »

I downloaded the theme, but unfortunately there is no auto refresh. when I update switch from another place, ex: from hardware, the themes need to refresh manually to update status
osiris
Posts: 37
Joined: Friday 08 May 2015 8:32
Target OS: Raspberry Pi / ODroid
Domoticz version:
Location: Amsterdam
Contact:

Re: WIP - E-moticz - Mobile site / app

Post by osiris »

How did you manage to allow cross domain calls to Domoticz? When I run the mobile site I get:
XMLHttpRequest cannot load http://192.168.178.47:8080/json.htm?typ ... order=Name. No 'Access-Control-Allow-Origin' header is present on the requested resource. Origin 'http://192.168.178.47' is therefore not allowed access.
I could not find any setting in Domoticz to enable cross domain requests (CORS).
m.kram
Posts: 4
Joined: Monday 19 May 2014 13:51
Target OS: Raspberry Pi / ODroid
Domoticz version: 2846
Contact:

Re: WIP - E-moticz - Mobile site / app

Post by m.kram »

I have taken your source and am working on the app version. (If that is ok with you)

Image

I was working on almost the same base version and then found this post. I have my source (very very first version) on github https://github.com/markmastop/appoticz

If it is fine with you I want to merge the two projects (take your version as the base version) and store the source on github so more people can add extra features to the app if they want to. For me I want to control my heating (summer project needs to be ready for the winter).

I do have an apple and google account so I can put the app in the appstores.

Mark
m.kram
Posts: 4
Joined: Monday 19 May 2014 13:51
Target OS: Raspberry Pi / ODroid
Domoticz version: 2846
Contact:

Re: WIP - E-moticz - Mobile site / app

Post by m.kram »

Oh the app is running on ios. Forgot to add the image in the previous post.

Image

Mark
User avatar
G3rard
Posts: 669
Joined: Wednesday 04 March 2015 22:15
Target OS: -
Domoticz version: No
Location: The Netherlands
Contact:

Re: WIP - E-moticz - Mobile site / app

Post by G3rard »

m.kram wrote:Oh the app is running on ios. Forgot to add the image in the previous post.
Would indeed be nice if you make this available as an app in the Apple app store :)
Looking forward to that.
Not using Domoticz anymore
emke
Posts: 10
Joined: Tuesday 10 February 2015 14:23
Target OS: Raspberry Pi / ODroid
Domoticz version:
Contact:

Re: WIP - E-moticz - Mobile site / app

Post by emke »

I just posted it on Github so people can add other functionality: https://github.com/emkedouwe/e-moticz

I added the changes from schmm.
spudgunman
Posts: 32
Joined: Tuesday 26 May 2015 18:59
Target OS: Raspberry Pi / ODroid
Domoticz version: beta
Location: Seattle WA, USA
Contact:

Re: WIP - E-moticz - Mobile site / app

Post by spudgunman »

I don't own a mac to assist with code but would love a iOS app with ability to operate the security panel more natively
User avatar
remb0
Posts: 499
Joined: Thursday 11 July 2013 22:21
Target OS: Raspberry Pi / ODroid
Domoticz version: Beta
Location: The Netherlands
Contact:

Re: WIP - E-moticz - Mobile site / app

Post by remb0 »

My compliments to both! I hope no it's on github more members will support.
User avatar
kraades
Posts: 36
Joined: Wednesday 24 June 2015 9:47
Target OS: Raspberry Pi / ODroid
Domoticz version: Stable
Location: The Netherlands
Contact:

Re: WIP - E-moticz - Mobile site / app

Post by kraades »

Is this project abandoned/dead?
User avatar
Egregius
Posts: 2582
Joined: Thursday 09 April 2015 12:19
Target OS: Linux
Domoticz version: v2024.7
Location: Beitem, BE
Contact:

Re: WIP - E-moticz - Mobile site / app

Post by Egregius »

So it seems, last change 3 months ago.

Just tested it for fun.
Some points that need attention:
Size of website is 2.2MB, quit big for people with small mobile data subscriptions.
Switch state doesn't update after page load.
spudgunman wrote:I don't own a mac to assist with code but would love a iOS app with ability to operate the security panel more natively
You don't need a Mac to develop a web page. It's not a real iOS app, it's a 'apple-mobile-web-app-capable' site.
Post Reply

Who is online

Users browsing this forum: No registered users and 0 guests