Open sjo00 opened 4 years ago
Some more.
First i update npm
sudo npm install npm -g
ttn@loragateway:~/iot/fody-tempus-pro-logger $ npm -v
6.13.7
then cleared cache and installed
npm cache clean -f
npm i -g npm-upgrade
and upgraded all with
npm-upgrade
then checked packages
npm audit
and fixed with
npm audit fix
than noble throws some error at running, so
npm uninstall -g noble
npm install @abandonware/noble
and
npm i -g @abandonware/bluetooth-hci-socket rebuild
in node_modules i createt two symlinks
ln -s @abandonware/noble
ln -s @abandonware/bluetooth-hci-socket
than, it seems to run
ttn@loragateway:~/iot/fody-tempus-pro-logger $ ./bin/fody-tempus-pro-logger
Fody Tempus Pro logger started
but
ttn@loragateway:~/iot/fody-tempus-pro-logger $ nodejs ./test/test-main.js
/home/ttn/iot/fody-tempus-pro-logger/test/test-main.js:11 describe('run()', function() { ^
ReferenceError: describe is not defined at Object.
(/home/ttn/iot/fody-tempus-pro-logger/test/test-main.js:11:1) at Module._compile (internal/modules/cjs/loader.js:955:30) at Object.Module._extensions..js (internal/modules/cjs/loader.js:991:10) at Module.load (internal/modules/cjs/loader.js:811:32) at Function.Module._load (internal/modules/cjs/loader.js:723:14) at Function.Module.runMain (internal/modules/cjs/loader.js:1043:10) at internal/main/run_main_module.js:17:11
ttn@loragateway:~/iot/fody-tempus-pro-logger $ nodejs ./test/test-config.js
/home/ttn/iot/fody-tempus-pro-logger/test/test-config.js:4 describe('config', function() { ^
ReferenceError: describe is not defined at Object.
(/home/ttn/iot/fody-tempus-pro-logger/test/test-config.js:4:1) at Module._compile (internal/modules/cjs/loader.js:955:30) at Object.Module._extensions..js (internal/modules/cjs/loader.js:991:10) at Module.load (internal/modules/cjs/loader.js:811:32) at Function.Module._load (internal/modules/cjs/loader.js:723:14) at Function.Module.runMain (internal/modules/cjs/loader.js:1043:10) at internal/main/run_main_module.js:17:11
Is there a tutorial or docu to use it? How to pair bluetooth or station?
Hello Alex,
i hope you can help me with getting Data from the Weahter Station and send it to influxdb. I am using a raspberry 3b+ (raspbian buster) and the fody tempus pro weather station.
Perhaps and if your project is outdated, you know a similar project. Possible that you know other manufacturer or productnames for the weather station. So far i know are Alecto WS-4500 and Bresser Weather Center similar.
My try from your Repo is below.
ttn@loragateway:~ $
uname -a
ttn@loragateway:~ $
cat /etc/debian_version
ttn@loragateway:~ $
nodejs --version
ttn@loragateway:~ $
npm version
ttn@loragateway:~/iot/fody-tempus-pro-logger $
./bin/fody-tempus-pro-logger
ttn@loragateway:~/iot/fody-tempus-pro-logger/test $
nodejs test-main.js
ttn@loragateway:~/iot/fody-tempus-pro-logger/test $
node test-config.js
So far so good. It seams that there are a few problems with installing
node_modules
. i tried deletingnode_modules
directory and removed package-lock.json and reinstall. settingprefix=/opt/nodejs/
in~/.npmrc
. testet some chaotic installation direct, likenpm install bluetooth-hci-socket
, all without luck.I would be very happy to receive an answer best regards