ax-led / mmm-dreambox Goto Github PK
View Code? Open in Web Editor NEWA module to connect a Dreambox or a Enigma2 Receiver (like VU or VU+) to MagicMirror and stream stations via omxplayer.
A module to connect a Dreambox or a Enigma2 Receiver (like VU or VU+) to MagicMirror and stream stations via omxplayer.
Installed the latest dev branch.
The logs show:
TypeError: Cannot read property 'apibouquet' of undefined
My config.js
{
module: 'MMM-Dreambox',
position: 'bottom_left',
disabled: false,
header: 'Vu+ Duo²',
config: {
//apiBase: 'http://192.168.178.46:80',
apiBase: 'http://192.168.178.28:80',
omxargs: ' --genlog --win 320,180,1600,900 -o both ',
refreshInterval: 1000 * 30, //refresh every 30 seconds
apibouquet: 0,
apiRecordingsID: 1,
listmax: 10
}
},
pm2 logs:
0|mm | Starting node helper for: MMM-Dreambox
0|mm | Whoops! There was an uncaught exception...
0|mm | TypeError: Cannot read property 'apibouquet' of undefined
0|mm | at Request._callback (/home/pi/MagicMirror/modules/MMM-Dreambox/node_helper.js:353:81)
0|mm | at Request.self.callback (/home/pi/MagicMirror/node_modules/request/request.js:185:22)
0|mm | at emitTwo (events.js:126:13)
0|mm | at Request.emit (events.js:214:7)
0|mm | at Request.<anonymous> (/home/pi/MagicMirror/node_modules/request/request.js:1157:10)
0|mm | at emitOne (events.js:116:13)
0|mm | at Request.emit (events.js:211:7)
0|mm | at IncomingMessage.<anonymous> (/home/pi/MagicMirror/node_modules/request/request.js:1079:12)
0|mm | at Object.onceWrapper (events.js:313:30)
0|mm | at emitNone (events.js:111:20)
Feature Request:
Option in config.js to select a bouquet.
I have 3 bouquets, of which only the Favourites (TV) is listed.
It would be nice to have an option like:
apiBouquet: "MyBouquet (TV)",
Should default to "Favourites (TV)".
Feature Request:
Translation files (eq en.json, de.json, nl.json) for module headers.
Examples:
Modell: dm7020hd - derzeit läuft: XXX
Model: dm7020hd - now playing: XXX
Model: dm7020hd - current channel: XXX
Model: dm7020hd - momenteel kanaal: XXX
Feature Request:
Services without EPG info show as:
ServiceName - (Invalid date None)
Nicer would be:
ServiceName - ()
or:
ServiceName - (No EPG)
or:
ServiceName - (No EPG available)
I personally would prefer the first, as I have around 10 services that do not have EPG info available.
Or one could add it to a translation file.
One could introduce the notification DB-ZAP in order to stream the next available service.
It will be a combination of DB-SERVICE-NEXT & DB-PLAY.
Other idea that comes to mind is DB-ZAP-FORWARD and DB-ZAP-BACKWARD.
It will be a combination of DB-SERVICE-NEXT & DB-PLAY and DB-SERVICE-PREV and DB-PLAY.
Feature Request:
An option in config.js to show X services before and after current active service.
Like:
showServices: 5,
Meaning: show 5 services before the current active service and 5 services after the current active service.
I have 50+ services in my Favourites (TV) bouquet and this takes up a large part of my mirror.
Hallo,
why doesn’t it show me the EPG info? Can anybody help me.
my config.js
{
module: 'MMM-Dreambox',
position: 'top_left',
disabled: false,
header: 'Vu+ UNO4K',
config: {
apiBase: 'http://192.168.3.105:82',
omxargs: ' --genlog --win 320,180,1600,900 -o both ',
refreshInterval: 1000 * 15, //refresh every 30 seconds
apiabout: '/web/about',
apiservices: '/web/getallservices',
apiepgnow: '/web/epgnow?bRef=1%3A7%3A1%3A0%3A0%3A0%3A0%3A0%3A0%3A0%3AFROM%20BOUQUET%20%22userbouquet.favourites.tv%22%20ORDER%20BY%20bouquet',
apizap: '/web/zap?sRef=',
apiTimerlist: '/web/timerlist',
apiServicelistplayable: '/web/servicelistplayable?sRef=1%3A7%3A1%3A0%3A0%3A0%3A0%3A0%3A0%3A0%3AFROM%20BOUQUET%20%22userbouquet.favourites.tv%22%20ORDER%20BY%20bouquet',
apibouquet: 0, //bouquet, if there is more than one under apiservices (/web/getallservices), important apiepgnow and apiServicelistplayable have to match to the selected bouquet
listmax: 15,
}
},
Make the config.js easier by using getservices.
Parameters apiepgnow and apiServicelistplayable use complicated bRef and sRef strings.
First of all they seem to be identical and second of all there is a way to get them by using:
http://192.168.178.47/web/getservices
This gives the sRef/bRef for all bouquets.
Example for one bouquet:
1:7:1:0:0:0:0:0:0:0:FROM BOUQUET "userbouquet.favourites.tv" ORDER BY bouquet
You can convert them by using encodeURI(uri) in JavaScript:
https://www.w3schools.com/jsref/jsref_encodeuri.asp
This gives:
1%3A7%3A1%3A0%3A0%3A0%3A0%3A0%3A0%3A0%3AFROM%20BOUQUET%20%22userbouquet.favourites.tv%22%20ORDER%20BY%20bouquet
Just a proposal in order to make it easier for the user to not have to set this parameter him/her-self.
Note that the apibouquet parameter will determine which bouquet will be chosen.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.