Page 1 of 2
Many bad user records in Usermap.txt for UserMap block
Posted: Thu Aug 01, 2019 8:10 am
by justinhow
Just an FYI re the UserMap plugin. I was a bit fed up with clicking on the url links to users websites only to find that the link was dead. The users.txt file has about 1500 records in it and about a third can't be contacted. This may be a for a variety of reasons but probably mostly because the sites no longer exist.
I have written a PowerShell script that downloads the
users.txt file from meteotemplate.com file and goes through all 1500+ records and saves all the records that get good responses (HTTP status = 200) into another file (of course a 200 respose does not mean there is a meteotemplate website running there). This file contains approx 840 sites and the end result can be seen on my weather website at
https://www.dumfries-weather.com/plugin ... /index.php (site is only available in certain countries).
If you want this
verified users.txt text file it is available
Here. Just rename to
users.txt and upload to your appropriate meteotemplate folder e.g. ..\plugins\userMap
I have set up a scheduled job that runs this script every week, so the file mentioned above will be updated every Monday morning.
Re: Many bad user records in Usermap.txt for UserMap block
Posted: Thu Aug 01, 2019 10:45 am
by Jolumarali
Thank you Justin
very good idea, update done.
Perfect
José Luis
Re: Many bad user records in Usermap.txt for UserMap block
Posted: Thu Aug 01, 2019 6:31 pm
by LOBWX
This is a valid site..
{"lat":"35.30720000","lon":"-120.83840000","url":"https:\/\/lobwx.com\/template\/","alt":null,"name":"Robert","pageName":"Los Osos | Baywood","country":"United States","countryCode":"us","type":"WS 0900-IP","place":"Baywood-Los Osos, California","img":"WH1080"}
Still, a great idea.
~Bob~
Re: Many bad user records in Usermap.txt for UserMap block
Posted: Thu Aug 01, 2019 6:44 pm
by justinhow
That is an interesting one.
Powershell comes back with this error
"Invoke-WebRequest : The request was aborted: Could not create SSL/TLS secure channel."
I think it is to do with the TLS version that Powershell tries to use. I may have a fix for that - will check it out shortly
Re: Many bad user records in Usermap.txt for UserMap block
Posted: Thu Aug 01, 2019 7:08 pm
by justinhow
OK - this is now fixed and txt files have been updated.
In fact this has increased the total verified sites to 998 (from 932), so thanks for promptly bringing that to my attention.
I have also added a link to the latest verified users.txt file in my signature - this will never be more than a week older than Jachym's master file
Re: Many bad user records in Usermap.txt for UserMap block
Posted: Fri Aug 02, 2019 7:31 am
by Jolumarali
Hello Justin
idea that is good, but there are operational sites that are actually urls that are inaccurate (example:
http://meteoballabio.altervista.org/template/) and if you modify by:
http://meteoballabio.altervista.org/tem ... esktop.php, the link is OK, so hard to delete or keep, it's a real puzzle.
Have a good day
José Luis
with translator
Re: Many bad user records in Usermap.txt for UserMap block
Posted: Fri Aug 02, 2019 9:56 am
by justinhow
Hi José,
I think it is simple, if the link does not work - for whatever reason - I don't want to see it. I don't want to have to try various alternative url's in case one of them just might work.
It is the responsibility of the owner of the weather website to check at least once on meteotemplate.com that the link to their website is correct Also the problem you found amounts to a very basic website miss-configuration - setting up the default document. How did the owner not pick that up???
However I will do a check to see how many this may apply to with just index.php and indexDesktop.php.
Cheers
Justin
Re: Many bad user records in Usermap.txt for UserMap block
Posted: Fri Aug 02, 2019 10:28 am
by justinhow
OK - this only applies to 6 websites (0.3% approx of the 1500 listed), so not really worth worrying about.
Re: Many bad user records in Usermap.txt for UserMap block
Posted: Fri Aug 02, 2019 10:39 am
by Jolumarali
Personally, I've redirected to my new site
this one:
http://alainleprevost.fr/meteotemplate/indexDesktop.php
not easy to find:
http://meteo-iton.fr/indexDesktop.php
to users to redirect
Re: Many bad user records in Usermap.txt for UserMap block
Posted: Sun Aug 04, 2019 2:44 am
by jay_hoehn
Justin,
I just tried to get the text file and get a 404 error.
Jay
Re: Many bad user records in Usermap.txt for UserMap block
Posted: Sun Aug 04, 2019 4:09 am
by John B
It works for me, Jay. Perhaps a traffic problem.
John
Re: Many bad user records in Usermap.txt for UserMap block
Posted: Sun Aug 04, 2019 7:41 am
by justinhow
My bad - will fix problem - should be there in 45 mins.
Re: Many bad user records in Usermap.txt for UserMap block
Posted: Sun Aug 04, 2019 8:23 am
by justinhow
I had updated the script and left a bug in it. Fixed now and file is there.
Re: Many bad user records in Usermap.txt for UserMap block
Posted: Mon Aug 05, 2019 12:03 am
by jay_hoehn
Thanks Justin. Worked great.
Jay
Re: Many bad user records in Usermap.txt for UserMap block
Posted: Sat Oct 05, 2019 11:47 am
by cw3beck
Great tool, Justin! works like a charm

Re: Many bad user records in Usermap.txt for UserMap block
Posted: Sat Oct 05, 2019 12:47 pm
by justinhow
Glad you find it useful. I'm not sure whether Jachym is still updating this file now, but I download it and update it each week anyway.
I only say this because I requested an update in July (I moved house and changed the url to my weather website) and he has not dealt with it yet - he said it would take a while because he is busy on work matters.
This is NOT a criticism of Jachym who has done an amazing job with this software.
Re: Many bad user records in Usermap.txt for UserMap block
Posted: Sun Oct 13, 2019 4:37 pm
by Jachym
Hi Justin,
I know about this and there are two possible reasons - one is that the site really no longer exist, the other is that some users often change their template URL - eg. they change URL with each version (not a very good idea, but it is true) or because they first test it on some subdomain, register, I insert the URL to the users list and they then make it their default landing homepage.
I was thinking about this and I came to conclusion that I will just leave it like that - present and past users because it would be too time-consuming to try to contact everyone - "did you delete your MT website or does it have a new URL".
Re: Many bad user records in Usermap.txt for UserMap block
Posted: Sun Oct 13, 2019 5:26 pm
by Jolumarali
hello Jachym and justin, personally after creating a domain, I put a redirect on my first instalation meteotemplate.
http://lignerolles.monespace.net/template vers meteo-lignerolles.fr
greetings
Re: Many bad user records in Usermap.txt for UserMap block
Posted: Mon Oct 14, 2019 10:32 am
by justinhow
Yea - that will work of course - only trouble is that if the 'old' site uses a domain name you pay for (which in my case it did) - you have to keep paying for it when you don't really use it.!
Re: Many bad user records in Usermap.txt for UserMap block
Posted: Mon Oct 14, 2019 11:02 am
by Jolumarali
Exactly Justin, which is not my case. So I update about every week with your link and thank you again.
cordially
José Luis
Re: Many bad user records in Usermap.txt for UserMap block
Posted: Mon Oct 14, 2019 11:09 am
by Jolumarali
Justin, I made a page of some amateur stations featuring a webcam on a part of Europe that I'm updating from both as a lost time.
http://meteo-lignerolles.fr/custom/cust ... %20Amateur
José Luis
Re: Many bad user records in Usermap.txt for UserMap block
Posted: Tue Oct 15, 2019 9:03 am
by justinhow
Hi José
Superb job - I will put a link on my site to your page.
Justin
Re: Many bad user records in Usermap.txt for UserMap block
Posted: Wed Apr 20, 2022 6:44 pm
by MeteoElMasnou
Hi Justin,
I incorporated the data of my station in my USERS.TXT locally, but I see that in your last update my station was not incorporated, which is the following:
{"lat":"41.4833500","lon":"2.3182100","url":"https:\/\/www.meteoelmasnou.cat\/","alt":null,"name":"Mactxabi","pageName":"Meteo El Masnou","country":"Spain","countryCode":"es","type":"Davis Vantage Vue","place":"El Masnou, Barcelona","img":"davisVue"}
I must do something wrong.
Thanks.
Re: Many bad user records in Usermap.txt for UserMap block
Posted: Wed Apr 20, 2022 6:52 pm
by justinhow
Hi
I download Jachym's central users file each week and check it so you would need to get Jachym to update his central one for it to appear in my checked version -
http://www.meteotemplate.com/web/users.php
Re: Many bad user records in Usermap.txt for UserMap block
Posted: Thu Apr 21, 2022 10:01 am
by MeteoElMasnou
Ok., I've tried it several times to see if Jachym's it can be included.
Thank you both for the work.