Giter VIP home page Giter VIP logo

mr-weather's People

Contributors

lendle avatar robertmparker avatar tris avatar vbogutskii-sh avatar

Stargazers

 avatar  avatar  avatar

Watchers

 avatar

mr-weather's Issues

High frequency data for Sharp Park

David Chamberlin is using weewx to collect data from his station at Sharp Park (he's still polishing it up before publishing a link to it). It's saving data every 2 minutes, and there's also a MQTT/WebSockets API that emits live readings every 3 sec. I'll email him and ask if he's okay with us using those.

Disable Coyote meter

It's broken, but hopefully will be fixed soon. I think this is the most valuable signal, and I've put this off b/c I want it to work, but it's just clutter at this point.

Cors proxy is running out of free quota on heroku

The cors proxy is currently running on the heroku free tier. It's running out of monthly quota. I didn't include a whitelist that prevents other domains from using it, so it might be spam or it might just be how heroku's usage works. Apparently the free tier doesn't have any monitoring, so I can't determine if all the usage is legitimate. And heroku's paid tier doesn't have any billing limits, so if I attach a credit card number I could suddenly get hit with a large bill. It's not inspiring a whole lot of confidence in heroku.
Anyway the monthly quota is going to reset tomorrow, so a short term fix is not needed.

Google analytics does show that traffic to the site has grown this month. So the increase in traffic could be organic, and heroku's free tier might just be severely limited.

I'm thinking that the long term solution is to write a simple cors proxy in python and host it on the GAE free tier.

Check out https://weather.pacificaview.net/

This site has some really interesting widgets. I don't know if I'd use any of it, but whoever made it has a much better knack for doing UI work than I do. It looks nice.

  • Custom tide chart for Ocean Beach. It's an image server-side rendered using php.
  • Live still frame from the Flag webcam(The YouTube stream uses a stale image)
  • Wind Rose. I don't know how useful it would be for current conditions, but it is an interesting visualization
  • Wind chart using "High Charts". Looks very clean.

Fort Funston Webcam images broken

The issue is that Chrome updated, and it no longer allows mixed content. The page is HTTPS, but the Fort Funston images are HTTP. It used to work, but display a warning about mixed content. Now Chrome tries to load the images via HTTPS, and it fails since Fort Funston's webserver does not have a valid certificate.

So since I can't fix Fort Funston's webserver, I can either downgrade the entire site to HTTP or try to figure out some stupid HTTPS proxy to fool Chrome.

Auto-refresh?

Make the page reload every few minutes, so it always shows reasonable data.

Fog forecast

The KCADALYC1 meter has measurements for temperature and dew point. This may be enough to make a rudimentary fog predictor.

There is some chatter on the Telegram channel about specific temperatures. I'm not sure if this is temperature that is good for flying or temperature that is good for no fog.

Unit tests

There are a lot of different wind charts now. I should add some unit testing. Basic idea is to mock out the http request, and make sure the data is parsed correctly.

Cleanup documentation

There have been a lot of changes recently, and some documentation is out of date.

Cleanup the windcharts onload stuff

This change is just cleanup, and shouldn't change any functionality.

In index.html, there are tags like:

In index.js, there is a block like this:
window.onload = function() {
new WUWind('KCADALYC1');
....
};

The onload starts a HTTP request for data, and fills in the that matches the "stationId" param. This matching is kinda weird. Ideally the HTML file would look like this:

And then Javascript would just do everything needed without having the same id in two different places.

Some of these "stationIds" are not even station ids. Sure in the example listed, it is a station id. But in other examples there is a URL or a grid point. Each API uses different formats.

Cleanup forecast displays

The tide chart has a vertical red line that marks the current time. The forecasts should have a similar marker to indicate. Also maybe don't include 7 days worth of hourly data. I have little faith that the forecast is useful more than a day in advance.

Tide chart not showing up

The tide chart is failing to show up, because the API request is failing with a CORS error.

https://api.tidesandcurrents.noaa.gov/api/prod/datagetter?product=predictions&application=NOS.COOPS.TAC.WL&begin_date=20200810&end_date=20200812&datum=MLLW&station=9414290&time_zone=lst_ldt&units=english&interval=hilo&format=json

Which has the relevant headers:
access-control-allow-headers: X-Requested-With
access-control-allow-origin: *

Seems fine to me. Did this change happen when I moved to https or do the API change from under me?

Tide chart isn't showing up

The tide chart is failing to show up, because the API request is failing with a CORS error.

https://api.tidesandcurrents.noaa.gov/api/prod/datagetter?product=predictions&application=NOS.COOPS.TAC.WL&begin_date=20200810&end_date=20200812&datum=MLLW&station=9414290&time_zone=lst_ldt&units=english&interval=hilo&format=json

Which has the relevant headers:
access-control-allow-headers: X-Requested-With
access-control-allow-origin: *

Seems fine to me. Did this change happen when I moved to https or do the API change from under me?

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.