Dashboard size differences on mobile


#1

I am just starting out with Sharptools but have enjoyed it so far. I designed a dashboard for my Samsung S8+ and then decided to give my wife access with her S9. Annoyingly the dashboard doesn´t translate well to her slightly smaller screen.

My layout is for 120px which looks bigger on the S9, but 80px shows up similarily on both. Any idea if this can be fixed somehow ? Perhaps a 100px mode ?

Here are some screenshots on the S8+:

120px

80px

On the Samsung S9:

120px

80px


#2

Based on what you are describing, it sounds like the resolution of the devices is slightly different (I thought they were the same, but perhaps there’s something different about how the phone sees the available resolution). Usually in the case of devices with different resolutions, the recommended solution is to design a dashboard that targets each device.

If the devices are close enough in size, you may be able to target a resolution that is close enough between them (as you alluded to), but usually the sizes are different enough that it wont work.

Keep in mind there is a tile size of Custom if you want to try other sizes (like 100px as you mentioned):


#3

Aww, come on ! How could I miss that option ? :sweat_smile:

Changing the tile to 110px did the trick. Thank you very much :slight_smile:

EDIT: Not quite related, but it seems that when the weather tile should show minus degrees centigrade, that it does not update. Could this be a bug ? Not sure if that is the case also for Fahrenheit ?


#4

What platform and device are you using for weather?

If it’s SmartThings, it looks like they’ve sunset the WeatherUndeground APIs that they’ve been using, so if you’re using a custom device handler it may need to be updated with the new APIs.


#5

I am using Hubitat with the ApiXU weather app. It was working fine at first, but then it went down to 0 and it no longer updated the temperature, but the other values seemed to update fine. Then the temperature went above freezing and the temperature was reporting again. This is the reason I asked if there was a problem with minus values.

Is there any way I can check on logs for this ? I am sure it has been reporting as that seems to work fine on Hubitat. Currently we are are having 7 degrees of “heat” and things seem to work fine in Sharptools.


#6

Let me see if I can send some simulated negative values over to a local development instance and see if everything processes all the way through.

You could enable logging in the SharpTools Hubitat App, but we aren’t verbosely logging the values that are getting sent across. I have a Hub dedicated for testing, so I can set it up and authorize just a simple simulated device and will watch the process all the way through to see what I find. :smiley:


#7

So, I’m kinda lazy… Can someone… Can someone come over to my house and do all this for me? I mean, seriously, these kittens on YouTube aren’t going to watch themselves dance, someone needs to do it…

There could be a high five in it for you… Just sayin ’


#8

Hey @Kristjan_Ulfsson - I wanted to provide an update that I looked into this and I believe I was able to partially reproduce this. What I saw was a number of attributes from the APIXU driver are updating as expected, but several are not.

For example, the main temperature and humidity are updating as expected, but the ‘feels like’ temperature and other supporting attributes are not updating as expected. I’m looking into it and will let you know as I have an update - my apologies for the inconvenience. :slight_smile:


#9

Sounds great Josh. No worries about the very slight inconvenience. Looking forward to seeing if this can be fixed.


#10

+1 Hubitat APIXU details partially not updating. Wondering if there’s any developments in the pipline? (or maybe a different app for sourcing weather data to consider? Are any others known to work correctly?)

Not working: Feels Like temp, Wind speed, Sunrise & Sunset.
Working: temperature (F), humidity, conditions.
Thankfully, so far, I’ve not hit zero degrees so I haven’t seen that particular issue.


#11

We are actively working on two things:

  1. Updating the approach the SharpTools Hubitat App uses to setup subscriptions so it can be more dynamic.

    Currently the subscriptions are setup when the HE app is installed/updated and it’s based on Hubitat’s capability definitions (eg. Switch capability defines a switch attribute). Since ‘Weather’ isn’t a defined capability, that means several attributes like feelsLike, windSpeed, localSunrise, and localSunset aren’t defined by any capability and thus aren’t subscribed.

    In one of the recent Hubitat platform updates, they added some APIs that we needed to dynamically setup new subscriptions, remove subscriptions, and interrogate which subscriptions already exist. We already use similar APIs in our SmartThings integration, so we’re porting the logic over and working to get it through the release pipeline. :slight_smile:

  2. Premium Weather Integration

    We’re looking at introducing premium weather integrations directly into the SharpTools platform. This would enable us to provide high quality weather data with additional visualizations, tile layouts, etc. We’re still in the analysis phase on this one, but expect to start actively developing the integration in the near future.