Hello, I have a little problem with the gauges I am installing them on my site to put the weather station data there but it does not work I have an error that goes back and I look for my I have not found can you help me ? I put the fault on you
Uncaught TypeError: $ .subscribe is not a function
at init (gauges.js: 684)
at Object.getInstance (gauges.js: 698)
at init (gauges.js: 461)
at HTMLDocument. <anonymous> (gauges.js: 4210)
at j (jquery-3.2.1.min.js: 2)
at k (jquery-3.2.1.min.js: 2)
Thank you
Welcome to the Cumulus Support forum.
Latest Cumulus MX release 3.9.6 (build 3101) - 20 January 2021 (please see announcement regarding releases since 3.5.0)
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 the NOAA report and Snow Index drop-down menus to 2030)
Use this Wiki link to Download the Software (Cumulus MX / Cumulus 1 and other related items).
Latest Cumulus MX release 3.9.6 (build 3101) - 20 January 2021 (please see announcement regarding releases since 3.5.0)
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 the NOAA report and Snow Index drop-down menus to 2030)
Use this Wiki link to Download the Software (Cumulus MX / Cumulus 1 and other related items).
TypeError: $ .subscribe is not a function
Moderator: mcrossley
-
- Posts: 4
- Joined: Sat 25 Apr 2020 7:30 pm
- Weather Station: arduino
- Operating System: windows 10
-
- Posts: 2059
- Joined: Sat 13 Aug 2011 9:33 am
- Weather Station: WH1081
- Operating System: Windows 10 64bit
- Location: Burnham-on-Sea
- Contact:
Re: TypeError: $ .subscribe is not a function
Could we have a link to your web site please as that may help us diagnose the problem.
Re: TypeError: $ .subscribe is not a function
(text removed as not relevant)
Last edited by sfws on Sun 26 Apr 2020 1:31 pm, edited 1 time in total.
- HansR
- Posts: 1686
- Joined: Sat 20 Oct 2012 6:53 am
- Weather Station: Davis Vantage Pro 2+
- Operating System: Raspbian GNU/Linux 10 (Buster)
- Location: Wagenborgen (NL)
- Contact:
Re: TypeError: $ .subscribe is not a function
Just a guess: do you include jQuery.js twice or more?
Hans
https://meteo-wagenborgen.nl
Cumulus build 3103 ● Davis Vantage Pro 2+ ● RPi 3B+ ● Raspbian 5.4.79-v7+ ● Mono JIT compiler Debian 5.18.0.240
https://meteo-wagenborgen.nl
Cumulus build 3103 ● Davis Vantage Pro 2+ ● RPi 3B+ ● Raspbian 5.4.79-v7+ ● Mono JIT compiler Debian 5.18.0.240
-
- Posts: 4
- Joined: Sat 25 Apr 2020 7:30 pm
- Weather Station: arduino
- Operating System: windows 10
Re: TypeError: $ .subscribe is not a function
Thank you for your answers
Unfortunately the site and not online I am developing it locally on my computer using symfony 5.
I use Jquery 3.2.1 as in the demo site which and data in the zip.
And for the last question yes I use it on the basic page for Bootstrap that poses problem?
Unfortunately the site and not online I am developing it locally on my computer using symfony 5.
I use Jquery 3.2.1 as in the demo site which and data in the zip.
And for the last question yes I use it on the basic page for Bootstrap that poses problem?
- mcrossley
- Posts: 7606
- Joined: Thu 07 Jan 2010 9:44 pm
- Weather Station: Davis VP2
- Operating System: Buster Lite rPi
- Location: Wilmslow, Cheshire, UK
- Contact:
Re: TypeError: $ .subscribe is not a function
Yes, including jQuery a second time will recreate the $ object. The gauge code extends the jQuery $ object by adding the publish/subscribe functionality.
- HansR
- Posts: 1686
- Joined: Sat 20 Oct 2012 6:53 am
- Weather Station: Davis Vantage Pro 2+
- Operating System: Raspbian GNU/Linux 10 (Buster)
- Location: Wagenborgen (NL)
- Contact:
Re: TypeError: $ .subscribe is not a function
What @mcrossley says. Yes including jQuery more than once poses problems as I experienced recently.tedybear57 wrote: ↑Sun 26 Apr 2020 10:16 amAnd for the last question yes I use it on the basic page for Bootstrap that poses problem?
Hans
https://meteo-wagenborgen.nl
Cumulus build 3103 ● Davis Vantage Pro 2+ ● RPi 3B+ ● Raspbian 5.4.79-v7+ ● Mono JIT compiler Debian 5.18.0.240
https://meteo-wagenborgen.nl
Cumulus build 3103 ● Davis Vantage Pro 2+ ● RPi 3B+ ● Raspbian 5.4.79-v7+ ● Mono JIT compiler Debian 5.18.0.240
-
- Posts: 4
- Joined: Sat 25 Apr 2020 7:30 pm
- Weather Station: arduino
- Operating System: windows 10
Re: TypeError: $ .subscribe is not a function
Ok i will test and i will come back to you to tell you anyway already thank you
-
- Posts: 4
- Joined: Sat 25 Apr 2020 7:30 pm
- Weather Station: arduino
- Operating System: windows 10
Re: TypeError: $ .subscribe is not a function
It was good thanks for the help