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

Bookmarklets - Cumulus examples

Other discussion about creating web sites for Cumulus that doesn't have a specific subforum

Moderator: daj

Post Reply
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

Bookmarklets - Cumulus examples

Post by beteljuice »

Bookmarklets ?

Very basically - bookmarks can run JavaScript in your browser.

What does this mean ?

You can modify ANY html page in your browser window :o

This is the way eg. you can have 'plug-ins' that change the colours or styles of the page you are viewing.

Do a bit of reseach or see: http://coding.smashingmagazine.com/2010 ... th-jquery/

Then go to: beteljuice test
bookmarklets.zip
Are they useful ? - the beteljuice is not overly impressed,
.... but I suppose if you spend most of your time full screen on a single page and you need to know what your weather station is doing ......

The beteljuice has put together three examples (OK the first is from the top link) using differing amounts of 'complication' to obtain the input you desire.

I've zipped them up and put a README to get you going.
How complex and what information you want to display is upto you ;)

Edit: The examples are all JavaScript, but of course your content could be created by any means you like, it may even be a 'static' picture of your daughters pet pony :?

Many thanks go to Ken True (SaratogaWX) who has given permission to redistribute his ajax??wx.js scripts and ajax-images graphics library used by the 'weather bar'
... and to ....
Steve, who has greatly assisted with testing (Even if he did throw me a Chrome problem I didn't know existed !)
You do not have the required permissions to view the files attached to this post.
Last edited by beteljuice on Wed 26 Feb 2014 10:38 pm, edited 2 times in total.
Image
......................Imagine, what you will KNOW tomorrow !
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: Bookmarklets - Cumulus examples

Post by mcrossley »

I'll take a look at this later. I have used bookmarklets before to test how scripts will work on other sites, for instance the flying bird and snow background scripts I played with.
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: Bookmarklets - Cumulus examples

Post by beteljuice »

@Mark - you should have denied all knowledge ...

... now someone will expect you to design a fly-away status monitor :lol:

Technobabble;

The booklet 'wrapper' looks for a uniquely named function.
If it does NOT exist, it is created by an anonymous function (to assist in reducing vars / id conflicts)
The unique function (usually) pulls in an external .js to make life easier for coding.
Eventually a uniquely named <div> is created, you could just code your content in there,
... but I've used <iframe>, again for ease of coding, and it doesn't matter what code or names you put in there because there won't be any conflicts.
Image
......................Imagine, what you will KNOW tomorrow !
Post Reply