Solved Aide-moi EXT-Browser
-
AH ok je vais jeter un oeil plus attentif, je n avais pas vu que je pouvais lui dire d ouvrir une page web précise!
Sinon , je viens de tester MMM-Pronote et j ai l erreur suivante STP ;
magicmirror@2.22.0 start
DISPLAY=“${DISPLAY:=:0}” ./node_modules/.bin/electron js/electron.js[20.01.2023 18:51.10.596] [LOG] Starting MagicMirror: v2.22.0
[20.01.2023 18:51.10.603] [LOG] Loading config …
[20.01.2023 18:51.10.609] [LOG] Loading module helpers …
[20.01.2023 18:51.10.611] [LOG] No helper found for module: clock.
[20.01.2023 18:51.10.632] [LOG] Initializing new module helper …
[20.01.2023 18:51.10.633] [LOG] Module helper loaded: updatenotification
[20.01.2023 18:51.12.492] [LOG] Initializing new module helper …
[20.01.2023 18:51.12.494] [LOG] Module helper loaded: MMM-Pronote
[20.01.2023 18:51.12.496] [LOG] Initializing new module helper …
[20.01.2023 18:51.12.497] [LOG] Module helper loaded: EXT-Alert
[20.01.2023 18:51.12.500] [LOG] Initializing new module helper …
[20.01.2023 18:51.12.500] [LOG] Module helper loaded: EXT-Browser
[20.01.2023 18:51.12.503] [LOG] Initializing new module helper …
[20.01.2023 18:51.12.503] [LOG] Module helper loaded: EXT-Pir
[20.01.2023 18:51.12.551] [LOG] Initializing new module helper …
[20.01.2023 18:51.12.551] [LOG] Module helper loaded: EXT-Screen
[20.01.2023 18:51.12.784] [LOG] Initializing new module helper …
[20.01.2023 18:51.12.784] [LOG] Module helper loaded: Gateway
[20.01.2023 18:51.13.247] [LOG] Initializing new module helper …
[20.01.2023 18:51.13.247] [LOG] Module helper loaded: MMM-GoogleAssistant
[20.01.2023 18:51.13.466] [LOG] Initializing new module helper …
[20.01.2023 18:51.13.467] [LOG] Module helper loaded: EXT-FreeboxTV
[20.01.2023 18:51.13.470] [LOG] Initializing new module helper …
[20.01.2023 18:51.13.471] [LOG] Module helper loaded: EXT-Detector
[20.01.2023 18:51.13.471] [LOG] No helper found for module: weather.
[20.01.2023 18:51.13.473] [LOG] Initializing new module helper …
[20.01.2023 18:51.13.474] [LOG] Module helper loaded: EXT-RadioPlayer
[20.01.2023 18:51.13.476] [LOG] Initializing new module helper …
[20.01.2023 18:51.13.476] [LOG] Module helper loaded: EXT-Volume
[20.01.2023 18:51.13.477] [LOG] All module helpers loaded.
[20.01.2023 18:51.13.488] [LOG] Starting server on port 8080 …
[20.01.2023 18:51.13.764] [LOG] Server started …
[20.01.2023 18:51.13.766] [LOG] Connecting socket for: updatenotification
[20.01.2023 18:51.13.767] [LOG] Starting module helper: updatenotification
[20.01.2023 18:51.13.768] [LOG] Connecting socket for: MMM-Pronote
[20.01.2023 18:51.13.769] [LOG] Connecting socket for: EXT-Alert
[20.01.2023 18:51.13.770] [LOG] Starting module helper: EXT-Alert
[20.01.2023 18:51.13.771] [LOG] Connecting socket for: EXT-Browser
[20.01.2023 18:51.13.771] [LOG] Starting module helper: EXT-Browser
[20.01.2023 18:51.13.772] [LOG] Connecting socket for: EXT-Pir
[20.01.2023 18:51.13.773] [LOG] Connecting socket for: EXT-Screen
[20.01.2023 18:51.13.774] [LOG] Connecting socket for: Gateway
[20.01.2023 18:51.13.775] [LOG] Connecting socket for: MMM-GoogleAssistant
[20.01.2023 18:51.13.781] [LOG] [GA] Read config.js and check ConfigDeepMerge…
[20.01.2023 18:51.13.782] [LOG] [GA] Perfect ConfigDeepMerge activated!
[20.01.2023 18:51.13.784] [LOG] Connecting socket for: EXT-FreeboxTV
[20.01.2023 18:51.13.786] [LOG] Connecting socket for: EXT-Detector
[20.01.2023 18:51.13.788] [LOG] [DETECTOR] EXT-Detector Version: 1.0.1 rev: 220315
[20.01.2023 18:51.13.789] [LOG] Connecting socket for: EXT-RadioPlayer
[20.01.2023 18:51.13.790] [LOG] Connecting socket for: EXT-Volume
[20.01.2023 18:51.13.791] [LOG] Sockets connected & modules started …
[20.01.2023 18:51.13.878] [LOG] Launching application.
[20.01.2023 18:51.16.871] [LOG] [SCREEN] EXT-Screen Version: 1.2.0 rev: 230120
[20.01.2023 18:51.16.874] [LOG] [SCREEN] Mode 1: vcgencmd
[20.01.2023 18:51.16.971] [LOG] [SCREEN] Initialized
[20.01.2023 18:51.17.415] [LOG] [DETECTOR] All needed @bugsounet library loaded !
[20.01.2023 18:51.17.417] [LOG] [DETECTOR] Platform: ‘raspberry-pi’; attempting to use ‘arecord’ to access microphone …
[20.01.2023 18:51.17.422] [LOG] [DETECTOR] Snowboy is initialized with 1 Models: jarvis
[20.01.2023 18:51.17.438] [LOG] [PRONOTE] MMM-Pronote Version: 1.0.6
[20.01.2023 18:51.17.440] [LOG] [PRONOTE] Number of CAS available: 43
[20.01.2023 18:51.17.449] [LOG] [PRONOTE] CAS List: [
‘ac-besancon’,
‘ac-besancon2’,
‘ac-bordeaux’,
‘ac-bordeaux2’,
‘ac-caen’,
‘ac-clermont’,
‘ac-dijon’,
‘ac-grenoble’,
‘ac-grenoble2’,
‘ac-lille’,
‘ac-limoges’,
‘ac-lyon’,
‘ac-montpellier’,
‘ac-montpellier2’,
‘ac-nancy-metz’,
‘ac-nantes’,
‘ac-orleans-tours’,
‘ac-poitiers’,
‘ac-reims’,
‘ac-rouen’,
‘ac-strasbourg’,
‘ac-toulouse’,
‘agora06’,
‘arsene76’,
‘atrium-sud’,
‘haute-garonne’,
‘hdf’,
‘iledefrance’,
‘seine-et-marne’,
‘somme’,
‘eure-normandie’,
‘parisclassenumerique’,
‘ljr-munich’,
‘toutatice’,
‘laclasse’,
‘lyceeconnecte’,
‘portail-famille’,
‘cybercolleges42’,
‘ac-valdoise’,
‘ac-lille2’,
‘moncollege-essonne’,
‘monbureaunumerique-educonnect’,
‘none’
]
[20.01.2023 18:51.17.451] [LOG] [PRONOTE] Pronote Login with account 1
[20.01.2023 18:51.17.522] [INFO] Checking git for module: MMM-Pronote
[20.01.2023 18:51.17.585] [LOG] [ALERT] EXT-Alert Version: 1.0.0 rev: 220301
[20.01.2023 18:51.17.589] [LOG] [LINKS] EXT-Browser Version: 1.0.0 rev: 220228
[20.01.2023 18:51.17.590] [LOG] [PIR] Initialize…
[20.01.2023 18:51.17.626] [LOG] [GATEWAY] Gateway Version: 2.2.5 rev: 230120
[20.01.2023 18:51.17.647] [LOG] [GA] MMM-GoogleAssistant Version: 4.0.9 rev: 230115
[20.01.2023 18:51.17.650] [LOG] [GA] Platform: ‘raspberry-pi’; attempting to use ‘arecord’ to access microphone …
[20.01.2023 18:51.17.658] [LOG] [GA] RECIPE_LOADED: …/…/EXT-RadioPlayer/recipe/EXT-RadioPlayer.fr.js
[20.01.2023 18:51.17.668] [LOG] [GA] RECIPE_LOADED: …/…/EXT-FreeboxTV/recipe/EXT-FreeboxTV.js
[20.01.2023 18:51.17.670] [LOG] [GA] Google Assistant is initialized.
[20.01.2023 18:51.17.672] [LOG] [FreeboxTV] EXT-FreeboxTV Version: 2.0.0
[20.01.2023 18:51.17.674] [LOG] [FreeboxTV] Reading: streamsConfig.json
[20.01.2023 18:51.17.687] [LOG] [FreeboxTV] Channels: {
France2: ‘rtsp://mafreebox.freebox.fr/fbxtv_pub/stream?namespace=1&service=201&flavour=sd’,
France3: ‘rtsp://mafreebox.freebox.fr/fbxtv_pub/stream?namespace=1&service=202&flavour=sd’,
France4: ‘rtsp://mafreebox.freebox.fr/fbxtv_pub/stream?namespace=1&service=376&flavour=sd’,
France5: ‘rtsp://mafreebox.freebox.fr/fbxtv_pub/stream?namespace=1&service=203&flavour=sd’,
ARTE: ‘rtsp://mafreebox.freebox.fr/fbxtv_pub/stream?namespace=1&service=204&flavour=sd’,
C8: ‘rtsp://mafreebox.freebox.fr/fbxtv_pub/stream?namespace=1&service=372&flavour=sd’,
NRJ12: ‘rtsp://mafreebox.freebox.fr/fbxtv_pub/stream?namespace=1&service=375&flavour=ld’,
LCP: ‘rtsp://mafreebox.freebox.fr/fbxtv_pub/stream?namespace=1&service=226&flavour=sd’,
BFMTV: ‘rtsp://mafreebox.freebox.fr/fbxtv_pub/stream?namespace=1&service=400&flavour=sd’,
CNews: ‘rtsp://mafreebox.freebox.fr/fbxtv_pub/stream?namespace=1&service=679&flavour=sd’,
CStar: ‘rtsp://mafreebox.freebox.fr/fbxtv_pub/stream?namespace=1&service=678&flavour=sd’,
Gulli: ‘rtsp://mafreebox.freebox.fr/fbxtv_pub/stream?namespace=1&service=677’,
Equipe: ‘rtsp://mafreebox.freebox.fr/fbxtv_pub/stream?namespace=1&service=994&flavour=ld’,
RMCStory: ‘rtsp://mafreebox.freebox.fr/fbxtv_pub/stream?namespace=1&service=996&flavour=ld’,
RMCDecouverte: ‘rtsp://mafreebox.freebox.fr/fbxtv_pub/stream?namespace=1&service=997&flavour=ld’,
Cherie25: ‘rtsp://mafreebox.freebox.fr/fbxtv_pub/stream?namespace=1&service=998&flavour=ld’,
FranceInfo: ‘rtsp://mafreebox.freebox.fr/fbxtv_pub/stream?namespace=1&service=1173&flavour=ld’,
ParisPremiere: ‘rtsp://mafreebox.freebox.fr/fbxtv_pub/stream?namespace=1&service=213&flavour=ld’,
RTL9: ‘rtsp://mafreebox.freebox.fr/fbxtv_pub/stream?namespace=1&service=210&flavour=ld’,
GameOne: ‘rtsp://mafreebox.freebox.fr/fbxtv_pub/stream?namespace=1&service=220&flavour=sd’,
AB1: ‘rtsp://mafreebox.freebox.fr/fbxtv_pub/stream?namespace=1&service=211&flavour=ld’,
TEVA: ‘rtsp://mafreebox.freebox.fr/fbxtv_pub/stream?namespace=1&service=404&flavour=ld’,
M6Music: ‘rtsp://mafreebox.freebox.fr/fbxtv_pub/stream?namespace=1&service=430&flavour=ld’,
MCM: ‘rtsp://mafreebox.freebox.fr/fbxtv_pub/stream?namespace=1&service=621&flavour=sd’,
Mangas: ‘rtsp://mafreebox.freebox.fr/fbxtv_pub/stream?namespace=1&service=253&flavour=ld’,
Equidia: ‘rtsp://mafreebox.freebox.fr/fbxtv_pub/stream?namespace=1&service=212&flavour=sd’,
Automoto: ‘rtsp://mafreebox.freebox.fr/fbxtv_pub/stream?namespace=1&service=222&flavour=ld’,
RFMTV: ‘rtsp://mafreebox.freebox.fr/fbxtv_pub/stream?namespace=1&service=623&flavour=sd’
}
[20.01.2023 18:51.17.689] [LOG] [FreeboxTV] Number of channels found: 28
[20.01.2023 18:51.17.690] [LOG] [FreeboxTV] FreeboxTV is initialized.
[20.01.2023 18:51.17.694] [LOG] [RADIO] EXT-RadioPlayer Version: 1.0.3 rev: 220619
[20.01.2023 18:51.17.838] [LOG] [VOLUME] EXT-Volume Version: 2.1.0 rev: 230105
[20.01.2023 18:51.17.862] [LOG] [PIR] All needed @bugsounet library loaded !
[20.01.2023 18:51.17.864] [LOG] [PIR] PIR Library v1.1.0 Initialized…
[20.01.2023 18:51.17.880] [LOG] [PIR] Initialize Complete Version: 1.0.1 rev: 221125
[20.01.2023 18:51.17.881] [LOG] [RADIO] EXT-Radio is Ready.
[20.01.2023 18:51.18.580] [LOG] [GATEWAY] Start app…
[20.01.2023 18:51.18.581] [WARN] [GATEWAY] WARN: You are using default username or default password
[20.01.2023 18:51.18.582] [WARN] [GATEWAY] WARN: Don’t forget to change it!
[20.01.2023 18:51.19.292] [LOG] [HyperWatch] Logger is enabled
[20.01.2023 18:51.19.294] [LOG] [GATEWAY] Start listening on http://192.168.1.100:8081
[20.01.2023 18:51.19.307] [INFO] Checking git for module: EXT-Alert
[20.01.2023 18:51.19.455] [LOG] [DETECTOR] Starts listening. 1 Models
[20.01.2023 18:51.19.484] [INFO] Checking git for module: EXT-Browser
[20.01.2023 18:51.19.608] [INFO] Checking git for module: EXT-Pir
[20.01.2023 18:51.20.785] [INFO] Checking git for module: EXT-Screen
[20.01.2023 18:51.20.892] [INFO] Checking git for module: Gateway
[20.01.2023 18:51.20.995] [INFO] Checking git for module: MMM-GoogleAssistant
[20.01.2023 18:51.21.326] [ERROR] [PRONOTE] API Error TypeError: Cannot set properties of null (setting ‘value’)
at Object.submit (/home/rpi/MagicMirror/modules/MMM-Pronote/node_modules/@bugsounet/pronote-api/src/cas/generics/aten.js:45:54)
at login (/home/rpi/MagicMirror/modules/MMM-Pronote/node_modules/@bugsounet/pronote-api/src/cas/generics/kdecole-wayf.js:29:20)
at process.processTicksAndRejections (node:internal/process/task_queues:96:5)
at async getStart (/home/rpi/MagicMirror/modules/MMM-Pronote/node_modules/@bugsounet/pronote-api/src/auth.js:67:12)
at async login (/home/rpi/MagicMirror/modules/MMM-Pronote/node_modules/@bugsounet/pronote-api/src/auth.js:19:19)
at async Class.login (/home/rpi/MagicMirror/modules/MMM-Pronote/node_helper.js:107:16)
at async Class.pronote (/home/rpi/MagicMirror/modules/MMM-Pronote/node_helper.js:87:40)
at async Class.getAccount (/home/rpi/MagicMirror/modules/MMM-Pronote/node_helper.js:47:5)
[20.01.2023 18:51.21.330] [LOG] [PRONOTE] Display cache: 1
[20.01.2023 18:51.21.331] [LOG] [PRONOTE] Pronote is initialized.
[20.01.2023 18:51.21.384] [INFO] Checking git for module: EXT-FreeboxTV -
Dans le config.js :
{
module: “MMM-Pronote”,
position: “top_center”,
configDeepMerge: true,
config: {
debug: true, //false,
Accounts: [
{
url: “https://cas.monbureaunumerique.fr”,
username: “blablabla”, //null,
password: “BlaBla”,
cas: “ac-reims”,
account: “parent”,
studentNumber: 1, // only for parent account
}
],
}
}, -
@bugsounet
je ne sais pas comment faire!!???
comment placer l url dans payload et appeler le module EXT-Browser??
je ne vois vraiment!! -
dans quels fichiers dois je coder?
-
j ai passé des heures à décortiquer les programmes dans divers modules (GA, Gateway, EXT_BROWSER)
Au final, je décide de créer dans le recipe EXT_RadioPlayer.js le code suivant :
var recipe = {
transcriptionHooks: {
“sport”: {
pattern: “mets le sport”,
command: “sportfm”
},…
commands: {
“sportfm”: {
notificationExec: {
notification: “EXT_GATEWAY”,
payload: (params) => {
return {
link: “https://www.sports.fr/”
}
}
},
displayResponse: false,
soundExec: {
chime: “open”
}
},Lorsque je dis “mets le sport”, la commande part bien mais aucune page ne s ouvre!
J ai essayé en mettant : notification: “EXT_GATEWAY”, -
également en mettant notification: “EXT_BROWSER_OPEN”,
et même aussi notification: “GAV4_FORCE_FULLSCREEN”, par désespoir !Une aide serait la bienvenue SVP.
merci d avance
Adel -
personne pour me donner une aide SVP !
-
@bugsounet
Bonsoir,
Finalement, j ai passé bcp de temps encore sur ma tentative d ouverture d une page web (l’équipe) et j ai finalement remarqué que tu utilisais parfois _ et parfois -
j ai donc corrigé mon erreur et envoyé “EXT_BROWSER-OPEN” avec la bonne orthographe.commands: {
“sport”: {
notificationExec: {
notification: “EXT_BROWSER-OPEN”,
payload: (params) => {
return {
link: “https://www.lequipe.fr/”
}
}
},
displayResponse: false,
soundExec: {
chime: “open”
}
},maintenant, j ai une erreur dans le fichier EXT-Browser.js à la ligne 65 : if (payload.startsWith(“http://”) || payload.startsWith(“https://”))
il veut je pense vérifier que l url de ma page commence bien par “https://”. Ce qui est le cas pourtant !
Donc je pense que j ai fait une erreur pour mettre l’url de ma page dans le payload au niveau de la command (voir ci-dessus).
Peux tu me corriger cette erreur de syntaxe STP je ne maitrise pas ce language de programmation.
Voici l erreur affichée par le debug dans la console :
EXT-Browser.js:65 Uncaught (in promise) TypeError: payload.startsWith is not a function
at Class.notificationReceived (EXT-Browser.js:65:21)
at sendNotification (main.js:98:12)
at Object.sendNotification (main.js:531:4)
at Class.sendNotification (module.js:368:6)
at Class.doCommand (MMM-GoogleAssistant.js:117:511)
at Class.postProcess (MMM-GoogleAssistant.js:116:268)
at Object.postProcess (MMM-GoogleAssistant.js:62:39)
at AssistantResponse.postProcess (response.js:1:5992)
at AssistantResponse.start (response.js:1:5688)
at Class.socketNotificationReceived (MMM-GoogleAssistant.js:111:28)Bizarrement, il me dit que startsWith n est une fonction de la classe !!!
Qu en est il vraiment?
Merci d’avance
Adel -
@bugsounet
j ai trouvé il attend une chaine de caracteres !
Autant de temps passé pour si peu!
Ouf! quand même. -
-