Git Product home page Git Product logo

tempiture's People

Contributors

kyleflan avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar

tempiture's Issues

docker-hypriot

Good evening, I am having an issue with getting the Docker-Hypriot to install. I keep getting this error:

Get:4 https://packagecloud.io/Hypriot/Schatzkiste/debian jessie InRelease [23.5 kB]
Err:4 https://packagecloud.io/Hypriot/Schatzkiste/debian jessie InRelease
  The following signatures couldn't be verified because the public key is not available: NO_PUBKEY 6FD547CACEBBD6E9
Reading package lists... Done
W: GPG error: https://packagecloud.io/Hypriot/Schatzkiste/debian jessie InRelease: The following signatures couldn't be verified because the public key is not available: NO_PUBKEY 6FD547CACEBBD6E9
E: The repository 'https://packagecloud.io/Hypriot/Schatzkiste/debian jessie InRelease' is not signed.
N: Updating from such a repository can't be done securely, and is therefore disabled by default.
N: See apt-secure(8) manpage for repository creation and user configuration details.

Anyone know how to rectify this?
Thanks

How to get the temps into my own .js file.

I can not figure out how to use my own .js and pull the temps that Grafana is using. I would like to tie some other functions with the temps. I am very new to raspberry Pi and node.js The program is great and works very well. Thank you for your hard work.

Error during NPM build

Hi, when trying to run the setup.sh script, once it gets to the npm install setup, errors are encountered. Any ideas what might be causing this issue? Ouput from the script run below

pi@tempiture:~/Documents/development/smoker/tempiture $ sudo ./setup.sh

================================================================================

                          DEPRECATION WARNING                            

Node.js 6.x LTS Boron is no longer actively supported!

You will not receive security or critical stability updates for this version.

You should migrate to a supported version of Node.js as soon as possible.
Use the installation script that corresponds to the version of Node.js you
wish to install. e.g.

Please see https://github.com/nodejs/Release for details about which
version may be appropriate for you.

The NodeSource Node.js distributions repository contains
information both about supported versions of Node.js and supported Linux
distributions. To learn more about usage, see the repository:
https://github.com/nodesource/distributions

================================================================================

Continuing in 20 seconds ...

Installing the NodeSource Node.js 6.x LTS Boron repo...

Populating apt-get cache...

Confirming "buster" is supported...

Adding the NodeSource signing key to your keyring...

Creating apt sources list file for the NodeSource Node.js 6.x LTS Boron repo...

Running apt-get update for you...

Run sudo apt-get install -y nodejs to install Node.js 6.x LTS Boron and npm

You may also need development tools to build native addons:

 sudo apt-get install gcc g++ make

To install the Yarn package manager, run:

 curl -sL https://dl.yarnpkg.com/debian/pubkey.gpg | sudo apt-key add -
 echo "deb https://dl.yarnpkg.com/debian/ stable main" | sudo tee /etc/apt/sources.list.d/yarn.list
 sudo apt-get update && sudo apt-get install yarn

Reading package lists... Done
Building dependency tree
Reading state information... Done
nodejs is already the newest version (12.18.1-1nodesource1).
The following packages were automatically installed and are no longer required:
libc-ares2 libuv1 nodejs-doc rpi-eeprom-images
Use 'sudo apt autoremove' to remove them.
0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.
Reading package lists... Done
Building dependency tree
Reading state information... Done
jq is already the newest version (1.5+dfsg-2+b1).
The following packages were automatically installed and are no longer required:
libc-ares2 libuv1 nodejs-doc rpi-eeprom-images
Use 'sudo apt autoremove' to remove them.
0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.
Reading package lists... Done
Building dependency tree
Reading state information... Done
python-pip is already the newest version (18.1-5+rpt1).
The following packages were automatically installed and are no longer required:
libc-ares2 libuv1 nodejs-doc rpi-eeprom-images
Use 'sudo apt autoremove' to remove them.
0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.
/usr/bin/pm2 -> /usr/lib/node_modules/pm2/bin/pm2
/usr/bin/pm2-dev -> /usr/lib/node_modules/pm2/bin/pm2-dev
/usr/bin/pm2-docker -> /usr/lib/node_modules/pm2/bin/pm2-docker
/usr/bin/pm2-runtime -> /usr/lib/node_modules/pm2/bin/pm2-runtime
npm WARN optional SKIPPING OPTIONAL DEPENDENCY: fsevents@~2.1.2 (node_modules/pm2/node_modules/chokidar/node_modules/fsevents):
npm WARN notsup SKIPPING OPTIONAL DEPENDENCY: Unsupported platform for [email protected]: wanted {"os":"darwin","arch":"any"} (current: {"os":"linux","arch":"arm"})

[email protected] install /home/pi/Documents/development/smoker/tempiture/node_modules/spi-device
node-gyp rebuild

make: Entering directory '/home/pi/Documents/development/smoker/tempiture/node_modules/spi-device/build'
CXX(target) Release/obj.target/spi/src/spi.o
In file included from ../../nan/nan.h:190,
from ../src/spi.cc:2:
../../nan/nan_maybe_43_inl.h: In function ‘Nan::Maybe Nan::ForceSet(v8::Localv8::Object, v8::Localv8::Value, v8::Localv8::Value, v8::PropertyAttribute)’:
../../nan/nan_maybe_43_inl.h:112:15: error: ‘class v8::Object’ has no member named ‘ForceSet’
return obj->ForceSet(isolate->GetCurrentContext(), key, value, attribs);
^~~~~~~~
In file included from ../../nan/nan_converters.h:59,
from ../../nan/nan.h:195,
from ../src/spi.cc:2:
../../nan/nan_converters_43_inl.h: In static member function ‘static Nan::imp::ToFactoryBasev8::Boolean::return_t Nan::imp::ToFactoryv8::Boolean::convert(v8::Localv8::Value)’:
../../nan/nan_converters_43_inl.h:18:69: warning: ‘v8::MaybeLocalv8::Boolean v8::Value::ToBoolean(v8::Localv8::Context) const’ is deprecated: ToBoolean can never throw. Use Local version. [-Wdeprecated-declarations]
val->To ## TYPE(v8::Isolate::GetCurrent()->GetCurrentContext())
^
../../nan/nan_converters_43_inl.h:22:1: note: in expansion of macro ‘X’
X(Boolean)
^
In file included from /home/pi/.cache/node-gyp/12.18.1/include/node/v8-internal.h:14,
from /home/pi/.cache/node-gyp/12.18.1/include/node/v8.h:27,
from /home/pi/.cache/node-gyp/12.18.1/include/node/node.h:67,
from ../../nan/nan.h:47,
from ../src/spi.cc:2:
/home/pi/.cache/node-gyp/12.18.1/include/node/v8.h:2664:59: note: declared here
V8_WARN_UNUSED_RESULT MaybeLocal ToBoolean(
^~~~~~~~~
/home/pi/.cache/node-gyp/12.18.1/include/node/v8config.h:328:3: note: in definition of macro ‘V8_DEPRECATED’
declarator attribute((deprecated(message)))
^~~~~~~~~~
In file included from ../../nan/nan_converters.h:59,
from ../../nan/nan.h:195,
from ../src/spi.cc:2:
../../nan/nan_converters_43_inl.h: In static member function ‘static Nan::imp::ValueFactoryBase::return_t Nan::imp::ToFactory::convert(v8::Localv8::Value)’:
../../nan/nan_converters_43_inl.h:37:57: warning: ‘v8::Maybe v8::Value::BooleanValue(v8::Localv8::Context) const’ is deprecated: BooleanValue can never throw. Use Isolate version. [-Wdeprecated-declarations]
return val->NAME ## Value(isolate->GetCurrentContext());
^
../../nan/nan_converters_43_inl.h:40:1: note: in expansion of macro ‘X’
X(bool, Boolean)
^
In file included from /home/pi/.cache/node-gyp/12.18.1/include/node/v8-internal.h:14,
from /home/pi/.cache/node-gyp/12.18.1/include/node/v8.h:27,
from /home/pi/.cache/node-gyp/12.18.1/include/node/node.h:67,
from ../../nan/nan.h:47,
from ../src/spi.cc:2:
/home/pi/.cache/node-gyp/12.18.1/include/node/v8.h:2702:51: note: declared here
V8_WARN_UNUSED_RESULT Maybe BooleanValue(
^~~~~~~~~~~~
/home/pi/.cache/node-gyp/12.18.1/include/node/v8config.h:328:3: note: in definition of macro ‘V8_DEPRECATED’
declarator attribute((deprecated(message)))
^~~~~~~~~~
In file included from ../../nan/nan_new.h:189,
from ../../nan/nan.h:196,
from ../src/spi.cc:2:
../../nan/nan_implementation_12_inl.h: In static member function ‘static Nan::imp::FactoryBasev8::Function::return_t Nan::imp::Factoryv8::Function::New(Nan::FunctionCallback, v8::Localv8::Value)’:
../../nan/nan_implementation_12_inl.h:105:32: error: no matching function for call to ‘v8::Function::New(v8::Isolate*&, void (&)(const v8::FunctionCallbackInfov8::Value&), v8::Localv8::Object&)’
, obj));
^
In file included from /home/pi/.cache/node-gyp/12.18.1/include/node/node.h:67,
from ../../nan/nan.h:47,
from ../src/spi.cc:2:
/home/pi/.cache/node-gyp/12.18.1/include/node/v8.h:4275:31: note: candidate: ‘static v8::MaybeLocalv8::Function v8::Function::New(v8::Localv8::Context, v8::FunctionCallback, v8::Localv8::Value, int, v8::ConstructorBehavior, v8::SideEffectType)’
static MaybeLocal New(
^~~
/home/pi/.cache/node-gyp/12.18.1/include/node/v8.h:4275:31: note: no known conversion for argument 1 from ‘v8::Isolate*’ to ‘v8::Localv8::Context’
In file included from ../../nan/nan_new.h:189,
from ../../nan/nan.h:196,
from ../src/spi.cc:2:
../../nan/nan_implementation_12_inl.h: In static member function ‘static Nan::imp::FactoryBasev8::StringObject::return_t Nan::imp::Factoryv8::StringObject::New(v8::Localv8::String)’:
../../nan/nan_implementation_12_inl.h:337:37: error: no matching function for call to ‘v8::StringObject::New(v8::Localv8::String&)’
return v8::StringObject::New(value).Asv8::StringObject();
^
In file included from /home/pi/.cache/node-gyp/12.18.1/include/node/node.h:67,
from ../../nan/nan.h:47,
from ../src/spi.cc:2:
/home/pi/.cache/node-gyp/12.18.1/include/node/v8.h:5531:23: note: candidate: ‘static v8::Localv8::Value v8::StringObject::New(v8::Isolate*, v8::Localv8::String)’
static Local New(Isolate* isolate, Local value);
^~~
/home/pi/.cache/node-gyp/12.18.1/include/node/v8.h:5531:23: note: candidate expects 2 arguments, 1 provided
In file included from ../../nan/nan_new.h:189,
from ../../nan/nan.h:196,
from ../src/spi.cc:2:
../../nan/nan_implementation_12_inl.h:337:58: error: expected primary-expression before ‘>’ token
return v8::StringObject::New(value).Asv8::StringObject();
^
../../nan/nan_implementation_12_inl.h:337:60: error: expected primary-expression before ‘)’ token
return v8::StringObject::New(value).Asv8::StringObject();
^
In file included from ../src/spi.cc:2:
../../nan/nan.h: In function ‘v8::Localv8::Value Nan::MakeCallback(v8::Localv8::Object, v8::Localv8::Function, int, v8::Localv8::Value)’:
../../nan/nan.h:833:60: warning: ‘v8::Localv8::Value node::MakeCallback(v8::Isolate
, v8::Localv8::Object, v8::Localv8::Function, int, v8::Localv8::Value)’ is deprecated: Use MakeCallback(..., async_context) [-Wdeprecated-declarations]
v8::Isolate::GetCurrent(), target, func, argc, argv);
^
In file included from ../../nan/nan.h:47,
from ../src/spi.cc:2:
/home/pi/.cache/node-gyp/12.18.1/include/node/node.h:182:50: note: declared here
NODE_EXTERN v8::Localv8::Value MakeCallback(
^~~~~~~~~~~~
/home/pi/.cache/node-gyp/12.18.1/include/node/node.h:101:42: note: in definition of macro ‘NODE_DEPRECATED’
attribute((deprecated(message))) declarator
^~~~~~~~~~
In file included from ../src/spi.cc:2:
../../nan/nan.h:833:60: warning: ‘v8::Localv8::Value node::MakeCallback(v8::Isolate
, v8::Localv8::Object, v8::Localv8::Function, int, v8::Localv8::Value)’ is deprecated: Use MakeCallback(..., async_context) [-Wdeprecated-declarations]
v8::Isolate::GetCurrent(), target, func, argc, argv);
^
In file included from ../../nan/nan.h:47,
from ../src/spi.cc:2:
/home/pi/.cache/node-gyp/12.18.1/include/node/node.h:182:50: note: declared here
NODE_EXTERN v8::Localv8::Value MakeCallback(
^~~~~~~~~~~~
/home/pi/.cache/node-gyp/12.18.1/include/node/node.h:101:42: note: in definition of macro ‘NODE_DEPRECATED’
attribute((deprecated(message))) declarator
^~~~~~~~~~
In file included from ../src/spi.cc:2:
../../nan/nan.h: In function ‘v8::Localv8::Value Nan::MakeCallback(v8::Localv8::Object, v8::Localv8::String, int, v8::Localv8::Value
)’:
../../nan/nan.h:848:62: warning: ‘v8::Localv8::Value node::MakeCallback(v8::Isolate*, v8::Localv8::Object, v8::Localv8::String, int, v8::Localv8::Value)’ is deprecated: Use MakeCallback(..., async_context) [-Wdeprecated-declarations]
v8::Isolate::GetCurrent(), target, symbol, argc, argv);
^
In file included from ../../nan/nan.h:47,
from ../src/spi.cc:2:
/home/pi/.cache/node-gyp/12.18.1/include/node/node.h:175:50: note: declared here
NODE_EXTERN v8::Localv8::Value MakeCallback(
^~~~~~~~~~~~
/home/pi/.cache/node-gyp/12.18.1/include/node/node.h:101:42: note: in definition of macro ‘NODE_DEPRECATED’
attribute((deprecated(message))) declarator
^~~~~~~~~~
In file included from ../src/spi.cc:2:
../../nan/nan.h:848:62: warning: ‘v8::Localv8::Value node::MakeCallback(v8::Isolate
, v8::Localv8::Object, v8::Localv8::String, int, v8::Localv8::Value)’ is deprecated: Use MakeCallback(..., async_context) [-Wdeprecated-declarations]
v8::Isolate::GetCurrent(), target, symbol, argc, argv);
^
In file included from ../../nan/nan.h:47,
from ../src/spi.cc:2:
/home/pi/.cache/node-gyp/12.18.1/include/node/node.h:175:50: note: declared here
NODE_EXTERN v8::Localv8::Value MakeCallback(
^~~~~~~~~~~~
/home/pi/.cache/node-gyp/12.18.1/include/node/node.h:101:42: note: in definition of macro ‘NODE_DEPRECATED’
attribute((deprecated(message))) declarator
^~~~~~~~~~
In file included from ../src/spi.cc:2:
../../nan/nan.h: In function ‘v8::Localv8::Value Nan::MakeCallback(v8::Localv8::Object, const char
, int, v8::Localv8::Value)’:
../../nan/nan.h:863:62: warning: ‘v8::Localv8::Value node::MakeCallback(v8::Isolate
, v8::Localv8::Object, const char*, int, v8::Localv8::Value)’ is deprecated: Use MakeCallback(..., async_context) [-Wdeprecated-declarations]
v8::Isolate::GetCurrent(), target, method, argc, argv);
^
In file included from ../../nan/nan.h:47,
from ../src/spi.cc:2:
/home/pi/.cache/node-gyp/12.18.1/include/node/node.h:168:50: note: declared here
NODE_EXTERN v8::Localv8::Value MakeCallback(
^~~~~~~~~~~~
/home/pi/.cache/node-gyp/12.18.1/include/node/node.h:101:42: note: in definition of macro ‘NODE_DEPRECATED’
attribute((deprecated(message))) declarator
^~~~~~~~~~
In file included from ../src/spi.cc:2:
../../nan/nan.h:863:62: warning: ‘v8::Localv8::Value node::MakeCallback(v8::Isolate
, v8::Localv8::Object, const char*, int, v8::Localv8::Value)’ is deprecated: Use MakeCallback(..., async_context) [-Wdeprecated-declarations]
v8::Isolate::GetCurrent(), target, method, argc, argv);
^
In file included from ../../nan/nan.h:47,
from ../src/spi.cc:2:
/home/pi/.cache/node-gyp/12.18.1/include/node/node.h:168:50: note: declared here
NODE_EXTERN v8::Localv8::Value MakeCallback(
^~~~~~~~~~~~
/home/pi/.cache/node-gyp/12.18.1/include/node/node.h:101:42: note: in definition of macro ‘NODE_DEPRECATED’
attribute((deprecated(message))) declarator
^~~~~~~~~~
In file included from ../src/spi.cc:2:
../../nan/nan.h: In constructor ‘Nan::Utf8String::Utf8String(v8::Localv8::Value)’:
../../nan/nan.h:909:53: error: no matching function for call to ‘v8::Value::ToString()’
v8::Localv8::String string = from->ToString();
^
In file included from /home/pi/.cache/node-gyp/12.18.1/include/node/node.h:67,
from ../../nan/nan.h:47,
from ../src/spi.cc:2:
/home/pi/.cache/node-gyp/12.18.1/include/node/v8.h:2668:44: note: candidate: ‘v8::MaybeLocalv8::String v8::Value::ToString(v8::Localv8::Context) const’
V8_WARN_UNUSED_RESULT MaybeLocal ToString(
^~~~~~~~
/home/pi/.cache/node-gyp/12.18.1/include/node/v8.h:2668:44: note: candidate expects 1 argument, 0 provided
In file included from /home/pi/.cache/node-gyp/12.18.1/include/node/v8-internal.h:14,
from /home/pi/.cache/node-gyp/12.18.1/include/node/v8.h:27,
from /home/pi/.cache/node-gyp/12.18.1/include/node/node.h:67,
from ../../nan/nan.h:47,
from ../src/spi.cc:2:
/home/pi/.cache/node-gyp/12.18.1/include/node/v8.h:2684:31: note: candidate: ‘v8::Localv8::String v8::Value::ToString(v8::Isolate
) const’
Local ToString(Isolate* isolate) const);
^~~~~~~~
/home/pi/.cache/node-gyp/12.18.1/include/node/v8config.h:328:3: note: in definition of macro ‘V8_DEPRECATED’
declarator attribute((deprecated(message)))
^~~~~~~~~~
/home/pi/.cache/node-gyp/12.18.1/include/node/v8.h:2684:31: note: candidate expects 1 argument, 0 provided
Local ToString(Isolate* isolate) const);
^~~~~~~~
/home/pi/.cache/node-gyp/12.18.1/include/node/v8config.h:328:3: note: in definition of macro ‘V8_DEPRECATED’
declarator attribute((deprecated(message)))
^~~~~~~~~~
In file included from ../src/spi.cc:2:
../../nan/nan.h:919:74: error: no matching function for call to ‘v8::String::WriteUtf8(char*&, int, int, const int&)’
length_ = string->WriteUtf8(str_, static_cast(len), 0, flags);
^
In file included from /home/pi/.cache/node-gyp/12.18.1/include/node/node.h:67,
from ../../nan/nan.h:47,
from ../src/spi.cc:2:
/home/pi/.cache/node-gyp/12.18.1/include/node/v8.h:2878:7: note: candidate: ‘int v8::String::WriteUtf8(v8::Isolate*, char*, int, int*, int) const’
int WriteUtf8(Isolate* isolate, char* buffer, int length = -1,
^~~~~~~~~
/home/pi/.cache/node-gyp/12.18.1/include/node/v8.h:2878:7: note: no known conversion for argument 1 from ‘char*’ to ‘v8::Isolate*’
In file included from ../src/spi.cc:2:
../../nan/nan.h: In member function ‘v8::Localv8::Value Nan::Callback::Call_(v8::Isolate*, v8::Localv8::Object, int, v8::Localv8::Value) const’:
../../nan/nan.h:1477:5: warning: ‘v8::Localv8::Value node::MakeCallback(v8::Isolate
, v8::Localv8::Object, v8::Localv8::Function, int, v8::Localv8::Value)’ is deprecated: Use MakeCallback(..., async_context) [-Wdeprecated-declarations]
));
^
In file included from ../../nan/nan.h:47,
from ../src/spi.cc:2:
/home/pi/.cache/node-gyp/12.18.1/include/node/node.h:182:50: note: declared here
NODE_EXTERN v8::Localv8::Value MakeCallback(
^~~~~~~~~~~~
/home/pi/.cache/node-gyp/12.18.1/include/node/node.h:101:42: note: in definition of macro ‘NODE_DEPRECATED’
attribute((deprecated(message))) declarator
^~~~~~~~~~
In file included from ../src/spi.cc:2:
../../nan/nan.h:1477:5: warning: ‘v8::Localv8::Value node::MakeCallback(v8::Isolate
, v8::Localv8::Object, v8::Localv8::Function, int, v8::Localv8::Value)’ is deprecated: Use MakeCallback(..., async_context) [-Wdeprecated-declarations]
));
^
In file included from ../../nan/nan.h:47,
from ../src/spi.cc:2:
/home/pi/.cache/node-gyp/12.18.1/include/node/node.h:182:50: note: declared here
NODE_EXTERN v8::Localv8::Value MakeCallback(
^~~~~~~~~~~~
/home/pi/.cache/node-gyp/12.18.1/include/node/node.h:101:42: note: in definition of macro ‘NODE_DEPRECATED’
attribute((deprecated(message))) declarator
^~~~~~~~~~
In file included from ../src/spi.cc:2:
../../nan/nan.h: In member function ‘void Nan::AsyncWorker::SaveToPersistent(const char
, const v8::Localv8::Value&)’:
../../nan/nan.h:1531:64: warning: ‘bool v8::Object::Set(v8::Localv8::Value, v8::Localv8::Value)’ is deprecated: Use maybe version [-Wdeprecated-declarations]
New(persistentHandle)->Set(New(key).ToLocalChecked(), value);
^
In file included from /home/pi/.cache/node-gyp/12.18.1/include/node/v8-internal.h:14,
from /home/pi/.cache/node-gyp/12.18.1/include/node/v8.h:27,
from /home/pi/.cache/node-gyp/12.18.1/include/node/node.h:67,
from ../../nan/nan.h:47,
from ../src/spi.cc:2:
/home/pi/.cache/node-gyp/12.18.1/include/node/v8.h:3499:22: note: declared here
bool Set(Local key, Local value));
^~~
/home/pi/.cache/node-gyp/12.18.1/include/node/v8config.h:328:3: note: in definition of macro ‘V8_DEPRECATED’
declarator attribute((deprecated(message)))
^~~~~~~~~~
In file included from ../src/spi.cc:2:
../../nan/nan.h: In member function ‘void Nan::AsyncWorker::SaveToPersistent(const v8::Localv8::String&, const v8::Localv8::Value&)’:
../../nan/nan.h:1537:42: warning: ‘bool v8::Object::Set(v8::Localv8::Value, v8::Localv8::Value)’ is deprecated: Use maybe version [-Wdeprecated-declarations]
New(persistentHandle)->Set(key, value);
^
In file included from /home/pi/.cache/node-gyp/12.18.1/include/node/v8-internal.h:14,
from /home/pi/.cache/node-gyp/12.18.1/include/node/v8.h:27,
from /home/pi/.cache/node-gyp/12.18.1/include/node/node.h:67,
from ../../nan/nan.h:47,
from ../src/spi.cc:2:
/home/pi/.cache/node-gyp/12.18.1/include/node/v8.h:3499:22: note: declared here
bool Set(Local key, Local value));
^~~
/home/pi/.cache/node-gyp/12.18.1/include/node/v8config.h:328:3: note: in definition of macro ‘V8_DEPRECATED’
declarator attribute((deprecated(message)))
^~~~~~~~~~
In file included from ../src/spi.cc:2:
../../nan/nan.h: In member function ‘void Nan::AsyncWorker::SaveToPersistent(uint32_t, const v8::Localv8::Value&)’:
../../nan/nan.h:1543:44: warning: ‘bool v8::Object::Set(uint32_t, v8::Localv8::Value)’ is deprecated: Use maybe version [-Wdeprecated-declarations]
New(persistentHandle)->Set(index, value);
^
In file included from /home/pi/.cache/node-gyp/12.18.1/include/node/v8-internal.h:14,
from /home/pi/.cache/node-gyp/12.18.1/include/node/v8.h:27,
from /home/pi/.cache/node-gyp/12.18.1/include/node/node.h:67,
from ../../nan/nan.h:47,
from ../src/spi.cc:2:
/home/pi/.cache/node-gyp/12.18.1/include/node/v8.h:3508:22: note: declared here
bool Set(uint32_t index, Local value));
^~~
/home/pi/.cache/node-gyp/12.18.1/include/node/v8config.h:328:3: note: in definition of macro ‘V8_DEPRECATED’
declarator attribute((deprecated(message)))
^~~~~~~~~~
In file included from ../src/spi.cc:2:
../../nan/nan.h: In member function ‘v8::Localv8::Value Nan::AsyncWorker::GetFromPersistent(const char*) const’:
../../nan/nan.h:1549:61: warning: ‘v8::Localv8::Value v8::Object::Get(v8::Localv8::Value)’ is deprecated: Use maybe version [-Wdeprecated-declarations]
New(persistentHandle)->Get(New(key).ToLocalChecked()));
^
In file included from /home/pi/.cache/node-gyp/12.18.1/include/node/v8-internal.h:14,
from /home/pi/.cache/node-gyp/12.18.1/include/node/v8.h:27,
from /home/pi/.cache/node-gyp/12.18.1/include/node/node.h:67,
from ../../nan/nan.h:47,
from ../src/spi.cc:2:
/home/pi/.cache/node-gyp/12.18.1/include/node/v8.h:3553:51: note: declared here
V8_DEPRECATED("Use maybe version", Local Get(Local key));
^~~
/home/pi/.cache/node-gyp/12.18.1/include/node/v8config.h:328:3: note: in definition of macro ‘V8_DEPRECATED’
declarator attribute((deprecated(message)))
^~~~~~~~~~
In file included from ../src/spi.cc:2:
../../nan/nan.h: In member function ‘v8::Localv8::Value Nan::AsyncWorker::GetFromPersistent(const v8::Localv8::String&) const’:
../../nan/nan.h:1555:55: warning: ‘v8::Localv8::Value v8::Object::Get(v8::Localv8::Value)’ is deprecated: Use maybe version [-Wdeprecated-declarations]
return scope.Escape(New(persistentHandle)->Get(key));
^
In file included from /home/pi/.cache/node-gyp/12.18.1/include/node/v8-internal.h:14,
from /home/pi/.cache/node-gyp/12.18.1/include/node/v8.h:27,
from /home/pi/.cache/node-gyp/12.18.1/include/node/node.h:67,
from ../../nan/nan.h:47,
from ../src/spi.cc:2:
/home/pi/.cache/node-gyp/12.18.1/include/node/v8.h:3553:51: note: declared here
V8_DEPRECATED("Use maybe version", Local Get(Local key));
^~~
/home/pi/.cache/node-gyp/12.18.1/include/node/v8config.h:328:3: note: in definition of macro ‘V8_DEPRECATED’
declarator attribute((deprecated(message)))
^~~~~~~~~~
In file included from ../src/spi.cc:2:
../../nan/nan.h: In member function ‘v8::Localv8::Value Nan::AsyncWorker::GetFromPersistent(uint32_t) const’:
../../nan/nan.h:1560:57: warning: ‘v8::Localv8::Value v8::Object::Get(uint32_t)’ is deprecated: Use maybe version [-Wdeprecated-declarations]
return scope.Escape(New(persistentHandle)->Get(index));
^
In file included from /home/pi/.cache/node-gyp/12.18.1/include/node/v8-internal.h:14,
from /home/pi/.cache/node-gyp/12.18.1/include/node/v8.h:27,
from /home/pi/.cache/node-gyp/12.18.1/include/node/node.h:67,
from ../../nan/nan.h:47,
from ../src/spi.cc:2:
/home/pi/.cache/node-gyp/12.18.1/include/node/v8.h:3557:51: note: declared here
V8_DEPRECATED("Use maybe version", Local Get(uint32_t index));
^~~
/home/pi/.cache/node-gyp/12.18.1/include/node/v8config.h:328:3: note: in definition of macro ‘V8_DEPRECATED’
declarator attribute((deprecated(message)))
^~~~~~~~~~
In file included from ../src/spi.cc:2:
../../nan/nan.h: In function ‘void Nan::AsyncQueueWorker(Nan::AsyncWorker*)’:
../../nan/nan.h:1730:62: warning: cast between incompatible function types from ‘void ()(uv_work_t)’ {aka ‘void ()(uv_work_s)’} to ‘uv_after_work_cb’ {aka ‘void ()(uv_work_s, int)’} [-Wcast-function-type]
, reinterpret_cast<uv_after_work_cb>(AsyncExecuteComplete)
^
In file included from /usr/include/c++/8/cassert:44,
from /home/pi/.cache/node-gyp/12.18.1/include/node/node_object_wrap.h:26,
from ../../nan/nan.h:49,
from ../src/spi.cc:2:
../../nan/nan_object_wrap.h: In destructor ‘virtual Nan::ObjectWrap::~ObjectWrap()’:
../../nan/nan_object_wrap.h:24:25: error: ‘class Nan::Persistentv8::Object’ has no member named ‘IsNearDeath’
assert(persistent().IsNearDeath());
^~~~~~~~~~~
In file included from ../../nan/nan.h:2220,
from ../src/spi.cc:2:
../../nan/nan_object_wrap.h: In member function ‘void Nan::ObjectWrap::MakeWeak()’:
../../nan/nan_object_wrap.h:67:34: warning: ‘void v8::PersistentBase::MarkIndependent() [with T = v8::Object]’ is deprecated: Weak objects are always considered independent. Use TracedGlobal when trying to use EmbedderHeapTracer. Use a strong handle when trying to keep an object alive. [-Wdeprecated-declarations]
persistent().MarkIndependent();
^
In file included from /home/pi/.cache/node-gyp/12.18.1/include/node/v8-internal.h:14,
from /home/pi/.cache/node-gyp/12.18.1/include/node/v8.h:27,
from /home/pi/.cache/node-gyp/12.18.1/include/node/node.h:67,
from ../../nan/nan.h:47,
from ../src/spi.cc:2:
/home/pi/.cache/node-gyp/12.18.1/include/node/v8.h:570:22: note: declared here
V8_INLINE void MarkIndependent());
^~~~~~~~~~~~~~~
/home/pi/.cache/node-gyp/12.18.1/include/node/v8config.h:328:3: note: in definition of macro ‘V8_DEPRECATED’
declarator attribute((deprecated(message)))
^~~~~~~~~~
In file included from /usr/include/c++/8/cassert:44,
from /home/pi/.cache/node-gyp/12.18.1/include/node/node_object_wrap.h:26,
from ../../nan/nan.h:49,
from ../src/spi.cc:2:
../../nan/nan_object_wrap.h: In static member function ‘static void Nan::ObjectWrap::WeakCallback(const v8::WeakCallbackInfoNan::ObjectWrap&)’:
../../nan/nan_object_wrap.h:124:26: error: ‘class Nan::Persistentv8::Object’ has no member named ‘IsNearDeath’
assert(wrap->handle_.IsNearDeath());
^~~~~~~~~~~
In file included from ../../nan/nan.h:47,
from ../src/spi.cc:2:
../src/spi.cc: At global scope:
/home/pi/.cache/node-gyp/12.18.1/include/node/node.h:608:43: warning: cast between incompatible function types from ‘void ()(Nan::ADDON_REGISTER_FUNCTION_ARGS_TYPE)’ {aka ‘void ()(v8::Localv8::Object)’} to ‘node::addon_register_func’ {aka ‘void ()(v8::Localv8::Object, v8::Localv8::Value, void)’} [-Wcast-function-type]
(node::addon_register_func) (regfunc),
^
/home/pi/.cache/node-gyp/12.18.1/include/node/node.h:642:3: note: in expansion of macro ‘NODE_MODULE_X’
NODE_MODULE_X(modname, regfunc, NULL, 0) // NOLINT (readability/null_usage)
^~~~~~~~~~~~~
../src/spi.cc:36:1: note: in expansion of macro ‘NODE_MODULE’
NODE_MODULE(spi, InitAll)
^~~~~~~~~~~
make: *** [spi.target.mk:115: Release/obj.target/spi/src/spi.o] Error 1
make: Leaving directory '/home/pi/Documents/development/smoker/tempiture/node_modules/spi-device/build'
gyp ERR! build error
gyp ERR! stack Error: make failed with exit code: 2
gyp ERR! stack at ChildProcess.onExit (/usr/lib/node_modules/npm/node_modules/node-gyp/lib/build.js:194:23)
gyp ERR! stack at ChildProcess.emit (events.js:315:20)
gyp ERR! stack at Process.ChildProcess._handle.onexit (internal/child_process.js:275:12)
gyp ERR! System Linux 4.19.118-v7+
gyp ERR! command "/usr/bin/node" "/usr/lib/node_modules/npm/node_modules/node-gyp/bin/node-gyp.js" "rebuild"
gyp ERR! cwd /home/pi/Documents/development/smoker/tempiture/node_modules/spi-device
gyp ERR! node -v v12.18.1
gyp ERR! node-gyp -v v5.1.0
gyp ERR! not ok
npm WARN [email protected] No repository field.

npm ERR! code ELIFECYCLE
npm ERR! errno 1
npm ERR! [email protected] install: node-gyp rebuild
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the [email protected] install script.
npm ERR! This is probably not a problem with npm. There is likely additional logging output above.

npm ERR! A complete log of this run can be found in:
npm ERR! /home/pi/.npm/_logs/2020-06-28T19_35_40_184Z-debug.log

Setup errors

Good evening again, I have narrowed my list of errors down quite substantially, but there are still some that I cannot figure out. Can someone look at this and possibly point me in the right direction? FWIW I am running:
"PRETTY_NAME="Raspbian GNU/Linux 9 (stretch)"
NAME="Raspbian GNU/Linux"
VERSION_ID="9"
VERSION="9 (stretch)"
ID=raspbian
ID_LIKE=debian

`pi@raspberrypi:~ $ cd tempiture
pi@raspberrypi:/tempiture $ chmod +x ./setup.sh
pi@raspberrypi:
/tempiture $ sudo ./setup.sh

Installing the NodeSource Node.js 6.x LTS Boron repo...

Populating apt-get cache...

Confirming "stretch" is supported...

Adding the NodeSource signing key to your keyring...

Creating apt sources list file for the NodeSource Node.js 6.x LTS Boron repo...

Running apt-get update for you...

Run sudo apt-get install -y nodejs to install Node.js 6.x LTS Boron and npm

You may also need development tools to build native addons:

 sudo apt-get install gcc g++ make

To install the Yarn package manager, run:

 curl -sL https://dl.yarnpkg.com/debian/pubkey.gpg | sudo apt-key add -
 echo "deb https://dl.yarnpkg.com/debian/ stable main" | sudo tee /etc/apt/sources.list.d/yarn.list
 sudo apt-get update && sudo apt-get install yarn

Reading package lists... Done
Building dependency tree
Reading state information... Done
nodejs is already the newest version (8.11.1dfsg-2bpo9+1).
0 upgraded, 0 newly installed, 0 to remove and 111 not upgraded.
Reading package lists... Done
Building dependency tree
Reading state information... Done
jq is already the newest version (1.5+dfsg-1.3).
0 upgraded, 0 newly installed, 0 to remove and 111 not upgraded.
Reading package lists... Done
Building dependency tree
Reading state information... Done
python-pip is already the newest version (9.0.1-2+rpt2).
0 upgraded, 0 newly installed, 0 to remove and 111 not upgraded.
Collecting docker-compose
Using cached https://files.pythonhosted.org/packages/dd/e6/1521d1dfd9c0da1d1863b18e592d91c3df222e55f258b9876fa1e59bc4b5/docker_compose-1.24.1-py2.py3-none-any.whl
Collecting docker[ssh]<4.0,>=3.7.0 (from docker-compose)
Using cached https://files.pythonhosted.org/packages/09/da/7cc7ecdcd01145e9924a8ccbe9c1baf3a362fc75d4cb150676eb5231ea60/docker-3.7.3-py2.py3-none-any.whl
Requirement already satisfied: backports.ssl-match-hostname>=3.5; python_version < "3.5" in /usr/local/lib/python2.7/dist-packages (from docker-compose)
Requirement already satisfied: websocket-client<1.0,>=0.32.0 in /usr/local/lib/python2.7/dist-packages (from docker-compose)
Requirement already satisfied: ipaddress>=1.0.16; python_version < "3.3" in /usr/lib/python2.7/dist-packages (from docker-compose)
Collecting PyYAML<4.3,>=3.10 (from docker-compose)
Collecting dockerpty<0.5,>=0.4.1 (from docker-compose)
Collecting texttable<0.10,>=0.9.0 (from docker-compose)
Exception:
Traceback (most recent call last):
File "/usr/lib/python2.7/dist-packages/pip/basecommand.py", line 215, in main
status = self.run(options, args)
File "/usr/lib/python2.7/dist-packages/pip/commands/install.py", line 353, in run
wb.build(autobuilding=True)
File "/usr/lib/python2.7/dist-packages/pip/wheel.py", line 749, in build
self.requirement_set.prepare_files(self.finder)
File "/usr/lib/python2.7/dist-packages/pip/req/req_set.py", line 380, in prepare_files
ignore_dependencies=self.ignore_dependencies))
File "/usr/lib/python2.7/dist-packages/pip/req/req_set.py", line 554, in _prepare_file
require_hashes
File "/usr/lib/python2.7/dist-packages/pip/req/req_install.py", line 278, in populate_link
self.link = finder.find_requirement(self, upgrade)
File "/usr/lib/python2.7/dist-packages/pip/index.py", line 465, in find_requirement
all_candidates = self.find_all_candidates(req.name)
File "/usr/lib/python2.7/dist-packages/pip/index.py", line 423, in find_all_candidates
for page in self._get_pages(url_locations, project_name):
File "/usr/lib/python2.7/dist-packages/pip/index.py", line 568, in _get_pages
page = self._get_page(location)
File "/usr/lib/python2.7/dist-packages/pip/index.py", line 683, in _get_page
return HTMLPage.get_page(link, session=self.session)
File "/usr/lib/python2.7/dist-packages/pip/index.py", line 792, in get_page
"Cache-Control": "max-age=600",
File "/usr/share/python-wheels/requests-2.12.4-py2.py3-none-any.whl/requests/sessions.py", line 501, in get
return self.request('GET', url, **kwargs)
File "/usr/lib/python2.7/dist-packages/pip/download.py", line 386, in request
return super(PipSession, self).request(method, url, *args, **kwargs)
File "/usr/share/python-wheels/requests-2.12.4-py2.py3-none-any.whl/requests/sessions.py", line 488, in request
resp = self.send(prep, **send_kwargs)
File "/usr/share/python-wheels/requests-2.12.4-py2.py3-none-any.whl/requests/sessions.py", line 609, in send
r = adapter.send(request, **kwargs)
File "/usr/share/python-wheels/CacheControl-0.11.7-py2.py3-none-any.whl/cachecontrol/adapter.py", line 47, in send
resp = super(CacheControlAdapter, self).send(request, **kw)
File "/usr/share/python-wheels/requests-2.12.4-py2.py3-none-any.whl/requests/adapters.py", line 423, in send
timeout=timeout
File "/usr/share/python-wheels/urllib3-1.19.1-py2.py3-none-any.whl/urllib3/connectionpool.py", line 643, in urlopen
_stacktrace=sys.exc_info()[2])
File "/usr/share/python-wheels/urllib3-1.19.1-py2.py3-none-any.whl/urllib3/util/retry.py", line 315, in increment
total -= 1
TypeError: unsupported operand type(s) for -=: 'Retry' and 'int'
OK
deb https://packagecloud.io/Hypriot/Schatzkiste/debian/ jessie main
Hit:1 http://raspbian.raspberrypi.org/raspbian stretch InRelease
Hit:2 http://archive.raspberrypi.org/debian stretch InRelease
Hit:3 https://deb.nodesource.com/node_6.x stretch InRelease
Hit:4 https://packagecloud.io/Hypriot/Schatzkiste/debian jessie InRelease
Reading package lists... Done
Reading package lists... Done
Building dependency tree
Reading state information... Done
docker-hypriot is already the newest version (1.11.1-1).
0 upgraded, 0 newly installed, 0 to remove and 111 not upgraded.
Synchronizing state of docker.service with SysV service script with /lib/systemd/systemd-sysv-install.
Executing: /lib/systemd/systemd-sysv-install enable docker
./setup.sh: line 33: npm: command not found
sudo: npm: command not found
curl: (6) Could not resolve host: tempiture.local
curl: (6) Could not resolve host: tempiture.local

% Total % Received % Xferd Average Speed Time Time Time Current
Dload Upload Total Spent Left Speed
0 0 0 0 0 0 0 0 --:--:-- 0:00:04 --:--:-- 0curl: (6) Could not resolve host: tempiture.local
curl: (6) Could not resolve host: tempiture.local

sudo: pm2: command not found
sudo: pm2: command not found
env: ‘/usr/lib/node_modules/pm2/bin/pm2’: No such file or directory



The setup has completed. You should change the admin password for your Grafana
instance by logging in to http://localhost:3000/login and then choosing Menu ->
Admin -> Global Users -> admin -> edit.



pi@raspberrypi:~/tempiture $
`

Minor Issue: License Mismatch

The license in LICENSE (Apache) doesn't match the the License in package.json (ISC) Minor issue, thought I'd point it out.

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.