Code Monkey home page Code Monkey logo

Comments (18)

fedy2 avatar fedy2 commented on September 2, 2024

Here some output from the console:

smartjs 30048/2484$ Wifi.status()
got ip
smartjs 29464/2388$ Wifi.ip()
192.168.1.108
smartjs 29464/2388$

from mongoose-os.

mkmik avatar mkmik commented on September 2, 2024

Thank you, we broke the dashboard visualisation.

Could you check if you an see your raw data on https://dashboard.cesanta.com/#/db by executing this query:

{src=~".*"}

?

from mongoose-os.

fedy2 avatar fedy2 commented on September 2, 2024

I get this result:

[[{"__name__":"temperature","sensor":"1","src":"//api.cesanta.com/d/dev_84227"},[[1443690822306,37.5488386757]]],[{"__name__":"temperature","src":"//api.cesanta.com/d/fakedevice03"},[[1443628202572,27.03]]],[{"__name__":"temperature","src":"//api.cesanta.com/d/fakedevice01"},[[1443628201987,13.94]]],[{"__name__":"temperature","src":"//api.cesanta.com/d/fakedevice02"},[[1443628202260,19.3]]]]

I don't remember if dev_84227 is an old device. Anyway I don't see data from the last device.

from mongoose-os.

cpq avatar cpq commented on September 2, 2024

@fedy2 I've restored the visualization part, could you try again please?

from mongoose-os.

fedy2 avatar fedy2 commented on September 2, 2024

I see the chart scrolling on the left but no values on it. In the IDE area the device results offline.

from mongoose-os.

mkmik avatar mkmik commented on September 2, 2024

@fedy2, we currently have a bug with multiple tabs/windows. Could you see if you have the same problem when you have only one tab/window open on dashboard.cesanta.com ?

from mongoose-os.

fedy2 avatar fedy2 commented on September 2, 2024

@mmikulicic I'm using only one browser tab/windows with one "instance" of the dashboard. When I've used the tab term I've referred to the different areas of the dashboard.

from mongoose-os.

mkmik avatar mkmik commented on September 2, 2024

ok, we fixed that, unrelated, bug anyway

from mongoose-os.

imax9000 avatar imax9000 commented on September 2, 2024

@fedy2 what is the ID your device is using now?

from mongoose-os.

fedy2 avatar fedy2 commented on September 2, 2024

ID: //api.cesanta.com/d/dev_65156

from mongoose-os.

imax9000 avatar imax9000 commented on September 2, 2024

From what I see in the logs your device never connected and all commands sent to it ended up in the queue.

from mongoose-os.

fedy2 avatar fedy2 commented on September 2, 2024

I see it in my network. There is a way to test if it can communicate with your servers? Any console command?

from mongoose-os.

fedy2 avatar fedy2 commented on September 2, 2024

I've run this code:

Http.get("http://jsonip.com", function(data, error) {
  if (error) {
    print("error ", error);
  } else {
    print("my ip is ", JSON.parse(data).ip);
  }
});

And I got the IP printed:

smartjs 12704/1812$ my ip is  87.XX.XX.195 

So I think the device can communicate with the world.

from mongoose-os.

imax9000 avatar imax9000 commented on September 2, 2024

And you ran demo() function, right?

from mongoose-os.

fedy2 avatar fedy2 commented on September 2, 2024

Nope :( forgot about, sorry.
I've tried now to run it different times but the ESP seems hanging.
The last time I got this:

smartjs 16912/1980$ demo()
Initializing demo data source 
Starting temperature push demo in background, type Debug.mode(1) to see activity 

 ets Jan  8 2013,rst cause:4, boot mode:(1,0)

wdt reset

Can be a power issue?

from mongoose-os.

mkmik avatar mkmik commented on September 2, 2024

Please turn on debug logs with Debug.mode(1) and try again

from mongoose-os.

fedy2 avatar fedy2 commented on September 2, 2024

Here the output:

demo()
Initializing demo data source 
Starting temperature push demo in background, type Debug.mode(1) to see activity 
Pushing metric 

 ets Jan  8 2013,rst cause:4, boot mode:(3,0)

wdt reset
load 0x40100000, len 26380, room 16 
tail 12
chksum 0xd1
ho 0 tail 12 room 4
load 0x3ffe8000, len 2564, room 12 
tail 8
chksum 0x1c
load 0x3ffe8a10, len 6320, room 0 
tail 0
chksum 0xbe
csum 0xbe
����  y�r�'����θ��������������p��b�#�n�$��b��>����rn�$����r����n�����rn���N����������������8��b�#�n�$�p�����r�'bl����;����� n�{���l���  ����b����ؒ���`������#��� y�r�'����θ������������8��b�����nn�$��b|����rn�$�Ì�r������������rn�ď����l���r����n�������rn���θ�����������l���r�����?b��r����Ă���p`�����8��Ē`�Ĝ�r������n��������NDz�mode : softAP(1a:fe:34:9c:a2:a1)
dhcp server start:(ip:192.168.4.1,mask:255.255.255.0,gw:192.168.4.1)
add if1
bcn 100
apnetif->dhcps_pcb = 1073709328
bcn 0
del if1
usl
sul 0 0
mode : sta(18:fe:34:9c:a2:a1)
add if0

Device id: //api.cesanta.com/d/dev_76813 
Device psk: psk_XXXXX
Cloud: //api.cesanta.com 
HELO! Type some JS. See https://github.com/cesanta/smart.js for more info. 

smartjs 15128/1968$ 

from mongoose-os.

alashkin avatar alashkin commented on September 2, 2024

Demo function was removed.
Now we offer sendRandomData and I do believe it works.

from mongoose-os.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.