Code Monkey home page Code Monkey logo

forecastmetrics's People

Contributors

dependabot[bot] avatar tedpearson avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar

forecastmetrics's Issues

web key

i think you want to remove your web key from the code.,..

Question about retention/data overwrite - no issue

First of all thanks a lot of this code. I have been using this on a Raspberry Pi with Influxdb and Grafana and it has been working really well (I copied your graphs, really liked the way you presented the data). I'm in the process of moving the setup to a home-built NAS running OpenMediaVault and putting InfluxDB and Grafana into Docker containers so I want to make sure I do this properly for the long run.

On the RPi I have been running ForecastMetrics as a cron job every hour. It was just something I figured would work. But now that I'm reading up on this a little more I'm confused as to how much data will accumulate in InfluxDB since it doesn't look like old data is being overwritten and there is no retention policy (I'm using 1 year in InfluxDB). Originally when I was setting this up it didn't look like unnecessary data was being accumulated but now I'm not sure. What is your suggestion on how to populate an InfluxDB database?
If the answer is just a cron job I may see if it makes sense to put it inside a container (not sure why, just to see if I can do it as I'm learning to use containers). Any obvious issues with that?

Thanks

H

404 Not Found

Hi
My config is setup as follow
pi@ra-helios-stats:~/weather $ cat config/weather2influxdb.yaml
locations:

  • name: xxxxxx
    latitude: -2x.xxxx
    longitude: 2x.xxxx

influxdb:
host: http://localhost:8086
user: weather
password: xxxxxxxxxxxx
database: weather

forecast:
measurement_name: forecast
history:
enabled: yes
retention_policy: history_rp
measurement_name: forecast_history

astronomy:
enabled: no
measurement_name: astronomy

sources:
enabled:
- visualcrossing
visualcrossing:
key: xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx

http_cache_dir: /tmp/weather2influxdb-cache
pi@ra-helios-stats:~/weather $

The Grafana sources are connected and tested ok
But when I run the binary I get

pi@ra-helios-stats:~/weather $ ./weather2influxdb-linux-arm
2021/04/19 15:55:59 Getting VisualCrossing forecast
2021/04/19 15:56:01 Writing 378 points to "forecast" in InfluxDB for "visualcrossing"
2021/04/19 15:56:01 influxdb2client E! Write error: 404 Not Found: 404 page not found

2021/04/19 15:56:01 404 Not Found: 404 page not found

github.com/tedpearson/weather2influxdb/influx.(*Writer).WriteMeasurements
/home/runner/work/weather2influxdb/weather2influxdb/influx/influx.go:29
main.App.RunForecast
/home/runner/work/weather2influxdb/weather2influxdb/main.go:86
main.main
/home/runner/work/weather2influxdb/weather2influxdb/main.go:53
runtime.main
/opt/hostedtoolcache/go/1.15.7/x64/src/runtime/proc.go:204
runtime.goexit
/opt/hostedtoolcache/go/1.15.7/x64/src/runtime/asm_arm.s:857
2021/04/19 15:56:01 Writing 378 points to "forecast_history" in InfluxDB for "visualcrossing"
2021/04/19 15:56:01 influxdb2client E! Write error: 404 Not Found: 404 page not found

2021/04/19 15:56:01 404 Not Found: 404 page not found

github.com/tedpearson/weather2influxdb/influx.(*Writer).WriteMeasurements
/home/runner/work/weather2influxdb/weather2influxdb/influx/influx.go:29
main.App.RunForecast
/home/runner/work/weather2influxdb/weather2influxdb/main.go:99
main.main
/home/runner/work/weather2influxdb/weather2influxdb/main.go:53
runtime.main
/opt/hostedtoolcache/go/1.15.7/x64/src/runtime/proc.go:204
runtime.goexit
/opt/hostedtoolcache/go/1.15.7/x64/src/runtime/asm_arm.s:857
pi@ra-helios-stats:~/weather $

Could you point me in the right direction please

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.