Author Topic: ajax dashboard day/nite time google pie deprecated  (Read 1350 times)

0 Members and 1 Guest are viewing this topic.

Offline gdlmus

  • Member
  • *
  • Posts: 34
    • Meteo Turbie
ajax dashboard day/nite time google pie deprecated
« on: March 19, 2019, 01:31:11 PM »
Hi,
The: ajax dashboard day/nite time google pie has been deprecated...  :?
Does anyone have an idea where to find a similar pie working or a script
for the new google API...?
Thanks, regards.
-= Guy =-

Offline lddaly

  • Forecaster
  • *****
  • Posts: 490
Re: ajax dashboard day/nite time google pie deprecated
« Reply #1 on: March 19, 2019, 03:35:04 PM »
Good question. I just noticed this today as well and verified that others running the alt dashboard had the same behavior. There does seem to be a replacement in use by a few sites. Hopefully there is a quick fix with a new Google API or instructions for the replacement.

Offline gwwilk

  • Southeast Lincoln Weather
  • Forecaster
  • *****
  • Posts: 2578
    • SouthEast Lincoln, NE Weather
Re: ajax dashboard day/nite time google pie deprecated
« Reply #2 on: March 19, 2019, 04:16:39 PM »
See this thread, and read it very carefully.  It's not for the faint of heart.

Thanks to Mark Crossley for the basic idea and essential code. \:D/ =D> \:D/
Regards, Jerry Wilkins
gwwilk@gmail.com

Offline the beteljuice

  • the beteljuice
  • Forecaster
  • *****
  • Posts: 316
    • test site
Re: ajax dashboard day/nite time google pie deprecated
« Reply #3 on: March 19, 2019, 05:48:58 PM »
Or the same but different ....

http://www.wxforum.net/index.php?topic=35491.msg363665#msg363665

Doesn't have any code for daylight difference, but same graphics customised.
« Last Edit: March 19, 2019, 05:52:58 PM by the beteljuice »
Imagine what you will KNOW tomorrow !

Offline rrrick8

  • Senior Contributor
  • ****
  • Posts: 224
    • Vermilion weather
Re: ajax dashboard day/nite time google pie deprecated
« Reply #4 on: March 20, 2019, 08:49:36 AM »
Or the same but different ....

http://www.wxforum.net/index.php?topic=35491.msg363665#msg363665


Doesn't have any code for daylight difference, but same graphics customised.

Nice. Don't see the mentioned zip package on the page though. Maybe I'm just missing it.
Severe Weather Manager-Vermilion County EMA
CWOP-CW9931 KILDANVI5

Offline PaulMy

  • Forecaster
  • *****
  • Posts: 5509
    • KomokaWeather
Re: ajax dashboard day/nite time google pie deprecated
« Reply #5 on: March 20, 2019, 09:06:30 AM »
No zip until you Have A Play then click on the cog wheel settings, enter your specific info and click the green check marks to get your personal chart, and then ZIP.


Enjoy,
Paul
« Last Edit: March 20, 2019, 09:08:06 AM by PaulMy »

Offline lddaly

  • Forecaster
  • *****
  • Posts: 490
Re: ajax dashboard day/nite time google pie deprecated
« Reply #6 on: March 20, 2019, 01:30:28 PM »
See this thread, and read it very carefully.  It's not for the faint of heart.

Thanks to Mark Crossley for the basic idea and essential code. \:D/ =D> \:D/

Thanks, Jerry. I have it installed on my dashboard.

Offline gwwilk

  • Southeast Lincoln Weather
  • Forecaster
  • *****
  • Posts: 2578
    • SouthEast Lincoln, NE Weather
Re: ajax dashboard day/nite time google pie deprecated
« Reply #7 on: March 20, 2019, 03:35:25 PM »
See this thread, and read it very carefully.  It's not for the faint of heart.

Thanks to Mark Crossley for the basic idea and essential code. \:D/ =D> \:D/

Thanks, Jerry. I have it installed on my dashboard.
Looking good. [tup]
Regards, Jerry Wilkins
gwwilk@gmail.com

Offline the beteljuice

  • the beteljuice
  • Forecaster
  • *****
  • Posts: 316
    • test site
Re: ajax dashboard day/nite time google pie deprecated
« Reply #8 on: March 20, 2019, 06:27:39 PM »
@ Danville visitor to beteljuice site:

You didn't set your time-zone !

Danville, IL lat: 26.1906 lon: -98.1164 TZ: Europe/Sofia
Imagine what you will KNOW tomorrow !

Offline rrrick8

  • Senior Contributor
  • ****
  • Posts: 224
    • Vermilion weather
Re: ajax dashboard day/nite time google pie deprecated
« Reply #9 on: March 20, 2019, 07:41:41 PM »
@ Danville visitor to beteljuice site:

You didn't set your time-zone !

Danville, IL lat: 26.1906 lon: -98.1164 TZ: Europe/Sofia

Yes thanks, was just installing it today and had to leave all of a sudden.
Main problem I'm having is getting the font. Downloaded it twice and the font file is empty both times.

EDIT:Tried a third time but error I'm getting is access denied...
Code: [Select]
!   C:\Users\Rick\Downloads\Scripts\betel_sun_stuff3.zip: Cannot create C:\Users\Rick\Downloads\Scripts\betel_sun_stuff3\fonts
    Access is denied.
!   C:\Users\Rick\Downloads\Scripts\betel_sun_stuff3.zip: Cannot create C:\Users\Rick\Downloads\Scripts\betel_sun_stuff3\home\sites\beteljuice.co.uk\public_html\DEMOS
    Access is denied.
« Last Edit: March 20, 2019, 08:03:14 PM by rrrick8 »
Severe Weather Manager-Vermilion County EMA
CWOP-CW9931 KILDANVI5

Offline the beteljuice

  • the beteljuice
  • Forecaster
  • *****
  • Posts: 316
    • test site
Re: ajax dashboard day/nite time google pie deprecated
« Reply #10 on: March 20, 2019, 08:15:53 PM »
Now "The Dalles" hasn't set their TZ ...

If everything else is OK, you can just edit the value in both php files, without having to go to the site. Although as long as you haven't got cookies disabled it remembers what put last time.

@rrrick8

Don't know what that could be ?

... and the second line - why has it got my url in it ?

What are you using to unzip ?, try saving / moving to another location and unzipping there, or perhaps you now have multiple copies that are confusing things ?
Imagine what you will KNOW tomorrow !

Offline rrrick8

  • Senior Contributor
  • ****
  • Posts: 224
    • Vermilion weather
Re: ajax dashboard day/nite time google pie deprecated
« Reply #11 on: March 20, 2019, 08:22:12 PM »
Now "The Dalles" hasn't set their TZ ...

If everything else is OK, you can just edit the value in both php files, without having to go to the site. Although as long as you haven't got cookies disabled it remembers what put last time.

@rrrick8

Don't know what that could be ?

... and the second line - why has it got my url in it ?

What are you using to unzip ?, try saving / moving to another location and unzipping there, or perhaps you now have multiple copies that are confusing things ?
Have no idea on why your url was in it. Using WinRAR.  Uploaded font from another site and everything looks good now.
Just getting ready to implement it on my website.
Severe Weather Manager-Vermilion County EMA
CWOP-CW9931 KILDANVI5

Offline the beteljuice

  • the beteljuice
  • Forecaster
  • *****
  • Posts: 316
    • test site
Re: ajax dashboard day/nite time google pie deprecated
« Reply #12 on: March 20, 2019, 09:30:25 PM »
As a matter of interest which font was it ?
Imagine what you will KNOW tomorrow !

Offline cirrus

  • Kevin Hough
  • Member
  • *
  • Posts: 48
  • Davis Vantage Pro2 Plus
    • Gorge-East Weather
Re: ajax dashboard day/nite time google pie deprecated
« Reply #13 on: March 20, 2019, 09:34:09 PM »
Now "The Dalles" hasn't set their TZ ...

If you are referring to me, the form had America/Los_Angeles when I checked-off and downloaded the zip.  But the resulting sun_button.php and sun_banner.php both had Europe/Sofia

Anyway....thank you very much for the script...I really appreciate it  [tup]
Regards, --Kevin


Offline the beteljuice

  • the beteljuice
  • Forecaster
  • *****
  • Posts: 316
    • test site
Re: ajax dashboard day/nite time google pie deprecated
« Reply #14 on: March 20, 2019, 09:38:25 PM »
Hmm ........

Suddenly the 'zip' is trying to copy my 'site' - must investigate what has changed  :shock:
Imagine what you will KNOW tomorrow !

Offline rrrick8

  • Senior Contributor
  • ****
  • Posts: 224
    • Vermilion weather
Re: ajax dashboard day/nite time google pie deprecated
« Reply #15 on: March 20, 2019, 09:47:32 PM »
As a matter of interest which font was it ?

I tried 3 different fonts and none came thru the downloaded zip. All the font files were 0-kb.
I just directed it to an arial font file on my server and it's working fine on my homepage (lower center).
Only issue is that when the page first loads... the banner shows and you have to mouse over the image to get it to go away.
Severe Weather Manager-Vermilion County EMA
CWOP-CW9931 KILDANVI5

Offline the beteljuice

  • the beteljuice
  • Forecaster
  • *****
  • Posts: 316
    • test site
Re: ajax dashboard day/nite time google pie deprecated
« Reply #16 on: March 20, 2019, 10:19:34 PM »
Odd .... I've just copied your page directly and it works fine (although the pop-up would be better going high rather than low)

Might be a DOM timing thing. try putting the jquery call, the first lot of script and the css in the <head> section if you can, else as high as you can get it in your 'content'.
Imagine what you will KNOW tomorrow !

Offline the beteljuice

  • the beteljuice
  • Forecaster
  • *****
  • Posts: 316
    • test site
Re: ajax dashboard day/nite time google pie deprecated
« Reply #17 on: March 20, 2019, 11:21:46 PM »
Something is different about
Code: [Select]
$rootPath = realpath('tmp');
new RecursiveIteratorIterator(
    new RecursiveDirectoryIterator($rootPath),
    RecursiveIteratorIterator::LEAVES_ONLY);

I've had to write a bit of extra code to stop bogus 'null' entries in the zip.

Imagine what you will KNOW tomorrow !

Offline SoMDWx

  • Forecaster
  • *****
  • Posts: 1014
    • Southern Maryland Weather
Re: ajax dashboard day/nite time google pie deprecated
« Reply #18 on: March 21, 2019, 11:50:41 AM »
All,
 don't know if anyone has looked at the latest Google API for charts.....

I have been messing around with it to replace the previous pie chart logic... Quite easy to implement.....

You can see it here at https://somdweather.com on the left side of the menu bar.

Jim
« Last Edit: March 21, 2019, 04:41:03 PM by SoMDWx »

Offline jmcmurry

  • Jim McMurry
  • Forecaster
  • *****
  • Posts: 528
  • Davis Vantage Pro 2 Plus Wireless.
    • Juneau County Weather
Re: ajax dashboard day/nite time google pie deprecated
« Reply #19 on: March 22, 2019, 02:48:47 PM »
Only issue is that when the page first loads... the banner shows and you have to mouse over the image to get it to go away.

I have the same thing happening for some reason.  I'll keep playing with it to see if I stumble into an answer.  I have the javascript loading just as soon as possible.

- Jim

Forum Search and Google Can be Your Best Friends

Offline the beteljuice

  • the beteljuice
  • Forecaster
  • *****
  • Posts: 316
    • test site
Re: ajax dashboard day/nite time google pie deprecated
« Reply #20 on: March 22, 2019, 04:32:21 PM »
Strange ...

There seems to be something in the pages that is firing the 'hover' on load.

Try editing sun_pop <div> to be:
Code: [Select]
      <div id = "sun_pop" class = " sun_pop_out off " style "display: none;">
Imagine what you will KNOW tomorrow !

Offline rrrick8

  • Senior Contributor
  • ****
  • Posts: 224
    • Vermilion weather
Re: ajax dashboard day/nite time google pie deprecated
« Reply #21 on: March 22, 2019, 04:36:53 PM »
Only issue is that when the page first loads... the banner shows and you have to mouse over the image to get it to go away.

I have the same thing happening for some reason.  I'll keep playing with it to see if I stumble into an answer.  I have the javascript loading just as soon as possible.

- Jim

Jim, Beteljuice PM'd me last night with this and it took care of it for me.
On the little snippet of code taken from the page he linked above in his first post... change the
Code: [Select]
<div id = "sun_pop" class = "" >to
Code: [Select]
<div id = "sun_pop" class = "" style="display: none;">
EDIT: I see he posted while I was typing mine out. Anyway, you get the drift of where the resolution lies.
« Last Edit: March 22, 2019, 04:39:20 PM by rrrick8 »
Severe Weather Manager-Vermilion County EMA
CWOP-CW9931 KILDANVI5

Offline jmcmurry

  • Jim McMurry
  • Forecaster
  • *****
  • Posts: 528
  • Davis Vantage Pro 2 Plus Wireless.
    • Juneau County Weather
Re: ajax dashboard day/nite time google pie deprecated
« Reply #22 on: March 22, 2019, 05:42:55 PM »
Thanks to both of you, that is the answer.  Now to get the pop up to position correctly.  Great fun.

- Jim

Forum Search and Google Can be Your Best Friends

Offline the beteljuice

  • the beteljuice
  • Forecaster
  • *****
  • Posts: 316
    • test site
Re: ajax dashboard day/nite time google pie deprecated
« Reply #23 on: March 22, 2019, 05:53:48 PM »
Edit: info only:
In the set-up, if you chose 'custom' position you can drag'n'drop the pop-up in relation to the button.

EDIT: You didn't copy the code I posted !

As you are using the transition with borders option, you need the class statement !
« Last Edit: March 22, 2019, 06:05:34 PM by the beteljuice »
Imagine what you will KNOW tomorrow !

Offline jmcmurry

  • Jim McMurry
  • Forecaster
  • *****
  • Posts: 528
  • Davis Vantage Pro 2 Plus Wireless.
    • Juneau County Weather
Re: ajax dashboard day/nite time google pie deprecated
« Reply #24 on: March 22, 2019, 06:24:19 PM »
Perfect!  Now positoning works fine for me.

Thanks beteljuice.

Forum Search and Google Can be Your Best Friends

 

anything