Sharper Image Weather Station EC-WS115 not updating ***Again*** 10/19/22

Anonymous
2022-10-19T15:33:40+00:00

It looks like the WAMPSERVER fix is throwing PHP errors on line 99, 120 and 55 for the getweather.php file. I am thinking this might be due to a change in the data string from Weatherbit ???

Windows for home | Windows 10 | Devices and drivers

Locked Question. This question was migrated from the Microsoft Support Community. You can vote on whether it's helpful, but you can't add comments or replies or follow the question.

0 comments No comments
Answer accepted by question author
Anonymous
2022-10-21T14:05:07+00:00

Below is an updated version of getweather.php. It works around weatherbit.io changing their free forecasts from 16 days to 7 days.

  1. Download file
  2. Update your weatherbit.io key in the file.
  3. Copy to c:/wamp/www/ folder to replace existing getweather.php

https://www.dropbox.com/s/nw3e7tznsgt7ncj/getweather.php?dl=0

Post here if you have issues.

Was this answer helpful?

2 people found this answer helpful.
0 comments No comments

46 additional answers

Sort by: Newest
  1. Anonymous
    2022-11-04T21:19:33+00:00

    Thank you thank you thank you thank you

    the key was missing in the wamp folder, all is working now!!!

    Was this answer helpful?

    0 comments No comments
  2. Anonymous
    2022-11-04T14:58:01+00:00

    maybe your API key was not typed or placed correctly in the code. Double check your API and that it is wrapped in the single quotes:

    $api_key = 'Your weatherbit.io key here';
    

    also, you can check to see if your API is working by adding the key to the end of the below URL and hit enter. The page should reload with all of the weather data in a long data string.

    http://api.weatherbit.io/v2.0/forecast/daily?city=porltand,OR&key=

    Was this answer helpful?

    1 person found this answer helpful.
    0 comments No comments
  3. Anonymous
    2022-11-03T22:09:44+00:00

    [03-Nov-2022 01:29:10 Europe/Paris] PHP Fatal error: Uncaught exception 'Exception' with message 'DateTimeZone::__construct(): Unknown or bad timezone ()' in C:\wamp\www\getweather.php:100

    Stack trace:

    #0 C:\wamp\www\getweather.php(100): DateTimeZone->__construct('')

    #1 {main}

    thrown in C:\wamp\www\getweather.php on line 100

    still waiting for the weatherstation to update. Any ideas? Thanks for taking the time to help me.

    Was this answer helpful?

    0 comments No comments
  4. Anonymous
    2022-10-31T22:17:01+00:00

    thank you for your help., I will wait and see.

    Marc

    Was this answer helpful?

    0 comments No comments