updated README of weatherforecast and calendar module for color options

This commit is contained in:
Jeremias Arnstadt 2017-01-28 18:32:06 +01:00
parent ce3ee909bf
commit 4214293b76
2 changed files with 14 additions and 0 deletions

View File

@ -174,10 +174,12 @@ The following properties can be configured:
### Calendar configuration ### Calendar configuration
The `calendars` property contains an array of the configured calendars. The `calendars` property contains an array of the configured calendars.
The `colored` property gives the option for an individual color for each calendar.
#### Default value: #### Default value:
````javascript ````javascript
config: { config: {
colored: false,
calendars: [ calendars: [
{ {
url: 'http://www.calendarlabs.com/templates/ical/US-Holidays.ics', url: 'http://www.calendarlabs.com/templates/ical/US-Holidays.ics',
@ -210,6 +212,12 @@ config: {
<br><b>Possible values:</b> See <a href="http://fontawesome.io/icons/" target="_blank">Font Awesome</a> website. <br><b>Possible values:</b> See <a href="http://fontawesome.io/icons/" target="_blank">Font Awesome</a> website.
</td> </td>
</tr> </tr>
<tr>
<td><code>color</code></td>
<td>The font color of an event from this calendar. This property should be set if the config is set to colored: true.<br>
<br><b>Possible values:</b> HEX, RGB or RGBA values (#efefef, rgb(242,242,242), rgba(242,242,242,0.5)).
</td>
</tr>
<tr> <tr>
<td><code>repeatingCountTitle</code></td> <td><code>repeatingCountTitle</code></td>
<td>The count title for yearly repating events in this calendar. <br> <td>The count title for yearly repating events in this calendar. <br>

View File

@ -191,5 +191,11 @@ The following properties can be configured:
}</code> }</code>
</td> </td>
</tr> </tr>
<tr>
<td><code>colored</code></td>
<td>If set 'colored' to true the min-temp get a blue tone and the max-temp get a red tone.<br>
<br><b>Default value:</b> <code>false</code>
</td>
</tr>
</tbody> </tbody>
</table> </table>