MagicMirror Forum
    • Recent
    • Tags
    • Unsolved
    • Solved
    • MagicMirror² Repository
    • Documentation
    • 3rd-Party-Modules
    • Donate
    • Discord
    • Register
    • Login
    1. Home
    2. evroom
    3. Posts
    A New Chapter for MagicMirror: The Community Takes the Lead
    Read the statement by Michael Teeuw here.
    Offline
    • Profile
    • Following 0
    • Followers 2
    • Topics 18
    • Posts 491
    • Groups 1

    Posts

    Recent Best Controversial
    • RE: MMM-Soccer - Standings, Schedules and Top Scorers

      Was looking into that too.
      It looks like v1 is not working anymore:

      $ curl -H 'X-Auth-Token:(apikey)' 'http://api.football-data.org/v1/competitions/'
      <html>
      <head><title>504 Gateway Time-out</title></head>
      <body bgcolor="white">
      <center><h1>504 Gateway Time-out</h1></center>
      <hr><center>nginx/1.6.2</center>
      </body>
      </html>
      

      Api v2 does work:

      $ curl -H 'X-Auth-Token:(apikey)' 'http://api.football-data.org/v2/competitions/'
      {"count":145,"filters":{},"competitions":[{"id":2144,"area":{"id":2000,"name":"Afghanistan"},"name":"Playoffs 2/3","code":null,"plan":"TIER_FOUR","currentSeason":{"id":212,"startDate":"2018-05-22","endDate":"2018-05-27","currentMatchday":null},"numberOfAvailableSeasons":1,"lastUpdated":"2018-07-13T13:34:06Z"},{"id":2006,"area":{"id":2001,"name":"Africa"},"name":"WC Qualification","code":null,"plan":"TIER_FOUR","currentSeason":{"id":7,"startDate":"2015-10-07","endDate":"2017-11-14","currentMatchday":6},"numberOfAvailableSea............
      

      German Bundesliga would be id: 2002

      $ curl -H 'X-Auth-Token:(apikey)' 'http://api.football-data.org/v2/competitions/2002'
      {"id":2002,"area":{"id":2088,"name":"Germany"},"name":"Bundesliga","code":null,"plan":"TIER_ONE","currentSeason":{"id":155,"startDate":"2018-08-24","endDate":"2019-05-18","currentMatchday":null},"seasons":[{"id":155,"startDate":"2018-08-24","endDate":"2019-05-18","currentMatchday":null},{"id":3,"startDate":"2017-08-18","endDate":"2018-05-21","currentMatchday":34},{"id":213,"startDate":"2016-08-26","endDate":"2017-05-20","currentMatchday":null},{"id":214,"startDate":"2015-08-14","endDate":"2016-05-14","currentMatchday":null},{"id":215,"startDate":"2013-08-09","endDate":"2014-05-10","currentMatchday":null},{"id":216,"startDate":"2012-08-24","endDate":"2013-05-18","currentMatchday":null},{"id":217,"startDate":"2011-08-05","endDate":"2012-05-05","currentMatchday":null},{"id":218,"startDate":"2010-08-20","endDate":"2011-05-14","currentMatchday":null},{"id":219,"startDate":"2009-08-07","endDate":"2010-05-08","currentMatchday":null},{"id":220,"startDate":"2008-08-15","endDate":"2009-05-23","currentMatchday":null},{"id":221,"startDate":"2007-08-10","endDate":"2008-05-17","currentMatchday":null},{"id":224,"startDate":"2006-08-11","endDate":"2007-05-19","currentMatchday":null},{"id":225,"startDate":"2005-08-05","endDate":"2006-05-13","currentMatchday":null},{"id":226,"startDate":"2004-08-06","endDate":"2005-05-21","currentMatchday":null},{"id":227,"startDate":"2003-08-01","endDate":"2004-05-22","currentMatchday":null},{"id":228,"startDate":"2002-08-09","endDate":"2003-05-24","currentMatchday":null},{"id":229,"startDate":"2001-07-28","endDate":"2002-05-04","currentMatchday":null},{"id":230,"startDate":"2000-08-11","endDate":"2001-05-19","currentMatchday":null},{"id":231,"startDate":"1999-08-13","endDate":"2000-05-20","currentMatchday":null},{"id":232,"startDate":"1998-08-14","endDate":"1999-05-29","currentMatchday":null},{"id":233,"startDate":"1997-08-01","endDate":"1998-05-09","currentMatchday":null},{"id":234,"startDate":"1996-08-16","endDate":"1997-05-31","currentMatchday":null}],"lastUpdated":"2018-06-05T00:10:05Z"}
      

      But unfortunately the v2 commands have a new syntax and probably different output, so the code would need a change.

      The changes are probably for the better:
      https://www.football-data.org/documentation/api#changelog
      but until someone spends some spare-time, we will have to do without it.

      posted in Sport
      evroomE
      evroom
    • MMM-RTSPStream - omxplayer issue - MM v.2.4.1

      Hi,

      Not 100% related to MM v2.4.1 and MMM-RTSPStream, ‘just’ related to the Open GL driver, but omxplayer is not showing video anymore.
      Since I use MM v2.4.1 and omxplayer in MMM-RTSPStream, post it here.

      The omxplayer stream(s) are started, but the windows stay black.
      In VNC I can pause and start the streams, but still no video.

      pi@axis_pi:~/MagicMirror $ grep dtoverlay /boot/config.txt
      #dtoverlay=lirc-rpi
      dtoverlay=vc4-kms-v3d
      
      
      pi@axis_pi:~/MagicMirror $ pm2 logs mm
      [TAILING] Tailing last 15 lines for [mm] process (change the value with --lines option)
      /home/pi/.pm2/logs/mm-error-1.log last 15 lines:
      1|mm       | libGL error: MESA-LOADER: failed to retrieve device information
      1|mm       | MESA-LOADER: failed to retrieve device information
      1|mm       | MESA-LOADER: failed to retrieve device information
      :
      :
      1|mm       | Starting PM2 for omx_stream2
      1|mm       | PM2 started for omx_stream2
      1|mm       | Starting PM2 for omx_stream1
      1|mm       | PM2 started for omx_stream1
      
      
      omxplayer shows NO video, but the screen is rotated.
      
      
      pi@axis_pi:~ $ grep dtoverlay /boot/config.txt
      #dtoverlay=lirc-rpi
      #dtoverlay=vc4-kms-v3d
      dtoverlay=vc4-fkms-v3d
      
      
      pi@axis_pi:~/MagicMirror $ pm2 logs mm
      [TAILING] Tailing last 15 lines for [mm] process (change the value with --lines option)
      /home/pi/.pm2/logs/mm-error-1.log last 15 lines:
      1|mm       | libGL error: MESA-LOADER: failed to retrieve device information
      1|mm       | MESA-LOADER: failed to retrieve device information
      1|mm       | MESA-LOADER: failed to retrieve device information
      :
      :
      1|mm       | Starting PM2 for omx_stream2
      1|mm       | PM2 started for omx_stream2
      1|mm       | Starting PM2 for omx_stream1
      1|mm       | PM2 started for omx_stream1
      
      omxplayer shows NO video and the screen is NOT rotated.
      
      
      pi@axis_pi:~ $ grep dtoverlay /boot/config.txt
      #dtoverlay=lirc-rpi
      #dtoverlay=vc4-kms-v3d
      #dtoverlay=vc4-fkms-v3d
      
      [TAILING] Tailing last 15 lines for [mm] process (change the value with --lines option)
      /home/pi/.pm2/logs/mm-error-1.log last 15 lines:
      1|mm       | libGL error: MESA-LOADER: failed to retrieve device information
      1|mm       | MESA-LOADER: failed to retrieve device information
      1|mm       | MESA-LOADER: failed to retrieve device information
      1|mm       | [2215:0708/210556.278060:FATAL:bus.cc(1152)] D-Bus connection was disconnected. Aborting.
      1|mm       | getrandom indicates that the entropy pool has not been initialized. Rather than continue with poor entropy, this process will block until entropy is available.
      :
      :
      1|mm       | Starting PM2 for omx_stream2
      1|mm       | PM2 started for omx_stream2
      1|mm       | Starting PM2 for omx_stream1
      1|mm       | PM2 started for omx_stream1
      
      omxplayer shows video and screen is rotated.
      

      So, only working with dtoverlay ‘disabled’, despite the warnings.
      With the suggested drivers and fake drivers, not working.

      Someone else encountered this issue ?
      Any suggestions ?

      posted in Troubleshooting
      evroomE
      evroom
    • RE: MMM-NOAA

      It appears to use the data from the proxy provider.
      In my case the latitude and longitude are 67 kilometres away from my real location.
      Also the “city” does not correspond with the “lat” and “lon” when I look them up in Google Maps.
      Probably the “city” is from my provider and the “lat” and “lon” from the proxy server of that provider.
      Therefore I decided to give MMM-YrThen a try, which looks nice.
      Sorry to the persons that put so much efford in MMM-NOAA.

      posted in Troubleshooting
      evroomE
      evroom
    • RE: [MMM-RTSPStream] - Video Streaming from Live Feeds & Security Cameras

      Okay, it is actually quite simple.
      It works without any modifications.

      stream1: {
      	url: 'http://192.168.178.28:8001/1:0:19:2B66:3F3:1:C00000:0:0:0:', // ZDF HD
      	//url: 'http://192.168.178.28:8001/1:0:19:283D:3FB:1:C00000:0:0:0:', // ARD HD
      	protocol: "tcp",
      	width: 590,
      	height: 332
      }
      
      
      2|mm       | Starting stream stream1 with args: [
      2|mm       |     "--avdict",
      2|mm       |     "rtsp_transport:tcp",
      2|mm       |     "--win",
      2|mm       |     "4, 608, 594, 940",
      2|mm       |     "--live",
      2|mm       |     "--video_queue",
      2|mm       |     "4",
      2|mm       |     "--fps",
      2|mm       |     "30",
      2|mm       |     "http://192.168.178.28:8001/1:0:19:2B66:3F3:1:C00000:0:0:0:"
      2|mm       | ]
      2|mm       | Starting PM2 for omx_stream1
      2|mm       | PM2 started for omx_stream1
      
      

      It is just that the Raspberry Pi 3 Model 3 and omxplayer only can handle 1 TS stream, as it appears to be the case.
      Simular like the max. 3 RTSP camera streams.

      So, if you do not use omxplayer for something else and you want to use MMM-RTSPStream for streaming just the one TS channel, it can be used.

      posted in Utilities
      evroomE
      evroom
    • RE: MMM-NOAA

      Okay, I see it uses http://ip-api.com/json to determine latitude and longitude.
      It is depending on the proxy server in use.
      I am at work now (in Germany) and I see my proxy server is located in Paris, France right now.
      Will try it at home to see for which location the weather is presented on my MM.

      posted in Troubleshooting
      evroomE
      evroom
    • RE: [MMM-RTSPStream] - Video Streaming from Live Feeds & Security Cameras

      Hi,

      To come back to my own request.

      The line that works from the command line is:

      omxplayer --vol -3000 --win “0 0 480 320” --live http://192.168.178.28:8001/1:0:19:283D:3FB:1:C00000:0:0:0:

      When I look at the code
      https://github.com/shbatm/MMM-RTSPStream/blob/master/node_helper.js

      I notice following:

      –vol : not present, not really necessary, yet
      –win : present
      –live : present
      –avdict rtsp_transport:tcp : present, needed ?
      -–video_queue 4 : present, needed ?
      –fps 30 : present, needed ?

      When home I will try:

      $ omxplayer --avdict rtsp_transport:tcp --win “0 0 480 320” --live -–video_queue 4 --fps 30 http://192.168.178.28:8001/1:0:19:283D:3FB:1:C00000:0:0:0:

      And I will try:

      node_helper.js :

      if (this.config[s.name].protocol == “http”) {
      args.unshift(“–vol 3000”);
      }

      posted in Utilities
      evroomE
      evroom
    • RE: [MMM-RTSPStream] - Video Streaming from Live Feeds & Security Cameras

      Hi,

      Quite happy with MMM-RTSPStream so far; thx to those that contributed to it.

      Next thing I am trying to use MMM-RTSPStream for, is streaming sat-tv from a Dreambox & VU+ receivers.
      I am able to stream a channel using:

      omxplayer --vol -3000 --win “0 0 480 320” --live http://192.168.178.28:8001/1:0:19:283D:3FB:1:C00000:0:0:0:

      It is not a rtsp stream, but it can use omxplayer for streaming.
      When I try to use MMM-iFrame, I can add the URL, but then it tries to open a program that can play mpg (and MagicMirror won’t start).
      When I use it to stream using my browser (on my PC), I have it open VLC player, but installing VLC on Raspberry (using HW acceleration) is quite an act, so I would prefer to use omxplayer.

      Could this be done ?

      I am not so familiar with JavaScript and CCS (yet), more a Perl guy, but am willing to assist and test-drive.

      posted in Utilities
      evroomE
      evroom
    • RE: [MMM-RTSPStream] - Video Streaming from Live Feeds & Security Cameras

      @shbatm said in [MMM-RTSPStream] - Video Streaming from Live Feeds & Security Cameras:

      .MMM-RTSPStream .innerWrapper {
      float: left;
      }

      @shbatm
      Thanks a lot! Works just fine.
      A bit of calculating and adjusting the margin, and it does what I wanted.

      posted in Utilities
      evroomE
      evroom
    • RE: MMM-NOAA

      @cowboysdude
      Thanks for answering (@Mykle1 too).
      It is working, with just the apiKey in the config, but where does it take the location from?
      You say it works for one location only, is that a location I can determine, or is it a location that is hard coded somewhere?
      I like the temperatures it is showing, but is the weather I can expect in my location? :-)

      posted in Troubleshooting
      evroomE
      evroom
    • RE: MMM-NOAA

      Hi,

      I installed MMM-NOAA V2.0 just now, but the lines necessary in the config.js struck me as being too little.

      No ‘position’, etc, just the api’s.
      I read that it takes:

      language: “en”,
      timeFormat: 24,
      units: “metric”,

      from the config.js, but then still I am missing info like ‘location’, ‘locationID’, etc.
      How does it know which city to take ?
      What weather information is currently displayed ? England due to “en” ? :-)

      In github I read:

      “In this new Version you can select up to 3 different weather locations like in this example.”

      but I fail to see this.

      Could you please provide me with a correct config.js entry for this otherwise good looking module ??

      And airvisual.com refuses to give me api (does not send me the confirmation mail), but that not a fault of the module.

      Best regards,

      Erik-Jan

      posted in Troubleshooting
      evroomE
      evroom
    • 1 / 1