×
INDI Library v1.8.6 Released (21 Aug 2020)

August 2020 release of INDI Library v1.8.6 introduces new drivers while providing fixes and improvements to existing devices and core framework.

Weather radio don't want connect

2 months 1 week ago 2 months 1 week ago by astrolivier76.
astrolivier76
Senior Boarder
Senior Boarder
Posts: 48
More
Topic Author
Weather radio don't want connect #56817
Hi Wolfgang,

So I resolved the issue. I have deleted the config files in the folder /home/"name"/.indi
there are 2 config files and after delete I can to save my parameters.
So, it"s a good news for me!!!
but, because there is a but ^^, when I save my parameters, the % of warning return always to default. For example, for the cloud, I have enter 0 to min and 100 to max, then i have put 30% for warning. If I stop and quit kstars then i restart it, the % is return to 50%.
I have checked the weather radio conf xml file in the /.indi folder. Maybe there is an other location to the config file.

And again a big thanks for all this job. :D

Olivier
The following user(s) said Thank You sterne-jaeger

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

2 months 1 week ago
sterne-jaeger
Platinum Boarder
Platinum Boarder
Posts: 642
Karma: 6
More
Weather radio don't want connect #56826
Salut Olivier,
are you sure that it does not load your settings? I did exactly the same and everything worked fine:

Maybe you look into the wrong field. The 50% on the right hand side are the new value that will be applied when you press "Set". But the current value is "30%", which I loaded from the config file.

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
Attachments:

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

2 months 1 week ago
ChrisRowland
Platinum Boarder
Platinum Boarder
Posts: 535
Karma: 9
More
Weather radio don't want connect #56828
What seems to happen is that at least some Arduinos do a reset when the usb serial port connects, then looks for program upload commands. I've found that a two second delay after connect before trying to communicate is enough.
The following user(s) said Thank You sterne-jaeger

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

2 months 1 week ago
sterne-jaeger
Platinum Boarder
Platinum Boarder
Posts: 642
Karma: 6
More
Weather radio don't want connect #56835
Ah, interesting, that sounds like an explanation. Since I hardcoded it, I took 5s to be on the safe side.

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

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

2 months 1 week ago 2 months 1 week ago by astrolivier76.
astrolivier76
Senior Boarder
Senior Boarder
Posts: 48
More
Topic Author
Weather radio don't want connect #56840
Hi,
You were right!
I’m very bad!! All is ok!!
Sorry for that! I’m tired!
Olivier

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

2 months 1 week ago
astrolivier76
Senior Boarder
Senior Boarder
Posts: 48
More
Topic Author
Weather radio don't want connect #56905
So,

I'm happy to say you that all is good!! the indi driver and the web server!! ouahhhh very cool!!
It's perfect.

This is my weather radio web site:
176.135.77.1/weatherradio/

I've juste one question:
when I go to the web site, I must to click on the time range (6h - 1d - 7d or 30d) to see the values and the grpahs.
if I will go on your website the values is instantaneous printed.

So, do you have an idea of why I have this effect?? thank you very much.

Olivier

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

2 months 1 week ago
sterne-jaeger
Platinum Boarder
Platinum Boarder
Posts: 642
Karma: 6
More
Weather radio don't want connect #56907
You could see it in the JavaScript debugger, what happens. There occurs an exception in charts.js line 226
wchart.updateOptions(...)
The problem here is that my JavaScript code expects wind data, which in your case does not exist. You need to comment out everything that is related to "windspeed" and "wchart" in the JavaScript file.

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

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

2 months 1 week ago
astrolivier76
Senior Boarder
Senior Boarder
Posts: 48
More
Topic Author
Weather radio don't want connect #56909
Hello,
I'm very stupid! I'm not a jedi and I should have seen that !! Arff
You are a boss!
Thank you :-)

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

2 months 1 week ago
astrolivier76
Senior Boarder
Senior Boarder
Posts: 48
More
Topic Author
Weather radio don't want connect #56910
I have a last question.
Everything is OK, Web and indi.
But, if I want to use the web server 24 hours a day, I have to let kstars run.
So, is it possible to make a script that starts after each reboot?
Thank you very much
Olivier

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

2 months 1 week ago
sterne-jaeger
Platinum Boarder
Platinum Boarder
Posts: 642
Karma: 6
More
Weather radio don't want connect #56912
Sure, you need indiserver, not kstars. Call
/usr/bin/indiserver -v indi_weatherradio

If you are using a Debian style Linux, create the file /etc/systemd/system/indi-weatherradio.service
[Unit]
Description=INDI server for weather radio

[Service]
Type=simple
User=root
ExecStart=/usr/bin/indiserver -v indi_weatherradio


[Install]
WantedBy=multi-user.target

Save it, enable the service and start it:
sudo systemctl enable indi-weatherradio.service
sudo systemctl start indi-weatherradio.service

This ensures that it starts automatically after reboot. If you want to let it run under a different user, exchange "root" in the script by the user id of choice.

Good luck
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

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

2 months 1 week ago
astrolivier76
Senior Boarder
Senior Boarder
Posts: 48
More
Topic Author
Weather radio don't want connect #56964
Hello Wolfgang,

sorry for the response time, it was really nice.
Everything is functional except for one detail!
I created the service and the server starts well. However, despite this I have to go through my iNDI app on my phone.
To be more cair, this application allows you to see all the INDI servers running. Except, that of weather radio is active but not connected. So I do it manually just like I would in kstars.
Suddenly, the interest of the service becomes limited.
Is there anything else to do to make sure that when the service is started it automatically connects the arduino without having to go through the phone application?

Otherwise, apart from that everything is functional and really very good !!

Many thanks for all this work!

Olivier

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

2 months 1 week ago
sterne-jaeger
Platinum Boarder
Platinum Boarder
Posts: 642
Karma: 6
More
Weather radio don't want connect #56981
Hi Olivier,
the script wr_rrd_update.py should automatically connect to the weather radio service. Check if this script is working as expected - you can run it with the option "-v" to get more verbose output.

Maybe there is a wrong parameter in wr_config.py.

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

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

Time to create page: 1.273 seconds