×

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: 1187
  • Thank you received: 370
Hm, strange. What happens if you place a symbolic link into /etc/apache2/conf-enabled and restart apache:
cd /etc/apache2/conf-enabled/
ln -s ../conf-available/weatherradio.conf .
sudo systemctl restart apache2.service
3 years 5 months ago #63353

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

  • Posts: 294
  • Thank you received: 54
Regarding the "ERROR: Module weatherradio does not exist!" error, I had the same problem but, since the file has a ".conf" extension, I used the command "sudo a2enconf weatherradio" and things got working.

Hope this helps.
The following user(s) said Thank You: Wolfgang Reissenberger
3 years 5 months ago #63356

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

  • Posts: 108
  • Thank you received: 4
I did it already but no effect:
looks like this:
wxr-xr-x 2 root root 4096 Nov 24 17:43 .
drwxr-xr-x 8 root root 4096 Nov 24 19:27 ..
lrwxrwxrwx 1 root root 30 Mär 12 2020 charset.conf -> ../conf-available/charset.conf
lrwxrwxrwx 1 root root 44 Mär 12 2020 localized-error-pages.conf -> ../conf-available/localized-error-pages.conf
lrwxrwxrwx 1 root root 46 Mär 12 2020 other-vhosts-access-log.conf -> ../conf-available/other-vhosts-access-log.conf
lrwxrwxrwx 1 root root 31 Mär 12 2020 security.conf -> ../conf-available/security.conf
lrwxrwxrwx 1 root root 36 Mär 12 2020 serve-cgi-bin.conf -> ../conf-available/serve-cgi-bin.conf
lrwxrwxrwx 1 root root 35 Nov 24 17:43 weatherradio.conf -> ../conf-available/weatherradio.conf

now the restart apache service:

no error, but access to the webpage.

pi@allsky:/etc/apache2/conf-enabled $ sudo systemctl status apache2.service
● apache2.service - The Apache HTTP Server
Loaded: loaded (/lib/systemd/system/apache2.service; enabled; vendor preset: enabled)
Active: active (running) since Tue 2020-11-24 19:30:20 CET; 2min 24s ago
Docs: httpd.apache.org/docs/2.4/
Process: 5221 ExecStart=/usr/sbin/apachectl start (code=exited, status=0/SUCCESS)
Main PID: 5225 (apache2)
Tasks: 55 (limit: 4915)
CGroup: /system.slice/apache2.service
├─5225 /usr/sbin/apache2 -k start
├─5226 /usr/sbin/apache2 -k start
└─5227 /usr/sbin/apache2 -k start

Nov 24 19:30:20 allsky systemd[1]: Starting The Apache HTTP Server...
Nov 24 19:30:20 allsky apachectl[5221]: AH00558: apache2: Could not reliably determine the server's fully qualified domain name, using 127.0.1.1.
Nov 24 19:30:20 allsky systemd[1]: Started The Apache HTTP Server.

mods-enabled:

pi@allsky:/etc/apache2/mods-enabled $ ll
insgesamt 8
drwxr-xr-x 2 root root 4096 Mär 12 2020 .
drwxr-xr-x 8 root root 4096 Nov 24 19:27 ..
lrwxrwxrwx 1 root root 36 Mär 12 2020 access_compat.load -> ../mods-available/access_compat.load
lrwxrwxrwx 1 root root 28 Mär 12 2020 alias.conf -> ../mods-available/alias.conf
lrwxrwxrwx 1 root root 28 Mär 12 2020 alias.load -> ../mods-available/alias.load
lrwxrwxrwx 1 root root 33 Mär 12 2020 auth_basic.load -> ../mods-available/auth_basic.load
lrwxrwxrwx 1 root root 33 Mär 12 2020 authn_core.load -> ../mods-available/authn_core.load
lrwxrwxrwx 1 root root 33 Mär 12 2020 authn_file.load -> ../mods-available/authn_file.load
lrwxrwxrwx 1 root root 33 Mär 12 2020 authz_core.load -> ../mods-available/authz_core.load
lrwxrwxrwx 1 root root 33 Mär 12 2020 authz_host.load -> ../mods-available/authz_host.load
lrwxrwxrwx 1 root root 33 Mär 12 2020 authz_user.load -> ../mods-available/authz_user.load
lrwxrwxrwx 1 root root 32 Mär 12 2020 autoindex.conf -> ../mods-available/autoindex.conf
lrwxrwxrwx 1 root root 32 Mär 12 2020 autoindex.load -> ../mods-available/autoindex.load
lrwxrwxrwx 1 root root 30 Mär 12 2020 deflate.conf -> ../mods-available/deflate.conf
lrwxrwxrwx 1 root root 30 Mär 12 2020 deflate.load -> ../mods-available/deflate.load
lrwxrwxrwx 1 root root 26 Mär 12 2020 dir.conf -> ../mods-available/dir.conf
lrwxrwxrwx 1 root root 26 Mär 12 2020 dir.load -> ../mods-available/dir.load
lrwxrwxrwx 1 root root 26 Mär 12 2020 env.load -> ../mods-available/env.load
lrwxrwxrwx 1 root root 29 Mär 12 2020 filter.load -> ../mods-available/filter.load
lrwxrwxrwx 1 root root 27 Mär 12 2020 mime.conf -> ../mods-available/mime.conf
lrwxrwxrwx 1 root root 27 Mär 12 2020 mime.load -> ../mods-available/mime.load
lrwxrwxrwx 1 root root 32 Mär 12 2020 mpm_event.conf -> ../mods-available/mpm_event.conf
lrwxrwxrwx 1 root root 32 Mär 12 2020 mpm_event.load -> ../mods-available/mpm_event.load
lrwxrwxrwx 1 root root 34 Mär 12 2020 negotiation.conf -> ../mods-available/negotiation.conf
lrwxrwxrwx 1 root root 34 Mär 12 2020 negotiation.load -> ../mods-available/negotiation.load
lrwxrwxrwx 1 root root 33 Mär 12 2020 reqtimeout.conf -> ../mods-available/reqtimeout.conf
lrwxrwxrwx 1 root root 33 Mär 12 2020 reqtimeout.load -> ../mods-available/reqtimeout.load
lrwxrwxrwx 1 root root 31 Mär 12 2020 setenvif.conf -> ../mods-available/setenvif.conf
lrwxrwxrwx 1 root root 31 Mär 12 2020 setenvif.load -> ../mods-available/setenvif.load
lrwxrwxrwx 1 root root 29 Mär 12 2020 status.conf -> ../mods-available/status.conf
lrwxrwxrwx 1 root root 29 Mär 12 2020 status.load -> ../mods-available/status.load
3 years 5 months ago #63360

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

  • Posts: 108
  • Thank you received: 4
Hi,

what you write is exactly what the docs are saying, but this doesn’t work. Do you mean eventually I should use:

Sudo a2enmod Weatherradio.conf ?
3 years 5 months ago #63362

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

  • Posts: 108
  • Thank you received: 4
Hi again,

sudo a2enconf weatherradio
Conf weatherradio already enabled
3 years 5 months ago #63363

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

  • Posts: 108
  • Thank you received: 4
done, I had to delete the manual symlink and did the a2enconf ..

sudo rm weatherradio.conf
pi@allsky:/etc/apache2/conf-enabled $ sudo a2enconf weatherradio
Enabling conf weatherradio.
To activate the new configuration, you need to run:
systemctl reload apache2
pi@allsky:/etc/apache2/conf-enabled $ systemctl reload apache2
3 years 5 months ago #63364

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

  • Posts: 1187
  • Thank you received: 370
Perfectly right, the documentation is wrong. It needs to be
sudo a2enconf weatherradio
I corrected it in the current version.
3 years 5 months ago #63365

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

  • Posts: 108
  • Thank you received: 4
done,

thanks a lot
3 years 5 months ago #63367

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

  • Posts: 89
  • Thank you received: 16
In case anyone else has tried allsky on the pi you are running weatherradio on you may find that weatherradio suddenly stops serving webpages

One workaround is;
Ensure apache is running.

sudo systemclt status apache2

If you installed allsky it will install lighttpd and that will grab port 80 so apache can't run unless you change the port it listens to to something other than 80.

I changed it to port 81

Then you would access weather radio as

http://weather radio:81/weatherradio

A better solution would be to get weatherradio to run on lighttpd or to get allsky to run on apache
3 years 5 months ago #63413

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

  • Posts: 250
  • Thank you received: 3

Replied by Porchet on topic Weather radio crash

hello
I have a small problem with WeatherRadio, not serious but recurring.
I don't know for what but each time, after a certain time I have the weather crashing.
So I have to restart the serverindi of the weather, it can take a week or sometimes less or more.
Who has an idea of where the problem can come from.
I have version 1.8
3 years 4 months ago #63524

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

  • Posts: 1187
  • Thank you received: 370
Hm, strange, haven't seen that in my setup. Mine is running for weeks without a problem.

Do you have a log file available?
3 years 4 months ago #63526

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

  • Posts: 1187
  • Thank you received: 370
Absolutely. If there is somebody out there having a config file for lighthttpd, it would be great to share it. Then I could include it into the next release.

Btw, it should not be that complicated, since it simply serves some files.
3 years 4 months ago #63528

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

Time to create page: 0.540 seconds