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

Arbitrary sensors and custom web tags

From Cumulus MX version 3 build 3044 the development baton passed to Mark Crossley. Mark has been responsible for all the Builds since, and has recently released Cumulus MX version 4. 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
jpsc
Posts: 183
Joined: Tue 23 Aug 2011 6:06 pm
Weather Station: Davis Vantage Vue, belfryboy USB
Operating System: Raspbian Bullseye
Location: Wye valley, Herefordshire, UK
Contact:

Arbitrary sensors and custom web tags

Post by jpsc »

I have for some years been using the local river level gauge to update my web pages accordingly.

The level only changes a few times per day and so I have been running a cron job to download the latest csv and parse the current level. This then feeds into a sed script to modify the CMX template files. I am quite happy with this, the overhead is negligable

I would like to feed this number into CMX in a more official way, and publish a web tag like <#Mordiford-riverlevel>
Is there an easy way to create such a tag and populate it from outside CMX?

This has been prompted in part by the Bluesky.txt template which is only loaded when CMX starts, and so my cron edits are not picked up until the next CMX restart
John Cooper

Cumulus MX v4 on RPi3 with SSD

http://weather.mountpleasanthouse.uk

Image
User avatar
mcrossley
Posts: 14384
Joined: Thu 07 Jan 2010 9:44 pm
Weather Station: Davis VP2/WLL
Operating System: Bullseye Lite rPi
Location: Wilmslow, Cheshire, UK
Contact:

Re: Arbitrary sensors and custom web tags

Post by mcrossley »

One way of doing it...

Save the river level text to a text file called "currentconditions.txt" in the root folder of CMX, then you can use the web tag <#currcond> to pull the contents of that file.

You can also view/edit the content of the file via the Current Conditions editor.
User avatar
jpsc
Posts: 183
Joined: Tue 23 Aug 2011 6:06 pm
Weather Station: Davis Vantage Vue, belfryboy USB
Operating System: Raspbian Bullseye
Location: Wye valley, Herefordshire, UK
Contact:

Re: Arbitrary sensors and custom web tags

Post by jpsc »

Great! that works really well
John Cooper

Cumulus MX v4 on RPi3 with SSD

http://weather.mountpleasanthouse.uk

Image
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: Arbitrary sensors and custom web tags

Post by HansR »

Would it be possible to eliminate/forbid/ignore images in signatures?
I think it is bad, very bad, practice on a forum as it kills transparency of reading the posts.
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
freddie
Posts: 2870
Joined: Wed 08 Jun 2011 11:19 am
Weather Station: Davis Vantage Pro 2 + Ecowitt
Operating System: GNU/Linux Ubuntu 24.04 LXC
Location: Alcaston, Shropshire, UK
Contact:

Re: Arbitrary sensors and custom web tags

Post by freddie »

I expect it is possible. Or perhaps restrict the size. I'll have a think/search.
Freddie
Image
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: Arbitrary sensors and custom web tags

Post by HansR »

freddie wrote: Mon 06 Jan 2025 10:45 pm I expect it is possible. Or perhaps restrict the size. I'll have a think/search.
Thanks.
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
jpsc
Posts: 183
Joined: Tue 23 Aug 2011 6:06 pm
Weather Station: Davis Vantage Vue, belfryboy USB
Operating System: Raspbian Bullseye
Location: Wye valley, Herefordshire, UK
Contact:

Re: Arbitrary sensors and custom web tags

Post by jpsc »

HansR wrote: Mon 06 Jan 2025 9:29 pm Would it be possible to eliminate/forbid/ignore images in signatures?
I think it is bad, very bad, practice on a forum as it kills transparency of reading the posts.
Apologies, I'll reduce it to a thumbnail. What would be an acceptable size?
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: Arbitrary sensors and custom web tags

Post by HansR »

jpsc wrote: Tue 07 Jan 2025 9:19 am
HansR wrote: Mon 06 Jan 2025 9:29 pm Would it be possible to eliminate/forbid/ignore images in signatures?
I think it is bad, very bad, practice on a forum as it kills transparency of reading the posts.
Apologies, I'll reduce it to a thumbnail. What would be an acceptable size?
Well, I still think it is quite large - I think some banners are a bit too large as well - but I'll leave it to @freddie to decide.
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
jpsc
Posts: 183
Joined: Tue 23 Aug 2011 6:06 pm
Weather Station: Davis Vantage Vue, belfryboy USB
Operating System: Raspbian Bullseye
Location: Wye valley, Herefordshire, UK
Contact:

Re: Arbitrary sensors and custom web tags

Post by jpsc »

Unfortunately it is the only publicly accessable lower res image that I have on the web

I have the ability to create any arbitrary image on my site, but it is http:// and so not allowed on here
broadstairs
Posts: 1184
Joined: Thu 14 Aug 2008 7:17 am
Weather Station: Ecowitt GW2000/GW3000
Operating System: Linux openSUSE LEAP
Location: Broadstairs, Kent, UK
Contact:

Re: Arbitrary sensors and custom web tags

Post by broadstairs »

I've never been a fan of large images/banner in signatures I prefer text and on a website like this more detail about your station etc to my mind is preferable and useful. It used to be that images slow things down for low bandwidth users but that rarely applies now,however it is more about taking up space in the forum with irrelevant data which, on a help forum like this, is required to describe issues and fixes.

Just my personal view.

Stuart
Currently running CMX V4.4.2 4085 on Linux openSUSE Leap
Post Reply