I changed to development version of Nodemanager this remove compilation errors and then found that recomended library from Sparkfun not work. Then i edited header file SensorSI7021.h to work with Adafruit library and it works
my SensorSI7021.h:
/*
* The MySensors Arduino library handles the wireless radio link and protocol
* between your home built sensors/actuators and HA controller of choice.
* The sensors forms a self healing radio network with optional repeaters. Each
* repeater and gateway builds a routing tables in EEPROM which keeps track of the
* network topology allowing messages to be routed to nodes.
*
* Created by Henrik Ekblad <henrik.ekblad@mysensors.org>
* Copyright (C) 2013-2017 Sensnology AB
* Full contributor list: https://github.com/mysensors/Arduino/graphs/contributors
* 2021 modified by Libor Kozak to work with Adafruit library: https://github.com/adafruit/Adafruit_Si7021
*
* Documentation: http://www.mysensors.org
* Support Forum: http://forum.mysensors.org
*
* This program is free software; you can redistribute it and/or
* modify it under the terms of the GNU General Public License
* version 2 as published by the Free Software Foundation.
*/
#ifndef SensorSI7021_h
#define SensorSI7021_h
/*
SensorSI7021: temperature and humidity sensor
*/
#include <Wire.h>
//#include <SI7021.h>
#include <Adafruit_Si7021.h>
class SensorSI7021: public Sensor {
protected:
Adafruit_Si7021* _si7021;//SI7021* _si7021;
public:
SensorSI7021(uint8_t child_id = 0): Sensor(-1) {
_name = "SI7021";
children.allocateBlocks(2);
new Child(this,FLOAT,nodeManager.getAvailableChildId(child_id),S_TEMP,V_TEMP,_name);
new Child(this,FLOAT,child_id > 0 ? nodeManager.getAvailableChildId(child_id+1) : nodeManager.getAvailableChildId(child_id),S_HUM,V_HUM,_name);
};
// define what to do during setup
void onSetup() {
_si7021 = new Adafruit_Si7021();
_si7021->begin();
};
// define what to do during loop
void onLoop(Child* child) {
// temperature sensor
if (child->getType() == V_TEMP) {
// read the temperature
float temperature = _si7021->readTemperature();
// convert it
//temperature = nodeManager.celsiusToFahrenheit(temperature);
// store the value
child->setValue(temperature);
}
// Humidity Sensor
else if (child->getType() == V_HUM) {
// read humidity
float humidity = _si7021->readHumidity();
// store the value
child->setValue(humidity);
}
};
};
#endif
Good day.
I try to install MyController on x64 PC With Debian 10
and i get error message
java version: 11.0.9.1
Mycontroller.org server required java version 1.7 or later
How i can resolve this error ?
Hello everyone! I'm new in the forum
I'm a jewellery/accesories designer from Spain and I'm looking forward into buying a 3d printer. I make jewellery with Hips, so I'm not interested on a SLA printer, as I also understood it can be toxic and it takes way more time to print.
I've attached some pictures of the pieces I make, a 3d printing studio printed them for me, and I'm looking forward to print them myself from now on. Please note that the pieces hav A LOT of postprocessing.
I cannot decide which 3d printer to buy (I have just used an Ender 3) and I would really appreciate some advice, these are my specifications:
the smaller the better, the max I will print is 5cm and I don't have a garage so it will be on my desk.
max 500โฌ
it needs to be able to print Hips
more in the silent side
I'm a bit nomad and I usually move between cities/countries quite regularly, so it needs to be portable or at least enclosed, to move it more easily.
From my research, I've found some that I find interesting:
-Monoprice mini v2 (I'm not sure if it can print hips, some sites say yes and some say no)
-Monoprice Voxel
-Flashforge Adventurer 3
-Prusa mini
Thanks in advance for the help, please ask if you need more information. And sorry for my broken English.
Have a good day