Welcome to the Pycom forum Forum
    • \[\[global:header.categories\]\]
    • \[\[global:header.recent\]\]
    • \[\[global:header.tags\]\]
    • \[\[global:header.popular\]\]
    • Login

    Explore Pybytes | Official Documentation | Report a Firmware Bug/Issue | GitHub

    [solved] No data on dash board since update

    Scheduled Pinned Locked Moved Pybytes IoT platform
    beta
    8 Posts 3 Posters 900 Views 3 Watching
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • J Offline
      jmpratt
      last edited by jirkakrepl

      I updated the firmware to 1.18.2.r0 and everything works fine but no data is displayed in the dashboard widgets. The Data page shows that all my signals are being received, just no graphs on the Dashboard. The Configuration page says my activation token has expired. Is that the cause?

      -Jason

      1 Reply Last reply Reply Quote 0
      • J Offline
        jirkakrepl
        last edited by jirkakrepl

        Hi Jason, we're going to take a look at this. Can you "live updates" when you receive your signals on Data page?

        Can you go to the Dashboard page, reload the browser, open your web browser console and send us a screenshot, please?

        Expired activation token is standard behavior. This token is used only when a device is being added to Pybytes by firmware updater. Activation token expires after one hour.

        software developer @ Pycom

        Have you checked out our docs for the answer? (Now with an easy search function) https://docs.pycom.io

        Check out our newly revamped device management platform, Pybytes! https://pybytes.pycom.io/

        N 1 Reply Last reply Reply Quote 0
        • N Offline
          nervencid @jirkakrepl
          last edited by

          @jirkakrepl I beg your pardon:

          But i have similar issue: the data seems to be recived as is shown in the table, but the graphs is not displayed i send the screenshoot.

          ![alt text](0_1548481228015_Pycom.png image url)

          Thank you

          J 1 Reply Last reply Reply Quote 0
          • J Offline
            jirkakrepl @nervencid
            last edited by

            Hi @nervencid, thank you for letting us know.

            From the main table, it seems to me that data you receive from signal might be in the array.
            How does your send_signal function look on your device? Are you sure you're sending float dataType from Python code, please?

            software developer @ Pycom

            Have you checked out our docs for the answer? (Now with an easy search function) https://docs.pycom.io

            Check out our newly revamped device management platform, Pybytes! https://pybytes.pycom.io/

            N 2 Replies Last reply Reply Quote 0
            • N Offline
              nervencid @jirkakrepl
              last edited by nervencid

              @jirkakrepl Hello and thank you for your answer there is my code:

              # Import what is necessary to create a thread
              import _thread
              from time import sleep
              
              # Increment index used to scan each point from vector sensors_data
              def inc(index, vector):
                  if index < len(vector)-1:
                      return index+1
                  else:
                      return 0
              
              # Define your thread's behaviour, here it's a loop sending sensors data every 10 seconds
              def send_env_data():
                  idx = 0
                  sensors_data = [0, -0.2, -0.5, -0.7, -0.8, -0.9, -0.9, -0.9, -0.8, -0.6, -0.4, -0.2, 0, 0.3, 0.5, 0.7, 0.8, 0.9, 0.9, 0.9, 0.8, 0.6, 0.4, 0.1]
              
                  while (pybytes):
                      pybytes.send_virtual_pin_value(False, 1, sensors_data[idx])
                      idx = inc(idx, sensors_data)
                      sleep(10)
              
              # Start your thread
              _thread.start_new_thread(send_env_data, ())
              
              J 1 Reply Last reply Reply Quote 0
              • J Offline
                jirkakrepl @nervencid
                last edited by jirkakrepl

                Hi, @nervencid

                thank you for your code and reporting this issue. Please change your function send_virtual_pin_value to sendSignal. Documentation is also now updated: https://docs.pycom.io/pybytes/dashboard.html

                here's the whole code:

                # Import what is necessary to create a thread
                import _thread
                from time import sleep
                
                # Increment index used to scan each point from vector sensors_data
                def inc(index, vector):
                    if index < len(vector)-1:
                        return index+1
                    else:
                        return 0
                
                # Define your thread's behaviour, here it's a loop sending sensors data every 10 seconds
                def send_env_data():
                    idx = 0
                    sensors_data = [0, -0.2, -0.5, -0.7, -0.8, -0.9, -0.9, -0.9, -0.8, -0.6, -0.4, -0.2, 0, 0.3, 0.5, 0.7, 0.8, 0.9, 0.9, 0.9, 0.8, 0.6, 0.4, 0.1]
                
                    while (pybytes):
                        pybytes.send_signal(1, sensors_data[idx])
                        idx = inc(idx, sensors_data)
                        sleep(10)
                
                # Start your thread
                _thread.start_new_thread(send_env_data, ())
                

                We broke send_virtual_pin_value function (we're going to fix it). It sends values, but they are inside one element array like [-0.8].

                I created this screenshot to illustrate that. We're going to fix send_virtual_pin_value function. For now, use send_signal, please.

                0_1548838269180_Screen Shot 2019-01-30 at 09.42.23.png

                software developer @ Pycom

                Have you checked out our docs for the answer? (Now with an easy search function) https://docs.pycom.io

                Check out our newly revamped device management platform, Pybytes! https://pybytes.pycom.io/

                J 1 Reply Last reply Reply Quote 0
                • N Offline
                  nervencid @jirkakrepl
                  last edited by

                  @jirkakrepl Hello again:

                  I rewritted the code and works fine thank you:

                  But you must specify that into:

                  pybytes.send_signal(1, sensors_data[idx])
                  

                  where the "1" is for "Signal" parameter on pybytes and no the name

                  This the code that i used (the comments are in Spanish)

                  #ANTES DE TODO VERIFICAR QUE EL DISPOSITIVO ESTE AGREGADO A PYBYTES
                  #Importamos las librerias necesarias para crear un hilo
                  import _thread
                  from time import sleep
                  
                  #Definimos una funcion que va recorriendo el vector continuamente
                  def inc(index, vector):
                      if index < len(vector)-1:
                          return index+1
                      else:
                          return 0
                  
                  # Define your thread's behaviour, here it's a loop sending sensors data every 10 seconds
                  def send_env_data():
                      #Indice inicial
                      idx = 0
                      #Datos sinteticos a enviar
                      sensors_data = [0, -0.2, -0.5, -0.7, -0.8, -0.9, -0.9, -0.9, -0.8, -0.6, -0.4, -0.2, 0, 0.3, 0.5, 0.7, 0.8, 0.9, 0.9, 0.9, 0.8, 0.6, 0.4, 0.1]
                  
                      #Mientras estemos conectados a pybytes enviamos los datos
                      while (pybytes):
                  
                          '''
                          ENVIAMOS DATOS:
                  
                          El numero '1' corresponde a la etiqueta 'Signal' (y no 'Name') en la plataforma PYBYTES
                          cuando es creada dicha 'Signal' verificar que coincida antes de enviar los datos
                          '''
                          
                          pybytes.send_signal(1, sensors_data[idx])
                          #Incrementamos o reiniciamos el indice para recorrer el arreglo
                          idx = inc(idx, sensors_data)
                          sleep(10)
                  
                  # Iniciamos un nuevo hilo
                  _thread.start_new_thread(send_env_data, ())
                  
                  1 Reply Last reply Reply Quote 1
                  • J Offline
                    jmpratt @jirkakrepl
                    last edited by

                    @jirkakrepl Thanks for the response. I updated my code with the new command and it works fine.

                    1 Reply Last reply Reply Quote 1

                    Hello! It looks like you're interested in this conversation, but you don't have an account yet.

                    Getting fed up of having to scroll through the same posts each visit? When you register for an account, you'll always come back to exactly where you were before, and choose to be notified of new replies (either via email, or push notification). You'll also be able to save bookmarks and upvote posts to show your appreciation to other community members.

                    With your input, this post could be even better 💗

                    Register Login
                    • 1 / 1
                    • First post
                      Last post

                    Pycom on Twitter

                    Pycom