Skip to content

Commit

Permalink
Explained styling
Browse files Browse the repository at this point in the history
  • Loading branch information
jclarke0000 committed Dec 3, 2018
1 parent f5b8de9 commit 7ca59e4
Showing 1 changed file with 13 additions and 0 deletions.
13 changes: 13 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -200,6 +200,19 @@ Find out your latitude and longitude here:
![Layouts](/../screenshots/forecast-layouts.png?raw=true "Layouts")


## Styling

This module is set to be 300px wide by default. If you wish to override it, you can add the following to your `custom.css` file:

```
.MMM-DarkSkyForecast .module-content {
width: 500px; /* adjust this to taste */
}
```

Most important elements of this module have one or more class names applied. Examine the `MMM-DarkSkyForecast.css` or inspect elements directly with your browser of choice to determine what class you would like to override.


## For Module Developers

This module broadcasts a notification when it recieves a weather update. The notification is `DARK_SKY_FORECAST_WEATHER_UPDATE` and the payload contains Dark Sky's JSON weather forecast object. For details on the weather object, see https://darksky.net/dev/docs.

0 comments on commit 7ca59e4

Please sign in to comment.