Re: Module Jeedom pour MagicMirror²
Publié : 19 sept. 2018, 11:23
lol ba oui mais bon je découvre le truc du coup je m'avance pas
Forum sur Jeedom
https://www.jeedom.com/forum/
Code : Tout sélectionner
/* Magic Mirror Config Sample
*
* By Michael Teeuw http://michaelteeuw.nl
* MIT Licensed.
*
* For more information how you can configurate this file
* See https://github.com/MichMich/MagicMirror#configuration
*
*/
var config = {
address: "localhost", // Address to listen on, can be:
// - "localhost", "127.0.0.1", "::1" to listen on loopback interface
// - another specific IPv4/6 to listen on a specific interface
// - "", "0.0.0.0", "::" to listen on any interface
// Default, when address config is left out, is "localhost"
port: 8080,
ipWhitelist: ["127.0.0.1", "::ffff:127.0.0.1", "::1"], // Set [] to allow all IP addresses
// or add a specific IPv4 of 192.168.1.5 :
// ["127.0.0.1", "::ffff:127.0.0.1", "::1", "::ffff:192.168.1.5"],
// or IPv4 range of 192.168.3.0 --> 192.168.3.15 use CIDR format :
// ["127.0.0.1", "::ffff:127.0.0.1", "::1", "::ffff:192.168.3.0/28"],
language: "fr",
timeFormat: 24,
units: "metric",
modules: [
{
module: "",
},
{
module: "",
position: "top_bar"
},
{
module: "clock",
position: "top_right"
},
{
module: "",
header: "US Holidays",
position: "top_left",
config: {
calendars: [
{
symbol: "calendar-check-o ",
url: "webcal://www.calendarlabs.com/templates/ical/US-Holidays.ics"
}
]
}
},
{
module: "",
position: "lower_third"
},
{
module: "",
position: "top_right",
config: {
location: "New York",
locationID: "", //ID from http://www.openweathermap.org/help/city_list.txt
appid: "YOUR_OPENWEATHER_API_KEY"
}
},
{
module: "",
position: "top_right",
header: "Weather Forecast",
config: {
location: "New York",
locationID: "5128581", //ID from http://www.openweathermap.org/help/city_list.txt
appid: "YOUR_OPENWEATHER_API_KEY"
}
},
{
module: "",
position: "bottom_bar",
config: {
feeds: [
{
title: "New York Times",
url: "http://www.nytimes.com/services/xml/rss/nyt/HomePage.xml"
}
],
showSourceTitle: true,
showPublishDate: true
}
},
{
module: 'MMM-Jeedom',
header: 'Maison',
position: "top_left",
config: {
updateInterval: 1000,
jeedomAPIKey: "ErcAR7t5LCfA6XGftgyhrtfydsfdrttrNkQshxmT",
jeedomURL: "192.168.0.35",
jeedomPORT: 80,
jeedomHTTPS: false,
jeedomAPIPath: "/core/api/jeeApi.php",
sensors: [
{//first info (value and unit only)
idx: "5004",
sameLine1: true,
},
{//second info (title, symbol, value and unit)
idx: "3551",
customTitle: "Condition",
symbol: "",
sameLine2: true,
},
{ //this one display only 1 info on its line
idx: "6013",
symbol: "",
customTitle: "Salon :",
unit : "degres",
},
{//this one display only 1 info on its line
idx: "6018",
symbol: "",
customTitle: "Chambre :",
unit : "degres",
},
{//this one display only 1 info on its line
idx: "7319",
symbol: "",
customTitle: "Exterieur :",
unit : "degres",
},
{//this one display only 1 info on its line
idx: "7318",
symbol: "",
customTitle: "Piscine :",
unit : "degres",
},
{//this one display only 2 info on its line
idx: "5676",
symbol: "",
customTitle: "Horoscope Papa :",
},
{//this one display only 2 info on its line
idx: "5686",
symbol: "",
customTitle: "Horoscope Maman :",
},
{//this one display only 2 info on its line
idx: "6924",
symbol: "",
customTitle: "lumieres :",
unit : "",
}, ]
}
}
]
};
/*************** DO NOT EDIT THE LINE BELOW ***************/
if (typeof module !== "undefined") {module.exports = config;}
Code : Tout sélectionner
/* Magic Mirror Config Sample
*
* By Michael Teeuw http://michaelteeuw.nl
* MIT Licensed.
*
* For more information how you can configurate this file
* See https://github.com/MichMich/MagicMirror#configuration
*
*/
var config = {
address: "localhost", // Address to listen on, can be:
// - "localhost", "127.0.0.1", "::1" to listen on loopback interface
// - another specific IPv4/6 to listen on a specific interface
// - "", "0.0.0.0", "::" to listen on any interface
// Default, when address config is left out, is "localhost"
port: 8080,
ipWhitelist: ["127.0.0.1", "::ffff:127.0.0.1", "::1"], // Set [] to allow all IP addresses
// or add a specific IPv4 of 192.168.1.5 :
// ["127.0.0.1", "::ffff:127.0.0.1", "::1", "::ffff:192.168.1.5"],
// or IPv4 range of 192.168.3.0 --> 192.168.3.15 use CIDR format :
// ["127.0.0.1", "::ffff:127.0.0.1", "::1", "::ffff:192.168.3.0/28"],
language: "fr",
timeFormat: 24,
units: "metric",
modules: [
{
module: "",
},
{
module: "",
position: "top_bar"
},
{
module: "clock",
position: "top_right"
},
{
module: 'MMM-FreeBox-Monitor',
position: 'top_left', // This can be any of the regions. Best results in left or right regions.
config: {
mirrorName: "My Magic Mirror",
ip: "http://192.168.0.254"
// See 'Configuration options' for more information.
}
]
}
},
{
module: "",
position: "lower_third"
},
{
module: "",
position: "top_right",
config: {
location: "New York",
locationID: "", //ID from http://www.openweathermap.org/help/city_list.txt
appid: "YOUR_OPENWEATHER_API_KEY"
}
},
{
module: "",
position: "top_right",
header: "Weather Forecast",
config: {
location: "New York",
locationID: "5128581", //ID from http://www.openweathermap.org/help/city_list.txt
appid: "YOUR_OPENWEATHER_API_KEY"
}
},
{
module: "",
position: "bottom_bar",
config: {
feeds: [
{
title: "New York Times",
url: "http://www.nytimes.com/services/xml/rss/nyt/HomePage.xml"
}
],
showSourceTitle: true,
showPublishDate: true
}
},
{
module: 'MMM-Jeedom',
header: 'Maison',
position: "top_left",
config: {
updateInterval: 1000,
jeedomAPIKey: "ErcAR7t5LCfA6XGdTjhgjyugyugyurNkQshxmT",
jeedomURL: "192.168.0.35",
jeedomPORT: 80,
jeedomHTTPS: false,
jeedomAPIPath: "/core/api/jeeApi.php",
sensors: [
{//first info (value and unit only)
idx: "5004",
sameLine1: true,
},
{//second info (title, symbol, value and unit)
idx: "3551",
customTitle: "Condition :",
symbol: "",
sameLine2: true,
},
{ //this one display only 1 info on its line
idx: "6013",
symbol: "",
customTitle: "Salon :",
unit : "C",
},
{//this one display only 1 info on its line
idx: "6018",
symbol: "",
customTitle: "Chambre :",
unit : "C",
},
{//this one display only 1 info on its line
idx: "7319",
symbol: "",
customTitle: "Exterieur :",
unit : "C",
},
{//this one display only 1 info on its line
idx: "7318",
symbol: "",
customTitle: "Piscine :",
unit : "C",
},
{//this one display only 2 info on its line
idx: "5676",
symbol: "",
customTitle: "Horoscope Papa :",
},
{//this one display only 2 info on its line
idx: "5686",
symbol: "",
customTitle: "Horoscope Maman :",
},
{//this one display only 2 info on its line
idx: "6924",
symbol: "",
customTitle: "lumieres :",
unit : "",
}, ]
}
}
]
};
/*************** DO NOT EDIT THE LINE BELOW ***************/
if (typeof module !== "undefined") {module.exports = config;}
Pour ma part j'ai ajouté ce module a magicmirror https://github.com/Jopyth/MMM-Remote-Control qui me permet d'appeler via une requette http une url qui eteint ou allume l'ecran exemple :BaaTuuC a écrit : ↑21 oct. 2018, 12:47Comment vous gerer le fait d'avoir un écran qui s'allume s'eteind ? J'ai branché le mien sur une prise ZWave piloté par mon jeedom pour a minima l'éteindre la nuit quand je suis absent .. seulement quand mon écran se rallume il ne récupère pas le signal HDMI du rpi .. je dois reboot le rpi
Code : Tout sélectionner
http://ADRESSEIPDURASP:8080/remote?action=MONITORON
Code : Tout sélectionner
http://ADRESSEIPDURASP:8080/remote?action= MONITOROFF
il affiche "no signal please verify your connection" au bout d'un certain temps. Il perd le signal HDMI quoi .. faut que je regarde dans les menus comment virer la veille .. bon faut déja que je retrouve les boutons
Je capte le signal pendant un moment puis il coupe au bout d'un moment...Tarlak a écrit : ↑21 oct. 2018, 20:27Tu as peut être un soucis d'intensité du signal sur le port hdmi du rasp j'avais eu un petit soucis du genre si je me souvient bien, peut être trouvera tu des informations ici : https://www.raspberrypi.org/documentati ... t/video.md