mtatsuma / MMM-WeatherChart

Magic Mirror Module for displaying weather chart
MIT License
27 stars 9 forks source link

Step for the hourly forecast #57

Closed dennisklad closed 1 month ago

dennisklad commented 1 month ago

Firstly thanks for the amazing module!

Is there a way to set a step to display for example every second hour in the hourly forecast? I have a small screen and can't show every hour, but would like to get the whole day on there.

Thanks!

mtatsuma commented 1 month ago

Hello @dennisklad

Unfortunately, there are no way to set a step. The hour label in x-axis is automatically omitted if you set width as a small value for your small screen as the folowing screenshot.

image

I may be able to suggest a better configuration if you can share your config and screenshot.

dennisklad commented 1 month ago

Thanks for the reply.

This is my config:

{
      module: "MMM-WeatherChart",
      position: "top_right",
      config: {
              apiKey: "xxx",
              apiVersion: "3.0",
              apiEndpoint: "onecall",
              updateInterval: 10 * 60 * 1000,
              dataNum: 12,
              dataType: "hourly",
              height: "230px",
              width: "430px",
              lat: xx,
              lon: xx,
              units: "metric",
              showRain: true,
              showZeroRain: false,
              //includeSnow: true,
              showSnow: true,
              showZeroSnow: false,
              showIcon: true,
              datalabelsRoundDecimalPlace: 0,
      }
},

image

mtatsuma commented 1 month ago

I have tried the width and height in your config.

image

The figure on x-axis looks good. But the weater icons are overwrapped each other.

Your comment

I have a small screen and can't show every hour

means that the weather icons are not shown well?

dennisklad commented 1 month ago

Okay, that's fine. I though maybe there is a better way to do this :) Thanks!