×

INDI Library v2.0.7 is Released (01 Apr 2024)

Bi-monthly release with minor bug fixes and improvements

Weather radio don't want connect

  • Posts: 2255
  • Thank you received: 223
BME280 connected on the I2C port, so far so good.

{
"BME280": {
"init": true,
"Temp": 23.48,
"Pres": 1019.813,
"Hum": 40.57813
},
"MLX90614": {
"init": true,
"T amb": 22.42999,
"T obj": 22.95001
}
}
3 years 1 month ago #69192

Please Log in or Create an account to join the conversation.

  • Posts: 2255
  • Thank you received: 223
and finally the TSL2591

{
"BME280": {
"init": true,
"Temp": 22.17,
"Pres": 1019.764,
"Hum": 42.69531
},
"MLX90614": {
"init": true,
"T amb": 21.67001,
"T obj": 22.11001
},
"TSL2591": {
"init": true,
"Lux": 35.93759,
"Visible": 10489,
"IR": 1596,
"Gain": 32,
"Timing": 1
}
}
3 years 1 month ago #69193

Please Log in or Create an account to join the conversation.

  • Posts: 2255
  • Thank you received: 223
ok... not getting the data on the webpage (works fine in Ekos).

root@heidenrod-obs:/usr/share/weatherradio/html/data# more RTdata_lastupdate.json
{
"CloudCover":null,
"DewPoint":null,
"Humidity":null,
"Pressure":null,
"RainVolume":null,
"RaindropFrequency":null,
"SQM":null,
"SkyTemperature":null,
"Temperature":null,
"WindDirection":null,
"WindGust":null,
"WindSpeed":null,
"timestamp":1616625127000
}
root@heidenrod-obs:/usr/share/weatherradio/html/data#
3 years 4 weeks ago #69195

Please Log in or Create an account to join the conversation.

  • Posts: 2255
  • Thank you received: 223
root@heidenrod-obs:/usr/share/weatherradio# ./bin/wr_rrd_update.py -v
Updating data from "Weather Radio"@localhost:7624
Timeout Weather Radio CONNECTION
Timeout Weather Radio CONNECTION
Timeout Weather Radio CONNECTION
Timeout Weather Radio CONNECTION
Timeout Weather Radio CONNECTION
Timeout Weather Radio CONNECTION
Timeout Weather Radio CONNECTION
Timeout Weather Radio CONNECTION
Timeout Weather Radio CONNECTION
Timeout Weather Radio CONNECTION
Timeout Weather Radio CONNECTION
Timeout Weather Radio CONNECTION
Setting serial port to /dev/ttyUSB0
Waiting for connection...
got message by host :localhost :
INDImessage Weather Radio [INFO] Failed to receive full response: Timeout error. (Return code: -4). Retrying...
got message by host :localhost :
INDImessage Weather Radio [INFO] Failed to receive full response: Timeout error. (Return code: -4). Retrying...
got message by host :localhost :
INDImessage Weather Radio [ERROR] Parsing error breaking bad at 0
root@heidenrod-obs:/usr/share/weatherradio#
Last edit: 3 years 4 weeks ago by Gonzothegreat.
3 years 4 weeks ago #69199

Please Log in or Create an account to join the conversation.

  • Posts: 2255
  • Thank you received: 223
Doesn't seem to work in Ekos now :(
 
3 years 4 weeks ago #69210
Attachments:

Please Log in or Create an account to join the conversation.

  • Posts: 2255
  • Thank you received: 223
For some unknown reasons it started to work...

root@heidenrod-obs:/usr/share/weatherradio# ./bin/wr_rrd_update.py -v
Updating data from "Weather Radio"@localhost:7624
Connection established to "Weather Radio"@localhost:7624
Reading weather sensor values...
Reading weather sensor values... (succeeded)
Weather parameters read from "Weather Radio"@localhost:7624
root@heidenrod-obs:/usr/share/weatherradio#


however the weatherradio.html isn't showing any data at all
3 years 4 weeks ago #69217

Please Log in or Create an account to join the conversation.

  • Posts: 2255
  • Thank you received: 223
An interesting observation:
it works with -v but not without

root@heidenrod-obs:/usr/share/weatherradio# /usr/share/weatherradio/bin/wr_rrd_update.py -v
Updating data from "Weather Radio"@localhost:7624
Connection established to "Weather Radio"@localhost:7624
Reading weather sensor values...
Reading weather sensor values... (succeeded)
Weather parameters read from "Weather Radio"@localhost:7624
root@heidenrod-obs:/usr/share/weatherradio#

root@heidenrod-obs:/usr/share/weatherradio# /usr/share/weatherradio/bin/wr_rrd_update.py
Establishing connection FAILED to "Weather Radio"@localhost:7624
root@heidenrod-obs:/usr/share/weatherradio#
3 years 4 weeks ago #69218

Please Log in or Create an account to join the conversation.

  • Posts: 2255
  • Thank you received: 223
I am wondering why the DHT is being pulled while it's not configured on the board.

# rrdtool fetch sensors.rrd AVERAGE -s -1d -r 1h
BME280_Temp BME280_Pres BME280_Hum DHT_Temp DHT_Hum MLX90614_Tamb MLX90614_Tobj TSL2591_Lux
3 years 4 weeks ago #69246

Please Log in or Create an account to join the conversation.

  • Posts: 1187
  • Thank you received: 370
That's OK. The RRD file contains columns for all supported sensors, not only for the used ones.

Regarding the problem above with the -v flag - hm, strange, never seen. Try to use the debugger pdb.
3 years 4 weeks ago #69257

Please Log in or Create an account to join the conversation.

  • Posts: 2255
  • Thank you received: 223
I will try the pdb to debug, however I do not understand why the weatherradio.html returns nothing while the sensordata.html does.
3 years 4 weeks ago #69265

Please Log in or Create an account to join the conversation.

  • Posts: 1187
  • Thank you received: 370
weatherradio.html and sensordata.html have different RRD files as data source.
3 years 4 weeks ago #69266

Please Log in or Create an account to join the conversation.

  • Posts: 2255
  • Thank you received: 223
yes, the weather.rrd does not seem to be populated correctly, and that gives you an "empty" json file after so it's not showing anything on the webpage.

root@heidenrod-obs:/usr/share/weatherradio# ll
total 6352
drwxr-xr-x 4 root root 4096 Mar 25 13:17 ./
drwxr-xr-x 148 root root 4096 Mar 24 22:21 ../
drwxr-xr-x 4 root root 4096 Mar 25 17:15 bin/
drwxr-xr-x 5 root root 4096 Mar 25 17:16 html/
-rw-r--r-- 1 root root 2584784 Mar 25 22:29 sensors.rrd
-rw-r--r-- 1 root root 3896880 Mar 25 22:29 weather.rrd
root@heidenrod-obs:/usr/share/weatherradio# rrdtool fetch weather.rrd AVERAGE -s -1d -r 1h
Temperature Pressure Humidity DewPoint CloudCover SkyTemperature SQM WindSpeed WindGust WindDirection RaindropFrequency RainVolume

1616626800: nan nan nan nan nan nan nan nan nan nan nan nan
1616630400: nan nan nan nan nan nan nan nan nan nan nan nan
1616634000: nan nan nan nan nan nan nan nan nan nan nan nan
1616637600: nan nan nan nan nan nan nan nan nan nan nan nan
1616641200: nan nan nan nan nan nan nan nan nan nan nan nan
1616644800: nan nan nan nan nan nan nan nan nan nan nan nan
1616648400: nan nan nan nan nan nan nan nan nan nan nan nan
1616652000: nan nan nan nan nan nan nan nan nan nan nan nan
1616655600: nan nan nan nan nan nan nan nan nan nan nan nan
1616659200: nan nan nan nan nan nan nan nan nan nan nan nan
1616662800: nan nan nan nan nan nan nan nan nan nan nan nan
1616666400: nan nan nan nan nan nan nan nan nan nan nan nan
1616670000: nan nan nan nan nan nan nan nan nan nan nan nan
1616673600: nan nan nan nan nan nan nan nan nan nan nan nan
1616677200: nan nan nan nan nan nan nan nan nan nan nan nan
1616680800: 0.0000000000e+00 0.0000000000e+00 0.0000000000e+00 0.0000000000e+00 0.0000000000e+00 0.0000000000e+00 0.0000000000e+00 nan nan nan nan nan
1616684400: 0.0000000000e+00 0.0000000000e+00 0.0000000000e+00 0.0000000000e+00 0.0000000000e+00 0.0000000000e+00 0.0000000000e+00 nan nan nan nan nan
1616688000: 0.0000000000e+00 0.0000000000e+00 0.0000000000e+00 0.0000000000e+00 0.0000000000e+00 0.0000000000e+00 0.0000000000e+00 nan nan nan nan nan
1616691600: 0.0000000000e+00 0.0000000000e+00 0.0000000000e+00 0.0000000000e+00 0.0000000000e+00 0.0000000000e+00 0.0000000000e+00 nan nan nan nan nan
1616695200: 0.0000000000e+00 0.0000000000e+00 0.0000000000e+00 0.0000000000e+00 0.0000000000e+00 0.0000000000e+00 0.0000000000e+00 nan nan nan nan nan
1616698800: 0.0000000000e+00 0.0000000000e+00 0.0000000000e+00 0.0000000000e+00 0.0000000000e+00 0.0000000000e+00 0.0000000000e+00 nan nan nan nan nan
1616702400: 0.0000000000e+00 0.0000000000e+00 0.0000000000e+00 0.0000000000e+00 0.0000000000e+00 0.0000000000e+00 0.0000000000e+00 nan nan nan nan nan
1616706000: 0.0000000000e+00 0.0000000000e+00 0.0000000000e+00 0.0000000000e+00 0.0000000000e+00 0.0000000000e+00 0.0000000000e+00 nan nan nan nan nan
1616709600: 0.0000000000e+00 0.0000000000e+00 0.0000000000e+00 0.0000000000e+00 0.0000000000e+00 0.0000000000e+00 0.0000000000e+00 nan nan nan nan nan
1616713200: nan nan nan nan nan nan nan nan nan nan nan nan
root@heidenrod-obs:/usr/share/weatherradio#
3 years 4 weeks ago #69269

Please Log in or Create an account to join the conversation.

Time to create page: 1.114 seconds