jovm
August 23, 2018, 4:31pm
1
Hi,
I have flashed Ruvitag with Espruino package firmware (Find a binary - Espruino ) by NRF.
I have implemented this example by using Expruino Web IDE:
var Ruuvitag = require(“Ruuvitag”);
Ruuvitag.setEnvOn(true);
Ruuvitag.setAccelOn(true);
console.log(Ruuvitag.getEnvData());
// prints { “temp”: 23.70573815741, “pressure”: 1017.27733597036, “humidity”: 42.0771484375 }
console.log(Ruuvitag.getAccelData());
// prints { “x”: 3.90625, “y”: -7.8125, “z”: 984.375 }
But I see the following error:
Uncaught Error: Module Ruuvitag not found
at line 1 col 34
var Ruuvitag = require(“Ruuvitag”);
It seems that not detect Ruuvitag library. Any idea why I have not access to Ruuvitag library?
Thanks in advance for your support.
Regards,
Jorge
otso
August 23, 2018, 4:54pm
2
Hello,
I ran your example right now and there was nothing wrong with it, screenshot below.
Here’s a few things you could check:
Is your Espruino the version for RuuviTag and 1v99 version?
is your Web IDE version 0.70.0 (check the about in gear in upper right corner)
Which OS/Browser you’re on?
jovm
August 24, 2018, 7:13am
3
otso:
Is your Espruino the version for RuuviTag and 1v99 version?
is your Web IDE version 0.70.0 (check the about in gear in upper right corner)
Which OS/Browser you’re on?
Hello,
Thanks for your quick answer.
Regarding your questions:
Is your Espruino the version for RuuviTag and 1v99 version?
Yes I have loaded the 1v99 ruuvitag version
is your Web IDE version 0.70.0 (check the about in gear in upper right corner)
I have Web IDE version 0.69.0 (Native application)
Which OS/Browser you’re on?
I’m executing Espruino in Windows 8.1
Thanks and regards,
Jorge
otso
August 24, 2018, 8:02am
4
Hello,
Maybe this is related to the native application somehow? I’ve used Espruino on Windows 8.1 earlier so there should not be any problem though. I’m on Mac/Chrome Web IDE right now
0.69 seems to be the latest binary available so it should be ok. Is there anything on the console which would seem out of place? You can find the console at the settings.
jovm
August 24, 2018, 9:38am
5
Hello,
I have checked the console traces and I see these error messages:
Noble: module couldn’t be loaded, no node.js Bluetooth Low Energy Error: No compatible USB Bluetooth 4.0 device found!
Disable Web Bluetooth as we have Winnus instead
When I connect to Ruuvitag I see this error:
Loading http://www.espruino.com/json/RUUVITAG.json
ERROR: getURL(“h ttp://www.espruino.com/json/RUUVITAG.json”) error : Error: connect ETIMEDOUT 93.93.135.13:80
Board JSON loaded
When I send the code I see this error:
ERROR: getURL(“h ttps://www.espruino.com/modules/Ruuvitag.min.js”) error : Error: connect ETIMEDOUT 93.93.135.13:443
ERROR: getURL(“h ttps://www.espruino.com/modules/Ruuvitag.js”) error : Error: connect ETIMEDOUT 93.93.135.13:443
WARNING: [notify_warn] Module Ruuvitag not found
Thanks for your support !!!
Regards,
Jorge
otso
August 24, 2018, 9:44am
6
Hello,
It seems that you have a problem with your connection to the Espruino servers.
Is your development computer online? Are you behind a restrictive firewall?
jovm
August 24, 2018, 9:51am
7
Hello,
Yes the network where I tested have a restrictive firewall
I have tried with a staff network and It works !!!
Thanks a lot for your support !!!
Regards,
Jorge
1 Like