IoT Sandbox - Smart Chef

This may be a dumb question.

When I start my demo (Smart Chef) and then log into the dashboard, I see the JSON data packets scroll across the screen.

If I leave the Dashboard and go to, for example, Data Viewer, then return to Dashboard, the packets have stopped scrolling.  Do I then need to restart the S3A7 kit?

Also, if I select the Single User Scatter Chart, select a number to display (pressure), it will display it once but not generate a historical chart (I have selected the correct range of dates).  Then, when I leave and go to Data Viewer, once again, this is lost when I return to Dashboard.

Is there a document that describes what to do or can you tell me how to save this?  Thank you.

  • Hi Rick,

    The dashboard has multiple widgets (and sections), and 'Real Time Events Log' is one of the sections available there.  This section will show the most recent 1000 events received, after 'loading' of the log viewer widget.  Once you reload the page, you'll only get the logs that are published after that reload/re-visit.  You'll also see a 'pause/play' button on the header of this widget.  Sometimes, you'll see that widget is in paused state (and you'll see the play button in that case), and by just simply resuming the widget, you'll start seeing the events.  Right next to that icon, you'll also see 'Clear event log' and 'Save to file' buttons.  Save button will let you save these logs to a valid JSON text file, for you to analyze data and discover your data patterns.

    I hope this resolves your concern.

  • For further technical documentation, refer to renesas-docs.mediumone.com

    For tutorials, refer to our blog site @ renesas-blog.mediumone.com

  • Thank you.  What you write below makes sense.  But what I have found is that, for example, I start the Smart Chef and there will be JSON events from 14 October (when I started this) up until the latest instant.  Then, I will look at the document (renesas-docs.meiumone.com) and when I go back to the dashboard, there will be a message "Oldest Event Reached" and no JSON records.

    I may not be understanding how this is working.  To start, I would expect it to periodically display data as it reads the sensors and I do not need to create an event.  Is that the case?  In reading through the manual below, do I need to "send" an event - say some sort of command line event via a program on my laptop using CURL?  

    I feel I need to understand this part before I start adding widgets, etc.  It's as if we need a "blinky" workflow but maybe one that just outputs temperature?

    Thank you.

    Rick

  • In reply to Rick C:

    Hi Rick,

    You don't need to create explicit event from CURL ... CURL is just to validate the credentials and may be manually generate the data.  Sandbox currently is designed to work with just telemetry data that uses MQTT protocol.  So as of this moment, we don't even have the live HTTP/HTTPS CURL endpoints.

    Anyways, if I understand correctly, you're looking to read your events, that have been fired from the smart chef demo running on the S3A7 kit.  There are three ways to look at this data:

    1. Live View:  This view is 'Real Time Events Log'.  This is what I explained in my earlier reply.  This view will only show the events posted after you load the web-page.  It also need to be in 'play' mode, to show you data.
    2. Data Viewer:  You'll be able to see the most recent event from your device (Users Last Values) and also your 'Data Streams' (both processed and raw types).  Your S3A7 kit is logging events through raw data stream.  So if you click on 'raw' stream, you should be able to see most recent 1000 events.  By clicking the '+' icon on the first colum, will expand that event.  You'll not be able to see more than 1000 events on this view.
    3. Workflow Studio:  The third way to access your data history is through workflows.  You can define a workflow and in your python scripts you can query the stored data.  For that you might want to consult the docs for Workflow Studio, Workflow Libraries (Analytics) and may also find this blog useful (https://blog.mediumone.com/2016/05/how-to-build-email-reports)

    I understand that it's a lot of reading, but with the kit, you're jumping through a number of hoops seamlessly, and in order to understand the whole process, you have to crawl through the rabbit hole.  In fact, it'll be a nice 'blinky' idea to have your custom project to log just the temperature data.  You can find all the tutorials on the http://renesas-blog.mediumone.com.

  • In reply to Faheem:

    Thank you - I have run the demo for a while now and am pulling the data and a lot of this is starting to make sense.  You are correct that there is a lot of reading and I will continue to do so.  One thing (more) for the 'blinky' I was thinking I would need to modify the S3 Flash image but the reality is that I can construct the 'blinky' via the workflow so that in a sense I am an abstraction layer above the actual MCU Code.

    I am working now to tackle the JSON data that I have captured in the real-time events log.  Next I'll review tutorials and start on the blinky - may try instead to do a GPS blinky via the digilent GPS module.  Appreciate you help.  Rick