[weewx-user] Re: Rsync connection to remote server

2021-04-14 Thread Dun Mac
Thank you, Vince (once again). I had used my standard login to create the 
config file and had not created it as the root user. It is now working. 

On Thursday, April 15, 2021 at 1:19:49 PM UTC+10 vince wrote:

> You should not alter your system-wide /etc/ssh/ssh_config at all and you 
> should never get prompted for a password if you have it set up correctly.
>
> That stanza needs to be in root's ssh config file, which likely is 
> /root/.ssh/config 
> on a pi.   Your weewx.conf file needs to use the same 'server = x.x.x.x' 
> setting that the 'host' entry of root's ssh config file uses.
>
> On Wednesday, April 14, 2021 at 5:37:25 PM UTC-7 Dun Mac wrote:
>
>> This is my ~/.ssh/config file;
>> Host 107.xxx.xxx.xxx
>> IdentityFile ~/.ssh/id_rsa
>> User o1
>>
>> When my /etc/ssh/ssh_config file has;
>> PasswordAuthentication no
>> the Rsync fails .. Permission denied 
>> (publickey,gssapi-keyex,gssapi-with-mic,password)..
>>
>> When my /etc/ssh/ssh_config file has;
>> #PasswordAuthentication no
>> the rsync (running wee_reports) requests a password and then the transfer 
>> proceeds correctly
>>
>>
>>
>> On Thursday, April 15, 2021 at 2:54:53 AM UTC+10 vince wrote:
>>
>>> This is rsync 101.You need the account you are running weewx under 
>>> (root) to have a ~/.ssh/config file that tells it which key to use to 
>>> connect to the remote system, as well as which account to use on the remote 
>>> side.
>>>
>>> Host my.remote.host.com
>>>   IdentityFile ~/.ssh/my_private_key
>>>   user my_remote_username
>>>
>>> If you do that, then as root you should be able to rsync to 
>>> my.remote.host.com and it will log in there as my_remote_username
>>> On Tuesday, April 13, 2021 at 11:15:12 PM UTC-7 Dun Mac wrote:
>>>
>>>> Hi, 
>>>> I have established a direct connection to a web server (GreenGeeks) 
>>>> with the SSH keys added to the remote server. I can log on to the remote 
>>>> server via 
>>>> "ssh user...@170.x.xxx.xx" and it logs on with no passwords. 
>>>> When I set weewx.conf,  Rsync to true I get the following error message 
>>>> in syslog;
>>>>
>>>> Apr 14 12:00:36 RPi-weather weewx[29143] DEBUG weewx.reportengine: 
>>>> Running report 'RSYNC'
>>>> Apr 14 12:00:36 RPi-weather weewx[29143] DEBUG weewx.reportengine: 
>>>> Found configuration file /etc/weewx/skins/Rsync/skin.conf for report 
>>>> 'RSYNC'
>>>> Apr 14 12:00:36 RPi-weather weewx[29143] DEBUG weeutil.rsyncupload: 
>>>> rsyncupload: cmd: [['rsync', '--archive', '--stats', '-e ssh', 
>>>> '/var/www/html/weewx/', 
>>>> 'xxx...@107.x.xxx.xx:/home//weewx/wx_standard_report']]
>>>> Apr 14 12:00:39 RPi-weather weewx[29143] ERROR weeutil.rsyncupload: 
>>>> [['rsync', '--archive', '--stats', '-e ssh', '/var/www/html/weewx/', 
>>>> 'xxx...@107.x.1xxx.xx:Permission denied 
>>>> (publickey,gssapi-keyex,gssapi-with-mic,password).. rsync: connection 
>>>> unexpectedly closexxxd (0 bytes received so far) [sender]. rsync error: 
>>>> unexplained error (code 255) /home/xxx/weewx/wx_standard_report']] 
>>>> reported errors: xxx...@107.x.xx.xx: at io.c(235) [sender=3.1.3]
>>>> Apr 14 12:00:39 RPi-weather weewx[29143] INFO weeutil.rsyncupload: 
>>>> rsync executed in 2.62 seconds
>>>>
>>>> Would someone be kind enough to post their ~/.ssh/config and their 
>>>> /etc/ssh/ssh_config and /etc/ssh/sshd_config files so I can see if I have 
>>>> an error in one of these files with my setup, please. Any other feedback 
>>>> would also be very welcome.
>>>> Duncan
>>>>
>>>

-- 
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/6d6bbc0a-1b25-4ab5-a33d-e1999a8762can%40googlegroups.com.


[weewx-user] Re: Rsync connection to remote server

2021-04-14 Thread Dun Mac
This is my ~/.ssh/config file;
Host 107.xxx.xxx.xxx
IdentityFile ~/.ssh/id_rsa
User o1

When my /etc/ssh/ssh_config file has;
PasswordAuthentication no
the Rsync fails .. Permission denied 
(publickey,gssapi-keyex,gssapi-with-mic,password)..

When my /etc/ssh/ssh_config file has;
#PasswordAuthentication no
the rsync (running wee_reports) requests a password and then the transfer 
proceeds correctly



On Thursday, April 15, 2021 at 2:54:53 AM UTC+10 vince wrote:

> This is rsync 101.You need the account you are running weewx under 
> (root) to have a ~/.ssh/config file that tells it which key to use to 
> connect to the remote system, as well as which account to use on the remote 
> side.
>
> Host my.remote.host.com
>   IdentityFile ~/.ssh/my_private_key
>   user my_remote_username
>
> If you do that, then as root you should be able to rsync to 
> my.remote.host.com and it will log in there as my_remote_username
> On Tuesday, April 13, 2021 at 11:15:12 PM UTC-7 Dun Mac wrote:
>
>> Hi, 
>> I have established a direct connection to a web server (GreenGeeks) with 
>> the SSH keys added to the remote server. I can log on to the remote server 
>> via 
>> "ssh user...@170.x.xxx.xx" and it logs on with no passwords. 
>> When I set weewx.conf,  Rsync to true I get the following error message 
>> in syslog;
>>
>> Apr 14 12:00:36 RPi-weather weewx[29143] DEBUG weewx.reportengine: 
>> Running report 'RSYNC'
>> Apr 14 12:00:36 RPi-weather weewx[29143] DEBUG weewx.reportengine: Found 
>> configuration file /etc/weewx/skins/Rsync/skin.conf for report 'RSYNC'
>> Apr 14 12:00:36 RPi-weather weewx[29143] DEBUG weeutil.rsyncupload: 
>> rsyncupload: cmd: [['rsync', '--archive', '--stats', '-e ssh', 
>> '/var/www/html/weewx/', 
>> 'xxx...@107.x.xxx.xx:/home//weewx/wx_standard_report']]
>> Apr 14 12:00:39 RPi-weather weewx[29143] ERROR weeutil.rsyncupload: 
>> [['rsync', '--archive', '--stats', '-e ssh', '/var/www/html/weewx/', 
>> 'xxx...@107.x.1xxx.xx:Permission denied 
>> (publickey,gssapi-keyex,gssapi-with-mic,password).. rsync: connection 
>> unexpectedly closexxxd (0 bytes received so far) [sender]. rsync error: 
>> unexplained error (code 255) /home/xxx/weewx/wx_standard_report']] 
>> reported errors: xxx...@107.x.xx.xx: at io.c(235) [sender=3.1.3]
>> Apr 14 12:00:39 RPi-weather weewx[29143] INFO weeutil.rsyncupload: rsync 
>> executed in 2.62 seconds
>>
>> Would someone be kind enough to post their ~/.ssh/config and their 
>> /etc/ssh/ssh_config and /etc/ssh/sshd_config files so I can see if I have 
>> an error in one of these files with my setup, please. Any other feedback 
>> would also be very welcome.
>> Duncan
>>
>

-- 
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/e77902f9-91ab-46d9-8da9-7566a55a609fn%40googlegroups.com.


[weewx-user] Re: Rsync connection to remote server

2021-04-13 Thread Dun Mac
According to the web server the public keys were accepted by the server. 
They have sent a copy of their logs;
###
Apr 14 03:24:57 ams102 sshd[2890665]: Accepted publickey for offgrid1 from 
49.xxx.xxx.xx port 34506 ssh2: RSA 
SHA256:oMhJCSYLqpgYZ6mYwxcQvedv+hycs5kTOTLfVKhtPRzmGStXdRaHU
Apr 14 03:24:57 ams102 sshd[2890665]: pam_unix(sshd:session): session 
opened for user ox1 
Apr 14 03:26:42 ams102 sshd[2890665]: pam_unix(sshd:session): session 
closed for user ox1

On Wednesday, April 14, 2021 at 4:15:12 PM UTC+10 Dun Mac wrote:

> Hi, 
> I have established a direct connection to a web server (GreenGeeks) with 
> the SSH keys added to the remote server. I can log on to the remote server 
> via 
> "ssh user...@170.x.xxx.xx" and it logs on with no passwords. 
> When I set weewx.conf,  Rsync to true I get the following error message in 
> syslog;
>
> Apr 14 12:00:36 RPi-weather weewx[29143] DEBUG weewx.reportengine: Running 
> report 'RSYNC'
> Apr 14 12:00:36 RPi-weather weewx[29143] DEBUG weewx.reportengine: Found 
> configuration file /etc/weewx/skins/Rsync/skin.conf for report 'RSYNC'
> Apr 14 12:00:36 RPi-weather weewx[29143] DEBUG weeutil.rsyncupload: 
> rsyncupload: cmd: [['rsync', '--archive', '--stats', '-e ssh', 
> '/var/www/html/weewx/', 
> 'xxx...@107.x.xxx.xx:/home//weewx/wx_standard_report']]
> Apr 14 12:00:39 RPi-weather weewx[29143] ERROR weeutil.rsyncupload: 
> [['rsync', '--archive', '--stats', '-e ssh', '/var/www/html/weewx/', 
> 'xxx...@107.x.1xxx.xx:Permission denied 
> (publickey,gssapi-keyex,gssapi-with-mic,password).. rsync: connection 
> unexpectedly closexxxd (0 bytes received so far) [sender]. rsync error: 
> unexplained error (code 255) /home/xxx/weewx/wx_standard_report']] 
> reported errors: xxx...@107.x.xx.xx: at io.c(235) [sender=3.1.3]
> Apr 14 12:00:39 RPi-weather weewx[29143] INFO weeutil.rsyncupload: rsync 
> executed in 2.62 seconds
>
> Would someone be kind enough to post their ~/.ssh/config and their 
> /etc/ssh/ssh_config and /etc/ssh/sshd_config files so I can see if I have 
> an error in one of these files with my setup, please. Any other feedback 
> would also be very welcome.
> Duncan
>

-- 
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/324b8b0a-486b-4816-874e-f085f4189791n%40googlegroups.com.


[weewx-user] Rsync connection to remote server

2021-04-13 Thread Dun Mac
Hi, 
I have established a direct connection to a web server (GreenGeeks) with 
the SSH keys added to the remote server. I can log on to the remote server 
via 
"ssh usern...@170.x.xxx.xx" and it logs on with no passwords. 
When I set weewx.conf,  Rsync to true I get the following error message in 
syslog;

Apr 14 12:00:36 RPi-weather weewx[29143] DEBUG weewx.reportengine: Running 
report 'RSYNC'
Apr 14 12:00:36 RPi-weather weewx[29143] DEBUG weewx.reportengine: Found 
configuration file /etc/weewx/skins/Rsync/skin.conf for report 'RSYNC'
Apr 14 12:00:36 RPi-weather weewx[29143] DEBUG weeutil.rsyncupload: 
rsyncupload: cmd: [['rsync', '--archive', '--stats', '-e ssh', 
'/var/www/html/weewx/', 
'...@107.x.xxx.xx:/home//weewx/wx_standard_report']]
Apr 14 12:00:39 RPi-weather weewx[29143] ERROR weeutil.rsyncupload: 
[['rsync', '--archive', '--stats', '-e ssh', '/var/www/html/weewx/', 
'...@107.x.1xxx.xx:Permission denied 
(publickey,gssapi-keyex,gssapi-with-mic,password).. rsync: connection 
unexpectedly closexxxd (0 bytes received so far) [sender]. rsync error: 
unexplained error (code 255) /home/xxx/weewx/wx_standard_report']] 
reported errors: ...@107.x.xx.xx: at io.c(235) [sender=3.1.3]
Apr 14 12:00:39 RPi-weather weewx[29143] INFO weeutil.rsyncupload: rsync 
executed in 2.62 seconds

Would someone be kind enough to post their ~/.ssh/config and their 
/etc/ssh/ssh_config and /etc/ssh/sshd_config files so I can see if I have 
an error in one of these files with my setup, please. Any other feedback 
would also be very welcome.
Duncan

-- 
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/66767d0f-e335-4876-8dd3-5dbe6a87ec37n%40googlegroups.com.


Re: [weewx-user] Weewx-Weather34 Skin Questions

2021-04-11 Thread Dun Mac

Thank you for the reply, Ian. It is very much appreciated.
Duncan
On Sunday, April 11, 2021 at 1:25:43 AM UTC+10 steep...@gmail.com wrote:

> I meant to add that the Metar settings will be removed from the settings 
> page in the next update. All data required for the Metar popup info window 
> will be derived from the Metar API.
> Ian
>
> On Sat, 10 Apr 2021 at 09:06, steeple ian  wrote:
>
>> Duncan,
>> Taking your questions in turn: -
>>
>>1.  Over the past few updates, we have been progressively tidying 
>>things up. Position 4 is now the fixed location for advisory alerts as 
>> far 
>>as the setup page is concerned. However you are able to override that by 
>>manually editing settings1.php. For future developments we may introduce 
>>more flexibility and the option for extra columns and rows in the 
>> dashboard 
>>with total user flexibility on positions.
>>
>>2.  All web services including METAR are now set in weewx.conf. The 
>>options in the settings page are purely to have the correct location 
>>showing in the popup info window.
>>
>>
>>3. The design of the barometer module pre-dates me. It is all setup 
>>in some very clever CSS work. Changing the range that you wish display 
>>consequentially the arc of the pointer needs editing of CSS code. It is 
>> not 
>>something which is easy to accomplish by a user configurable option. If 
>> you 
>>manage to come up with a solution, we would be happy to include your 
>>instructions in the Git repository.
>>
>>
>> Ian
>>
>>
>> On Sat, 10 Apr 2021 at 01:35, Dun Mac  wrote:
>>
>>> Can anyone shed light on these matters from the Weewx-Weather34 skin;
>>> 1. Position 4, in the easyW34skinsetup.php only gives the options of of 
>>> advisory_rw, _eu,_uk. Is this the only options for position 4? Some 
>>> previous versions on the internet are showing Position 4 with more options  
>>> ((W34-HC-IMJD-2.0.0)  WeeWX-(4.2.0)  Ecowitt GW1000). My version is 
>>> (W34-HC-IMJD-4.1.3)  WeeWX-(4.5.1)  Davis Vantage Pro2)
>>> 2. easyW34skinsetup.php - ICAO code for METAR Station1 did not change 
>>> the station. Is this because the field is held in weewx.conf and as such 
>>> weewx needs to be stopped and then restarted to change the setting?
>>> 3. Position 9, Barometer. The default range for the dial is 950 - 1050 
>>> hPa, (28 - 31 inHg). I changed the barometer.php file to min 980 min 1050 
>>> max, (29 inHg - 31inHg) but the barometric reading which is currently 
>>> 1005.5 is still sitting at 1 o'clock on the dial and with the range 
>>> adjustment it should be sitting at 11 o'clock. The descriptor on the dial 
>>> reads min 980 hPa and max 1050 hPa. Is there anyway of changing the scaling 
>>> of the barometer display so that 12 o'clock on the scale is 1015 hPa and 
>>> not the default 1000 hPa? 
>>> Thank you, Duncan
>>>
>>>
>>> -- 
>>> 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+...@googlegroups.com.
>>> To view this discussion on the web visit 
>>> https://groups.google.com/d/msgid/weewx-user/f8e4ade6-e958-4084-b3f9-3ae1c206b087n%40googlegroups.com
>>>  
>>> <https://groups.google.com/d/msgid/weewx-user/f8e4ade6-e958-4084-b3f9-3ae1c206b087n%40googlegroups.com?utm_medium=email&utm_source=footer>
>>> .
>>>
>>

-- 
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/642818a7-bedd-4d50-bc6b-8f09a852bf1en%40googlegroups.com.


[weewx-user] Weewx-Weather34 Skin Questions

2021-04-09 Thread Dun Mac
Can anyone shed light on these matters from the Weewx-Weather34 skin;
1. Position 4, in the easyW34skinsetup.php only gives the options of of 
advisory_rw, _eu,_uk. Is this the only options for position 4? Some 
previous versions on the internet are showing Position 4 with more options  
((W34-HC-IMJD-2.0.0)  WeeWX-(4.2.0)  Ecowitt GW1000). My version is 
(W34-HC-IMJD-4.1.3)  WeeWX-(4.5.1)  Davis Vantage Pro2)
2. easyW34skinsetup.php - ICAO code for METAR Station1 did not change the 
station. Is this because the field is held in weewx.conf and as such weewx 
needs to be stopped and then restarted to change the setting?
3. Position 9, Barometer. The default range for the dial is 950 - 1050 hPa, 
(28 - 31 inHg). I changed the barometer.php file to min 980 min 1050 max, 
(29 inHg - 31inHg) but the barometric reading which is currently 1005.5 is 
still sitting at 1 o'clock on the dial and with the range adjustment it 
should be sitting at 11 o'clock. The descriptor on the dial reads min 980 
hPa and max 1050 hPa. Is there anyway of changing the scaling of the 
barometer display so that 12 o'clock on the scale is 1015 hPa and not the 
default 1000 hPa? 
Thank you, Duncan


-- 
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/f8e4ade6-e958-4084-b3f9-3ae1c206b087n%40googlegroups.com.


Re: [weewx-user] tag date and time of the last rain

2021-03-22 Thread Dun Mac
Being in the Blue Mountains, Oz. My thoughts drifted towards Dorothy 
MacKellar, My Country;
".
Of rugged mountain ranges
Of droughts and flooding rain
"

Duncan
On Tuesday, March 23, 2021 at 11:20:57 AM UTC+11 ln77 wrote:

> Now that’s a name I've not heard in a long time.  I remember the story 
> well, but had forgotten the title.  Thanks for the pointer!
>
> The other one that comes to mind in these kinds of conditions is 
> “Sometimes a Great Notion.”  A much longer read, but well worth it. 
>
>   -Les
>
>
> On 22 Mar 2021, at 16:16, D R  wrote:
>
> I'm reminded of Ray Bradbury's wonderful and chilling short story, "All 
> Summer in a Day."
>
> Free online and a quick read.  I still get shivers when I think of it.
>
>
>
>

-- 
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/57736dbe-f7b5-4f2c-8ea6-c164e2138b7an%40googlegroups.com.


Re: [weewx-user] tag date and time of the last rain

2021-03-21 Thread Dun Mac
Thank you. Although Ozstrayla may have to wait until it can be utilised. 
Rain in the last 7 days has been 456.2mm (18") 

On Monday, March 22, 2021 at 2:25:22 AM UTC+11 blaise@gmail.com wrote:

>
> En tout cas sur Raspberry (Donc Debian), c'est assez simple et il n'est 
> pas nécessaire de redémarrer WeeWX
> J'ai justement vu le skin de ton site (
> https://github.com/poblabs/weewx-belchertown) et je me demandais s'il 
> était facile de le franciser
> À te lire
>
> Le dimanche 21 mars 2021 à 16:16:08 UTC+1, didier@gmail.com a écrit :
>
>> OK je vais essayer
>>
>> Bon dimanche
>> Didier
>>
>> Le dim. 21 mars 2021 à 16:13, P C  a écrit :
>>
>>> Merci Didier, le résultat est le même et l'installation de la solution 
>>> précédente plus aisée.
>>> Beau site !
>>>
>>> Le dimanche 21 mars 2021 à 16:05:21 UTC+1, didier@gmail.com a 
>>> écrit :
>>>
 You have also 
 https://github.com/vinceskahan/vds-weewx-lastrain-extension
 voir mon site https://meteo-auffargis.decoodt.eu
 [image: image.png]
 Didier

 Le dim. 21 mars 2021 à 15:43, P C  a écrit :

> Yesss
> Excellent, génial !
> Merci !
>
> Le dimanche 21 mars 2021 à 12:40:59 UTC+1, tke...@gmail.com a écrit :
>
>> Your query prompted me to upload a search list extension I've been 
>> using for several months now.
>>
>> Try https://github.com/tkeffer/weewx-time_since
>>
>> It allows you to do things like
>>
>> It last rained at $time_at('rain>0') ($time_since('rain>0') 
>> ago).
>>
>>
>> which results in
>>
>> It last rained 20 June 2020 (81 days, 1 hour, 35 minutes ago).
>>
>> It can be used for any SQL expression, not just time since the last 
>> rain.
>>
>> -tk
>>
>> On Sun, Mar 21, 2021 at 2:33 AM P C  wrote:
>>
>>>
>>> Hello,
>>> I look in vain the tag that would allow me to know the date and time 
>>> of the last rain.
>>> Thank you 
>>>
>>> -- 
>>> 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+...@googlegroups.com.
>>> To view this discussion on the web visit 
>>> https://groups.google.com/d/msgid/weewx-user/0fa9e91f-8d66-4cfd-bc78-b75a4878906bn%40googlegroups.com
>>>  
>>> 
>>> .
>>>
>> -- 
> 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+...@googlegroups.com.
>
 To view this discussion on the web visit 
> https://groups.google.com/d/msgid/weewx-user/475355d0-b99e-4910-bfda-442c6342416fn%40googlegroups.com
>  
> 
> .
>


 -- 
 Quel temps fait-il à Auffargis  ?

>>> -- 
>>> 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+...@googlegroups.com.
>>>
>> To view this discussion on the web visit 
>>> https://groups.google.com/d/msgid/weewx-user/120e8c96-9f20-4ae3-a9f8-4281ee00660cn%40googlegroups.com
>>>  
>>> 
>>> .
>>>
>>
>>
>> -- 
>> Quel temps fait-il à Auffargis  ?
>>
>

-- 
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/b280ddb2-14f6-462c-a435-e550fcf6855bn%40googlegroups.com.


[weewx-user] Re: Problems with Weewx writing MQTT Broker

2021-03-21 Thread Dun Mac
Thank you, a really dumb mistake on my part. System updating. Issue Resolved

Duncan

On Monday, March 22, 2021 at 3:25:06 AM UTC+11 ln77 wrote:

> There's a typo in server_url: the port should be 1883, not 1833.  
>
>   -Les
>
>
> On Saturday, March 20, 2021 at 11:30:35 PM UTC-7 Dun Mac wrote:
>
>> I have been trying for a week to get the live updates to work for Weewx. 
>> But I am not having any luck at all, so can someone please help if they can 
>> see where my setup is wrong. For background info: Weewx is running on an 
>> RPi 4B 192.168.8.155. I have set up an RPi 3A as the MQTT Broker 
>> 192.168.8.158. The "service weewx status" shows the following:
>>
>>  *Mar 21 12:40:23 RPi-weather python3[2185]: weewx[2185] ERROR 
>> weewx.restx: MQTT: Failed to publish record 2021-03-21 11*
>>
>>  The Belchertown page shows:
>>
>> *"Connected. Waiting for data. Last Updated 21 March 2021 yada yada"*
>>
>> My Weewx.conf setup is as follows:
>>
>>  
>>
>>
>>
>>
>>
>>
>>
>>
>>
>>
>>
>>
>>
>>
>>
>> *188 [[MQTT]] 189 server_url = 
>> mqtt://vantagepro:xxx...@192.168.8.158:1833/ 
>> <http://vantagepro:xxx@192.168.8.158:1833/> 190 topic = 
>> weather 191 unit_system = METRIC 192 binding = archive,loop 
>> 193 aggregation = aggregate 248 [[Belchertown]] 249 
>> skin = Belchertown 250 HTML_ROOT = /var/www/html 251  
>> [[Services]] 669   674 restful_services = 
>> weewx.restx.StdStationRegistry,.., user.mqtt.MQTT*
>>
>>  
>>
>> I have not set up SSL on the Broker, hence it is disabled.   
>> /etc/weewx/skins/Belchertown/skin.conf 
>> is as follows:
>>
>>
>>
>>
>>
>>
>>
>>
>> *35 # MQTT Websockets 36 mqtt_websockets_enabled = 1 37 
>> mqtt_websockets_host = 192.168.8.158 38 mqtt_websockets_port = 9001 
>> 39 mqtt_websockets_ssl = 0 40 mqtt_websockets_topic = weather/loop 
>> 41 disconnect_live_website_visitor = 180*
>>
>>  
>>
>> The MQTT (192.168.8.158) broker.conf is:
>>
>>  
>>
>>
>>
>>
>>
>>
>>
>>
>>
>>
>>
>>
>>
>>
>>
>>
>> * 6 pid_file /run/mosquitto/mosquitto.pid  7  8 persistence true  9 
>> persistence_location /var/lib/mosquitto/ 10 11 log_dest file 
>> /var/log/mosquitto/mosquitto.log 12 13 log_type all 14 log_facility 5 15 
>> log_type error 16 log_type warning 17 log_type notice 18 log_type 
>> information 19 20 connection_messages true 21 log_timestamp true 22 23 
>> include_dir /etc/mosquitto/conf.d*
>>
>> and the Broker/conf.d/myconfig.conf
>>
>>
>>
>>
>>
>>
>>
>>
>>
>>
>>
>>
>> *# mqtt listener 1883 protocol mqtt # websockets listener 9001 protocol 
>> websockets #Allow anonymous to read only and others need to be set in 
>> passwd,acl allow_anonymous true password_file /etc/mosquitto/passwd 
>> acl_file /etc/mosquitto/acl*
>>
>>  
>>
>> The Broker Pub/Sub is working with and without passwords, using terminals 
>> in Weewx RPi (192.168.8.155).
>>
>> The Mosquitto client on the Weewx machine (192.168.8.155) has no 
>> configuration file
>>
>>  
>>
>> I know I have something wrong but I just have no idea.
>>
>>  
>>
>>

-- 
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/1db3be70-7147-4d7e-95f5-fe5928d1016dn%40googlegroups.com.


[weewx-user] Problems with Weewx writing MQTT Broker

2021-03-20 Thread Dun Mac
 

I have been trying for a week to get the live updates to work for Weewx. 
But I am not having any luck at all, so can someone please help if they can 
see where my setup is wrong. For background info: Weewx is running on an 
RPi 4B 192.168.8.155. I have set up an RPi 3A as the MQTT Broker 
192.168.8.158. The "service weewx status" shows the following:

 *Mar 21 12:40:23 RPi-weather python3[2185]: weewx[2185] ERROR weewx.restx: 
MQTT: Failed to publish record 2021-03-21 11*

 The Belchertown page shows:

*"Connected. Waiting for data. Last Updated 21 March 2021 yada yada"*

My Weewx.conf setup is as follows:

 















*188 [[MQTT]] 189 server_url = 
mqtt://vantagepro:xxx@192.168.8.158:1833/ 190 topic = 
weather 191 unit_system = METRIC 192 binding = archive,loop 
193 aggregation = aggregate 248 [[Belchertown]] 249 
skin = Belchertown 250 HTML_ROOT = /var/www/html 251  
[[Services]] 669   674 restful_services = 
weewx.restx.StdStationRegistry,.., user.mqtt.MQTT*

 

I have not set up SSL on the Broker, hence it is disabled.   
/etc/weewx/skins/Belchertown/skin.conf 
is as follows:








*35 # MQTT Websockets 36 mqtt_websockets_enabled = 1 37 
mqtt_websockets_host = 192.168.8.158 38 mqtt_websockets_port = 9001 
39 mqtt_websockets_ssl = 0 40 mqtt_websockets_topic = weather/loop 
41 disconnect_live_website_visitor = 180*

 

The MQTT (192.168.8.158) broker.conf is:

 
















* 6 pid_file /run/mosquitto/mosquitto.pid  7  8 persistence true  9 
persistence_location /var/lib/mosquitto/ 10 11 log_dest file 
/var/log/mosquitto/mosquitto.log 12 13 log_type all 14 log_facility 5 15 
log_type error 16 log_type warning 17 log_type notice 18 log_type 
information 19 20 connection_messages true 21 log_timestamp true 22 23 
include_dir /etc/mosquitto/conf.d*

and the Broker/conf.d/myconfig.conf












*# mqtt listener 1883 protocol mqtt # websockets listener 9001 protocol 
websockets #Allow anonymous to read only and others need to be set in 
passwd,acl allow_anonymous true password_file /etc/mosquitto/passwd 
acl_file /etc/mosquitto/acl*

 

The Broker Pub/Sub is working with and without passwords, using terminals 
in Weewx RPi (192.168.8.155).

The Mosquitto client on the Weewx machine (192.168.8.155) has no 
configuration file

 

I know I have something wrong but I just have no idea.

 

-- 
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/766ba089-dc64-4a9f-82cf-4e06f7ddd827n%40googlegroups.com.


[weewx-user] Re: Weewx- MQTT permissions error

2021-03-14 Thread Dun Mac
Thank you Vince. Weewx has always ran with no logged errors prior to the 
addition of the MQTT parameters. But when I have added the MQTT parameters 
to the weewx.conf the errors appear. I ran the "sudo weewx.conf" and the 
errors were not logged.  However I still have an issue that I can't get 
live updates nor the weewx-mqtt to effectively log onto the broker. I 
thought this permissions issue may have had something to do with matter.

On Monday, March 15, 2021 at 1:36:42 PM UTC+11 vince wrote:

> try "sudo wee_reports" and see if that helps any or alternately just let 
> weewx do things since it typically runs as root and shouldn't have 
> permission issues.
>
>

-- 
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/613e031f-33ba-4030-a828-b3b4808e176bn%40googlegroups.com.


[weewx-user] Weewx- MQTT permissions error

2021-03-14 Thread Dun Mac
I have a MQTT broker setup on a dedicated RPi and another dedicated RPi 
running Weewx. The MQTT broker to client is working using manual testing. 
When I include the MQTT settings in Weewx.conf'
* [[MQTT]]*
*server_url = 
mqtt://vantagepro:aug90sept98mistral@192.168.8.158:1833/*
*topic = weather*
*unit_system = METRIC*
*binding = archive, loop*
*aggregation = aggregate*

and then run wee_reports I get a permissions error on two of the 
Belchertown files

*Traceback (most recent call last):*
*  File "/usr/share/weewx/weewx/reportengine.py", line 196, in run*
*obj.start()*
*  File "/usr/share/weewx/weewx/reportengine.py", line 281, in start*
*self.run()*
*  File "/usr/share/weewx/weewx/reportengine.py", line 429, in run*
*ncopy += weeutil.weeutil.deep_copy_path(path, html_dest_dir)*
*  File "/usr/share/weewx/weeutil/weeutil.py", line 1440, in deep_copy_path*
*shutil.copy(path, d)*
*  File "/usr/lib/python3.7/shutil.py", line 245, in copy*
*copyfile(src, dst, follow_symlinks=follow_symlinks)*
*  File "/usr/lib/python3.7/shutil.py", line 121, in copyfile*
*with open(dst, 'wb') as fdst:*
*PermissionError: [Errno 13] Permission denied: 
'/var/www/html/belchertown/favicon.ico'*
*Traceback (most recent call last):*
*  File "/usr/share/weewx/weewx/reportengine.py", line 196, in run*
*obj.start()*
*  File "/usr/share/weewx/weewx/reportengine.py", line 281, in start*
*self.run()*
*  File "/usr/share/weewx/user/belchertown.py", line 1857, in run*
*with open(json_filename, mode='w') as jf:*
*PermissionError: [Errno 13] Permission denied: 
'/var/www/html/belchertown/json/homepage.json'*
*vantagepro@RPi-weather:/etc/weewx $*

When I comment out the [[MQTT]] section in weewx.conf and re run 
wee_reports the report generation runs with no exceptions.

Has anyone had such an issue or able to make any suggestions for 
correction, please
Duncan

-- 
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/e3f5c8c3-5de4-40f3-af0b-c75d63546f5fn%40googlegroups.com.