Forum / Guestbook




Luberth Dijkman Fri 28 Dec 2018 at 13:32:53
Rapsberry Pi 433Mhz Temperature humidity sensor

-
Rapsberry Pi 433Mhz WireLess Temperature humidity sensor

Digoo DG-R8B 433MHz Wireless Digital Hygrometer Thermometer
Weather Station Sensor for DG-TH3330

i bought it for 4.31 euro including shipping from China to the Netherlands
got it working on my raspberry pi
but do not understand it all yet

https://nl.aliexpress.com/wholesale?catId=0&initiative_id=SB_20181228045942&SearchText=Digoo+DG-R8B+433+mhz


https://github.com/aquaticus/nexus433

hmmm MQTT connection problems
https://www.instructables.com/id/Installing-MQTT-BrokerMosquitto-on-Raspberry-Pi/

here someone with nexus433 HomeAssistant
https://hackaday.com/2018/08/29/raspberry-pi-as-433-mhz-to-mqtt-gateway/


sudo /etc/init.d/mosquitto stop
sudo /etc/init.d/mosquitto status
sudo /etc/init.d/mosquitto start
sudo /etc/init.d/mosquitto restart



/home/pi/
cd nexus433
/homepi/nexus433/
my wireless 433mhz reciever data line is connected to gpio27 physical pin 13 thats why the -n 27
sudo nexus433 --verbose -n 27

the reciever i use now
RxB6 reciever i have now 
     verry expensive 2.50 euro ;-) but next day delivered
         with only 3 wires to pi gpio
         +3.3vdc - data - 0vdc_ground
         and 173mm solid 0.8mm2 copper wire antenna (piece off scrap wire)
https://www.tinytronics.nl/shop/n<wbr />l/communicatie/rf(id)-wifi-bt/rxb6-433mh<wbr />z-rf-receiver?search=rxb6


i have put the sensor Digoo DG-R8B 433mhz in the middle of fridge
signal is also coming out off the fridge 
surprised i thought the metal box of fridge was sort of faraday cage holding 433mhz radio signals inside
but no its working 
should be 12 send but is almost never recieved no 100% reception
looks like every 75 seconds a transmission of 12


now sensor Digoo DG-R8B 433mhz in the middle of fridge
linux terminal output --verbose


0x67a0eef27 Id:0x67 Channel:3 Temperature: 23.8°C Humidity: 39% Battery:1 Frames:10 (83%)
0x67a0dbf1d Id:0x67 Channel:3 Temperature: 21.9°C Humidity: 29% Battery:1 Frames:9 (75%)
0x67a0c4f1a Id:0x67 Channel:3 Temperature: 19.6°C Humidity: 26% Battery:1 Frames:9 (75%)
0x67a0b5f19 Id:0x67 Channel:3 Temperature: 18.1°C Humidity: 25% Battery:1 Frames:10 (83%)
0x67a0a9f18 Id:0x67 Channel:3 Temperature: 16.9°C Humidity: 24% Battery:1 Frames:10 (83%)
0x67a09ff17 Id:0x67 Channel:3 Temperature: 15.9°C Humidity: 23% Battery:1 Frames:10 (83%)
0x67a096f16 Id:0x67 Channel:3 Temperature: 15.0°C Humidity: 22% Battery:1 Frames:8 (66%)
0x67a08ff16 Id:0x67 Channel:3 Temperature: 14.3°C Humidity: 22% Battery:1 Frames:5 (41%)
0x67a088f16 Id:0x67 Channel:3 Temperature: 13.6°C Humidity: 22% Battery:1 Frames:8 (66%)
0x67a083f16 Id:0x67 Channel:3 Temperature: 13.1°C Humidity: 22% Battery:1 Frames:9 (75%)
0x67a07df16 Id:0x67 Channel:3 Temperature: 12.5°C Humidity: 22% Battery:1 Frames:9 (75%)
0x67a078f16 Id:0x67 Channel:3 Temperature: 12.0°C Humidity: 22% Battery:1 Frames:11 (91%)
0x67a074f17 Id:0x67 Channel:3 Temperature: 11.6°C Humidity: 23% Battery:1 Frames:11 (91%)
0x67a070f18 Id:0x67 Channel:3 Temperature: 11.2°C Humidity: 24% Battery:1 Frames:5 (41%)
0x67a06cf19 Id:0x67 Channel:3 Temperature: 10.8°C Humidity: 25% Battery:1 Frames:10 (83%)
0x67a069f19 Id:0x67 Channel:3 Temperature: 10.5°C Humidity: 25% Battery:1 Frames:10 (83%)
0x67a066f1a Id:0x67 Channel:3 Temperature: 10.2°C Humidity: 26% Battery:1 Frames:11 (91%)
0x67a062f1b Id:0x67 Channel:3 Temperature: 9.8°C Humidity: 27% Battery:1 Frames:5 (41%)
0x67a05ff1c Id:0x67 Channel:3 Temperature: 9.5°C Humidity: 28% Battery:1 Frames:9 (75%)
0x67a05df1d Id:0x67 Channel:3 Temperature: 9.3°C Humidity: 29% Battery:1 Frames:4 (33%)
0x67a05af1e Id:0x67 Channel:3 Temperature: 9.0°C Humidity: 30% Battery:1 Frames:11 (91%)
0x67a058f1f Id:0x67 Channel:3 Temperature: 8.8°C Humidity: 31% Battery:1 Frames:10 (83%)
0x67a042f2b Id:0x67 Channel:3 Temperature: 6.6°C Humidity: 43% Battery:1 Frames:3 (25%)
0x67a041f2b Id:0x67 Channel:3 Temperature: 6.5°C Humidity: 43% Battery:1 Frames:5 (41%)
0x67a041f2c Id:0x67 Channel:3 Temperature: 6.5°C Humidity: 44% Battery:1 Frames:10 (83%)
0x67a040f2d Id:0x67 Channel:3 Temperature: 6.4°C Humidity: 45% Battery:1 Frames:9 (75%)
0x67a040f2e Id:0x67 Channel:3 Temperature: 6.4°C Humidity: 46% Battery:1 Frames:10 (83%)
0x67a03ff2f Id:0x67 Channel:3 Temperature: 6.3°C Humidity: 47% Battery:1 Frames:11 (91%)
0x67a03ff2f Id:0x67 Channel:3 Temperature: 6.3°C Humidity: 47% Battery:1 Frames:10 (83%)
0x67a03ef30 Id:0x67 Channel:3 Temperature: 6.2°C Humidity: 48% Battery:1 Frames:3 (25%)
Transmitter become silent: 0x67 channel 3. No data for 90 sec.
New transmitter 0x67 channel 3
0x67a03df32 Id:0x67 Channel:3 Temperature: 6.1°C Humidity: 50% Battery:1 Frames:1 (8%)
0x67a03df32 Only 1 frame received. Ignored.
0x67a03df33 Id:0x67 Channel:3 Temperature: 6.1°C Humidity: 51% Battery:1 Frames:8 (66%)
0x67a03df34 Id:0x67 Channel:3 Temperature: 6.1°C Humidity: 52% Battery:1 Frames:11 (91%)
0x67a03df35 Id:0x67 Channel:3 Temperature: 6.1°C Humidity: 53% Battery:1 Frames:10 (83%)
0x67a03df35 Id:0x67 Channel:3 Temperature: 6.1°C Humidity: 53% Battery:1 Frames:10 (83%)
0x67a03df36 Id:0x67 Channel:3 Temperature: 6.1°C Humidity: 54% Battery:1 Frames:10 (83%)
0x67a03df36 Id:0x67 Channel:3 Temperature: 6.1°C Humidity: 54% Battery:1 Frames:6 (50%)
0x67a03df37 Id:0x67 Channel:3 Temperature: 6.1°C Humidity: 55% Battery:1 Frames:11 (91%)
0x67a03cf38 Id:0x67 Channel:3 Temperature: 6.0°C Humidity: 56% Battery:1 Frames:11 (91%)
0x67a03bf38 Id:0x67 Channel:3 Temperature: 5.9°C Humidity: 56% Battery:1 Frames:11 (91%)
0x67a03bf38 Id:0x67 Channel:3 Temperature: 5.9°C Humidity: 56% Battery:1 Frames:9 (75%)
0x67a03bf37 Id:0x67 Channel:3 Temperature: 5.9°C Humidity: 55% Battery:1 Frames:8 (66%)
0x67a03bf36 Id:0x67 Channel:3 Temperature: 5.9°C Humidity: 54% Battery:1 Frames:4 (33%)
0x67a03af36 Id:0x67 Channel:3 Temperature: 5.8°C Humidity: 54% Battery:1 Frames:11 (91%)
0x67a039f35 Id:0x67 Channel:3 Temperature: 5.7°C Humidity: 53% Battery:1 Frames:11 (91%)
0x67a039f34 Id:0x67 Channel:3 Temperature: 5.7°C Humidity: 52% Battery:1 Frames:11 (91%)
0x67a039f33 Id:0x67 Channel:3 Temperature: 5.7°C Humidity: 51% Battery:1 Frames:11 (91%)
0x67a038f32 Id:0x67 Channel:3 Temperature: 5.6°C Humidity: 50% Battery:1 Frames:10 (83%)
0x67a037f31 Id:0x67 Channel:3 Temperature: 5.5°C Humidity: 49% Battery:1 Frames:10 (83%)
0x67a037f2f Id:0x67 Channel:3 Temperature: 5.5°C Humidity: 47% Battery:1 Frames:10 (83%)
0x67a036f2e Id:0x67 Channel:3 Temperature: 5.4°C Humidity: 46% Battery:1 Frames:11 (91%)
0x67a036f2d Id:0x67 Channel:3 Temperature: 5.4°C Humidity: 45% Battery:1 Frames:11 (91%)
0x67a035f2c Id:0x67 Channel:3 Temperature: 5.3°C Humidity: 44% Battery:1 Frames:10 (83%)
0x67a033f3b Id:0x67 Channel:3 Temperature: 5.1°C Humidity: 59% Battery:1 Frames:10 (83%)
0x67a033f3a Id:0x67 Channel:3 Temperature: 5.1°C Humidity: 58% Battery:1 Frames:11 (91%)
0x67a033f39 Id:0x67 Channel:3 Temperature: 5.1°C Humidity: 57% Battery:1 Frames:7 (58%)
0x67a033f39 Id:0x67 Channel:3 Temperature: 5.1°C Humidity: 57% Battery:1 Frames:10 (83%)
0x67a033f38 Id:0x67 Channel:3 Temperature: 5.1°C Humidity: 56% Battery:1 Frames:11 (91%)
0x67a033f37 Id:0x67 Channel:3 Temperature: 5.1°C Humidity: 55% Battery:1 Frames:10 (83%)
0x67a033f36 Id:0x67 Channel:3 Temperature: 5.1°C Humidity: 54% Battery:1 Frames:9 (75%)
0x67a032f35 Id:0x67 Channel:3 Temperature: 5.0°C Humidity: 53% Battery:1 Frames:10 (83%)
0x67a032f34 Id:0x67 Channel:3 Temperature: 5.0°C Humidity: 52% Battery:1 Frames:9 (75%)
0x67a031f33 Id:0x67 Channel:3 Temperature: 4.9°C Humidity: 51% Battery:1 Frames:11 (91%)
0x67a031f31 Id:0x67 Channel:3 Temperature: 4.9°C Humidity: 49% Battery:1 Frames:10 (83%)
0x67a030f30 Id:0x67 Channel:3 Temperature: 4.8°C Humidity: 48% Battery:1 Frames:10 (83%)
0x67a02ff2f Id:0x67 Channel:3 Temperature: 4.7°C Humidity: 47% Battery:1 Frames:3 (25%)
0x67a02ff2e Id:0x67 Channel:3 Temperature: 4.7°C Humidity: 46% Battery:1 Frames:10 (83%)
0x67a02ff2d Id:0x67 Channel:3 Temperature: 4.7°C Humidity: 45% Battery:1 Frames:10 (83%)
0x67a02ff2c Id:0x67 Channel:3 Temperature: 4.7°C Humidity: 44% Battery:1 Frames:8 (66%)
0x67a02ef2b Id:0x67 Channel:3 Temperature: 4.6°C Humidity: 43% Battery:1 Frames:6 (50%)
0x67a02df2a Id:0x67 Channel:3 Temperature: 4.5°C Humidity: 42% Battery:1 Frames:10 (83%)
0x67a02df2a Id:0x67 Channel:3 Temperature: 4.5°C Humidity: 42% Battery:1 Frames:10 (83%)
0x67a02cf29 Id:0x67 Channel:3 Temperature: 4.4°C Humidity: 41% Battery:1 Frames:5 (41%)
0x67a02bf29 Id:0x67 Channel:3 Temperature: 4.3°C Humidity: 41% Battery:1 Frames:6 (50%)
0x67a02bf28 Id:0x67 Channel:3 Temperature: 4.3°C Humidity: 40% Battery:1 Frames:9 (75%)




now sensor Digoo DG-R8B 433mhz in the middle of freezer
linux terminal output --verbose

0x67a021f2c Id:0x67 Channel:3 Temperature: 3.3°C Humidity: 44% Battery:1 Frames:11 (91%)
0x67a003f27 Id:0x67 Channel:3 Temperature: 0.3°C Humidity: 39% Battery:1 Frames:10 (83%)
0x67aff0f24 Id:0x67 Channel:3 Temperature: -1.6°C Humidity: 36% Battery:1 Frames:10 (83%)
0x67afe0f22 Id:0x67 Channel:3 Temperature: -3.2°C Humidity: 34% Battery:1 Frames:11 (91%)
0x67afd4f21 Id:0x67 Channel:3 Temperature: -4.4°C Humidity: 33% Battery:1 Frames:11 (91%)
0x67afcaf20 Id:0x67 Channel:3 Temperature: -5.4°C Humidity: 32% Battery:1 Frames:11 (91%)
0x67afc0f20 Id:0x67 Channel:3 Temperature: -6.4°C Humidity: 32% Battery:1 Frames:8 (66%)
0x67afb8f20 Id:0x67 Channel:3 Temperature: -7.2°C Humidity: 32% Battery:1 Frames:8 (66%)
0x67afb1f20 Id:0x67 Channel:3 Temperature: -7.9°C Humidity: 32% Battery:1 Frames:11 (91%)
0x67afabf20 Id:0x67 Channel:3 Temperature: -8.5°C Humidity: 32% Battery:1 Frames:11 (91%)
0x67afa5f21 Id:0x67 Channel:3 Temperature: -9.1°C Humidity: 33% Battery:1 Frames:9 (75%)
0x67afa0f21 Id:0x67 Channel:3 Temperature: -9.6°C Humidity: 33% Battery:1 Frames:11 (91%)
0x67af9cf21 Id:0x67 Channel:3 Temperature: -10.0°C Humidity: 33% Battery:1 Frames:11 (91%)
0x67af97f21 Id:0x67 Channel:3 Temperature: -10.5°C Humidity: 33% Battery:1 Frames:12 (100%)
0x67af94f21 Id:0x67 Channel:3 Temperature: -10.8°C Humidity: 33% Battery:1 Frames:11 (91%)
0x67af90f21 Id:0x67 Channel:3 Temperature: -11.2°C Humidity: 33% Battery:1 Frames:9 (75%)
0x67af8df22 Id:0x67 Channel:3 Temperature: -11.5°C Humidity: 34% Battery:1 Frames:11 (91%)
0x67af89f22 Id:0x67 Channel:3 Temperature: -11.9°C Humidity: 34% Battery:1 Frames:11 (91%)
0x67af87f22 Id:0x67 Channel:3 Temperature: -12.1°C Humidity: 34% Battery:1 Frames:12 (100%)
0x67af84f22 Id:0x67 Channel:3 Temperature: -12.4°C Humidity: 34% Battery:1 Frames:11 (91%)
0x67af82f23 Id:0x67 Channel:3 Temperature: -12.6°C Humidity: 35% Battery:1 Frames:12 (100%)
0x67af80f23 Id:0x67 Channel:3 Temperature: -12.8°C Humidity: 35% Battery:1 Frames:11 (91%)
0x67af7ef23 Id:0x67 Channel:3 Temperature: -13.0°C Humidity: 35% Battery:1 Frames:11 (91%)
0x67af7cf23 Id:0x67 Channel:3 Temperature: -13.2°C Humidity: 35% Battery:1 Frames:10 (83%)
0x67af7af24 Id:0x67 Channel:3 Temperature: -13.4°C Humidity: 36% Battery:1 Frames:12 (100%)
0x67af78f24 Id:0x67 Channel:3 Temperature: -13.6°C Humidity: 36% Battery:1 Frames:12 (100%)
0x67af76f24 Id:0x67 Channel:3 Temperature: -13.8°C Humidity: 36% Battery:1 Frames:11 (91%)
0x67af73f24 Id:0x67 Channel:3 Temperature: -14.1°C Humidity: 36% Battery:1 Frames:10 (83%)
0x67af72f24 Id:0x67 Channel:3 Temperature: -14.2°C Humidity: 36% Battery:1 Frames:12 (100%)
0x67af6ff24 Id:0x67 Channel:3 Temperature: -14.5°C Humidity: 36% Battery:1 Frames:11 (91%)
0x67af6ef24 Id:0x67 Channel:3 Temperature: -14.6°C Humidity: 36% Battery:1 Frames:11 (91%)
0x67af6cf24 Id:0x67 Channel:3 Temperature: -14.8°C Humidity: 36% Battery:1 Frames:11 (91%)
0x67af6bf24 Id:0x67 Channel:3 Temperature: -14.9°C Humidity: 36% Battery:1 Frames:10 (83%)
0x67af69f24 Id:0x67 Channel:3 Temperature: -15.1°C Humidity: 36% Battery:1 Frames:11 (91%)
0x67af67f25 Id:0x67 Channel:3 Temperature: -15.3°C Humidity: 37% Battery:1 Frames:10 (83%)
0x67af65f25 Id:0x67 Channel:3 Temperature: -15.5°C Humidity: 37% Battery:1 Frames:11 (91%)
0x67af64f25 Id:0x67 Channel:3 Temperature: -15.6°C Humidity: 37% Battery:1 Frames:11 (91%)
0x67af57f24 Id:0x67 Channel:3 Temperature: -16.9°C Humidity: 36% Battery:1 Frames:7 (58%)
0x67af55f24 Id:0x67 Channel:3 Temperature: -17.1°C Humidity: 36% Battery:1 Frames:12 (100%)
0x67af55f24 Id:0x67 Channel:3 Temperature: -17.1°C Humidity: 36% Battery:1 Frames:12 (100%)
0x67af53f24 Id:0x67 Channel:3 Temperature: -17.3°C Humidity: 36% Battery:1 Frames:4 (33%)
0x67af52f24 Id:0x67 Channel:3 Temperature: -17.4°C Humidity: 36% Battery:1 Frames:11 (91%)
0x67af50f24 Id:0x67 Channel:3 Temperature: -17.6°C Humidity: 36% Battery:1 Frames:11 (91%)
0x67af4ff24 Id:0x67 Channel:3 Temperature: -17.7°C Humidity: 36% Battery:1 Frames:11 (91%)
0x67af4ef24 Id:0x67 Channel:3 Temperature: -17.8°C Humidity: 36% Battery:1 Frames:10 (83%)
0x67af4ef24 Id:0x67 Channel:3 Temperature: -17.8°C Humidity: 36% Battery:1 Frames:11 (91%)
0x67af4df24 Id:0x67 Channel:3 Temperature: -17.9°C Humidity: 36% Battery:1 Frames:11 (91%)
x67af4ff24 Id:0x67 Channel:3 Temperature: -17.7°C Humidity: 36% Battery:1 Frames:11 (91%)
0x67af4ef24 Id:0x67 Channel:3 Temperature: -17.8°C Humidity: 36% Battery:1 Frames:10 (83%)
0x67af4ef24 Id:0x67 Channel:3 Temperature: -17.8°C Humidity: 36% Battery:1 Frames:11 (91%)
0x67af4df24 Id:0x67 Channel:3 Temperature: -17.9°C Humidity: 36% Battery:1 Frames:11 (91%)
0x67af4cf24 Id:0x67 Channel:3 Temperature: -18.0°C Humidity: 36% Battery:1 Frames:11 (91%)


0x67af4bf24 Id:0x67 Channel:3 Temperature: -18.1°C Humidity: 36% Battery:1 Frames:10 (83%)
0x67af4bf24 Id:0x67 Channel:3 Temperature: -18.1°C Humidity: 36% Battery:1 Frames:11 (91%)
0x67af4bf24 Id:0x67 Channel:3 Temperature: -18.1°C Humidity: 36% Battery:1 Frames:12 (100%)
0x67af4af24 Id:0x67 Channel:3 Temperature: -18.2°C Humidity: 36% Battery:1 Frames:12 (100%)
0x67af4af24 Id:0x67 Channel:3 Temperature: -18.2°C Humidity: 36% Battery:1 Frames:11 (91%)
0x67af4af24 Id:0x67 Channel:3 Temperature: -18.2°C Humidity: 36% Battery:1 Frames:11 (91%)
0x67af48f25 Id:0x67 Channel:3 Temperature: -18.4°C Humidity: 37% Battery:1 Frames:11 (91%)
0x67af48f25 Id:0x67 Channel:3 Temperature: -18.4°C Humidity: 37% Battery:1 Frames:11 (91%)
0x67af48f25 Id:0x67 Channel:3 Temperature: -18.4°C Humidity: 37% Battery:1 Frames:12 (100%)
0x67af48f25 Id:0x67 Channel:3 Temperature: -18.4°C Humidity: 37% Battery:1 Frames:11 (91%)
0x67af48f25 Id:0x67 Channel:3 Temperature: -18.4°C Humidity: 37% Battery:1 Frames:12 (100%)
0x67af48f26 Id:0x67 Channel:3 Temperature: -18.4°C Humidity: 38% Battery:1 Frames:11 (91%)

0x67af3bf29 Id:0x67 Channel:3 Temperature: -19.7°C Humidity: 41% Battery:1 Frames:11 (91%)
0x67af3bf2a Id:0x67 Channel:3 Temperature: -19.7°C Humidity: 42% Battery:1 Frames:9 (75%)
0x67af3bf2a Id:0x67 Channel:3 Temperature: -19.7°C Humidity: 42% Battery:1 Frames:11 (91%)
0x67af3bf2a Id:0x67 Channel:3 Temperature: -19.7°C Humidity: 42% Battery:1 Frames:10 (83%)
0x67af3cf2a Id:0x67 Channel:3 Temperature: -19.6°C Humidity: 42% Battery:1 Frames:11 (91%)
0x67af3cf2a Id:0x67 Channel:3 Temperature: -19.6°C Humidity: 42% Battery:1 Frames:11 (91%)
0x67af3cf2a Id:0x67 Channel:3 Temperature: -19.6°C Humidity: 42% Battery:1 Frames:11 (91%)
0x67af3bf2a Id:0x67 Channel:3 Temperature: -19.7°C Humidity: 42% Battery:1 Frames:11 (91%)
0x67af3cf2a Id:0x67 Channel:3 Temperature: -19.6°C Humidity: 42% Battery:1 Frames:11 (91%)
0x67af3cf2a Id:0x67 Channel:3 Temperature: -19.6°C Humidity: 42% Battery:1 Frames:11 (91%)
0x67af2ef30 Id:0x67 Channel:3 Temperature: -21.0°C Humidity: 48% Battery:1 Frames:11 (91%)
0x67af2df30 Id:0x67 Channel:3 Temperature: -21.1°C Humidity: 48% Battery:1 Frames:11 (91%)
0x67af2df30 Id:0x67 Channel:3 Temperature: -21.1°C Humidity: 48% Battery:1 Frames:11 (91%)
0x67af2df30 Id:0x67 Channel:3 Temperature: -21.1°C Humidity: 48% Battery:1 Frames:9 (75%)
0x67af2ef30 Id:0x67 Channel:3 Temperature: -21.0°C Humidity: 48% Battery:1 Frames:11 (91%)


looks like my fridge temp is between 4.2 and 5.1 on this temperature sensor
looks like -21.1 Celsius is lowest freezer temperature on this sensor

nie rozumjem, ya nie panimaju, ik snap er geen zak van

i do not understand it MQTT, do it my colliflowerfarmerprogrammer way

changed /home/pi/nexus433/main.cpp
write sensordata to file in webserver directory /var/www/html/wirelestemps.html
this is on my desktop pi another raspberry as domoticz raspberry
then i can read the html file with domoticz lua script and import data in domoticz
 
 
 changes i made in /home/pi/nexus433/main.cpp
	added
#inc<wbr />lude <errno.h>
#include <stdio.h>
#include <time.h>

 
 
        if (NewReadings.size() > 0)
        {
            led.Control(true);
            std::set<Packet>::iterator it = NewReadings.begin();
            while (it != NewReadings.end())
            {
                //luberth write to file
                FILE *mystream;                
                mystream=fopen("/var/www/html/wirelestem<wbr />ps.html","w");
                fprintf(mystream,"!DOCTYPE html/>");
                fprintf(mystream,"meta http-equiv=\"Content-Type\" content=\"text/html;charset=utf-8\" />");
                fprintf(mystream,"meta http-equiv=\"refresh\" content=\"40\">");
                fprintf(mystream,"Wireless 433Mhz Digoo DG-R8B Temperature sensor in the middle of my freezer<br>page for another pi Domoticz to read temp with LUA script and log freezer temp domoticz page at http://test:test@84.106.2.21:8080/#/Floo<wbr />rplans <br><br>");
                fprintf(mystream,"0x%" PRIx64 " Id:0x%02x Channel:%d Temperature: %d.%u°C Humidity: %d%% Battery:%d Frames:%d (%d%%)<br>\n",it->GetRaw(), it->GetId(), it->GetChannel() + 1, it->GetTemperature(),it->GetTemperatureF<wbr />raction(), it->GetHumidity(), it->GetBattery(), it->GetFrameCounter(), it->GetQualityPercent());
                time_t T= time(NULL);
                struct  tm tm = *localtime(&T);
                fprintf(mystream,"System Date is: %02d/%02d/%04d<br>\n",tm.tm_mday, tm.tm_mon+1, tm.tm_year+1900);
                fprintf(mystream,"System Time is: %02d:%02d:%02d<br>\n",tm.tm_hour, tm.tm_min, tm.tm_sec);
                fclose(mystream);
                //luberth write to file
                
                VERBOSE_PRINTF(ANSI_COLOR_BRIGHT_GREEN "0x%" PRIx64 " Id:0x%02x Channel:%d Temperature: %d.%u°C Humidity: %d%% Battery:%d Frames:%d (%d%%)\n" ANSI_COLOR_RESET,
                        it->GetRaw(), it->GetId(), it->GetChannel() + 1, it->GetTemperature(),
                        it->GetTemperatureFraction(), it->GetHumidity(), it->GetBattery(), it->GetFrameCounter(), it->GetQualityPercent());

                if (mqtt.IsConnected())
                
 make all
 sudo make install
 
 
 
 now i have a file with the data
 /var/www/html/wirelestemps.html
 
 for u to see at
 my fridge freezer temperature
 http://84.106.2.21:8888/wirelestemps.htm<wbr />l
 
 Weird character "Â" before degrees Celcius symbol "°C"
    got to do something with character encoding
    got no html doctype or header on the file maybe it would help
 
 
 domoticz lua script to get freezer temp im domoticz
 ########################################<wbr />############################
commandArr<wbr />ay = {}
now=os.date("*t")

  if now.min % 1 == 0 then 

weburl='http://84.106.2.21:8888/wire<wbr />lestemps.html'

package.cpath ="/usr/lib/arm-linux-gnueabihf/lua/5.2/?<wbr />.so;" .. package.cpath
package.path = "/usr/share/lua/5.2/?.lua;" .. package.path
local http = require("socket.http")
--http = require "socket.http";
-- Get info from website
response, status = http.request(weburl)
-- Get level from info
response=response:match('Channel:3<wbr />.-Temperature:(.-) Humidity')
--response = response:sub(1, -3)

print("++++logprint++wirelestemph<wbr />ere+++++++++++++++++++++++++++++++++++++<wbr />++++++wirelestemp "..response)
   -- 44 is my freezer
 commandArray[#commandArray+1] = {['UpdateDevice'] = '44|1|'..response}

end
return commandArray
##########################<wbr />########################################<wbr />##########################



so now i log my freezer temperature wireles in domotiticz
do u wanna see my domotics freezer temperature log
see
http://test:test@84.106.2.21:8<wbr />080/#/Floorplans
http://test:test@84.10<wbr />6.2.21:8080/#/Devices/44/TemperatureLog
<wbr />

sensor is recieved on my desktop raspberry pi with nexus433 and sensordata is written to webserver directory
http://84.106.2.21:8888/wirel<wbr />estemps.html

Waiting for some more digoo wireless 433mhz temperature sensors i ordered in China 20 euro for 4 sensors
https://nl.aliexpress.com/whole<wbr />sale?catId=0&initiative_id=SB_20181228045942&SearchText=Digoo+DG-R8B+433+mhz

So over a while you can see the performance of my Bosch koelvriescombinatie KGV33UW30
https://www.google.com/search?q=Bosch+koelvriescombinatie+KGV33UW30
in the temperature monitoring and logging of this Bosch fridge/freezer
http://test:test@84.106.2.21:8080/#/Floorplans

Feels So good to know if the Beer and ice cold JagerMeister is at the right temperature ;-)


maybe i am a fool doing it this weird way
but it is working
it is my way and i already know for years that i am a fool




++++++++++++++++++++++++++<wbr />+++++++++++++++++++++++++++++++++
https<wbr />://github.com/aquaticus/nexus433
++++++<wbr />++++++++++++++++++++++++++++++++++++++++<wbr />+++++++++++++
Start as a service
make install automatically install service configuration files. 
>>>> see no option here for gpio27 maybe have to change config to match my -n 27 reciever connection
>>>> edit to match my gpio27 reciever data connection => /etc/nexus433.ini


sudo service nexus433 start

To stop
sudo service nexus433 stop

To view service status:
sudo service nexus433 status

To run service every time system starts:
sudo systemctl enable nexus433

>> not working for me yet think got to do with time it starts on boot maybe before mosquitto
after boot i have to do 
  sudo service nexus433 restart
or
  sudo service nexus433 stop
  sudo service nexus433 start


%%%%%%%%%%%%%%%%%%%%%%%%%%%%%<wbr />
after change code off main.cpp
make all
sudo service nexus433 stop
sudo make install
Warning: nexus433.service changed on disk. Run 'systemctl daemon-reload' to reload units.
sudo systemctl daemon-reload
sudo service nexus433 start
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%

<wbr />>>>> see no option here for gpio27 maybe have to change config to match my -n 27 reciever connection
>>>> edit to match my gpio27 reciever data connection => /etc/nexus433.ini



funny to see the domoticz temperature log file
if its hotter in my house the fridge will be on more and the freezer will become on its coldest
and with the wood stove it is very hot sometimes in my house ;-)








i do not understand this IOT Internet Of Things FlyWare Musquitto MQTT protocol
Goes beyond my lowest possible tecnical school brain
and how i should use it MQTT with Domoticz








surprised that the 433mhz temperature transmitter comes out off the fridge / freezer
i think the cat is also in a cage


End of Message, Thanks For Viewing! ☺
Tip: if your watching on your phone or tablet ⁝ add / save to homescreen and you get a nice icon its Free!
Tip: on your computer or laptop do not forget to bookmark this page its Free!
BookMark ShortCut Keys press ctrl+d on your keyboard




-

-

Reply to this Message


Name
Subject
Message

, <code> <b> <i> <u> .






POLL / VOTE
Did you like this Page id=213 ?

NO:         YES:




   


Design a Bit like ForumOne 4.0 WayBack 1999 ©
Always Read the Small print?!



http://forum.luberth.com - - http://www.luberth.com/forum/

NO COOKIES !?

thanks for your support
Thank You!




Co2 FootPrint WebServer



                         My Cheap Chinese Friend Ali     
Copyright Luberth Dijkman 2018 ... 2019