Welcome to the Cumulus Support forum.

Latest Cumulus MX V4 release 4.4.2 (build 4085) - 12 March 2025

Latest Cumulus MX V3 release 3.28.6 (build 3283) - 21 March 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

If you are posting a new Topic about an error or if you need help PLEASE read this first viewtopic.php?p=164080#p164080

error when changing setting

From build 3044 the development baton passed to Mark Crossley. Mark has been responsible for all the Builds since. He has made the code available on GitHub. It is Mark's hope that others will join in this development, but at the very least he welcomes your ideas for future developments (see Cumulus MX Development suggestions).

Moderator: mcrossley

Post Reply
User avatar
HansR
Posts: 6926
Joined: Sat 20 Oct 2012 6:53 am
Weather Station: GW1100 (WS80/WH40)
Operating System: Raspberry OS/Bookworm
Location: Wagenborgen (NL)
Contact:

error when changing setting

Post by HansR »

I tried to change the name and location of my station (changing an ø in an o).
I succeeded yesterday (changing an o in an ø) but today the reverse does not work.
Schermafbeelding 2021-04-24 100801.jpg
What can be the cause?
You do not have the required permissions to view the files attached to this post.
Hans

https://meteo-wagenborgen.nl
CMX build 4070+ ● RPi 4B ● Linux 6.6.62+rpt-rpi-v8 aarch64 (bookworm) ● dotnet 8.0.1
BlueSky: https://bsky.app/profile/wagenborgenwx.bsky.social
User avatar
mcrossley
Posts: 14388
Joined: Thu 07 Jan 2010 9:44 pm
Weather Station: Davis VP2/WLL
Operating System: Bullseye Lite rPi
Location: Wilmslow, Cheshire, UK
Contact:

Re: error when changing setting

Post by mcrossley »

That helpful generic error! I'm trying to fix it in the next release so that intended message is displayed.
Meantime, can you check your MXdiags log file, it should tell you which section of the settings has the issue.
User avatar
HansR
Posts: 6926
Joined: Sat 20 Oct 2012 6:53 am
Weather Station: GW1100 (WS80/WH40)
Operating System: Raspberry OS/Bookworm
Location: Wagenborgen (NL)
Contact:

Re: error when changing setting

Post by HansR »

Ok, not at the computer for some days so some.patience needed ;)
Hans

https://meteo-wagenborgen.nl
CMX build 4070+ ● RPi 4B ● Linux 6.6.62+rpt-rpi-v8 aarch64 (bookworm) ● dotnet 8.0.1
BlueSky: https://bsky.app/profile/wagenborgenwx.bsky.social
User avatar
HansR
Posts: 6926
Joined: Sat 20 Oct 2012 6:53 am
Weather Station: GW1100 (WS80/WH40)
Operating System: Raspberry OS/Bookworm
Location: Wagenborgen (NL)
Contact:

Re: error when changing setting

Post by HansR »

Here is the part of the logfile when saving a setting:

Code: Select all

2021-04-26 09:34:32.904 SendLoopCommand: Starting - LOOP 20
2021-04-26 09:34:47.206 Realtime[65]: Uploading - realtime.txt
2021-04-26 09:34:47.371 Realtime[65]: Uploading - realtimegauges.txt
2021-04-26 09:34:47.540 Realtime[65]: Uploading extra web file[1] utils/airlinkrealtime.txttmp to /public_html/airlinkrealtime.txt
2021-04-26 09:34:57.750 Updating program settings
2021-04-26 09:34:57.751 The type initializer for 'e.b.d.a' threw an exception.
2021-04-26 09:35:00.096 DoLogFile: Writing log entry for 26-4-2021 09:35:00
2021-04-26 09:35:00.097 DoLogFile: Written log entry for 26-4-2021 09:35:00
2021-04-26 09:35:00.102 Writing today.ini, LastUpdateTime = 26-4-2021 09:35:00 raindaystart = 218,2 rain counter = 218,2
2021-04-26 09:35:10.910 SendLoopCommand: Starting - LOOP 20
It happens both when changing e.g. the name of the station as well as wanting to set the debug on so I can't supply a more extensive log.
Hans

https://meteo-wagenborgen.nl
CMX build 4070+ ● RPi 4B ● Linux 6.6.62+rpt-rpi-v8 aarch64 (bookworm) ● dotnet 8.0.1
BlueSky: https://bsky.app/profile/wagenborgenwx.bsky.social
User avatar
mcrossley
Posts: 14388
Joined: Thu 07 Jan 2010 9:44 pm
Weather Station: Davis VP2/WLL
Operating System: Bullseye Lite rPi
Location: Wilmslow, Cheshire, UK
Contact:

Re: error when changing setting

Post by mcrossley »

It looks like the web page is sending badly formed JSON - or at least an unexpected structure.

Are your /interface/json/station*.json files definitely up to date?

Next please start the browser dev tools, and capture the JSON sent to Cumulus MX please.
Chromium :- Network | the updatestationconfig.json message | Headers | Form Data
User avatar
HansR
Posts: 6926
Joined: Sat 20 Oct 2012 6:53 am
Weather Station: GW1100 (WS80/WH40)
Operating System: Raspberry OS/Bookworm
Location: Wagenborgen (NL)
Contact:

Re: error when changing setting

Post by HansR »

mcrossley wrote: Mon 26 Apr 2021 8:13 am It looks like the web page is sending badly formed JSON - or at least an unexpected structure.

Are your /interface/json/station*.json files definitely up to date?

Next please start the browser dev tools, and capture the JSON sent to Cumulus MX please.
Chromium :- Network | the updatestationconfig.json message | Headers | Form Data
The station*.json files are of 25/3 12h31 (StationOptions) and 12h10 (StationScheme).
CMX version 3.10.5 (build 3122) - you tell me whether the versions are correct (the date and time are the same in the distribution), I made no changes.

The value of updatestationconfig.json (Headers|Formdata) is:

Code: Select all

{"stationid":1,"general":{"stationtype":"1","loginterval":0,"logrollover":{"time":"midnight"},"units":{"wind":"2","pressure":"1","temp":"0","rain":"0","advanced":{"tempdp":1,"pressdp":1,"raindp":1,"winddp":1,"windavgdp":1,"windrundp":1,"airqulaitydp":1,"sunshinedp":1,"uvdp":1}},"Location":{"sitename":"De+Wilgen+-+Wagenborgen+(NL)","description":"Weerstation+De+Wilgen+te+'Wagenborgen+(Groningen)","altitude":0,"altitudeunit":"metres","Latitude":{"degrees":53,"minutes":15,"seconds":32,"hemisphere":"North"},"Longitude":{"degrees":6,"minutes":55,"seconds":53,"hemisphere":"East"}},"advanced":{"recsbegandate":"dinsdag+11+juni+2019"}},"davisvp2":{"davisconn":{"conntype":"0","comportname":"/dev/ttyUSB0"},"advanced":{"conntype":0,"syncstationclock":true,"syncclockhour":4,"readreceptionstats":true,"setloggerinterval":false,"useloop2":false,"vp1minbarupdate":true,"raingaugetype":"-1","baudrate":19200}},"Options":{"usezerobearing":false,"calcwindaverage":true,"usespeedforavg":true,"use100for98hum":true,"calculatedewpoint":true,"calculatewindchill":true,"cumuluspresstrendnames":true,"roundwindspeeds":false,"extrasensors":false,"nosensorcheck":false,"advanced":{"avgbearingmins":10,"avgspeedmins":10,"peakgustmins":10},"stationid":1},"Forecast":{"usecumulusforecast":false},"Solar":{"solarcalc":"1","sunthreshold":60,"solarmin":0,"turbidity":1},"AnnualRainfall":{"ytdamount":284,"ytdyear":2019,"rainseasonstart":"1"},"Graphs":{"graphhours":48,"graphdays":365,"datavisibility":{"temperature":{"graphTempVis":true,"graphInTempVis":true,"graphHeatIndexVis":false,"graphDewPointVis":true,"graphWindChillVis":true,"graphAppTempVis":false,"graphFeelsLikeVis":true,"graphHumidexVis":false,"graphDailyMaxTempVis":true,"graphDailyAvgTempVis":true,"graphDailyMinTempVis":true},"humidity":{"graphHumVis":true,"graphInHumVis":true},"solar":{"graphUvVis":true,"graphSolarVis":true,"graphSunshineVis":true}}},"DisplayOptions":{"useapparent":false,"displaysolar":false,"displayuv":false,"windrosepoints":"16"}}
Let me know if you need more.
Hans

https://meteo-wagenborgen.nl
CMX build 4070+ ● RPi 4B ● Linux 6.6.62+rpt-rpi-v8 aarch64 (bookworm) ● dotnet 8.0.1
BlueSky: https://bsky.app/profile/wagenborgenwx.bsky.social
User avatar
mcrossley
Posts: 14388
Joined: Thu 07 Jan 2010 9:44 pm
Weather Station: Davis VP2/WLL
Operating System: Bullseye Lite rPi
Location: Wilmslow, Cheshire, UK
Contact:

Re: error when changing setting

Post by mcrossley »

I need more!

Could you paste the Form Data | View Source please.

Your decoded Form Data still has "+" characters for spaces, that is wrong, the decoded text should show spaces in strings. The "+" should only be present in the raw source data.
User avatar
HansR
Posts: 6926
Joined: Sat 20 Oct 2012 6:53 am
Weather Station: GW1100 (WS80/WH40)
Operating System: Raspberry OS/Bookworm
Location: Wagenborgen (NL)
Contact:

Re: error when changing setting

Post by HansR »

You mean this?

Code: Select all

json=%7B%22stationid%22%3A1%2C%22general%22%3A%7B%22stationtype%22%3A%221%22%2C%22loginterval%22%3A0%2C%22logrollover%22%3A%7B%22time%22%3A%22midnight%22%7D%2C%22units%22%3A%7B%22wind%22%3A%222%22%2C%22pressure%22%3A%221%22%2C%22temp%22%3A%220%22%2C%22rain%22%3A%220%22%2C%22advanced%22%3A%7B%22tempdp%22%3A1%2C%22pressdp%22%3A1%2C%22raindp%22%3A1%2C%22winddp%22%3A1%2C%22windavgdp%22%3A1%2C%22windrundp%22%3A1%2C%22airqulaitydp%22%3A1%2C%22sunshinedp%22%3A1%2C%22uvdp%22%3A1%7D%7D%2C%22Location%22%3A%7B%22sitename%22%3A%22De+Wilgen+-+Wagenborgen+(NL)%22%2C%22description%22%3A%22Weerstation+De+Wilgen+te+'Wagenborgen+(Groningen)%22%2C%22altitude%22%3A0%2C%22altitudeunit%22%3A%22metres%22%2C%22Latitude%22%3A%7B%22degrees%22%3A53%2C%22minutes%22%3A15%2C%22seconds%22%3A32%2C%22hemisphere%22%3A%22North%22%7D%2C%22Longitude%22%3A%7B%22degrees%22%3A6%2C%22minutes%22%3A55%2C%22seconds%22%3A53%2C%22hemisphere%22%3A%22East%22%7D%7D%2C%22advanced%22%3A%7B%22recsbegandate%22%3A%22dinsdag+11+juni+2019%22%7D%7D%2C%22davisvp2%22%3A%7B%22davisconn%22%3A%7B%22conntype%22%3A%220%22%2C%22comportname%22%3A%22%2Fdev%2FttyUSB0%22%7D%2C%22advanced%22%3A%7B%22conntype%22%3A0%2C%22syncstationclock%22%3Atrue%2C%22syncclockhour%22%3A4%2C%22readreceptionstats%22%3Atrue%2C%22setloggerinterval%22%3Afalse%2C%22useloop2%22%3Afalse%2C%22vp1minbarupdate%22%3Atrue%2C%22raingaugetype%22%3A%22-1%22%2C%22baudrate%22%3A19200%7D%7D%2C%22Options%22%3A%7B%22usezerobearing%22%3Afalse%2C%22calcwindaverage%22%3Atrue%2C%22usespeedforavg%22%3Atrue%2C%22use100for98hum%22%3Atrue%2C%22calculatedewpoint%22%3Atrue%2C%22calculatewindchill%22%3Atrue%2C%22cumuluspresstrendnames%22%3Atrue%2C%22roundwindspeeds%22%3Afalse%2C%22extrasensors%22%3Afalse%2C%22nosensorcheck%22%3Afalse%2C%22advanced%22%3A%7B%22avgbearingmins%22%3A10%2C%22avgspeedmins%22%3A10%2C%22peakgustmins%22%3A10%7D%2C%22stationid%22%3A1%7D%2C%22Forecast%22%3A%7B%22usecumulusforecast%22%3Afalse%7D%2C%22Solar%22%3A%7B%22solarcalc%22%3A%221%22%2C%22sunthreshold%22%3A60%2C%22solarmin%22%3A0%2C%22turbidity%22%3A1%7D%2C%22AnnualRainfall%22%3A%7B%22ytdamount%22%3A284%2C%22ytdyear%22%3A2019%2C%22rainseasonstart%22%3A%221%22%7D%2C%22Graphs%22%3A%7B%22graphhours%22%3A48%2C%22graphdays%22%3A365%2C%22datavisibility%22%3A%7B%22temperature%22%3A%7B%22graphTempVis%22%3Atrue%2C%22graphInTempVis%22%3Atrue%2C%22graphHeatIndexVis%22%3Afalse%2C%22graphDewPointVis%22%3Atrue%2C%22graphWindChillVis%22%3Atrue%2C%22graphAppTempVis%22%3Afalse%2C%22graphFeelsLikeVis%22%3Atrue%2C%22graphHumidexVis%22%3Afalse%2C%22graphDailyMaxTempVis%22%3Atrue%2C%22graphDailyAvgTempVis%22%3Atrue%2C%22graphDailyMinTempVis%22%3Atrue%7D%2C%22humidity%22%3A%7B%22graphHumVis%22%3Atrue%2C%22graphInHumVis%22%3Atrue%7D%2C%22solar%22%3A%7B%22graphUvVis%22%3Atrue%2C%22graphSolarVis%22%3Atrue%2C%22graphSunshineVis%22%3Atrue%7D%7D%7D%2C%22DisplayOptions%22%3A%7B%22useapparent%22%3Afalse%2C%22displaysolar%22%3Afalse%2C%22displayuv%22%3Afalse%2C%22windrosepoints%22%3A%2216%22%7D%7D
Hans

https://meteo-wagenborgen.nl
CMX build 4070+ ● RPi 4B ● Linux 6.6.62+rpt-rpi-v8 aarch64 (bookworm) ● dotnet 8.0.1
BlueSky: https://bsky.app/profile/wagenborgenwx.bsky.social
User avatar
mcrossley
Posts: 14388
Joined: Thu 07 Jan 2010 9:44 pm
Weather Station: Davis VP2/WLL
Operating System: Bullseye Lite rPi
Location: Wilmslow, Cheshire, UK
Contact:

Re: error when changing setting

Post by mcrossley »

That is what I wanted yes - and it does decode correctly, it is just your browser that isn't doing it properly. I'm running Edge and it converts the "+" characters to spaces in the Formdata formatted view.

Now the bad news, that JSON seems to work fine when I run it through my debug version of MX :roll:

I have updated the error handing for the settings pages in the next release. But the new .js file should work with the old MX version and remove that [object][object] message.
You do not have the required permissions to view the files attached to this post.
User avatar
HansR
Posts: 6926
Joined: Sat 20 Oct 2012 6:53 am
Weather Station: GW1100 (WS80/WH40)
Operating System: Raspberry OS/Bookworm
Location: Wagenborgen (NL)
Contact:

Re: error when changing setting

Post by HansR »

OK, Solved it.

The version of ServiceStack.Text.dll was wrong (23 april 2021 which indeed is the day the trouble started).
Today I noticed that the AirLink data were not received anymore so I thought it had to be the library.

I reinstalled the whole CMX version and yes, it works.

Apologies, must have been my error but I really haven't got a clue how and what. I separated the Utils software completely from the CMX and as far as I know I do not touch the dll's nor other assemblies. I was able to set a non-ascii character in the name and description and could not set it back. Strange things. I tried to reproduce this by again copying the same character but no.

Anyway. Solved.

Edit: I see you replied already. OK, better errorhandling is never a waste :|
Hans

https://meteo-wagenborgen.nl
CMX build 4070+ ● RPi 4B ● Linux 6.6.62+rpt-rpi-v8 aarch64 (bookworm) ● dotnet 8.0.1
BlueSky: https://bsky.app/profile/wagenborgenwx.bsky.social
Post Reply