Page 1 of 1

pas de prévisions

Posted: Sat 29 Jan 2022 4:48 pm
by martialTh
Bonjour Ken
je vous écrit sur le conseil de Paul.
J'ai je pense mis les bonnes clés au bon endroit
Settings
// --- Aerisweather.net forecast variables ---
$SITE['fcstscript'] = 'AW-forecast.php';
$SITE['fcstorg'] = 'Aerisweather'; // set to 'Aerisweather' for Aerisweather.net

$SITE['AWAPIkey'] = '077185bce9d856fa2e50f3c04a36da94'; // Your API Access ID key
$SITE['AWAPIsecret'] =xxxxxxx'; // Your API Secret Key

sans résultats.
et dans AW forecast
/ Settings ---------------------------------------------------------------
// REQUIRED: api.aerisapi.com API Access ID and Secret keys.
// If you are uploading to pwsweather.com, you can get a free key at https://www.aerisweather.com/signup/pws/
$AWAPIkey = '077185bce9d856fa2e50f3c04a36da94-specify-for-standalone-use-here'; // Aeris Access ID; use this only for standalone / non-template use
$AWAPIsecret = 'xxxxxxx-specify-for-standalone-use-here'; // Aeris Secret Key; use this only for standalone / non-template use

les xxxx pour
masquer mon mot de passe.
Esce le specify ...... qui n'est pas au bon endroit ?


Hello Ken
I am writing to you on Paul's advice.
I think I put the right keys in the right place
Settings
// --- Aerisweather.net forecast variables ---
$SITE['fcstscript'] = 'AW-forecast.php';
$SITE['fcstorg'] = 'Aerisweather'; // set to 'Aerisweather' for Aerisweather.net

$SITE['AWAPIkey'] = '077185bce9d856fa2e50f3c04a36da94'; // Your API Access ID key
$SITE['AWAPIsecret'] =xxxxxxx'; // Your API Secret Key

without results.
and in AW forecast
/Settings------------------------------------------------ ---------------
// REQUIRED: api.aerisapi.com API Access ID and Secret keys.
// If you are uploading to pwsweather.com, you can get a free key at https://www.aerisweather.com/signup/pws/
$AWAPIkey = '077185bce9d856fa2e50f3c04a36da94-specify-for-standalone-use-here'; // Aeris AccessID; use this only for standalone / non-template use
$AWAPIsecret = 'xxxxxxx-specify-for-standalone-use-here'; // Aeris Secret Key; use this only for standalone / non-template use

the xxxx for
hide my password.
Et ce specify it ...... who is not in the right place?

merci
Martial

Re: pas de prévisions

Posted: Sat 29 Jan 2022 5:00 pm
by martialTh
RE
je ne pense pas avoir fait d'erreur, mais ils ne reçoivent pas mes datas.


Résultats de traduction
I don't think I made a mistake, but they don't receive my data.

Re: pas de prévisions

Posted: Sat 29 Jan 2022 5:40 pm
by PaulMy
Hi Martial,
I don't use Aeris Weather for forecast in Canada so hopefully Ken can have a look at your https://vieuxboucau.info/D/wxindex.php site and https://vieuxboucau.info/D/check-fetch- ... w=settings
And also see the documentation
For more information on customization of the AW-forecast.php script, please see the documentation at
https://saratoga-weather.org/scripts-AWforecast.php.

On the PWS Weather settings you've attached that is for CumulusMX Third-party upload to PWS Weather and likely you have not yet registered on their site https://www.pwsweather.com/frequently-asked-questions Registering there will give you a unique Station ID and you set the password https://www.pwsweather.com/station/pws/komoka

Enjoy,
Paul

Re: pas de prévisions

Posted: Sat 29 Jan 2022 8:20 pm
by saratogaWX
Looking at view-source:https://vieuxboucau.info/D/wxforecast.php?force=1 shows
<!-- AW-forecast.php (ML) Version 1.02 - 19-Jan-2022 on PHP 7.4.25 -->
<!-- temps in C -->
<!-- autoSetTemplate using narrow aspect. -->
<!-- loading from https://api.aerisapi.com/forecasts/?p=4 ... F1972c1973&. -->
<!-- curl fetching 'https://api.aerisapi.com/forecasts/?p=4 ... F1972c1973&' -->
<!-- HTTP stats: RC=401 dest=65.9.61.53 port=443 (from sce=82.165.88.148)
Times: dns=0.010 conn=0.014 pxfer=0.021 get=0.293 total=0.314 secs -->
<!-- headers:
HTTP/2 401
content-type: application/json; charset=utf-8
date: Sat, 29 Jan 2022 20:01:05 GMT
server: nginx/1.17.10
pragma: public
x-cacheaction-stored: action__error_error_0f76d56534d180e0037bba5f6b41a3b8 ttl 1200
expires: Sat, 29 Jan 2022 20:21:05 GMT
cache-control: public,max-age=1200,s-maxage=1200
access-control-allow-origin: *
access-control-allow-methods: GET, POST, OPTIONS
access-control-allow-headers: DNT,User-Agent,X-Requested-With,If-Modified-Since,Cache-Control,Content-Type,Range
access-control-expose-headers: Content-Length,Content-Range
x-cache: Error from cloudfront
via: 1.1 98997c223299d9efd138e7fb9a08a072.cloudfront.net (CloudFront)
x-amz-cf-pop: FRA56-C1
x-amz-cf-id: izlqDv3yCqbIAs364V-v1c3r9I0LhxCt-47Gv_HLxTlJvCGGnxcs7w==
-->
<!-- RC=401, bytes=882 -->
<!-- bad return from https://api.aerisapi.com/forecasts/?p=4 ... F1972c1973&
HTTP/2 401
content-type: application/json; charset=utf-8
date: Sat, 29 Jan 2022 20:01:05 GMT
server: nginx/1.17.10
pragma: public
x-cacheaction-stored: action__error_error_0f76d56534d180e0037bba5f6b41a3b8 ttl 1200
expires: Sat, 29 Jan 2022 20:21:05 GMT
cache-control: public,max-age=1200,s-maxage=1200
access-control-allow-origin: *
access-control-allow-methods: GET, POST, OPTIONS
access-control-allow-headers: DNT,User-Agent,X-Requested-With,If-Modified-Since,Cache-Control,Content-Type,Range
access-control-expose-headers: Content-Length,Content-Range
x-cache: Error from cloudfront
via: 1.1 98997c223299d9efd138e7fb9a08a072.cloudfront.net (CloudFront)
x-amz-cf-pop: FRA56-C1
x-amz-cf-id: izlqDv3yCqbIAs364V-v1c3r9I0LhxCt-47Gv_HLxTlJvCGGnxcs7w==

{"success":false,"error":{"code":"invalid_client","description":"The client provided is invalid."},"response":[]}
-->
<!-- cache ./cache/AW-forecast-json-0-si-fr.txt missing or contains invalid contents -->
The entries in Settings.php for $SITE['AWAPIkey'] and $SITE['AWAPIsecret'] are not correct.
Register for and acquire a free Aerisweather API key IF your weather station is uploading to PWSweather.com.

Browse to https://www.aerisweather.com/signup/pws/ and associate your pwsweather.com User ID to get your Access ID and Secret Key.
insert the Access ID in $SITE['AWAPIkey'] in Settings.php for Saratoga template users.
and insert the Secret Key in $SITE['AWAPIsecret'] in Settings.php for Saratoga template users.

Re: pas de prévisions

Posted: Sat 29 Jan 2022 9:43 pm
by saratogaWX
If you have already registered with PWSweather/Aerisweather, then go to https://account.aerisweather.com/account/apps and at the bottom of the page it shows the ID and SECRET strings to use.

Copy the contents of the ID string to Settings.php $SITE['AWAPIkey'] entry (it is the shorter of the two API strings)
Copy the contents of the SECRET string to Settings.php $SITE['AWAPIsecret'] entry (it is the longer of the two API strings).
Save and upload Settings.php

Load view-source:https://vieuxboucau.info/D/wxforecast.php?force=1 in your browser and look for the results (like I did above). If you see RC=200 (meaning success), then you have correctly entered the two API strings and you will have a forecast.

Re: pas de prévisions

Posted: Sun 30 Jan 2022 8:39 am
by martialTh
Bonjour Ken,
c'est encore pire que je ne le pensait!
Je n'ai plus rien, pas d'acces.
Voir copie écran.
Merci de me remettre en selle!!
Martial

Hello Ken,
It's even worse than I thought!
I have nothing, no access.
See screenshot.
Thank you for putting me back in the saddle!!
Martial

Re: pas de prévisions

Posted: Sun 30 Jan 2022 3:07 pm
by PaulMy
Hi Martial,
I suspect the cause of your flyout menu issue is that you may have attempted to modify flyout-menu.xml to add or remove an item, but instead you edited flyout-menu.php. I suggest you re-upload the original flyout-menu.php from your downloaded-unzip and that should get the flyout menu working again.

Enjoy,
Paul