• 10 dec 2017: forum version update. In case of issues use this topic.
  • 30 nov 2017: pilight moved servers. In case of issues use this topic.
Hello There, Guest! Login Register


Connect digital weather sensor
#1
Hello,

I have successfull install the pilight software on a raspberry pi and controll a lot of Intertechno switches successfully.

Now I try to connect a digital weather station to have temperatur and humidity data on my pi.

Brand: Teknihall Elektronik GmbH / Sensor Type: GT-WT-02

I did a debug dump to see if I can recieve the signal from sensor.

But now I have no idea how to read the data from sensor in clear text...

That's what pilight show in debug mode:
Code:
pulse:          8
rawlen:         76
binlen:         19
pulselen:       266

Raw code:
532 2128 532 4256 532 4256 532 2128 532 4256 532 4256 532 2128 532 2128 532 2128 532 2128 532 2128 532 2128 532 2128 532 2128 532 2128 532 2128 532 4256 532 2128 532 4256 532 4256 532 4256 532 4256 532 2128 532 2128 532 2128 532 4256 532 4256 532 4256 532 2128 532 2128 532 2128 532 4256 532 4256 532 2128 532 2128 532 2128 532 2128 532 9044
Binary code:
1111111111111111111

Thanks for your help.
 
Reply
#2
Can you use markup code.
 
Reply
#3
Hi Curlymo,

Thanks for the quick replay!

Can you explain what I have to do exactly?

I am new in the linux world and normally I use Windows stuff... ;-)
 
Reply
#4
When posting clivk 'preview post' so you can 'mark up' your post easily.

Look for the dash (#) button
Send from tapatalk phone...
 
Reply
#5
Done!

OK now the Code is formated.....what next?

Also try to upload a Picture of the sensor but it looks like that doesen't work.
 
Reply
#6
Post multiple pilight-debug output with the all information from your weather station so i know what i have to look for. Preferably some output which is only a little bit different and some that is way different. E.g. 10C, 20C, 30C and 20C, 21C, 22C etc.
 
Reply
#7
Here we go:
4.3°C / 83% / Channel 1
Code:
pulse:          2
rawlen:         76
binlen:         19
pulselen:       264

Raw code:
528 3960 528 4224 528 3960 528 4224 528 2112 528 3960 528 4224 528 3960 528 2112 528 3960 528 2112 528 2112 528 2112 528 2112 528 2112 528 2112 528 2112 528 2112 528 4224 528 2112 528 4224 528 2112 528 4224 528 4224 528 4224 528 2112 528 4224 528 2112 528 2112 528 4224 528 4224 528 4224 528 4224 528 2112 528 4224 528 4224 528 4224 528 8976
Binary code:
1111111111111111111

7.3°C / XX% / Channel 1
Code:
pulse:          2
rawlen:         76
binlen:         19
pulselen:       263

Raw code:
526 4208 526 4208 526 3945 526 4208 526 2104 526 4208 526 4208 526 4208 526 2104 526 4208 526 2104 526 2104 526 2104 526 2104 526 2104 526 2104 526 2104 526 4208 526 2104 526 4208 526 4208 526 2104 526 2104 526 2104 526 4208 526 4208 526 2104 526 4208 526 4208 526 4208 526 2104 526 2104 526 2104 526 2104 526 2104 526 2104 526 2104 526 8942
Binary code:
1111111111111111111

12.2°C / XX% / Channel1
Code:
pulse:          2
rawlen:         76
binlen:         19
pulselen:       265

Raw code:
530 3975 530 3975 530 3975 530 4240 530 2120 530 4240 530 4240 530 4240 530 2120 530 4240 530 2120 530 2120 530 2120 530 2120 530 2120 530 2120 530 2120 530 4240 530 4240 530 4240 530 4240 530 2120 530 4240 530 2120 530 3975 530 4240 530 2120 530 4240 530 4240 530 3975 530 2120 530 2120 530 2120 530 2120 530 4240 530 2120 530 2120 530 9010
Binary code:
1111111111111111111

19.2°C / XX% / Channel 1
Code:
pulse:          2
rawlen:         4
binlen:         1
pulselen:       266

Raw code:
532 2128 532 9044
Binary code:
1

20.2°C / XX% / Channel 1
Code:
pulse:          2
rawlen:         4
binlen:         1
pulselen:       265

Raw code:
530 2120 530 9010
Binary code:
1

22.2°C / 54% / Channel1
Code:
pulse:          2
rawlen:         76
binlen:         19
pulselen:       265

Raw code:
530 3975 530 3975 530 3975 530 3975 530 2120 530 3975 530 3975 530 4240 530 2120 530 4240 530 2120 530 2120 530 2120 530 2120 530 2120 530 2120 530 4240 530 4240 530 2120 530 4240 530 4240 530 3975 530 3975 530 2120 530 2120 530 4240 530 4240 530 2120 530 3975 530 4240 530 2120 530 2120 530 2120 530 2120 530 4240 530 4240 530 3975 530 9010
Binary code:
1111111111111111111

Set Channel to 2

25.4°C / 46% / Channel 2
Code:
pulse:          2
rawlen:         76
binlen:         19
pulselen:       265

Raw code:
530 4240 530 4240 530 4240 530 4240 530 2120 530 4240 530 3975 530 4240 530 2120 530 4240 530 2120 530 4240 530 2120 530 2120 530 2120 530 2120 530 4240 530 4240 530 4240 530 4240 530 4240 530 4240 530 4240 530 2120 530 2120 530 4240 530 2120 530 4240 530 4240 530 3975 530 2120 530 2120 530 2120 530 4240 530 2120 530 2120 530 4240 530 9010
Binary code:
1111111111111111111

Set Channel to 3

25.6°C / 42% / Channel 3
Code:
pulse:          2
rawlen:         76
binlen:         19
pulselen:       265

Raw code:
530 3975 530 3975 530 3975 530 4240 530 2120 530 3975 530 3975 530 3975 530 2120 530 4240 530 4240 530 2120 530 2120 530 2120 530 2120 530 4240 530 2120 530 2120 530 2120 530 2120 530 2120 530 2120 530 2120 530 2120 530 2120 530 4240 530 2120 530 4240 795 1855 530 3975 530 2120 530 4240 530 2120 530 2120 530 4240 530 4240 530 2120 530 9010
Binary code:
1111111111111111111

If you need more numbers.. no problem!
 
Reply
#8
Your first reading is :

Code:
1111 0111 0100 00 0000101011 1010011 110111 1

bits 14-23 should be temp
bits 24-30 should be humidity


25.4°C / 46% / Channel 2
Code:
1111 0111 0101 00 0011111110 0101110 001001 1

bits 14-23 should be temp
bits 24-30 should be humidity

Some assumptions:

bits 0-7 device id
bits 8-13 battery state/channel
bit 31-35 CRC or battery state/channel
bit 36 Footer

More later, but this should be enough to create a protocol for you. If possible, also post some measurements after a battery reset and with a low battery voltage.



Update, please get the latest development version from github, replace threechan.c with attached file and run ./setup.sh. Please let me know if pilight-receive shows the correct information for device id 247.


Attached Files
.zip   threechan.zip (Size: 2.74 KB / Downloads: 23)
 
Reply
#9
Hi meloen,

I have delete the pilight install and clone the development git repo. Also replace the threechan.c file and compile all the files. But when I try to start the pilight service (Also do an shutdown -Fr of my Pi) I got an error:
pilight-daemon: ERROR: setting "mode" is invalid

When I try to use your forum search your MySQL is not happy with that search.

How can I fix that service start issue?

Regards Peter

Code:
MyBB has experienced an internal SQL error and cannot continue.


SQL Error:
1064 - You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'LOWER(t.subject) LIKE '%mode%' LOWER(t.subject) LIKE '%is invalid%')' at line 3
Query:
SELECT t.tid, t.firstpost FROM mybb_threads t WHERE 1=1 AND t.fid NOT IN ('25') AND ( LOWER(t.subject) LIKE '%pilight-daemon error setting%' LOWER(t.subject) LIKE '%mode%' LOWER(t.subject) LIKE '%is invalid%')

When I try a second time ./setup.sh I got this
Code:
lqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqk
x pilight configuration options                                              x
x lqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqk x
x x[*] WEBSERVER               enable the built-in webserver               x x
x x[*] UPDATE                  enable the built-in update checker          x x
x x[*] FIRMWARE                auto update the pilight firmware            x x
x x[*] PROTOCOL_ALECTO         support for the Alecto weather stations protx x
x x[*] PROTOCOL_RPI_TEMP       support for the RPi temperature sensor      x x
x x[*] PROTOCOL_BRENNENSTUHL_S support for the Brennenstuhl switch protocolx x
x x[*] PROTOCOL_CLARUS         support for the Clarus switch protocol      x x
x x[*] PROTOCOL_COCO_SWITCH    support for the new ClickOnClickOff switch px x
x x[*] PROTOCOL_COGEX_SWITCH   support for the Cogex switch protocol       x x
x x[*] PROTOCOL_CONRAD_RSL_SWI support for the Conrad RSL switch protocol  x x
x mqqqq↓(+)qqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqq20%qqqqqj
x                                                                            x
tqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqu
x     < Save and Install >   <Cancel and Install>   <      Abort       >     x
mqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqj



-- Configuring done
-- Generating done
-- Build files have been written to: /home/pi/pilight
[ 89%] Built target pilight
[ 89%] Built target pilight_shared
[ 90%] Built target pilight-control
[ 92%] Built target pilight-daemon
[ 93%] Built target pilight-debug
[ 94%] Built target pilight-learn
[ 96%] Built target pilight-raw
[ 97%] Built target pilight-receive
[ 98%] Built target pilight-send
[100%] Built target pilight-uuid
[100%] Built target pilight_static
Install the project...
-- Install configuration: ""
-- Up-to-date: /usr/local/lib/pilight/libpilight.so.3
-- Up-to-date: /usr/local/lib/pilight/libpilight.a
-- Installing: /usr/local/share/pilight
-- Installing: /usr/local/share/pilight/default
-- Up-to-date: /usr/local/share/pilight/default/index.html
-- Up-to-date: /usr/local/share/pilight/default/apple-touch-icon-ipad.png
-- Up-to-date: /usr/local/share/pilight/default/ajax-loader.gif
-- Up-to-date: /usr/local/share/pilight/default/battery_green.png
-- Up-to-date: /usr/local/share/pilight/default/pilight.js
-- Up-to-date: /usr/local/share/pilight/default/apple-touch-icon-iphone.png
-- Up-to-date: /usr/local/share/pilight/default/battery_red.png
-- Up-to-date: /usr/local/share/pilight/default/jquery.mobile-1.3.2.min.css
-- Up-to-date: /usr/local/share/pilight/default/jquery.mobile-1.3.2.min.js
-- Up-to-date: /usr/local/share/pilight/default/apple-touch-icon-iphone-retina-display.png
-- Up-to-date: /usr/local/share/pilight/default/logo.png
-- Up-to-date: /usr/local/share/pilight/default/apple-touch-icon-iphone-retina-display-hr.png
-- Up-to-date: /usr/local/share/pilight/default/jquery-2.0.2.min.js
-- Up-to-date: /usr/local/share/pilight/default/pilight.css
-- Installing: /usr/local/share/pilight/default/images
-- Up-to-date: /usr/local/share/pilight/default/images/icons-36-white.png
-- Up-to-date: /usr/local/share/pilight/default/images/icons-18-white.png
-- Up-to-date: /usr/local/share/pilight/default/favicon.ico
-- Up-to-date: /etc/init.d/pilight
-- Up-to-date: /usr/local/sbin/pilight-daemon
-- Up-to-date: /usr/local/sbin/pilight-raw
-- Up-to-date: /usr/local/sbin/pilight-send
-- Up-to-date: /usr/local/sbin/pilight-control
-- Up-to-date: /usr/local/sbin/pilight-learn
-- Up-to-date: /usr/local/sbin/pilight-receive
-- Up-to-date: /usr/local/sbin/pilight-debug
-- Up-to-date: /usr/local/sbin/pilight-uuid
update-rc.d: using dependency based boot sequencing
insserv: warning: script 'K01tightvncserver' missing LSB tags and overrides
insserv: warning: script 'raspi-rtl' missing LSB tags and overrides
insserv: warning: script 'tightvncserver' missing LSB tags and overrides
root@raspberrypi:/home/pi/pilight#
 
Reply
#10
You'll find your answer either in one of the release blogs, the wiki on here on the forum.
 
Reply
  


Possibly Related Threads...
Thread Author Replies Views Last Post
  [Partially Supported] TFA / Conrad Weather Yves 203 25,979 03-27-2020, 01:21 PM
Last Post: Ascenion
  [Fully Supported] KlikAanKlikUit Motion Sensor koen01 37 15,155 03-26-2020, 02:46 PM
Last Post: Gisto
  Digoo / Baldr / Nexus / Rubicson temperature/humidity sensor thielj 12 3,059 02-10-2020, 10:54 PM
Last Post: ha_username
  Support for Temperaturee sensor clona 4 460 02-10-2020, 02:52 PM
Last Post: clona
  inFactory Weather Sensors porst17 1 356 12-26-2019, 06:43 PM
Last Post: porst17
  gs-iwds07 window sensor Loggisch 48 17,259 12-09-2019, 07:14 PM
Last Post: curlymo
Lightbulb [Fully Supported] Kaku Door sensor (AMST-606) geerttttt 53 28,309 10-19-2019, 06:26 PM
Last Post: curlymo
  433MHz PIR sensor from Amazon ha_username 0 696 09-29-2019, 11:44 PM
Last Post: ha_username
  Bresser 3Ch weather sensors Harald654 13 5,937 02-15-2019, 01:06 PM
Last Post: saak2820
  Pearl weatherstation sensor for FWS-686 & FWS-665 chklump 13 6,356 08-12-2018, 05:34 PM
Last Post: fourty2

Forum Jump:


Browsing: 1 Guest(s)