×

INDI Library v1.9.0 Released (23 Apr 2021)

Major INDI Library release v1.9.0 bring significant internal changes championed by @pawel-soja to modernize core INDI Library drivers and clients. New drivers for DeepSkyDad Flat Panel & Pegasus devices plus further improvements to PCM8 drivers.

Weather radio don't want connect

  • Posts: 732
  • Thank you received: 197
Salut Christophe,
it looks like starting the indiserver fails or it fails with an exception during runtime. Have you tried to start it manually? Execute the following from a terminal and post here what happens:
/usr/bin/indiserver -v indi_weatherradio

Regarding the configurations: there are several configurations:
  • For the Arduino firmware, config.h holds the configuration of the firmware loaded onto the Arduino.
  • The INDI service stores the service configuration in .indi/Weather Radio_config.xml
  • For the web page scripts, wr_config.py holds the configuration for updating the web page data
HTH
Wolfgang
TSA-120 + FSQ-85 + GSO 150/750 | Avalon Linear + M-zero | Moravian G2-8300 + ASI 1600mm pro | KStars/INDI on Raspberry Pi 4 with Raspbian 10
3 months 3 weeks ago #66117

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

  • Posts: 173
  • Thank you received: 3
so here's what it looks like with the command line

nafa@NAFABox:~$ /usr/bin/indiserver -v indi_weatherradio
2021-01-18T22:28:22: startup: /usr/bin/indiserver -v indi_weatherradio
2021-01-18T22:28:22: Driver indi_weatherradio: pid=3666 rfd=3 wfd=6 efd=7
2021-01-18T22:28:22: listening to port 7624 on fd 4
2021-01-18T22:28:22: Driver indi_weatherradio: snooping on GPS Simulator.GEOGRAPHIC_COORD

does it help you understand my problem?

and I always launch it manually, the program and on a dedicated arduino only for the weather.

I think it lasts about 7 days. Is there a way to make it reboot automatically every hour at a certain time?


PS: And something out of the question, since you're so good, would it be possible to get a statistic of the nights?
so that we can know which nights were good during the year.
3 months 3 weeks ago #66141

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

  • Posts: 732
  • Thank you received: 197
Not yet, since this only shows that it is working. You should log the output so that we can find the problem.
/usr/bin/indiserver -v indi_weatherradio >> /tmp/indiserver.log
I wouldn‘t recommend it, better track down the problem. I have it running for months without a problem.

I‘m not so sure what you mean. Is this more than the recording done for the weather radio web page? Take a look at my own instance here: weather.openfuture.de/
TSA-120 + FSQ-85 + GSO 150/750 | Avalon Linear + M-zero | Moravian G2-8300 + ASI 1600mm pro | KStars/INDI on Raspberry Pi 4 with Raspbian 10
3 months 3 weeks ago #66144

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

  • Posts: 173
  • Thank you received: 3
Hello Wolfgang

so I restarted and typed the command line you gave me to record what happens when it disconnects.

About what I meant by "a good average night's sleep."
is that if you put the 30d tab .
Because it makes a kind of average of all, so it works for temperature, humidity and pressure.
But not for clouds and SQM, it gives you values that are not very consistent (in my opinion).

So an interesting option would be to have what are the nights when there were no clouds between 2 SQM values. Like that or could know, as an example, that during "the year" there was a certain number of nights exploitable for observation.
Or we could do the same thing with how many days in the year it was sunny, keeping the days where there were less than a certain percentage of clouds in the morning and in the evening.

I don't know if you know what I mean.

See you soon.
3 months 3 weeks ago #66178

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

  • Posts: 732
  • Thank you received: 197
Christophe,
these are very specific questions and I'm not sure how to calculate these values.

The best way to get closer is to extract the data manually from the RRD file, import it into a spreadsheet and try to build the appropriate formulae. As soon as we have them, we can discuss how to implement them.

To extract the data, you need rrdtool installed on your machine. If it is not present, issue
sudo apt install rrdtool

For extracting the data from the RRD file, use rrdtool fetch. For example, with
rrdtool fetch weather.rrd AVERAGE -s -100d -r 1h
you extract the 1h averages of all parameters of the last 100 days.

If you need additional help, send me a PN here so that we could continue to discuss by email.

Cheers
Wolfgang
TSA-120 + FSQ-85 + GSO 150/750 | Avalon Linear + M-zero | Moravian G2-8300 + ASI 1600mm pro | KStars/INDI on Raspberry Pi 4 with Raspbian 10
3 months 3 weeks ago #66192

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

  • Posts: 173
  • Thank you received: 3
Hello
so I tried this command but it gives me an error.

nafa@NAFABox:~$ rrdtool fetch weather.rrd AVERAGE -s -100d -r 1h
ERROR: opening 'weather.rrd': Aucun fichier ou dossier de ce type
nafa@NAFABox:~$


I also tried to try to decipher the data file, but I think there will be a problem, because the cloud cover depends on a calculation from the sky temperature, as the SQM depends on the Lux value.
So how to do it?
3 months 3 weeks ago #66231

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

  • Posts: 732
  • Thank you received: 197
You need to issue this command from that directory where weather.rrd is located. Should be /usr/local/share/weatherradio or /usr/share/weatherradio.
Cloud coverage is stored directly, so you can access the data directly from the rrd file.
TSA-120 + FSQ-85 + GSO 150/750 | Avalon Linear + M-zero | Moravian G2-8300 + ASI 1600mm pro | KStars/INDI on Raspberry Pi 4 with Raspbian 10
3 months 3 weeks ago #66255

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

  • Posts: 173
  • Thank you received: 3
Ok, so now I got to read the data.
So now, I would have to select a time slot for data collection.
example :from 6pm to 6am
then choose in this time frame the tolerance you want for clouds.
example: 2% of cloud during .
and then do a good day count.
Example : since January 1st there has been : "4" good night.

Do you think it's possible to do it, I realize that it's not directly useful for a night of observation, nor for the security of closing a roof.
But it would be interesting to know and remember which nights have been good during the year, and compared between years and different places.
3 months 3 weeks ago #66258

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

  • Posts: 173
  • Thank you received: 3
Hello
So I just saw that my station spat out this morning.
So how do I find out where and what the problem is?
3 months 3 weeks ago #66281

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

  • Posts: 89
  • Thank you received: 16
If you started your indiserver with this command
/usr/bin/indiserver -v indi_weatherradio >> /tmp/indiserver.log

You could look at /tmp/indiserver.log to see what it says. If it is not too large you could post it or a link to it.

Are you using an Arduino? or a Wemos? See problems with crashes above when using a small memory device with many
sensors.

How many sensors are you running?

My box kept on dying because of dew and wetness, the dampest sensors were getting very crusty due to
electrolysis. I could rescue some of them by cleaning with alcohol and I have tried to preserve my next batch
by covering the contacts with clear nail polish.

It would sometimes run for a week or so, then stop working and I would go out and dry it out to revive it.

Could be a hardware problem or a software problem.



Hope you get it fixed.

Adrian
3 months 3 weeks ago #66292
Attachments:

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

  • Posts: 173
  • Thank you received: 3
hello

You could look at /tmp/indiserver.log to see what it says. If it is not too large you could post it or a link to it.

I can't find the file in "tmp".

Are you using an Arduino? or a Wemos? See problems with crashes above when using a small memory device with many
sensors.


I have a Arduino

How many sensors are you running?


BME280
MLX
TSL2591
3 months 3 weeks ago #66300

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

  • Posts: 89
  • Thank you received: 16
Regarding the tmp file
=================

If the file is not in /tmp the two main possibilites are
- you did not send it there when you started indiserver
- or the box where the indiserver was running has rebooted and /tmp has been emptied

I see that from your post above you are referring to the .service file
This is usually /etc/systemd/system/indi-weatherradio.service
I suppose this is where you are running indiserver from, this file will be run
at each system boot, if the service is enabled with

$ sudo systemctl enable indi-weatherradio.service
Or the service can be manually started with
$ sudo systemctl start indi-weatherradio.service

The indiserver can also be started in other ways
- from the terminal
- by another application (eg. kstars)
[Unit]
Description=INDI server for weather radio
Wants=network-online.target
After=network-online.target
 
[Service]
Type=simple
User=root
ExecStart=/usr/bin/indiserver -v indi_weatherradio
 
[Install]
WantedBy=multi-user.target

You can stop the service and edit this file to change the start line to
ExecStart=/usr/bin/indiserver -v indi_weatherradio >> /tmp/weatherradio_output.txt

Not the >> which sends the output of indiserver to the file.

Then start the service as you usually do.
afa@NAFABox:~$ sudo systemctl start indi-weatherradio.service

You can check whats in the output by typing in a terminal
afa@NAFABox:~$ tail -f /tmp/weatherradio_output.txt

There you will see the output and later on you can copy it to wherever you wish.

Regarding the sensors and Arduino
===========================
I had no trouble with crashes with the three sensors you are using on an Arduino Uno and an Arduino Nano,
but when I added more the memory was not sufficient and I got crashes quickly. There are many different models
of Arduino.

Crashing troublshooting
==================
If your indiserver crashes and your computer is attached to the arduino with a usb cable you can use the serial
monitor for the Arduino IDE (or minicom etc) to see if you can talk to the arduino.

You can try the v and w commands and see if you get something back.
v will give the version of the firmware
w will print out the sensors with their readings

If you can't talk with the arduino then there may be a problem with the arduino or the hardware,
damp and wetness was my problem.
If you can talk to the arduino and indiserver is crashing then there is some other problem, most likely.

My Uno ran with these three sensors for a long time before I had problems with damp and wetness.

Is it a good idea to look at the arduino and the sensors to make sure they are not wet!
3 months 3 weeks ago #66308

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

Time to create page: 1.076 seconds