Welcome to the Cumulus Support forum.

Latest Cumulus MX V3 release 3.28.6 (build 3283) - 21 March 2024

Cumulus MX V4 beta test release 4.0.0 (build 4018) - 28 March 2024

Legacy Cumulus 1 release v1.9.4 (build 1099) - 28 November 2014 (a patch is available for 1.9.4 build 1099 that extends the date range of drop-down menus to 2030)

Download the Software (Cumulus MX / Cumulus 1 and other related items) from the Wiki

realtimegaugesT.txt. display data

Discussion of Mark Crossley's HTML5/Javascript gauges

Moderator: mcrossley

Post Reply
courtil
Posts: 124
Joined: Thu 16 Jan 2014 1:31 pm
Weather Station: Vantage PRO2
Operating System: Windows 11
Location: France
Contact:

realtimegaugesT.txt. display data

Post by courtil »

Hello everyone,

At: http://lecourtilauxepines.eu/

I use the Cumulus version Version: 3.0.0 Creation: b-3022

and

Script by Mark Crossley - Version 2.4.4 - 2013-08-25

and realtimegaugesT.txt (home made)

to view local data into the scroll;

Everything is OK

if I use:

Script by Mark Crossley - Version 2.5.5

with this version of home made realtimegaugesT.txt


Scrolling goes into error:

"Parse Error: Unexpected Token"
or

"Parse Error - Syntax Error parse Json bad control
Bad character in string literal at line 36 column 262 of the json data "

Where is my mistake?

Thank you for everything.

Best Regards

Michael said Courtil
You do not have the required permissions to view the files attached to this post.
OS : Windows 11 Familial
Station Météo : Vantage PRO2
Cumulus MX 3.14.2 b3169
CumulusUtils
http://meteo621.free.fr/
User avatar
mcrossley
Posts: 12695
Joined: Thu 07 Jan 2010 9:44 pm
Weather Station: Davis VP2/WLL
Operating System: Bullseye Lite rPi
Location: Wilmslow, Cheshire, UK
Contact:

Re: realtimegaugesT.txt. display data

Post by mcrossley »

Can you show an example of the processed file that is failing, or a link to the page?
User avatar
mcrossley
Posts: 12695
Joined: Thu 07 Jan 2010 9:44 pm
Weather Station: Davis VP2/WLL
Operating System: Bullseye Lite rPi
Location: Wilmslow, Cheshire, UK
Contact:

Re: realtimegaugesT.txt. display data

Post by mcrossley »

Ah! Version 2.5.5 of the script also has an updated version of realtimeGaugesT.txt, were you using that file to customise?
courtil
Posts: 124
Joined: Thu 16 Jan 2014 1:31 pm
Weather Station: Vantage PRO2
Operating System: Windows 11
Location: France
Contact:

Re: realtimegaugesT.txt. display data

Post by courtil »

Hello,

Thank you for your response.

I now use the script "home made" realtimegaugesT.txt

single line of script

"forecast", "<# forecastenc>"

is replaced by:

Code: Select all

"forecast":"Dernière mise à jour le <#date format=hh:nn>H locale --  Voici les conditions Météo actuelles à; CROISETTE -- Le Soleil se lève à <#sunrise>  et se couche à <#sunset> -- Temps actuel :  <#currcond> --  La Température est de <#temp>, °C -- L'Humidité relative à <#hum>,% -- La Pression Atmosphérique est de <#press> hPa --  Les Précipitations du jour sont de <#rfall> mm ",
The error is visible in the top of the scrolling Gauges:

http://lecourtilauxepines.eu/ternois/index.htm

Thank you for your information.

Best Regards

Michel said Courtil
OS : Windows 11 Familial
Station Météo : Vantage PRO2
Cumulus MX 3.14.2 b3169
CumulusUtils
http://meteo621.free.fr/
User avatar
mcrossley
Posts: 12695
Joined: Thu 07 Jan 2010 9:44 pm
Weather Station: Davis VP2/WLL
Operating System: Bullseye Lite rPi
Location: Wilmslow, Cheshire, UK
Contact:

Re: realtimegaugesT.txt. display data

Post by mcrossley »

You have a corrupt string in 'forecast'...

Code: Select all

"forecast":"Derni&#232;re mise &#224; jour le 04:nnH locale --  Voici les conditions M&#233;t&#233;o actuelles &#224; CROISETTE -- Le Soleil se l&#232;ve &#224; 06:36  et se couche &#224; 19:16 -- Temps actuel :  Frais, ciel couvert, Faible bruine, Brume


 --  La Temp&#233;rature est de 13,2, &#176;C -- L'Humidit&#233; relative &#224; 82,% -- La Pression Atmosph&#233;rique est de 1013,9 hPa --  Les Pr&#233;cipitations du jour sont de 1,2 mm ",
You have new line breaks in the middle of the string definition, that is not allowed in JavaScript.
courtil
Posts: 124
Joined: Thu 16 Jan 2014 1:31 pm
Weather Station: Vantage PRO2
Operating System: Windows 11
Location: France
Contact:

Re: realtimegaugesT.txt. display data

Post by courtil »

Thank you for your information.

I will try to change this line of script !!!

My knowledge in JavaScript are zero ....

Best Regards

Michael said Courtil
OS : Windows 11 Familial
Station Météo : Vantage PRO2
Cumulus MX 3.14.2 b3169
CumulusUtils
http://meteo621.free.fr/
Post Reply