Closed dennisangemi closed 2 years ago
Cloudbbq is designed primarily to stream data to a MQTT broker. Most MQTT brokers, including io.adafruit.com that I use in my tests have some sort of data download functionality. That said it would be pretty trivial to modify the code to log to a file instead of the console if you are comfortable with nodejs.
Thank you so much for the answer and for this project. I tried to install launching yarn install
from windows terminal (with ubuntu) but there's an error:
[4/4] Building fresh packages...
[1/5] ⢀ usb
[2/5] ⢀ grpc
[-/5] ⢀ waiting...
[-/5] ⢀ waiting...
warning Error running install script for optional dependency: "/mnt/c/Users/Dennis Angemi/Documents/GitHub/cloudbbq/node_modules/usb: Command
failed.
Exit code: 1
Command: prebuild-install --verbose || node-gyp rebuild
Arguments:
Directory: /mnt/c/Users/Dennis Angemi/Documents/GitHub/cloudbbq/node_modules/usb
Output:
prebuild-install info begin Prebuild-install version 5.3.6
prebuild-install info looking for cached prebuild @ /home/dennis/.npm/_prebuilds/427e1d-usb-v1.6.5-node-v93-linux-x64.tar.gz
prebuild-install http request GET https://github.com/tessel/node-usb/releases/download/v1.6.5/usb-v1.6.5-node-v93-linux-x64.tar.gz
prebuild-install http 404 https://github.com/tessel/node-usb/releases/download/v1.6.5/usb-v1.6.5-node-v93-linux-x64.tar.gz
prebuild-install WARN install No prebuilt binaries found (target=16.13.1 runtime=node arch=x64 libc= platform=linux)
gyp info it worked if it ends with ok
gyp info using node-gyp@8.3.0
gyp info using node@16.13.1 | linux | x64
gyp info find Python using Python version 3.8.10 found at \"/usr/bin/python3\"
gyp info spawn /usr/bin/python3
gyp info spawn args [
gyp info spawn args '/usr/local/lib/node_modules/npm/node_modules/node-gyp/gyp/gyp_main.py',
gyp info spawn args 'binding.gyp',
gyp info spawn args '-f',
gyp info spawn args 'make',
gyp info spawn args '-I',
gyp info spawn args '/mnt/c/Users/Dennis Angemi/Documents/GitHub/cloudbbq/node_modules/usb/build/config.gypi',
gyp info spawn args '-I',
gyp info spawn args '/usr/local/lib/node_modules/npm/node_modules/node-gyp/addon.gypi',
gyp info spawn args '-I',
gyp info spawn args '/home/dennis/.cache/node-gyp/16.13.1/include/node/common.gypi',
gyp info spawn args '-Dlibrary=shared_library',
gyp info spawn args '-Dvisibility=default',
gyp info spawn args '-Dnode_root_dir=/home/dennis/.cache/node-gyp/16.13.1',
gyp info spawn args '-Dnode_gyp_dir=/usr/local/lib/node_modules/npm/node_modules/node-gyp',
gyp info spawn args '-Dnode_lib_file=/home/dennis/.cache/node-gyp/16.13.1/<(target_arch)/node.lib',
gyp info spawn args '-Dmodule_root_dir=/mnt/c/Users/Dennis Angemi/Documents/GitHub/cloudbbq/node_modules/usb',
gyp info spawn args '-Dnode_engine=v8',
gyp info spawn args '--depth=.',
gyp info spawn args '--no-parallel',
gyp info spawn args '--generator-output',
gyp info spawn args 'build',
gyp info spawn args '-Goutput_dir=.'
gyp info spawn args ]
gyp info spawn make
gyp info spawn args [ 'BUILDTYPE=Release', '-C', 'build' ]
make: Entering directory '/mnt/c/Users/Dennis Angemi/Documents/GitHub/cloudbbq/node_modules/usb/build'
CC(target) Release/obj.target/libusb/libusb/libusb/core.o
CC(target) Release/obj.target/libusb/libusb/libusb/descriptor.o
CC(target) Release/obj.target/libusb/libusb/libusb/hotplug.o
CC(target) Release/obj.target/libusb/libusb/libusb/io.o
CC(target) Release/obj.target/libusb/libusb/libusb/strerror.o
CC(target) Release/obj.target/libusb/libusb/libusb/sync.o
CC(target) Release/obj.target/libusb/libusb/libusb/os/poll_posix.o
CC(target) Release/obj.target/libusb/libusb/libusb/os/threads_posix.o
CC(target) Release/obj.target/libusb/libusb/libusb/os/linux_usbfs.o
CC(target) Release/obj.target/libusb/libusb/libusb/os/linux_udev.o
../libusb/libusb/os/linux_udev.c:40:10: fatal error: libudev.h: No such file or directory
40 | #include <libudev.h>
| ^~~~~~~~~~~
compilation terminated.
make: *** [libusb.target.mk:152: Release/obj.target/libusb/libusb/libusb/os/linux_udev.o] Error 1
make: Leaving directory '/mnt/c/Users/Dennis Angemi/Documents/GitHub/cloudbbq/node_modules/usb/build'
gyp ERR! build error
gyp ERR! stack Error: `make` failed with exit code: 2
gyp ERR! stack at ChildProcess.onExit (/usr/local/lib/node_modules/npm/node_modules/node-gyp/lib/build.js:194:23)
gyp ERR! stack at ChildProcess.emit (node:events:390:28)
gyp ERR! stack at Process.ChildProcess._handle.onexit (node:internal/child_process:290:12)
gyp ERR! System Linux 5.10.16.3-microsoft-standard-WSL2
gyp ERR! command \"/usr/local/bin/node\" \"/usr/local/lib/node_modules/npm/node_modules/node-gyp/bin/node-gyp.js\" \"rebuild\"
gyp ERR! cwd /mnt/c/Users/Dennis Angemi/Documents/GitHub/cloudbbq/node_modules/usb
[-/5] ⠁ waiting...
[2/5] ⠁ grpc
[-/5] ⠂ waiting...
[-/5] ⠂ waiting...
[-/5] ⠂ waiting...
this loading doesn't finish :|
what am I doing wrong? thx again
I don't have a great Windows test environment right now, but let me see if I can get it added to CI to see if that gives me any clues. I believe that others have gotten cloudbqq to work on windows in the past, but it's a bit trickier than linux.
Ugh... this does really look like a pain to setup on windows, but I think this is what's making it not work for you: https://github.com/abandonware/noble#windows
Thx for your time. You answered my question so i close this issue ;)
Hi! Sorry for OT. Is there a way to download csv data from cloudbbq application?