Forum Discussion

pak's avatar
pak
Icon for Helper II rankHelper II
8 years ago

Machines status real-time view

Hello,

 

Is there a way to show a map of factory plant with actual state of, for example 4 machines.

I got information every 10 secounds that tells me what is the state of the each machine (0 as stand by, 1 as working).

Now i have few tiles with Machines title and values 1 or 0. But this view is not usefull.

What i would like to do is for example is to draw factory plant map and for every machine draw "lights" - green for work (1) and yellow for stand by (0).

I use Azure IoTHub -> StreamAnalytics -> PowerBI

 

TIMEM1WM2WM3WM4W
"2018-02-19T13:16:57.0000000"1110
"2018-02-19T13:17:07.0000000"1010
"2018-02-19T13:17:10.0000000"0111
"2018-02-19T13:17:13.0000000"0011

 

Anyone knows how to do something like that? Is that even possible?

 

Best regard
pak

3 Replies

    • pak's avatar
      pak
      Icon for Helper II rankHelper II

      Hi Greg_Deckler

       

      I tried with Visio custom visual, but not like it is in the article the data i selected by different rows.

      I want to take only last row (latest timestamp) and assign values from different columns to different elements in Visio visual. When i try to do this it doesn't work. It assign every collumn that i input to the same element even that i chose different one.

       

      • pak's avatar
        pak
        Icon for Helper II rankHelper II

        Hi all.

         

        So I need to convert this table:

        TIMEM1WM2WM3WM4W
        "2018-02-19T13:16:57.0000000"1110
        "2018-02-19T13:17:07.0000000"1010
        "2018-02-19T13:17:10.0000000"0111
        "2018-02-19T13:17:13.0000000"0011

         

        To that table:

        NAMESTATUS   
        M1W0   
        M2W0   
        M3W1   
        M4W1   


        The structure of the secound table should be same all the time. With every new message values in every row of column STATUS should be updated (values from first table from row with the latest timestamp should be pasted).

        I think i should do this in StreamAnalytics. Can anyone have idea how?