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 4019) - 03 April 2024

Legacy Cumulus 1 release 1.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

tag currcond

Topics about the Beta trials up to Build 3043, the last build by Cumulus's founder Steve Loft. It was by this time way out of Beta but Steve wanted to keep it that way until he made a decision on his and Cumulus's future.

Moderator: mcrossley

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

tag currcond

Post by courtil »

Hello everyone,

I tried several times to integrate the tag: <#currcond> in the scroll of the site gauges:

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

page:

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

Command line :

Code: Select all

"forecast":"<#currcond>",

it gives me an error; how to fix it ??

Thank you for your information.

cordially

Michel said Courtil
OS : Windows 11 Familial
Station Météo : Vantage PRO2
Cumulus MX 3.28.6 b3283
https://courtil1.com
User avatar
beteljuice
Posts: 3292
Joined: Tue 09 Dec 2008 1:37 pm
Weather Station: None !
Operating System: W10 - Threadripper 16core, etc
Location: Dudley, West Midlands, UK

Re: tag currcond

Post by beteljuice »

It seems to be complaining about the End Of Line - and you also have several.

Code: Select all

"forecast":"Temps frais et couvert, vent faible, pluie faible depuis 13 heures locales.


",
Image
......................Imagine, what you will KNOW tomorrow !
courtil
Posts: 124
Joined: Thu 16 Jan 2014 1:31 pm
Weather Station: Vantage PRO2
Operating System: Windows 11
Location: France
Contact:

Re: tag currcond

Post by courtil »

re,

Thank you for your information, but I do not see any end of line characters in my text ??

Code: Select all

temps frais et couvert vent faible pluie faible brume
Thank you our new contribution

cordially

Michel said Courtil
OS : Windows 11 Familial
Station Météo : Vantage PRO2
Cumulus MX 3.28.6 b3283
https://courtil1.com
User avatar
steve
Cumulus Author
Posts: 26701
Joined: Mon 02 Jun 2008 6:49 pm
Weather Station: None
Operating System: None
Location: Vienne, France
Contact:

Re: tag currcond

Post by steve »

What about in your currentconditions.txt file?
Steve
courtil
Posts: 124
Joined: Thu 16 Jan 2014 1:31 pm
Weather Station: Vantage PRO2
Operating System: Windows 11
Location: France
Contact:

Re: tag currcond

Post by courtil »

hello,

my currentconditions.file

Temps frais et nuageux, vent faible, petite eclaircie

Thanks for infos

cordially

Michel said Courtil
OS : Windows 11 Familial
Station Météo : Vantage PRO2
Cumulus MX 3.28.6 b3283
https://courtil1.com
User avatar
steve
Cumulus Author
Posts: 26701
Joined: Mon 02 Jun 2008 6:49 pm
Weather Station: None
Operating System: None
Location: Vienne, France
Contact:

Re: tag currcond

Post by steve »

Please zip it up and attach it.
Steve
courtil
Posts: 124
Joined: Thu 16 Jan 2014 1:31 pm
Weather Station: Vantage PRO2
Operating System: Windows 11
Location: France
Contact:

Re: tag currcond

Post by courtil »

re,
here are 3 Zip files:

- Currentconditions.txt zip
- RealtimegaugesT.txt zip
- Realtimegauges.txt zip

Thank you for everything

cordially

Michel 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.28.6 b3283
https://courtil1.com
water01
Posts: 3246
Joined: Sat 13 Aug 2011 9:33 am
Weather Station: Ecowitt HP2551
Operating System: Windows 10 64bit
Location: Burnham-on-Sea
Contact:

Re: tag currcond

Post by water01 »

"forecast":"Derni&#232;re mise &#224; jour le <#date format=hh:nn>H locale -- Voici les conditions M&#233;t&#233;o actuelles &#224; CROISETTE -- Le Soleil se l&#232;ve &#224; <#sunrise> et se couche &#224; <#sunset> -- Temps actuel : <#currcond> -- La Temp&#233;rature est de <#temp>, &#176;C -- L'Humidit&#233; relative &#224; <#hum>,% -- La Pression Atmosph&#233;rique est de <#press> hPa -- Les Pr&#233;cipitations du jour sont de <#rfall> mm ",
I know Steve writes good code but I doubt any parser in the world is going to sort this out although it appears to make a good attempt!! :D
David
Image
User avatar
steve
Cumulus Author
Posts: 26701
Joined: Mon 02 Jun 2008 6:49 pm
Weather Station: None
Operating System: None
Location: Vienne, France
Contact:

Re: tag currcond

Post by steve »

As Beteljuice told you, you have several end of lines in your file:
2015-05-14 19_13_40-Calendar.png
Note also that "nn" does not mean "minutes" with MX.
You do not have the required permissions to view the files attached to this post.
Steve
User avatar
mcrossley
Posts: 12756
Joined: Thu 07 Jan 2010 9:44 pm
Weather Station: Davis VP2/WLL
Operating System: Bullseye Lite rPi
Location: Wilmslow, Cheshire, UK
Contact:

Re: tag currcond

Post by mcrossley »

Your currentconditions.txt contains multiple blank lines
User avatar
beteljuice
Posts: 3292
Joined: Tue 09 Dec 2008 1:37 pm
Weather Station: None !
Operating System: W10 - Threadripper 16core, etc
Location: Dudley, West Midlands, UK

Re: tag currcond

Post by beteljuice »

From your Currentconditions.txt zip
Temps frais et nuageux, vent faible, petite eclaircieCRLF
CRLF
CRLF
How are you generating it ?
Image
......................Imagine, what you will KNOW tomorrow !
courtil
Posts: 124
Joined: Thu 16 Jan 2014 1:31 pm
Weather Station: Vantage PRO2
Operating System: Windows 11
Location: France
Contact:

Re: tag currcond

Post by courtil »

Hello everyone,

my command line is generated using

- Notepad ++

or

-EditPade 7 lite

the error only appears HERE if I use the <#currcond>

in the version of the script by Mark crossley - version 2.5.5


With version Scripts by Mark Crossley - Version 2.4.4 - 2013-08-25

no error ???

Thank you for your information.

cordially

Michel said Courtil
OS : Windows 11 Familial
Station Météo : Vantage PRO2
Cumulus MX 3.28.6 b3283
https://courtil1.com
courtil
Posts: 124
Joined: Thu 16 Jan 2014 1:31 pm
Weather Station: Vantage PRO2
Operating System: Windows 11
Location: France
Contact:

Re: tag currcond

Post by courtil »

Hello,

I deleted in currentconditions.txt
unnecessary lines.

the output file: realtimegauges.txt complies display in gauges but gives errors.

Thank you for your information.

cordially

Michel 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.28.6 b3283
https://courtil1.com
User avatar
mcrossley
Posts: 12756
Joined: Thu 07 Jan 2010 9:44 pm
Weather Station: Davis VP2/WLL
Operating System: Bullseye Lite rPi
Location: Wilmslow, Cheshire, UK
Contact:

Re: tag currcond

Post by mcrossley »

The data in the "date" field (the first one) is wrong. Your realtimegauges.txt has...

"date":"08:nn",


In realtimegaugesT.txt

{"date":"<#date format=hh:nn>",

Needs to be...

{"date":"<#date format=HH:mm>",
User avatar
mcrossley
Posts: 12756
Joined: Thu 07 Jan 2010 9:44 pm
Weather Station: Davis VP2/WLL
Operating System: Bullseye Lite rPi
Location: Wilmslow, Cheshire, UK
Contact:

Re: tag currcond

Post by mcrossley »

However the parse error is happening in the native browser JSON parse routine, called by JQuery.

I think you need to remove all that HTML encoding, just use standard UTF-8 code. The script encodes any special characters for you.

DO NOT use Notepad, use a proper editor (eg Notepad++) that can save files in UTF-8 format.
Locked