×

INDI Library v1.9.9 Released (30 Nov 2022)

Bi-monthly INDI Library released with new drivers and bug fixes.

Weather radio don't want connect

  • Posts: 2153
  • Thank you received: 206
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
}
}
Kstars Mac osx
Odroid C4 / WO Redcat51 / CEM25p / ZWO533MC / QHY5L-II-M (OAG)
1 year 10 months ago #69192

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

  • Posts: 2153
  • Thank you received: 206
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
}
}
Kstars Mac osx
Odroid C4 / WO Redcat51 / CEM25p / ZWO533MC / QHY5L-II-M (OAG)
1 year 10 months ago #69193

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

  • Posts: 2153
  • Thank you received: 206
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#
Kstars Mac osx
Odroid C4 / WO Redcat51 / CEM25p / ZWO533MC / QHY5L-II-M (OAG)
1 year 10 months ago #69195

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

  • Posts: 2153
  • Thank you received: 206
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#
Kstars Mac osx
Odroid C4 / WO Redcat51 / CEM25p / ZWO533MC / QHY5L-II-M (OAG)
Last edit: 1 year 10 months ago by Gonzothegreat.
1 year 10 months ago #69199

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

  • Posts: 2153
  • Thank you received: 206
Doesn't seem to work in Ekos now :(
 
Kstars Mac osx
Odroid C4 / WO Redcat51 / CEM25p / ZWO533MC / QHY5L-II-M (OAG)
1 year 10 months ago #69210
Attachments:

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

  • Posts: 2153
  • Thank you received: 206
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
Kstars Mac osx
Odroid C4 / WO Redcat51 / CEM25p / ZWO533MC / QHY5L-II-M (OAG)
1 year 10 months ago #69217

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

  • Posts: 2153
  • Thank you received: 206
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#
Kstars Mac osx
Odroid C4 / WO Redcat51 / CEM25p / ZWO533MC / QHY5L-II-M (OAG)
1 year 10 months ago #69218

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

  • Posts: 2153
  • Thank you received: 206
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
Kstars Mac osx
Odroid C4 / WO Redcat51 / CEM25p / ZWO533MC / QHY5L-II-M (OAG)
1 year 10 months ago #69246

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

  • Posts: 1017
  • Thank you received: 303
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.
TSA-120 + FSQ-85 + ONTC 10"F4 Newton + epsilon-160 | Avalon Linear + M-zero | ASI 1600mm pro + 6200mm pro | KStars/INDI on Raspberry Pi 4/Intel NUC
1 year 10 months ago #69257

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

  • Posts: 2153
  • Thank you received: 206
I will try the pdb to debug, however I do not understand why the weatherradio.html returns nothing while the sensordata.html does.
Kstars Mac osx
Odroid C4 / WO Redcat51 / CEM25p / ZWO533MC / QHY5L-II-M (OAG)
1 year 10 months ago #69265

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

  • Posts: 1017
  • Thank you received: 303
weatherradio.html and sensordata.html have different RRD files as data source.
TSA-120 + FSQ-85 + ONTC 10"F4 Newton + epsilon-160 | Avalon Linear + M-zero | ASI 1600mm pro + 6200mm pro | KStars/INDI on Raspberry Pi 4/Intel NUC
1 year 10 months ago #69266

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

  • Posts: 2153
  • Thank you received: 206
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#
Kstars Mac osx
Odroid C4 / WO Redcat51 / CEM25p / ZWO533MC / QHY5L-II-M (OAG)
1 year 10 months ago #69269

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

Time to create page: 1.655 seconds