This is the forum archive of Homey. For more information about Homey, visit the Official Homey website.

The Homey Community has been moved to https://community.athom.com.

This forum is now read-only for archive purposes.
Official

[BETA Release] HomeyDash a Dashboard app for homey

1568101142

Comments

  • swttt said:
    @luccie_007 Thermostat should show as a sensor when you swipe right to left on the main screen in that room. Controlling a thermostat isn't added.
    Works, didnt know that feature ;) :)
  • swttt said:
    swttt said:
    @Pils Well, it depends on Athom when i can really set a new step. Currently their api is ok, and easy. But i would love to submit a dashboard to the appstore. I found a way yesterday to do so, but not sure if it would gets aproved.

    When thats possible i would like to start working on an improved version. Learned allot over time about Angular and its possibilities. Now the dashboard gets auto generated, but would love to make it a user customized one.
    Do you have that app also on Git?
    Proof of concept uploaded here: https://github.com/swttt/com.swttt.homeydash

    This app justs show your bearer token on http://yourhomeyip:1337 


    Works ok :)
    Maybe you can make a settings page where this is visible, so you don't have to go to http://yourhomeyip:1337  to check this?
  • swtttswttt Member
    edited November 2016
    @Fire69 It's really just a proof of concept. It grabs the bearer token from an excisting cookie. It would be possible to run the dashboard on the 1337 port without the user needing to enter any details at all.

    Hoping to hear back from Athom if they would allow an app like this in the appstore or not.
  • Oke, so using the cookie isn't allowed.
    But everything else is allowed, and i could create an input field on the settingspage to provide the bearer token.

    So here another journey begins....
  • swttt said:
    Oke, so using the cookie isn't allowed.
    But everything else is allowed, and i could create an input field on the settingspage to provide the bearer token.

    So here another journey begins....
  • Pils said:
    @swttt ;

    yeah, i know, but somewhere you wrote it probably would work with safari, so I though I let you know.

    In chrome I cannot get it to full screen, is that possible?

    also the sensors screen contains no devices, although  I have 5 pieces of cresta 443 temp sensors.

    also it is hard to see if lights are on. The hue lights are clear, but some kaku icons are only slightly different when on.


    Keep up the good work!
    To get full screen on an ipad you have to add
     <meta name="apple-mobile-web-app-capable" content="yes">
    Into index.html

  • Have the current dashboard running on homey :) Still need to create a settings page that asks for the bearer token (since this is the last thing hardcoded). Might just even release this dashboard as a 0.0.1 and then start working on a new one with a bit more possibilities. 
  • great job!

    do you have it in GitHub, so we can try also?
     
  • @evad thanks, I will try.

    @swtt I added 2 extra buttuns in the dashboard so I can load 3 rooms instead of 1. Also a separate room to select for the sensors.
  • Pils said:

    @swtt I added 2 extra buttuns in the dashboard so I can load 3 rooms instead of 1. Also a separate room to select for the sensors.
    Ow, I'd like that as a feature! :)
  • evad said:
    Pils said:
    @swttt ;

    yeah, i know, but somewhere you wrote it probably would work with safari, so I though I let you know.

    In chrome I cannot get it to full screen, is that possible?

    also the sensors screen contains no devices, although  I have 5 pieces of cresta 443 temp sensors.

    also it is hard to see if lights are on. The hue lights are clear, but some kaku icons are only slightly different when on.


    Keep up the good work!
    To get full screen on an ipad you have to add
     <meta name="apple-mobile-web-app-capable" content="yes">
    Into index.html

    Did add that this morgen, but no difference. I don't know how to get it to fullscreen.

    Also the problems exists that i cannot set the dimlevel. The popup does not seem to have the focus, or does not respond to my fingers. So currently i can only turn it on and off.
  • @Pils After you added that to the index (in the HEAD section tho) you should be able to pin the website to the home screen. It then should start like an app full screen.

  • @swttt ;
    As i know of, the pinning to the home screen only is available for safari. In Chrome i do not get that option.

    In safari it is possible, the css is not fully working in safari, so i cannot set the settings.
  • Allmost finished the settings page.
    You will be able to start or stop the dashboard, and change the port.
    It still needs the bearer token to be entered manual tho. (on the settings page)

    After i got it fully working, i'll post it as an app here :smile: 

  • Great Job!!

    Strange that you can't pre-fill the bearer token in the settings page. If it can't be used, they should not set all these things in a cooky... :-)  
    Maybe it is allowed to put a button on the settings page which will fetch the result of the bearer cookie, and people can cut and paste it..
  • @Pils seems to have to do with the fact that they are making the cookie inaccessible pretty soon.Thought of that as well, but want to stay within athom their guidelines and not try to find some grey areas :smile: 

  • @swttt ;
    Maybe your right!  :)

    some other question, do you know how i can get the slider to work on the ipad? 
    If i press long, it comes up, but i cannot use the slider. It stays there until i refresh.
  • @Pils must have to do with some css not working in safari correctly. (different webkit then chrome) You could change the slider in the code ofcourse, or otherwise wait until i beta test a new version :smile: 

  • PilsPils Member
    edited November 2016
    Well i am not that good in the ng- elements in the source. 
    Although i learned a lot, changing a few things, such as the 3 room support. But was more adding and copying your code  smile: 

    Would be great if something like this could be possible. Then we could make a volume up or down movement with the vingers on the ipad or android


  • @Pils such things are harder to implement. But to give you a heads up where to look: last 8 lines of index.html.
  • Yeah, i found that code allready, but have no idea (yet) what to change in line. 

      <input ng-if="thisdevice.state.dim >= 0 || thisdevice.state.dim <= 1" type="range" min="0" max="1" step="0.01" autofocus ng-model="thisdevice.state.dim" ng-change="setDimLevel()">
         


  • PilsPils Member
    edited November 2016
    I found these in codepen.io they work from my ipad, but that is a lot more than a few lines of code. 

    http://codepen.io/planetoftheweb/pen/HCLzc
  • That one seems to use jquery, wich i am not using in my framework :smile: 

  • Updated github with an app that uses the current dashboard :smile: 
    Feel free to try...

    https://github.com/swttt/com.swttt.homeydash
  • Working great!! :smiley: 
  • Moving the topic into apps, and i will change the first post.

    If you guys encounter any bugs, please let me know or create an issue on github.
  • MarcoWijkMarcoWijk Member
    edited November 2016
    @swtt Great app! Could have a lot of potential.

    Odd thing is, that on my android (chrome) it only shows the sensors and using my laptop (again chrome) it only shows my lights ?!? I'm usind https://x.x.x.x:1337 . And for the moment running it through athom project --run, no bugs as of yet :wink: 
  • Thats weird....did u tried it on http:// and https://? Since i removed the "speech" part, i could have forgotten to replace some urls :smile: 

  • swttt said:
    Thats weird....did u tried it on http:// and https://? Since i removed the "speech" part, i could have forgotten to replace some urls :smile: 

    yup tried both. :neutral: 
  • @MarcoWijk Wil look into it later today.

    To sum up, on both devices you have selected a default zone? That zone only displays the sensors on android chrome (Sensors in that zone) and the lights in that zone on chrome desktop?
Sign In or Register to comment.