[dss-developer] dss-developer Digest, Vol 39, Issue 1
Tin Pham
tinphamtan at gmail.com
Thu May 2 00:26:31 CEST 2013
Dear Sergey,
Thank you so much for your help.
My project is implementing of recognition of new device, it means some kind
of notification will appear whenever new device is connected or
disconnected.
I'm trying to create a loop that periodically check the whole system for
any change.
Do i need to create that loop or the dsM has already done that job and
store data in getDevice string periodically?
Best regards
Tin Pham
On Wed, May 1, 2013 at 12:00 PM, <
dss-developer-request at forum.digitalstrom.org> wrote:
> Send dss-developer mailing list submissions to
> dss-developer at forum.digitalstrom.org
>
> To subscribe or unsubscribe via the World Wide Web, visit
>
> http://forum.digitalstrom.org/cgi-bin/mailman/listinfo/dss-developer
> or, via email, send a message with subject or body 'help' to
> dss-developer-request at forum.digitalstrom.org
>
> You can reach the person managing the list at
> dss-developer-owner at forum.digitalstrom.org
>
> When replying, please edit your Subject line so it is more specific
> than "Re: Contents of dss-developer digest..."
>
>
> Today's Topics:
>
> 1. dSS JSON (Tin Pham)
> 2. Re: dSS JSON (Sergey 'Jin' Bostandzhyan)
>
>
> ----------------------------------------------------------------------
>
> Message: 1
> Date: Tue, 30 Apr 2013 19:22:26 +0200
> From: Tin Pham <tinphamtan at gmail.com>
> To: dss-developer at forum.digitalstrom.org
> Subject: [dss-developer] dSS JSON
> Message-ID:
> <
> CAEkTZSY9_7NTbPNqeHQ9BznxvK3Jz9jhniX_Hf4eZQ9qBo7iMg at mail.gmail.com>
> Content-Type: text/plain; charset="iso-8859-1"
>
> Hi,
>
> I'm doing a project about new hardware recognition for digitalSTROM system.
> As far as i know, if any new dsID is connected to the system, we need to
> press "reregister all hardware" button in Hardware tab (advance view) in
> the web GUI.
> Then wait and refresh view to see the new device.
> I run web console in Firefox and see this code when the "reregister all
> hardware" button is press:
>
>
> https://192.168.0.11/dsa/json/dsm/restartRegistration?_dc=1367341915315&dsid=3504175fe000001000000e8a
>
> I think that it is similar with the JSON command. I have searched in the
> dSS JSON document and relevant document but there is no command for
> restartRegistration or testDevicePresence. There are some "rescan" code but
> they didn't work for me.
> I'm a newbie in programing and just start from scratch few weeks ago,
> please help me.
>
> Best Regards
>
> Tin Pham
> -------------- next part --------------
> An HTML attachment was scrubbed...
> URL: <
> http://forum.digitalstrom.org/pipermail/dss-developer/attachments/20130430/65f1d55c/attachment-0001.html
> >
>
> ------------------------------
>
> Message: 2
> Date: Tue, 30 Apr 2013 21:01:59 +0200
> From: Sergey 'Jin' Bostandzhyan <jin at mediatomb.cc>
> To: dSS development list <dss-developer at forum.digitalstrom.org>
> Subject: Re: [dss-developer] dSS JSON
> Message-ID: <20130430190159.GE31435 at deadlock.dhs.org>
> Content-Type: text/plain; charset=us-ascii
>
> Hi,
>
> On Tue, Apr 30, 2013 at 07:22:26PM +0200, Tin Pham wrote:
> > I'm doing a project about new hardware recognition for digitalSTROM
> system.
> > As far as i know, if any new dsID is connected to the system, we need to
> press
> > "reregister all hardware" button in Hardware tab (advance view) in the
> web GUI.
> > Then wait and refresh view to see the new device.
>
> no, this is not the case. A new device will automatically register itself
> with the dSM and will be visible after some time if you keep refreshing
> the view. Actually, you will see that the LED on the device is blinking
> while it is going through the registration process.
>
> "Reregister" is only needed if you deliberately delete a device on a dSM
> (for
> example via the configurator / web UI) and later decide that you want it
> to be present and known again.
>
> > I run web console in Firefox and see this code when the "reregister all
> > hardware" button is press:
> >
> >
> https://192.168.0.11/dsa/json/dsm/restartRegistration?_dc=1367341915315&dsid=
> > 3504175fe000001000000e8a
> >
> > I think that it is similar with the JSON command. I have searched in the
> dSS
> > JSON document and relevant document but there is no command for
> > restartRegistration or testDevicePresence. There are some "rescan" code
> but
> > they didn't work for me.
>
> Those commands that you saw are not part of the official JSON API, i.e. you
> can not use them via the 8080 port which is the interface for apps. They
> are part of the dSA (dS Assistant) which is a tool that helps to
> troubleshoot
> and debug dS installations. It's integrated into the configurator UI, but
> as I mentioned, it's not part of the "user" API.
>
> > I'm a newbie in programing and just start from scratch few weeks ago,
> please
> > help me.
>
> It's not quite clear to me what exactly your goal is, maybe you could
> describe
> what you are trying to do in more detail. You can surely get some help and
> hints on the list, but we won't do any coding for you :)
>
> Kind regards,
> Sergey
>
>
>
> ------------------------------
>
> _______________________________________________
> dss-developer mailing list
> dss-developer at forum.digitalstrom.org
> http://forum.digitalstrom.org/cgi-bin/mailman/listinfo/dss-developer
>
>
> End of dss-developer Digest, Vol 39, Issue 1
> ********************************************
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://forum.digitalstrom.org/pipermail/dss-developer/attachments/20130502/6d01cee7/attachment.html>
More information about the dss-developer
mailing list