How to set scenes in the new Philips HUE API node-hue-api v.3 - philips-hue

can anyone give a description on how to set a specific scene to a specific lamp in the new node-hue-api v.3?
For example the Scene ID would be id="shshshshsh" and the Group ID group="8"
Thanks

There is an example in the github repository for the project that shows how to set a light state on a specific light as part of a scene, https://github.com/peter-murray/node-hue-api/blob/master/examples/v3/scenes/updateSceneLightState.js#L57
You mention a group in your example here though, so are you specifically referring to a GroupScene? If so the state of the lights in a GroupScene are stored in the Group itself, so you would need to modify the Group.

Related

PR creation from workorder for Material linetype

In Maximo, Workorder application, I created one record with material line type in plans tab.
after I approved the workorder, from more actions I selected view->PO information, it is not showing/else its not generating the PR.
Please assist if you know.
Either the Direct Issue flag is set for your work material and the Reorder cron task has not been configured to run or has not run yet, or the material is from a storeroom that has enough stock to cover your material requirement without causing a reorder.

Pimcore object bricks are manually added by the user

Pimcore doesnt allow inherit of product object - in the sense that oop allows. So a solution is to use object bricks to abstract the specifics of the child* product e.g. Sneaker vs Shirt. (correct?)
However, I do not want for my users to have to create a product and then associate the specific object brick manually in order to make an e.g. sneaker. Ideally they would click "create sneaker" and that would assign the correct object brick.
How would I go about the above?
The plugin code goes under /plugins/YourPlugin. You can create a skeleton plugin by Extras -> Manage Extensions and the button Create new plugin skeleton.
I did something similar some time ago where i overrode the postsave(don't remember the name) event and checked if the object was of the specific class. In that case we added some code where emails was to be sent out after the save.
I guess you can find some event where you can attach and add some logic to set the the type of the brick.

Node + Google Street View: How to check if a Street View is available in a certain radius

I'm trying to use Node and Google Street View together (Google doesn't officially support this). However, one of the things I noticed about Street View is that if you supply it with a point that doesn't have a Street View... it doesn't do anything...
I would like to use Node to reference the Google Maps API (Street View specifically) to find a point within a radius that has a Street View.
I saw a few packages like: https://github.com/moshen/node-googlemaps
but the docs aren't all that helpful. I know this API can be used to generate an image of a Street View, but I'm looking to find a point so that I can send it to a client so that they can display an interactive Street View (Street View Service).
Is any of this at all possible? This may have been worded a little bit weirdly... any questions just let me know!
Thanks!
I think this sample provided just that: https://developers.google.com/maps/documentation/javascript/examples/streetview-service
on init, they add a on click listener with sv.getPanoramaByLocation(event.latLng, 50, processSVData);, which let the street view search a point with data within 50m of the given point, then call the processSVData. Within the call back, they check if there is any points returned by checking if (status == google.maps.StreetViewStatus.OK), if so, the location that contains a street view is return in data.location.pano, which is what they used to add a marker.
I think you should be able to do the same thing in the back end too.

Channel Entries tag pair not populating in the view template

I have a working template that is included in the right rail of my EE site.
This template pulls from a channel that simply relates entries from other channels to this specific channel on a one-to-one basis and is used as a sort of "highlight reel" or "Top 5" for the sidebar. The relationship is using Playa to link multiple different channel's entries to this one.
It works throughout the site with exception to an entry's view template. In that template it only returns with highlighted entries that match that channel. I am simply using the same embed code for another template that is embedded into every page. It embeds like:
index <- right_rail <- highlight_reel
For example, the highlight reel can pull from Activities, Events, and Food channels using Playa for the relationship. When you navigate to the view template of a particular Events entry this only displays Events entries that have been related.
Is there a configuration or parameter that needs to be set in order to keep the results consistent?
Let me know if there is anything else that would help you help me.
Some additional code for the loop:
{exp:channel:entries channel="most_popular" dynamic="yes" orderby="date" sort="desc" limit="5"}
{exp:playa:children field="popular_entry" status="not closed" disable="members" limit="1"}
Thanks a bundle in advance!
I was directed to a similar question that was asked and it totally solved the issue.
My mistake was that I had assumed that it would maintain the entry_id but by embedding it I was able to solve it.
Thanks a bunch!

Display text (label) not updating

I have done a change in my DEV environment (which holds all the Unmanaged solutions) on a solution in which there is the Account entity.
I made a few changes on display text for specific fields (ex: I had a field whose display text was 'Primary Contact', now has been changed to 'Billing Contact').
In DEV, the changes do come up OK after publishing all customizations, but is not updated in the target TEST environment under which I imported the solution as Managed.
I made sure to increment the version # of said solution and schema names have not changed.
Any ideas ? Thanks.
EDIT: In my DEV env. I did export/import translations and changed the display strings/localized labels to support french, the new french label has made it to the target, but the english label has not. (??).
The way solutions are handled within CRM 2011/2013 are that unmanaged solutions sit on top of any managed solutions. It's more than likely you have an unmanaged solution with the account entity included and the "Primary Contact" set as the label.
http://i.msdn.microsoft.com/dynimg/IC443916.png
Alternatively, this could be related to the UR you are presently on. Prior to UR12, this was an issue. To remedy, you can either create a brand new managed solution with this label change or update the roll-up. Unfortunately, incrementing an existing solution doesn't update labels appropriately (prior to UR 12).
https://community.dynamics.com/crm/f/117/t/88156.aspx

Resources