Hi Otto, thanks for making this. But I cant get it to work. MM just keeps restarting when I add this code.
Also, the username and password for weconnect. How do you enter that. Is it just ‘username’ ‘password’? Or do you need the whole <weconnect.username> etc?
Thanks again.
Btw, i removed two of the locations, since i dont need them. Not sure if this breaks anything…
{
module: 'MMM-WeConnect',
position: 'top_right',
config: {
email: 'xxx',
password: 'xxx',
refreshIntervalSeconds: 180,
size: 300, // This is the size of the drawing
showDistance: true,
showPosition: true,
showBatteryPercent: true,
showRange: true,
showConnectionStatus: true,
showDriving: true,
showBattery: true,
logging: false, // Write some data to console.log()
colors: {
car: "gray",
text: "#ccc",
rangeText: "black",
chargingSign: "yellow",
lightsOn: "yellow",
lightsOff: "#222",
wheels: "#222"
},
batteryColors: [
{ upTo: 20, background: "pink", forground: "red", text: "yellow" },
{ upTo: 50, background: "pink", forground: "orange", text: "yellow" },
{ upTo: 75, background: "#666", forground: "blue", text: "yellow" },
{ upTo: 100, background: "#666", forground: "green", text: "yellow" }
],
positions: [
{name: "Hjemme", lat: 59.422110, lon: 5.264839, marginMeters: 50}
],
homePosition: "Hjemme"
}
},