Page 2 of 2

Re: Cutils v7 migration

Posted: Thu 04 Apr 2024 9:06 pm
by Nossie
So the example .def file is just that, create a copy and rename it to CutilsMenu.def and then you can add and change things as you like.


Here is mine just FYI

Code: Select all

;
; CumulusUtils Menu definitions for Website- Part of CumulusUtils
;
; © Copyright 2022 Hans Rottier <hans.rottier@gmail.com>
;
; Author:      Hans Rottier <hans.rottier@gmail.com>
; Project:     CumulusUtils meteo-wagenborgen.nl
; Date:        22-09-2022
; Version:     Goes with CumulusUtils version 6.12 and up
;
; This file is  part of the distribution and for version 6.12 has limited functionality
; Users may modify this file to change the order of the menu items
; Later versions will include menu item additions
;
Home
Reports

Graphs
;  Item Extra Report extrasensorscharts.txt EndItem

Records
Extra
Misc
  Item MET Forecast Internal https://www.metoffice.gov.uk/weather/maps-and-charts/uk-weather-map#?bbox=[[54.665914357196506,-7.088997074091104],[56.638129591742754,-2.158882327997354]]&model=ukmo-ukv&layer=weather-symbols&timestep=1665061200000 EndItem
;  Item AWEKAS Forecast Internal https://stationsweb.awekas.at/forecast.php?id=27077&teh=c&lng=en&weh=mp&s=1 EndItem
Maps
  Item Sat24 IR Internal https://api.sat24.com/animated/EU/infraPolair/3/W_dot_%20Europe%20Standard%20Time/3820315 EndItem
  Item Thunderstorms Internal https://map.blitzortung.org/#7.8/55.761/-4.576 EndItem
  Item MET Office Warnings  Internal https://www.metoffice.gov.uk/weather/warnings-and-advice/uk-warnings EndItem
  Item Global Winds Internal https://earth.nullschool.net/#current/wind/surface/level/orthographic=-1.12,54.84,12863/loc=-4.5092,55.6856 EndItem
  Item Windy Internal https://embed.windy.com/embed2.html?lat=55.621&lon=-4.510&detailLat=55.656&detailLon=-4.412&zoom=11&level=surface&overlay=wind&product=ecmwf&menu=&message=true&marker=&calendar=now&pressure=true&type=map&location=coordinates&detail=true&metricWind=mph&metricTemp=%C2%B0C&radarRange=-1 EndItem

Observations
;  Item ./wu.png External https://www.wunderground.com/dashboard/pws/IKILMA84?cm_ven=localwx_pwsdash EndItem
   Item Windy Stations External https://www.windy.com/station/pws-f05c14fe?55.6856,-4.5092,8 EndItem
   Item Weather Underground External https://www.wunderground.com/dashboard/pws/IKILMA84?cm_ven=localwx_pwsdash EndItem
   Item WoW MET Office External https://wow.metoffice.gov.uk/observations/details/20221005wtxma4nr9ye65f7oyyb96sc6fr EndItem
   Item Weather Cloud External https://app.weathercloud.net/d5288401610#profile EndItem
;   Item AWEKAS External https://stationsweb.awekas.at/index.php?id=27077&teh=c&lng=en&weh=km&s=1 EndItem
Feedback
   Item Forum External https://forum.StewartonWeather.com EndItem
;  Item Waterstanden External https://waterinfo.rws.nl/#!/kaart/waterhoogte/ EndItem
;  Item TopoNL External https://topotijdreis.nl EndItem
;  Item Hoogtekaart External https://ahn.arcgisonline.nl/ahnviewer/ EndItem
;  Item CropMap External https://www.esa.int/ESA_Multimedia/Images/2018/05/Crop_map EndItem
;  Item Separator EndItem
;  Item Waterstanden (Int) Internal https://waterinfo.rws.nl/#!/kaart/waterhoogte/ EndItem
;  Item TopoNL (Int) Internal https://topotijdreis.nl EndItem

ToggleDashboard
About
Notice the ; for commented out lines but you could just remove them - the main thing Paul is that what you are modifying is just an example.

Re: Cutils v7 migration

Posted: Fri 05 Apr 2024 1:52 am
by PaulMy
Thanks, that helped a lot. After much trial-and-errors, ended successfully!

Enjoy,
Paul

Re: Cutils v7 migration

Posted: Fri 05 Apr 2024 6:29 am
by HansR
PaulMy wrote: Thu 04 Apr 2024 8:54 pm The v7 home page has [User] [NL] and [Map] tabs. I want to edit these and have renamed MAP and started to edit the content in CUsermenu-example.txt. Where can I remove, rename and edit the User and NL tabs?
http://www.komokaweather.com/cumulusmx4/index.html
Hi Paul,

Indeed you should use CutilsMenu-example-for-use.def and move that to CUsermenu.def

The CutilsMenu-example.txt ( :!: ) (there is no def file for CUsermenu-example) is for the old SYSTEM-1 menu system. I will remove that file for the final release, system-1 is strongly disadvised and it serves no purpose anymore.

Thanks for the observation.

Cheers,

Re: Cutils v7 migration

Posted: Fri 05 Apr 2024 6:57 am
by Nossie
Great to see Paul :)


Thanks Hans - that beta has fixed the co2 issue.

Re: Cutils v7 migration

Posted: Fri 05 Apr 2024 7:18 am
by HansR
@Ian: Good and thanks for helping out Paul, I did not read beyond Pauls original message :bash:

Re: Cutils v7 migration

Posted: Fri 05 Apr 2024 7:47 pm
by PaulMy
I am still running 2 instances of CMXv3 with CUtils v6.23.6 but these will eventually be stopped and converted to CMXv4.
I've updated the CutilsMenu.def menu but have a small thing...

I was successful to get another CMXv4 working with CUtils v7.0.0 and the CutilsMenu.def http://www.komokaweather.com/cumulusmx4 ... n=Overview

I have updated the v6.23.6 to the same CutilsMenu.def and that also works well. However in both there is an additional menu tab.
For one v6.23.6 install there is an extra [Uploads] and [Maps] tab http://www.komokaweather.com/cumulusmx/index.html
For the other v6.23.6 install there is an extra [User Menu] tab http://www.komokaweather.com/cumulusmxwll/index.html
These appears to be a carry over from the previous CUsermenu that had these extra tabs but the new CutilsMenu.def does not have these two tabs, and all 3 installs have the identical CutilsMenu.def in \utils. I have done a website run several times for both the v6.23.6 installs.

Just live with it for the time being, or did I do something wrong/missed something?

Enjoy,
Paul

Re: Cutils v7 migration

Posted: Fri 05 Apr 2024 8:24 pm
by HansR
All your sites re unreachable for me a.t.m. @paul, I'll check again tomorrow and we'll contact in the afternoon (my time) / morning (your time)

Re: Cutils v7 migration

Posted: Sat 06 Apr 2024 2:39 pm
by HansR
@Paul: unfortunately all those links are inaccessible (see screenshot of what I see). I unlocked all blocking possibilities for ads/trackers, malware and scams but it remains no go.

But try to remove the CUsermenu.txt from the server directory. It could interfere if you use both menu systems at the same time. Your menu does not have anything to do with me not seeing your site I assume.
    Schermafbeelding 2024-04-06 163420.png

    Re: Cutils v7 migration

    Posted: Sat 06 Apr 2024 3:19 pm
    by Dador
    HansR wrote: Sat 06 Apr 2024 2:39 pm @Paul: unfortunately all those links are inaccessible (see screenshot of what I see). I unlocked all blocking possibilities for ads/trackers, malware and scams but it remains no go.
    Interesting.
    Any country restrictions?
    All links work fine for me.

    Re: Cutils v7 migration

    Posted: Sat 06 Apr 2024 4:18 pm
    by PaulMy
    @Hans write:
    Indeed you should use CutilsMenu-example-for-use.def and move that to CUsermenu.def
    Which file (name) should I use CutilsMenu.def or CUsermenu.txt?
    Neither of these files are on my webserver and I think that is ok.

    I have tried a website run using the v7 included CUsermenu-example.txt after renaming it to CUsermenu.def in the CumulusMX4\utils folder and the tabs on the home page are Home, About, Reports, Graphs, Records, Extras, Misc, Toggle Dashboard, Print and they all work. But none of the new tabs that would have the navigation items in the example file - like Waterstanden.txt and European Forest Fire Information System, etc. If I could get this working then I should be able to edit for my preferred sites/links. I am drawing a blank :oops:

    Enjoy,
    Paul

    Re: Cutils v7 migration

    Posted: Sat 06 Apr 2024 4:34 pm
    by HansR
    @Paul: indeed I confused myself and everybody else :oops:

    I think I best point to the wiki.
    The file CutilsMenu-example-for-use.def in the distri is a good starting point with all possibilities shown.

    The file you use operational must be CutilsMenu.def which must reside in the utils directory (like CutilsCharts.def).
    The system-1 file (CUsermenu.txt exists on the server (but please remove it when you use system-2)

    Hope this clarifies.

    Re: Cutils v7 migration

    Posted: Sat 06 Apr 2024 6:06 pm
    by PaulMy
    Hi Hans,
    I think I best point to the wiki.
    The file CutilsMenu-example-for-use.def in the distri is a good starting point with all possibilities shown.

    The file you use operational must be CutilsMenu.def which must reside in the utils directory (like CutilsCharts.def).
    all resolved now. I've used only my edited CutilsMenu.def in both \CumulusMX\utils and remote webserver. Both CMXv3 and CMXv4 installs now show the menu as I expect. Quite easy when it sinks in, and a read of the Wiki also helps.

    Thanks for your patience.

    Enjoy,
    Paul

    Re: Cutils v7 migration

    Posted: Sat 06 Apr 2024 6:15 pm
    by HansR
    Pfff...

    And I see your site when using my 5g connection on the phone so it must be somewhere in my wifi :groan: