more G-Labs products

Author Topic: TESTING RELEASE  (Read 196297 times)

November 04, 2015, 09:20:36 PM
Reply #645

pim555

  • ****
  • Information
  • Sr. Member
  • Posts: 143
@Dani

I use RPI with Razberry plugin board.

For some kind of reason I have been able to add the same device under multiple entries. Am wondering how to remove as removing the device will only try to remove the most recent entry?

Pim

November 05, 2015, 12:16:41 AM
Reply #646

Gene

  • *****
  • Information
  • Administrator
  • Posts: 1472
  • Tangible is the future!
    • Yet Another Programmer
A screen shot of the new media server browser widget coming with r500... (already available on github). Also the new camera widget is included in r500.

g.

November 05, 2015, 09:50:38 AM
Reply #647

dani

  • *****
  • Information
  • Global Moderator
  • Posts: 535
I think you have to make new fresh install.
Make a bakeup of HG if you can. And then :

$ sudo apt-get remove homegenie

After delete the folder /usr/local/bin/homegenie
and then get the .db file : homegenie-beta_1.1.r499_all.deb

$ sudo dpkg -i homegenie-beta_1.1.r497_all.deb

PS : $ is the prompt of shell don't type it

November 05, 2015, 07:38:53 PM
Reply #648

Gene

  • *****
  • Information
  • Administrator
  • Posts: 1472
  • Tangible is the future!
    • Yet Another Programmer

Hi Gene,

Upgraded to r499. Findings so far:
- z-wave switch and shutter can be contrlled again
- after controlling or getting status from swicth and shuitter I get a time out message in the UI
- SP103 motion sensor is working but status cannot be read. Also, tamper signal seems to be always there (was also already in previous releases)
- Mulit-sensor is not working, not status can be retrieved. I did manage to remove and add the device again but am not able to get status/configuration.

Btw, I see a lot of posts regarding z-wave set-up. Is there somewhere a short manual that describes the process for adding a new z-wave device and that describes the exact functionality of discovery, remove, add and reset?

Regards
Pim

Hi Pim,

ZWave sensor timeout bug has been fixed in r500 that should be available for download in a couple of days,
Thanks for reporting.

g.

November 07, 2015, 05:10:44 PM
Reply #649

Gene

  • *****
  • Information
  • Administrator
  • Posts: 1472
  • Tangible is the future!
    • Yet Another Programmer
Hi all,

HG v1.1 beta r500 is out:

- Fixed ZWave interface sensor timeout bug and sensor Status.Level "0.01" bug
- Disabled limit of max one opened http connection per program in NetHelper
- Improved media server widget with thumbnails and support for multiple bitrates and formats
- Added UPnP interface command "AvMedia.GetItem"
- Improved camera widget
- Fixed 'continuous Event Stream disconnection' bug when running on old mono ARM-hf (eg. Raspberry Pi)
- Updated Spanish locales
- Disabled periodic Weather Underground program notifications in the UI
- Reverted XTenLib to the using of Thread instead of Task

this is not a pre-release, and it should be considered the first v1.1 marked as stable (still beta though).
Next updates will be pushed through the update manager (unless there are major issues with r500... hope not!).

g.

November 07, 2015, 05:19:59 PM
Reply #650

KaZe

  • ****
  • Information
  • Sr. Member
  • Posts: 219
Hi Gene!

In my case HomeGenie (499 and 500 too) can't see my media library from Kodi media player. I use an Android TV box, which running Kodi 15.2. DLNA running. My Windows media player see it, but HomeGenie no.
I have plex server too, on my other server, it's works with homegenie and media player too.
Any suggestion?

November 07, 2015, 05:35:30 PM
Reply #651

Gene

  • *****
  • Information
  • Administrator
  • Posts: 1472
  • Tangible is the future!
    • Yet Another Programmer
No suggestions. I tested it with Rygel (which is a very nice and lightweight media server) and with Windows Media Player sharing and both work.
You could try to see the url that is called when you click on the folder and open it manually in the browser to see what the output looks like.

eg.
Code: [Select]
http://hg_server_addresst/api/Protocols.UPnP/7af8b69f-09e2-41b9-d887-13d310235f1c/AvMedia.Browse/4e74b23c7708032533b0b28137de88b3/

g.

November 07, 2015, 06:07:16 PM
Reply #652

KaZe

  • ****
  • Information
  • Sr. Member
  • Posts: 219
With this new UPNP I can not play anything. The movies, songs not clickable.

November 07, 2015, 06:20:54 PM
Reply #653

Gene

  • *****
  • Information
  • Administrator
  • Posts: 1472
  • Tangible is the future!
    • Yet Another Programmer
Hi KaZe,

for some reason it's not showing the "green" buttons like in my screenshot here:

http://www.homegenie.it/forum/index.php?topic=129.msg7241#msg7241

clicking on the green buttons will play the item.
If you know how to use the browser developer tools, please find requests with the AvMedia.GetItem command and try to open it manually in the browser and paste here the output.
It should be something like this:
Code: [Select]
http://hg_server_address/api/Protocols.UPnP/7af8d49f-04e2-43e3-b847-21e390335f1c/AvMedia.GetItem/virtual-id:7fc70ba12a00b01a687b858dd95fcf09:3049a2ebabdc3f49415ed51612ed3416/
{
  "item": {
    "@id": "virtual-id:7fc70ba12a00b01a687b858dd95fcf09:3049a2ebabdc3f49415ed51612ed3416",
    "@parentID": "virtual-container:7fc70ba12a00b01a687b858dd95fcf09",
    "@restricted": "0",
    "dc:title": "6 hour Deep Jazz House Mix - Peaceful Lounge Playlist Music for Studying & Relaxing-ipviArejhR8.mp4",
    "upnp:class": "object.item.videoItem",
    "res": [
      {
        "@size": "1369335595",
        "@protocolInfo": "http-get:*:video/mp4:DLNA.ORG_OP=01",
        "@duration": "6:19:45.000",
        "@bitrate": "23999",
        "@sampleFrequency": "44100",
        "@nrAudioChannels": "2",
        "#text": "http://192.168.0.6:60778/MediaExport/i/dmlydHVhbC1pZDo3ZmM3MGJhMTJhMDBiMDFhNjg3Yjg1OGRkOTVmY2YwOTozMDQ5YTJlYmFiZGMzZjQ5NDE1ZWQ1MTYxMmVkMzQxNg%3D%3D.mp4"
      },
      {
        "@protocolInfo": "http-get:*:video/x-ms-wmv:DLNA.ORG_PN=WMVHIGH_FULL;DLNA.ORG_OP=10;DLNA.ORG_CI=1;DLNA.ORG_FLAGS=01700000000000000000000000000000",
        "@duration": "6:19:45.000",
        "@bitrate": "158000",
        "@sampleFrequency": "44100",
        "@nrAudioChannels": "2",
        "#text": "http://192.168.0.6:60778/MediaExport/i/dmlydHVhbC1pZDo3ZmM3MGJhMTJhMDBiMDFhNjg3Yjg1OGRkOTVmY2YwOTozMDQ5YTJlYmFiZGMzZjQ5NDE1ZWQ1MTYxMmVkMzQxNg%3D%3D/tr/WMVHIGH_FULL.wmv"
      },
      {
        "@protocolInfo": "http-get:*:video/mp4:DLNA.ORG_PN=AVC_MP4_BL_CIF15_AAC_520;DLNA.ORG_OP=10;DLNA.ORG_CI=1;DLNA.ORG_FLAGS=01700000000000000000000000000000",
        "@duration": "6:19:45.000",
        "@bitrate": "158000",
        "@sampleFrequency": "44100",
        "@nrAudioChannels": "2",
        "#text": "http://192.168.0.6:60778/MediaExport/i/dmlydHVhbC1pZDo3ZmM3MGJhMTJhMDBiMDFhNjg3Yjg1OGRkOTVmY2YwOTozMDQ5YTJlYmFiZGMzZjQ5NDE1ZWQ1MTYxMmVkMzQxNg%3D%3D/tr/AVC_MP4_BL_CIF15_AAC_520.mp4"
      },
      {
        "@protocolInfo": "http-get:*:video/mpeg:DLNA.ORG_PN=MPEG_TS_HD_NA_ISO;DLNA.ORG_OP=10;DLNA.ORG_CI=1;DLNA.ORG_FLAGS=01700000000000000000000000000000",
        "@duration": "6:19:45.000",
        "@bitrate": "211500",
        "@sampleFrequency": "44100",
        "@nrAudioChannels": "2",
        "#text": "http://192.168.0.6:60778/MediaExport/i/dmlydHVhbC1pZDo3ZmM3MGJhMTJhMDBiMDFhNjg3Yjg1OGRkOTVmY2YwOTozMDQ5YTJlYmFiZGMzZjQ5NDE1ZWQ1MTYxMmVkMzQxNg%3D%3D/tr/MPEG_TS_HD_NA_ISO.mpg"
      },
      {
        "@protocolInfo": "http-get:*:video/mpeg:DLNA.ORG_PN=MPEG_TS_SD_EU_ISO;DLNA.ORG_OP=10;DLNA.ORG_CI=1;DLNA.ORG_FLAGS=01700000000000000000000000000000",
        "@duration": "6:19:45.000",
        "@bitrate": "211500",
        "@sampleFrequency": "44100",
        "@nrAudioChannels": "2",
        "#text": "http://192.168.0.6:60778/MediaExport/i/dmlydHVhbC1pZDo3ZmM3MGJhMTJhMDBiMDFhNjg3Yjg1OGRkOTVmY2YwOTozMDQ5YTJlYmFiZGMzZjQ5NDE1ZWQ1MTYxMmVkMzQxNg%3D%3D/tr/MPEG_TS_SD_EU_ISO.mpg"
      },
      {
        "@protocolInfo": "http-get:*:video/mpeg:DLNA.ORG_PN=MPEG_TS_SD_NA_ISO;DLNA.ORG_OP=10;DLNA.ORG_CI=1;DLNA.ORG_FLAGS=01700000000000000000000000000000",
        "@duration": "6:19:45.000",
        "@bitrate": "211500",
        "@sampleFrequency": "44100",
        "@nrAudioChannels": "2",
        "#text": "http://192.168.0.6:60778/MediaExport/i/dmlydHVhbC1pZDo3ZmM3MGJhMTJhMDBiMDFhNjg3Yjg1OGRkOTVmY2YwOTozMDQ5YTJlYmFiZGMzZjQ5NDE1ZWQ1MTYxMmVkMzQxNg%3D%3D/tr/MPEG_TS_SD_NA_ISO.mpg"
      },
      {
        "@size": "47880",
        "@protocolInfo": "http-get:*:image/png:DLNA.ORG_PN=PNG_TN;DLNA.ORG_OP=01;DLNA.ORG_CI=1;DLNA.ORG_FLAGS=00f00000000000000000000000000000",
        "#text": "http://192.168.0.6:60778/MediaExport/i/dmlydHVhbC1pZDo3ZmM3MGJhMTJhMDBiMDFhNjg3Yjg1OGRkOTVmY2YwOTozMDQ5YTJlYmFiZGMzZjQ5NDE1ZWQ1MTYxMmVkMzQxNg%3D%3D/th/0.png"
      }
    ]
  }
}

g.
« Last Edit: November 07, 2015, 06:24:02 PM by Gene »

November 07, 2015, 06:22:29 PM
Reply #654

KaZe

  • ****
  • Information
  • Sr. Member
  • Posts: 219
Ok, I look after 2 hours.

November 07, 2015, 10:12:07 PM
Reply #655

KaZe

  • ****
  • Information
  • Sr. Member
  • Posts: 219
Hi Gene!

I find it:

I browse Avatar movie. This is the link with AvMedia.GetItem command:
Code: [Select]
http://hgserver:port/api/Protocols.UPnP/27c00215-fdbb-9720-0537-ea584409bba8/AvMedia.GetItem/552322872d399b9deda0/
And this is the resoult, when I open in browser:

Code: [Select]
{
  "item": {
    "@id": "071cde02ed8399fd4237",
    "@parentID": "4c67bb237ebdbfa281e4",
    "@restricted": "1",
    "dc:title": "Avatar (2009)",
    "upnp:genre": [
      "Akció",
      "Kaland",
      "Fantasy",
      "Sci-Fi"
    ],
    "res": {
      "@duration": "2:41:41.000",
      "@size": "21774642561",
      "@bitrate": "2244375",
      "@nrAudioChannels": "6",
      "@protocolInfo": "http-get:*:video/x-matroska:DLNA.ORG_OP=01;DLNA.ORG_CI=0;DLNA.ORG_FLAGS=01500000000000000000000000000000",
      "#text": "http://10.1.1.201:32469/object/071cde02ed8399fd4237/file.mkv"
    },
    "upnp:class": "object.item.videoItem.movie"
  }
}

November 07, 2015, 10:16:17 PM
Reply #656

KaZe

  • ****
  • Information
  • Sr. Member
  • Posts: 219
No suggestions. I tested it with Rygel (which is a very nice and lightweight media server) and with Windows Media Player sharing and both work.
You could try to see the url that is called when you click on the folder and open it manually in the browser to see what the output looks like.

eg.
Code: [Select]
http://hg_server_addresst/api/Protocols.UPnP/7af8b69f-09e2-41b9-d887-13d310235f1c/AvMedia.Browse/4e74b23c7708032533b0b28137de88b3/

g.



Hi Gene!

I found this reguest too:

Code: [Select]
http://hgserver:port/api/Protocols.UPnP/b9d156b1-6282-e5af-d571-297d28761f74/AvMedia.Browse/library://video//
And the response is:

Code: [Select]
{"Status":"Error","Message":"{\"ClassName\":\"OpenSource.UPnP.UPnPInvokeException\",\"Message\":\" Internal Server Error\",\"InnerException\":null,\"HelpURL\":null,\"StackTraceString\":\"  at OpenSource.UPnP.UPnPService.InvokeSync (System.String MethodName, OpenSource.UPnP.UPnPArgument[] InVarArr) [0x00000] in <filename unknown>:0 \\n  at MIG.Interfaces.Protocols.UPnP.InvokeUpnpDeviceService (OpenSource.UPnP.UPnPDevice device, System.String serviceId, System.String methodName, OpenSource.UPnP.UPnPArgument[] args) [0x00000] in <filename unknown>:0 \\n  at MIG.Interfaces.Protocols.UPnP.InterfaceControl (MIG.MigInterfaceCommand request) [0x00000] in <filename unknown>:0 \\n  at MIG.MigService.Gateway_PreProcessRequest (System.Object sender, MIG.ProcessRequestEventArgs args) [0x00000] in <filename unknown>:0 \",\"RemoteStackTraceString\":null,\"RemoteStackIndex\":0,\"HResult\":-2146233088,\"Source\":\"UPnP\",\"ExceptionMethod\":null,\"Data\":null}"}

I think the problem is, that the HG can't recognize the shares in Kodi UPNP.
In developer tools:

Plex AvMedia.Browse:

Code: [Select]
http://hgserver:port/api/Protocols.UPnP/27c00215-fdbb-9720-0537-ea584409bba8/AvMedia.Browse/4c67bb237ebdbfa281e4/
Kodi AvMedia.Browse:

Code: [Select]
http://hgserver:port/api/Protocols.UPnP/b9d156b1-6282-e5af-d571-297d28761f74/AvMedia.Browse/0/
« Last Edit: November 07, 2015, 10:27:00 PM by KaZe »

November 07, 2015, 10:40:58 PM
Reply #657

KaZe

  • ****
  • Information
  • Sr. Member
  • Posts: 219
I found with my phone, what should be the end of the link.
Code: [Select]
http://hgserver:port/api/Protocols.UPnP/b9d156b1-6282-e5af-d571-297d28761f74/AvMedia.Browse/library%3a%2f%2fvideo%2f
Browser response:
Code: [Select]
[{ "Id" : "library://video/movies/", "Title" : "Filmek", "Class" : "object.container" },
{ "Id" : "library://video/tvshows/", "Title" : "Sorozatok", "Class" : "object.container" },
{ "Id" : "library://video/inprogressshows.xml/", "Title" : "Folyamatban lévő sorozatok", "Class" : "object.container" },
{ "Id" : "library://video/recentlyaddedmovies.xml/", "Title" : "Nemrég bekerült filmek", "Class" : "object.container" },
{ "Id" : "library://video/recentlyaddedepisodes.xml/", "Title" : "Nemrég bekerült epizódok", "Class" : "object.container" },
{ "Id" : "library://video/files.xml/", "Title" : "Fájlok", "Class" : "object.container" },
{ "Id" : "library://video/playlists.xml/", "Title" : "Lejátszáslisták", "Class" : "object.container" }]
« Last Edit: November 07, 2015, 10:42:49 PM by KaZe »

November 07, 2015, 11:47:18 PM
Reply #658

Gene

  • *****
  • Information
  • Administrator
  • Posts: 1472
  • Tangible is the future!
    • Yet Another Programmer
Hi KaZe,

thanks for the info it was useful to understand what was causing the issue.
Copy the attacched file into the folder homegenie/html/pages/control/widgets/homegenie/generic.
This should fix it.

g.


November 08, 2015, 09:21:39 AM
Reply #659

KaZe

  • ****
  • Information
  • Sr. Member
  • Posts: 219
Hi KaZe,

thanks for the info it was useful to understand what was causing the issue.
Copy the attacched file into the folder homegenie/html/pages/control/widgets/homegenie/generic.
This should fix it.

g.

Hi Gene!

Thanks! It's works with plex media server. I can play the movies with green button. BTW what is means "matroska"? :)

The Kodi media server still not working. :(