[weewx-user] Re: Belling the Cat — Was: Launching Weewx

2024-04-16 Thread vince
Wonderful 

On Tuesday, April 16, 2024 at 11:54:49 AM UTC-7 Marie-Laure TERRIENNE wrote:

> vince, avant toute chose, je voudrais vous remercier de m'avoir accompagné 
> pour résoudre un problème ... qui n'en était pas un, mais qui était, comme 
> vous l'avez deviné, un problème lié à ma mauvaise connaissance de 
> l'environnement Linux (Ubuntu dans mon cas).
>
> Je pensais aussi que weewx était une application autonome et qu'avoir un 
> serveur n'était qu'un petit plus.
>
> Vous m'aviez demandé d'installer un serveur (nginx) et allant voir dans 
> mon gestionnaire de paquets, ce serveur et ces dépendances étaient cochés. 
> Oui, coché, mais pas installé ! J'avais mal interprété les coches. Je viens 
> donc de l'installer et de relancer la commande que vous m'aviez dite : 
> http://192.168.0.7/weewx  et Oh miracle, les 
> jolies courbes comme celles de la page weewx.com se sont affichées.
>
> Je pense donc que "mon" problème est résolu. Tout fonctionne très bien.
>
> Encore merci vince.
>
> Cordialement.
>
> Pierre.
>
>
>
>

-- 
You received this message because you are subscribed to the Google Groups 
"weewx-user" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to weewx-user+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/weewx-user/fec6942e-0a5d-46c2-904b-9440bf746a20n%40googlegroups.com.


[weewx-user] Re: Belling the Cat — Was: Launching Weewx

2024-04-16 Thread Marie-Laure TERRIENNE
vince, avant toute chose, je voudrais vous remercier de m'avoir accompagné 
pour résoudre un problème ... qui n'en était pas un, mais qui était, comme 
vous l'avez deviné, un problème lié à ma mauvaise connaissance de 
l'environnement Linux (Ubuntu dans mon cas).

Je pensais aussi que weewx était une application autonome et qu'avoir un 
serveur n'était qu'un petit plus.

Vous m'aviez demandé d'installer un serveur (nginx) et allant voir dans mon 
gestionnaire de paquets, ce serveur et ces dépendances étaient cochés. Oui, 
coché, mais pas installé ! J'avais mal interprété les coches. Je viens donc 
de l'installer et de relancer la commande que vous m'aviez dite : 
http://192.168.0.7/weewx  et Oh miracle, les 
jolies courbes comme celles de la page weewx.com se sont affichées.

Je pense donc que "mon" problème est résolu. Tout fonctionne très bien.

Encore merci vince.

Cordialement.

Pierre.



-- 
You received this message because you are subscribed to the Google Groups 
"weewx-user" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to weewx-user+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/weewx-user/924017b0-2f98-4533-a4bb-50cdbae892d1n%40googlegroups.com.


[weewx-user] Re: Belling the Cat — Was: Launching Weewx

2024-04-16 Thread vince
Pierre - I'm sorry but I have to ask some more general questions:

   - have you ever run weewx before, or is this a new installation ?
   - Are you a new unix/linux user ?
   - Did you install a webserver onto your weewx computer ?  If so, which 
   one ?
   
Your questions tell me that you do not quite understand the entire system 
end-to-end, unless GoogleTranslate is misleading me.

   - weewx connects to your weather station to query it for sensor data
   - weewx periodically saves that data to a sqlite3 database named 
   'weewx.sdb'
   - weewx also periodically generates web pages and images 'from' that 
   data and saves them to /var/www/html/weewx by default

And:

   - you 'also' need to install a webserver app of your choice.  I 
   recommend nginx as the webserver to use
   - if you have weewx and a webserver installed, you should not see any 
   permission errors at all
   - you should not need to write your own software to read the database 
   and write out your own web pages or images

We can fix your permission errors but I wanted to make sure you understand 
what a complete weewx system looks like.  You need weewx 'and' a webserver 
installed and both need to be configured so that they work together.  If 
you install weewx and nginx, you should not be seeing any errors at all, 
and you should be able to browser your web pages via any browser.


(last questions he asked via Google Translate for our mostly 
English-speaking readers here)

*Apparently, my station is recognized and information is saved in a 
file named "weewx.sdb". What is this type of database?*







*I think the error lines correspond to data not provided by my 
station.How do we get graphical presentations like those shown on the 
right of the page: https://weewx.com/?I understand that these are 
images of applications that some users were willing to show, but that this 
is not an "option" of weewx. Yes No ?Being an Object Pascal programmer 
with Lazarus, I could make a similar presentation as long as I could insert 
the data from my station. But to do this, I need to be able to retrieve 
this data, updated every "x" seconds via weewx. Where to get this? In which 
file?*

-- 
You received this message because you are subscribed to the Google Groups 
"weewx-user" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to weewx-user+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/weewx-user/59859d5d-832f-44b9-b755-b4447db5ba98n%40googlegroups.com.


[weewx-user] Re: Belling the Cat — Was: Launching Weewx

2024-04-16 Thread Marie-Laure TERRIENNE
Merci "vince" pour ces informations.

J'ai modifiée le fichier /etc/weewx/weewx.conf comme vous me l'avez dit : 
ma station figure maintenant dans le fichier de configuration.

Appliquant cette commande : sudo systemctl restart weewx" to restart weewx 
, rien ne s'affiche dans le terminal et rien ne se passe, tout du moins 
visuellement.

Appliquant cette commande : sudo journalctl -u weewx --no-pager , j'obtiens 
un volumineux fichier dont les dernières lignes sont :

...
















































*avril 16 17:07:48 PC-64 weewxd[1319]: DEBUG weewx.drivers.fousb: get 1452 
records since 2024-04-16 15:12:30avril 16 17:07:48 PC-64 weewxd[1319]: INFO 
weewx.drivers.fousb: synchronising to the weather station (quality=0)avril 
16 17:07:49 PC-64 weewxd[1319]: DEBUG weewx.drivers.fousb: status 
{'rain_overflow': 0, 'lost_connection': 0, 'unknown': 0} (0)avril 16 
17:08:00 PC-64 weewxd[1319]: DEBUG weewx.drivers.fousb: new dataavril 16 
17:08:00 PC-64 weewxd[1319]: DEBUG weewx.drivers.fousb: setting sensor 
clock 0.516293avril 16 17:08:00 PC-64 weewxd[1319]: DEBUG 
weewx.drivers.fousb: live synchronisedavril 16 17:08:00 PC-64 weewxd[1319]: 
DEBUG weewx.drivers.fousb: packet timestamp is 15:08:00avril 16 17:08:00 
PC-64 weewxd[1319]: DEBUG weewx.drivers.fousb: estimated log time 15:03:36 
+/- 24s (15:03:12..15:04:00)avril 16 17:08:45 PC-64 weewxd[1319]: DEBUG 
weewx.drivers.fousb: avoid 5.908215284347534avril 16 17:08:51 PC-64 
weewxd[1319]: DEBUG weewx.drivers.fousb: new dataavril 16 17:08:51 PC-64 
weewxd[1319]: DEBUG weewx.drivers.fousb: packet timestamp is 15:08:48avril 
16 17:08:51 PC-64 weewxd[1319]: DEBUG weewx.drivers.fousb: estimated log 
time 15:03:54 +/- 6s (15:03:48..15:04:00)avril 16 17:08:51 PC-64 
weewxd[1319]: DEBUG weewx.drivers.fousb: synchronised to 2024-04-16 
15:03:54 for ptr 0xb870avril 16 17:08:51 PC-64 weewxd[1319]: DEBUG 
weewx.drivers.fousb: found 0 archive recordsavril 16 17:08:51 PC-64 
weewxd[1319]: INFO weewx.engine: Starting main packet loop.avril 16 
17:08:51 PC-64 weewxd[1319]: INFO weewx.drivers.fousb: station status 
{'rain_overflow': 0, 'lost_connection': 0, 'unknown': 0} (0)avril 16 
17:10:52 PC-64 weewxd[1319]: INFO weewx.manager: Added record 2024-04-16 
17:10:00 CEST (1713280200) to database 'weewx.sdb'avril 16 17:10:52 PC-64 
weewxd[1319]: INFO weewx.manager: Added record 2024-04-16 17:10:00 CEST 
(1713280200) to daily summary in 'weewx.sdb'avril 16 17:10:52 PC-64 
weewxd[1319]: DEBUG weewx.reportengine: Running reports for latest time in 
the database.avril 16 17:10:52 PC-64 weewxd[1319]: DEBUG 
weewx.reportengine: Running report 'SeasonsReport'avril 16 17:10:52 PC-64 
weewxd[1319]: DEBUG weewx.reportengine: Found configuration file 
/etc/weewx/skins/Seasons/skin.conf for report 'SeasonsReport'avril 16 
17:10:52 PC-64 weewxd[1319]: DEBUG weewx.reportengine: Running generators 
for report 'SeasonsReport' in directory '/etc/weewx/skins/Seasons'avril 16 
17:10:52 PC-64 weewxd[1319]: DEBUG weewx.cheetahgenerator: Using search 
list ['weewx.cheetahgenerator.Almanac', 'weewx.cheetahgenerator.Current', 
'weewx.cheetahgenerator.DisplayOptions', 'weewx.cheetahgenerator.Extras', 
'weewx.cheetahgenerator.Gettext', 'weewx.cheetahgenerator.JSONHelpers', 
'weewx.cheetahgenerator.PlotInfo', 'weewx.cheetahgenerator.SkinInfo', 
'weewx.cheetahgenerator.Station', 'weewx.cheetahgenerator.Stats', 
'weewx.cheetahgenerator.UnitInfo']avril 16 17:10:52 PC-64 weewxd[1319]: 
DEBUG weewx.manager: Daily summary version is 4.0avril 16 17:10:52 PC-64 
weewxd[1319]: INFO weewx.cheetahgenerator: Generated 8 files for report 
SeasonsReport in 0.49 secondsavril 16 17:10:52 PC-64 weewxd[1319]: DEBUG 
weewx.manager: Daily summary version is 4.0avril 16 17:10:53 PC-64 
weewxd[1319]: ERROR weewx.imagegenerator: Unable to save to file 
'/var/www/html/weewx/dayET.png' [Errno 13] Permission non accordée: 
'/var/www/html/weewx/dayET.png':avril 16 17:10:53 PC-64 weewxd[1319]: ERROR 
weewx.imagegenerator: Unable to save to file 
'/var/www/html/weewx/dayUV.png' [Errno 13] Permission non accordée: 
'/var/www/html/weewx/dayUV.png':avril 16 17:10:53 PC-64 weewxd[1319]: ERROR 
weewx.imagegenerator: Unable to save to file 
'/var/www/html/weewx/dayradiation.png' [Errno 13] Permission non accordée: 
'/var/www/html/weewx/dayradiation.png':avril 16 17:10:53 PC-64 
weewxd[1319]: ERROR weewx.imagegenerator: Unable to save to file 
'/var/www/html/weewx/dayvolt.png' [Errno 13] Permission non accordée: 
'/var/www/html/weewx/dayvolt.png':avril 16 17:10:53 PC-64 weewxd[1319]: 
ERROR weewx.imagegenerator: Unable to save to file 
'/var/www/html/weewx/weekET.png' [Errno 13] Permission non accordée: 
'/var/www/html/weewx/weekET.png':avril 16 17:10:53 PC-64 weewxd[1319]: 
ERROR weewx.imagegenerator: Unable to save to file 
'/var/www/html/weewx/weekUV.png' [Errno 13] Permission non accordée: 
'/var/www/html/weewx/weekUV.png':avril 16 17:10:53 PC-64 weewxd[1319]: 
ERROR weewx.imagegenerator: Unable to save to file 
'/v