Hi together,
my mirror project makes process. Below you can find the result as well of some snapshots of the building process. Looking forward to your feedback :-)
Hi together,
my mirror project makes process. Below you can find the result as well of some snapshots of the building process. Looking forward to your feedback :-)
@strawberry-3.141 you are right, I also struggled to find a accurate “offline” sst solution. Like mentioned in the article I don’t intend to use a “public cloud” solution for STT - due to this I train currently a context aware, tensorflow based “private cloud” STT solution. But it turned out that this is really time consuming… until this is complete I use googles STT API.
This project is for me just a research project to get a better understanding of AI and cloud services and how to deal with the challenges. The intention to post it here was to support Chris with a impression of the used glass
Hi @rasmus-rytter,
if two or more people came to the same conclusion, its an indication that its not an to bad idea :-)
independent from this post i just had setup my mirror exactly the way @yawns and @richland007 described to you.
I enhanced MMM-NowPlayingOnSpotify and MMM-AssistantMk2 to make them capable to control Spotify. It´s still in development but if you like you can have a look on my git forks.
MMM-NowPlayingOnSpotify
MMM-AssistantMk2
you need to redo your authorization (Step 2) because we require now also the authorization user-modify-playback-state and you should add “deviceName” into your config-file.
Im looking forward to your feedback dear alpha-tester ;-)
@Goldjunge_Chriz
Hi Chris, wow, many thanks for all your hard work!!!
Like mentioned by lolobyte this is not based on node.js. I started in node.js but swiched than to my primary development plattform java(fx). I belive it would be easy for a skilled node.js developer to migrate it to node.js due to it is primary just connecting cloud API’s.
You can find some more information see and the high level architecture in this LinkedIn Article
Hi together,
long weekend - perfect to finish the mirror hardware.
Please find attached some pictures of the assembly + first impressions of the running mirror.
(due to i still struggling to bring my java software to the raspberry, there are some cables to the laptop who will disappear in the final setup).
Overall I´m satisfied, I believe I need to play a little bit with the light conditions and install a spot on top of the mirror to compensate the light absorbation of the mirror.
Might it be possible to craft a glass working like a “silver reflected sun-glass”?
@ejay-ibm
Hey Ejay,
many thanks for testing and bug fixing.
Regarding your findings: The original RegEx still works on my installation, but based on your experience it seams like the RegEx is more stable by just looking for the URL itself. I can´t see any downside of this approach.
In my test it turn out that “-” and “_” need to be added to the character set, due to they are used e.g. in usernames (spotify_germany) which are part of playlist path.
Also the escaping is now much more proper (interesting that the raw version had worked…)
Important finding from ejay
if raspotify just jump back to track start instead of changing the song, an update of raspotify is needed. I had exactly the same behavior on my installation.
please check the console in the dev mode, as well as the filesystem logs…
module and helper write unfortunately to different log destinations.
Regarding the next steps I’m going to open a chat…
@ejay-ibm said in Spotify Play?:
Why in console error instead of console log ?
( Sorry i’m not a dev might be a silly question and I guess the result would be the same if log or error it should be sent to the console… )
haha… there is a simple answer. I want them to be red to find them more easy. In a final version it should be console log…
Regarding the RegEx: I just tested them in german. I’m for sure not an RegEx pro (that’s a kind of black magic for me) ;-)
So if you have a better Regex expression feel free to change it.
The additional escape characters was necessary to wrap the RegEx into the java code.
Are you getting it to work without these escapes?
Proposal:
based on your post it seems to me, like the English version respond with
open.spotify.com -- https...
instead of
open.spotify.com - https...
So you might need to reflect this in the RegEx
var re = new RegExp("\\(.open\\.spotify\\.com –+ (https:\\/\\/open\\.spotify\\.com[^ ]*).\\)", "gm")
@ejay-ibm
in a first step you could check the console log for “[AMK2] openSpotify found:” and if the event PLAY_SPOTIFY was fired…
@ejay-ibm
the module is listening to an open.spotify.com answer from Google assistant.
It seems like the assistant is not aware of the preconfigured music provider and you need to point him in the right direction.
“search for xxx on Spotify” works in my case. I’m almost sure that in the past also “play xxx from spotify” had worked, but now I got no more an open.spotify.com link backs. Would be interesting how it works for you.
FYI - I identified that the Device parameter does not work proper in the current github version. need to work on this…
Hi @rasmus-rytter,
if two or more people came to the same conclusion, its an indication that its not an to bad idea :-)
independent from this post i just had setup my mirror exactly the way @yawns and @richland007 described to you.
I enhanced MMM-NowPlayingOnSpotify and MMM-AssistantMk2 to make them capable to control Spotify. It´s still in development but if you like you can have a look on my git forks.
MMM-NowPlayingOnSpotify
MMM-AssistantMk2
you need to redo your authorization (Step 2) because we require now also the authorization user-modify-playback-state and you should add “deviceName” into your config-file.
Im looking forward to your feedback dear alpha-tester ;-)
@strawberry-3.141 you are right, I also struggled to find a accurate “offline” sst solution. Like mentioned in the article I don’t intend to use a “public cloud” solution for STT - due to this I train currently a context aware, tensorflow based “private cloud” STT solution. But it turned out that this is really time consuming… until this is complete I use googles STT API.
This project is for me just a research project to get a better understanding of AI and cloud services and how to deal with the challenges. The intention to post it here was to support Chris with a impression of the used glass
There is not much more. It’s just a “Film Coated Plywood” (siebdruckplatte) with two U-profiles (better would be a J-Profile, but i was not able to find a fitting one)
The Monitor is on one side fixed by the mirror glass and on the backside withave a wooden bar what is also the hock to adopt it on the wall…
If everything is final setup I will put into the plate to mount the cam behind the glass.
Like mentioned by lolobyte this is not based on node.js. I started in node.js but swiched than to my primary development plattform java(fx). I belive it would be easy for a skilled node.js developer to migrate it to node.js due to it is primary just connecting cloud API’s.
You can find some more information see and the high level architecture in this LinkedIn Article
Hi together,
my mirror project makes process. Below you can find the result as well of some snapshots of the building process. Looking forward to your feedback :-)