Skip to content

A MagicMirror² (https://magicmirror.builders) module to display your data from the DeGiro broker.

License

Notifications You must be signed in to change notification settings

Prog-Party/MMM-DeGiro

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

19 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

MMM-DeGiro

A MagicMirror² (https://magicmirror.builders) module to display your data from the DeGiro broker. This module uses an external unofficial API (https://github.com/pladaria/degiro). We do not store any personal data.

Installation

  1. Navigate into your MagicMirror's ~MagicMirror folder
  2. Install the DeGiro API with npm install degiro --save
  3. Navigate into your MagicMirror's ~MagicMirror/modules folder
  4. Execute git clone https://github.com/Prog-Party/MMM-DeGiro.git
  5. A new folder MMM-DeGiro will appear, navigate into it by cd MMM-DeGiro
  6. Install with npm install

Configuration

Add this to your modules array in the configuration file config/config.js

{
	module: "MMM-DeGiro",
	config: {
		username: "<YOUR_DEGIRO_USERNAME>",
		password: "<YOUR_DEGIRO_PASSWORD>",
		showPortfolio: true,	
		portfolioTemplate: "<YOUR_TEMPLATE>"
	}
}

portfolioTemplate is optional, if no template is added the following default template is used.

portfolioTemplate is a string field where HTML can be added.

Simple Version of a template:

	"<table>" 
	+ "<tr>"
	+ "<th>Naam</th><th>Aantal</th><th>Waarde</th><th>Totaal</th><th>Dagresultaat</th>"
	+ "</tr>"
	+ "{{#portfolio}}"
	+ "<tr data-total='{{total}}'>"
	+ "<td>{{name}}</td>"
	+ "<td>{{size}}</td>"
	+ "<td>{{currency}} {{price}}</td>"
	+ "<td>{{currency}} {{total}}</td>"
	+ "<td class='{{#dayResultPositive}}positive{{/dayResultPositive}}{{#dayResultNegative}}negative{{/dayResultNegative}}'>{{currency}} {{dayResult}}</td>"
	+ "</tr>"
	+ "{{/portfolio}}"
	+ "</table>"

About

A MagicMirror² (https://magicmirror.builders) module to display your data from the DeGiro broker.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Contributors 2

  •  
  •