Welcome to the Cumulus Support forum.

Latest Cumulus MX V3 release 3.28.6 (build 3283) - 21 March 2024

Cumulus MX V4 beta test release 4.0.0 (build 4019) - 03 April 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

Sidebar Gadget for Windows Vista/7

Discussion and questions about Cumulus weather station software version 1. This section is the main place to get help with Cumulus 1 software developed by Steve Loft that ceased development in November 2014.
claydon_dan
Posts: 20
Joined: Fri 04 Sep 2009 1:23 pm
Weather Station: WH1081

Re: Sidebar Gadget for Windows Vista/7

Post by claydon_dan »

Hi Guys,

Apologies for my absence, I have had to redirect a bit more of more time, to running my business.

I must admit when I started designing the gadegt I was a complete 'Gadget Novice' but having a strong background in web design, I thought what the hell!! :lol:

Dane, has recently been in contact with me to ask my permission to use the gadget etc, which I have no problems with.

When I started the design, I didn't think about the 'bandwidth' issues with the xml, as my webserver happens to be sat by my right foot!! :oops:

Hopefully I might still be able to offer some support to people here.
Daniel Lintott

Image
zumosol
Posts: 7
Joined: Mon 05 Jul 2010 4:49 pm
Weather Station: VH1090
Operating System: Win7
Location: Køge Denmark

Re: Sidebar Gadget for Windows Vista/7

Post by zumosol »

Hello all.. new here so.. please don't kill me..

One thing I don't understand is why the data has to be uploaded to a web-site to be downloaded before they can be shown on a desktop(-gadget).
Somehow the data are already on the PC..or is it just me :) ?
on my PC they are I could say..
And if on vacation I don't care if it is raining at home :))

So the big question from me is:
is it possible to get the date into the gadget without a webpage?
I know I can open Cumulus , but I think it is more smart with a small gadget most of the time.

And I have no web-page...

Thanx in advance for any answer
User avatar
steve
Cumulus Author
Posts: 26701
Joined: Mon 02 Jun 2008 6:49 pm
Weather Station: None
Operating System: None
Location: Vienne, France
Contact:

Re: Sidebar Gadget for Windows Vista/7

Post by steve »

I'm guessing that it uses http to retrieve the file (so you can point it at any web site) so you could use it locally but would need to be running a web server.
Steve
User avatar
mcrossley
Posts: 12766
Joined: Thu 07 Jan 2010 9:44 pm
Weather Station: Davis VP2/WLL
Operating System: Bullseye Lite rPi
Location: Wilmslow, Cheshire, UK
Contact:

Re: Sidebar Gadget for Windows Vista/7

Post by mcrossley »

I haven't looked at the code for a while, but I suspect specifying your realtime file as "file://path_to_file/realtime.txt" rather than using http would work.

Mark
zumosol
Posts: 7
Joined: Mon 05 Jul 2010 4:49 pm
Weather Station: VH1090
Operating System: Win7
Location: Køge Denmark

Re: Sidebar Gadget for Windows Vista/7

Post by zumosol »

mcrossley wrote:I haven't looked at the code for a while, but I suspect specifying your realtime file as "file://path_to_file/realtime.txt" rather than using http would work.

Mark
I tried , but it looks like it is not working that way.
Not possible to press "OK" in settings unless it's a URL..
:(
User avatar
steve
Cumulus Author
Posts: 26701
Joined: Mon 02 Jun 2008 6:49 pm
Weather Station: None
Operating System: None
Location: Vienne, France
Contact:

Re: Sidebar Gadget for Windows Vista/7

Post by steve »

Yes, it uses XMLHttpRequest, so requires a web server to send the response.
Steve
User avatar
mcrossley
Posts: 12766
Joined: Thu 07 Jan 2010 9:44 pm
Weather Station: Davis VP2/WLL
Operating System: Bullseye Lite rPi
Location: Wilmslow, Cheshire, UK
Contact:

Re: Sidebar Gadget for Windows Vista/7

Post by mcrossley »

OK, so it would work if the xml.status code check was changed from 200 to 0, twice in the main gadget.js, and once in the settings.js files. :lol:
User avatar
steve
Cumulus Author
Posts: 26701
Joined: Mon 02 Jun 2008 6:49 pm
Weather Station: None
Operating System: None
Location: Vienne, France
Contact:

Re: Sidebar Gadget for Windows Vista/7

Post by steve »

That just shows how much I (don't) know about javascript; I didn't realise that XMLHttpRequest could fetch a local file without requiring an http server!
Steve
zumosol
Posts: 7
Joined: Mon 05 Jul 2010 4:49 pm
Weather Station: VH1090
Operating System: Win7
Location: Køge Denmark

Re: Sidebar Gadget for Windows Vista/7

Post by zumosol »

and...
ehmm next question .. how to do that?
:)
User avatar
mcrossley
Posts: 12766
Joined: Thu 07 Jan 2010 9:44 pm
Weather Station: Davis VP2/WLL
Operating System: Bullseye Lite rPi
Location: Wilmslow, Cheshire, UK
Contact:

Re: Sidebar Gadget for Windows Vista/7

Post by mcrossley »

I've attached the amended files, but haven't tested them - too busy writing some PowerShell cmdlets!

Install the gadget then replace the files in the "C:\Users\<username>\AppData\Local\Microsoft\Windows Sidebar\Gadgets\cumulusih.gadget\js" folder - rename the originals so you can go back to them if required.

Hope they work :? :lol:
You do not have the required permissions to view the files attached to this post.
zumosol
Posts: 7
Joined: Mon 05 Jul 2010 4:49 pm
Weather Station: VH1090
Operating System: Win7
Location: Køge Denmark

Re: Sidebar Gadget for Windows Vista/7

Post by zumosol »

Thanx !!
I'll try..
and post the result..
:)
User avatar
dane
Posts: 417
Joined: Wed 10 Sep 2008 2:15 pm
Weather Station: Rosenborg 68700
Operating System: Win10 Ult., 64-bit, RaspberryPi
Location: Gilleleje, Denmark

Re: Sidebar Gadget for Windows Vista/7

Post by dane »

I tried - and it failed :(
- which is what I expected, I must admit: I do not believe one can use an XMLHttpRequest to access a local file without a web server.

But an ActiveXObject("Scripting.FileSystemObject") file access would work OK - like the code does it for its .ini file.
It's a bit of a re-write and re-shuffle of the code, but I'll have a go at it.
It may take me a couple of days to find the time, though :)
Ib
zumosol
Posts: 7
Joined: Mon 05 Jul 2010 4:49 pm
Weather Station: VH1090
Operating System: Win7
Location: Køge Denmark

Re: Sidebar Gadget for Windows Vista/7

Post by zumosol »

dane wrote:I tried - and it failed :(
- which is what I expected, I must admit: I do not believe one can use an XMLHttpRequest to access a local file without a web server.

But an ActiveXObject("Scripting.FileSystemObject") file access would work OK - like the code does it for its .ini file.
It's a bit of a re-write and re-shuffle of the code, but I'll have a go at it.
It may take me a couple of days to find the time, though :)
yeah.. I tried too, it makes it possible to press "OK" in settings after typing the "realtime.txt" location, but all readings and graphics are missing..

It would be great if it could be possible and you can find the time, if not I will survive :)

And no matter how it ends, thanx for trying !!! :)
User avatar
mcrossley
Posts: 12766
Joined: Thu 07 Jan 2010 9:44 pm
Weather Station: Davis VP2/WLL
Operating System: Bullseye Lite rPi
Location: Wilmslow, Cheshire, UK
Contact:

Re: Sidebar Gadget for Windows Vista/7

Post by mcrossley »

Doh, it is a 'security' feature in IE7+ that you cannot load local files that way any more - you get an 'Access Denied' error. If you force it to use the native ActiveX XMLHTTP is does work, but you really don't want to do that. I also works in Firefox, well older versions anyway, not checked the latest builds.
zumosol
Posts: 7
Joined: Mon 05 Jul 2010 4:49 pm
Weather Station: VH1090
Operating System: Win7
Location: Køge Denmark

Re: Sidebar Gadget for Windows Vista/7

Post by zumosol »

mcrossley wrote:Doh, it is a 'security' feature in IE7+ that you cannot load local files that way any more - you get an 'Access Denied' error. If you force it to use the native ActiveX XMLHTTP is does work, but you really don't want to do that. I also works in Firefox, well older versions anyway, not checked the latest builds.

Hmm yes..and I have been thinking ..that's something huh?
I realized, and maybe I should have long time ago :)... that it is necessary to keep Cumulus running to update the "realtime.txt" file.. :bash:
That means I seriously can not see it is smart to have the Gadget running next to it.. :)
If Cumulus where running in background always- keeping "realtime.txt" updated, then it maybe was smart..?

The Gadget is smart on another PC, somewhere else, I can see that now ..hmmm
I like the forecast/ and graphics, that's for sure.

Now I wonder if it is possible to get the data appear in a Chrome extension, but that´s something totally different I guess.. or maybe just Cumulus in a kind of graphics mode

The conclusion for now is not to use too much time to re-write the Gadget the above in mind..
Post Reply